Golden Ratio Calculator
Split any length by the golden ratio 1.618, scale it up or down, get a golden size sequence and a main/sidebar layout split for your page with ready CSS and a diagram.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Enter any length (page width, image height, font size…).
- See it split into a large and small part, and its length scaled up or down by the golden ratio.
- Use the sequence for harmonious sizes, and the column split for your page with CSS.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
What is the golden ratio?
φ = (1 + √5) ÷ 2 ≈ 1.6180339. Split a length so that whole ÷ larger = larger ÷ smaller and you get this ratio: the larger part is about 61.8% and the smaller about 38.2%.
Do I have to design with it?
No. It is a helper that gives balanced divisions, but many claims about “golden beauty” are exaggerated. Use it as a starting point and trust your eye.
How do I use it in CSS?
For two columns: grid-template-columns: 1.618fr 1fr. For type sizes: each size = the previous × 1.618 (or use the type scale generator with a smaller ratio for interfaces).
Formulas & sources
Related tools
Grid CalculatorWork out column width in a layout grid from container width, column count, gutters and margins, with every span in px and %, a grid preview and ready CSS Grid code.Type & Spacing ScalePick a base font size and ratio to get a harmonious size scale for headings and text with an Arabic and English preview, plus a spacing scale, exported as CSS, Tailwind or JSON.Aspect Ratio & Resolution CalculatorFind the ratio of any size (1920×1080 = 16:9), fill in the missing width or height when resizing, work out megapixels, compare standard resolutions and fit an image in a frame.CSS clamp() GeneratorEnter the smallest and largest size and the two screen widths to get a ready CSS clamp() for fluid type or spacing, with a value table and a full fluid type scale.