Modular type scale with common ratios, fluid option and CSS variables
Golden Ratio Calculator
Split a layout or grow a size by 1.618 without reaching for a calculator.
Loading tool…
How to use golden ratio calculator
Enter a size: a page width, an image height or a font size.
Read the larger and smaller parts, and the next size up and down.
See the split drawn as a layout with the ratio checked.
Set a base font size to get a golden type scale and copy its CSS variables.
What this tool does
- Splits a size into two parts whose ratio is 1.618, and shows that check.
- Gives the next larger and smaller golden size.
- Builds a seven step golden type scale in rem with px comments.
How the result is verified
The tool shows larger divided by smaller (1.618) and larger plus smaller (your original size) so you can see both conditions hold.
Frequently asked questions
What is the golden ratio?
About 1.618, the number where the whole divided by the larger part equals the larger part divided by the smaller. It is (1 + square root of 5) / 2.
Does a golden layout look better?
It is one pleasant proportion among many, not a rule. It is useful as a starting point for sidebar and content widths or image crops.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Snap sizes to an 8px grid and plan columns, gutters and margins
Spacing tokens from a base unit, ratio or list as CSS, Tailwind or JSON
Per-corner and elliptical border-radius with shortest shorthand output