There is no single mathematical formula for beauty. Good proportion is the art of creating relationships between unequal things.
And the most useful beginner shortcut is:
Start with 2/3 → create hierarchy → check visual weight → check negative space → then trust your eye.
That is the real answer to:
“What’s the mathematical rule behind ‘feels right’?”
Math gives you the framework. Your eye makes the final decision.