Golden Ratio Typography Calculator

Generate a perfect type scale, line heights and measure using φ = 1.618.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Harmonious typography is not guesswork — it is geometry. The golden ratio (φ, phi, ≈ 1.618…) is the proportion at which a line is divided so that the whole is to the longer part as the longer part is to the shorter. It appears in the shell of a nautilus, the spiral of a sunflower, and the proportions of the Parthenon. When applied to a type scale it produces a set of sizes, line heights and line widths that feel instinctively balanced, because the eye has evolved to recognise that specific ratio as harmonious.

This calculator takes a single input — your base font size in pixels — and derives a complete, production-ready typographic system from it using exact φ arithmetic. No rounding heuristics, no magic numbers: every value traces directly back to the formula.

How it works

The modular type scale

Each size in the scale is computed as:

size(n) = base × φⁿ

where n is the step number (positive for larger, negative for smaller) and φ = (1 + √5) / 2 ≈ 1.6180339887…

For a 16 px base:

StepRoleFormulaSize
−2Caption16 ÷ φ²6.11 px
−1Small16 ÷ φ9.89 px
0Body16 × φ⁰16.00 px
+1Lead16 × φ25.89 px
+2H316 × φ²41.89 px
+3H216 × φ³67.77 px
+4H116 × φ⁴109.67 px
+5Display16 × φ⁵177.44 px

Every adjacent pair is in exactly the same ratio — φ — which is why the scale feels unified rather than arbitrary.

Optimal line height

The line-height ratio for each step is simply φ:

line-height = font-size × φ

For 16 px body text that is 25.89 px, giving a unitless ratio of 1.618. This is notably close to what accessibility guidelines and reading-research recommend (1.5–1.8), but arrived at geometrically rather than by convention.

Optimal line width (measure)

Typographers have long recommended 45–90 characters per line, with 66 as the ideal (The Elements of Typographic Style, Bringhurst). The golden ratio gives a clean formula:

measure = font-size × φ²

φ² ≈ 2.618, so for 16 px body text the ideal max-width is about 419 px — comfortably within the comfortable reading range. The measure scales proportionally as font size grows, so headings automatically get a narrower max-width, encouraging shorter, punchy lines.

Vertical rhythm

Paragraph spacing (margin-bottom) should equal one full line-height. This keeps the vertical grid consistent: the space between paragraphs matches the space between lines, so the page breathes without losing the sense of blocks.

Worked example — 18 px base

A designer working on an editorial article sets a 18 px base (slightly larger than default for comfortable long-form reading).

StepRoleSizeLine height ratioMax width
0Body18.00 px1.618472.63 px
+1Subtitle29.12 px1.618764.85 px
+2H347.12 px1.6181237.30 px
+3H276.24 px1.6182002.00 px

The H3 at 47 px would typically be constrained to the body column width anyway, so the max-width for larger steps functions as a design ceiling rather than a strict container constraint. The key value is the body max-width: 472 px, close to the classic 480 px column used by many editorial sites.

Formula note

φ is defined as the positive root of x² = x + 1, giving x = (1 + √5) / 2. It has the remarkable property that φ² = φ + 1 = 2.618… and 1/φ = φ − 1 = 0.618… These identities mean a scale built on φ is self-similar: the ratio between any step and the step two above it is always φ² = 2.618, and the ratio to the step below is always 1/φ = 0.618. This is why the scale feels “complete” — every level is a whole-number power of the same ratio.

Ad placeholder (rectangle)