Golden Ratio Calculator

Divide a length at φ, get the type scale and the golden rectangle, and read why the ratio is useful without being the law of beauty it is sold as.

Live output

Enable JavaScript to customise; default output below.

That length is the

Whether your number is the whole to divide, or one of the two parts to build up from.

Live preview golden-ratio.txt
φ                           1.618034
1 / φ                       0.618034

Your whole                  960px
Whole                       960px
Longer part                 593.313px
Shorter part                366.687px
Longer ÷ shorter            1.618034
Whole ÷ longer              1.618034

A golden rectangle
  Width                     960px
  Height                    593.313px
  aspect-ratio              1.618034 / 1

Type scale on φ, from 16px
  -2                        6.111px  (0.382rem)
  -1                        9.889px  (0.618rem)
  base                      16px  (1rem)
  +1                        25.889px  (1.618rem)
  +2                        41.889px  (2.618rem)
  +3                        67.777px  (4.2361rem)
  +4                        109.666px  (6.8541rem)

Fibonacci closes in on φ
  8 / 5                     1.6
  34 / 21                   1.619048
  144 / 89                  1.617978
  610 / 377                 1.618037

Dividing 960px at the golden ratio gives 593.313px and 366.687px. The
property that makes it the golden ratio is that both divisions come to
the same number: the whole over the longer part is 1.618034, and the
longer over the shorter is 1.618034. No other ratio does that.

That self-similarity is the real argument for using it. A scale built on
φ looks the same at every zoom level, because each step stands in the
same relation to its neighbours as the pair above it.

The folklore is another matter. The Parthenon, the Mona Lisa and the
nautilus shell do not measure to 1.618 without choosing the measurement
to fit, and the preference experiments found people liking a broad band
of rectangles rather than one. Use φ because the scale is coherent, not
because it is supposed to be objectively beautiful.

The practical catch is that 1.618 is a big step. From 16px the next size
up is 25.889px and the one after is 41.889px, so a page has a heading, a
subheading and body text with nothing usable in between. If a scale
feels too coarse, the ratio is the reason, and 1.25 or 1.333 gives you
more room.

Fibonacci ratios converge on φ, so the numbers designers reach for out
of habit, 8, 13, 21, 34, are golden-ish and each pair is a little off.
They are also all whole numbers, which for spacing on a pixel grid is
worth more than the third decimal place of the ratio.

Output is valid and updates as you type.

φ is 1.6180339887…, and it has exactly one property worth building on: it is the only ratio where the whole is to the larger part as the larger part is to the smaller. Divide 960 at φ and you get 593.313 and 366.687, and both divisions come out at 1.618034.

That self-similarity is real and it makes a coherent scale. The rest of what gets said about the golden ratio, the Parthenon, the Mona Lisa, the nautilus shell, does not survive measurement, and this page says so rather than repeating it.

How to use

  1. Put in a length, and say whether it is the whole or one of the two parts.
  2. Read the division, the golden rectangle and the type scale.
  3. Use the scale if you want φ-based type, and read the last note before you commit to it.

Example

960px divided at the golden ratio, with a 16px base for the scale:

φ                           1.618034
1 / φ                       0.618034

Your whole                  960px
Whole                       960px
Longer part                 593.313px
Shorter part                366.687px
Longer ÷ shorter            1.618034
Whole ÷ longer              1.618034

A golden rectangle
  Width                     960px
  Height                    593.313px
  aspect-ratio              1.618034 / 1

Type scale on φ, from 16px
  -2                        6.111px  (0.382rem)
  -1                        9.889px  (0.618rem)
  base                      16px  (1rem)
  +1                        25.889px  (1.618rem)
  +2                        41.889px  (2.618rem)
  +3                        67.777px  (4.2361rem)
  +4                        109.666px  (6.8541rem)

Fibonacci closes in on φ
  8 / 5                     1.6
  34 / 21                   1.619048
  144 / 89                  1.617978
  610 / 377                 1.618037

Look at the scale before you use it. From 16px the next size is 25.9px and the one after is 41.9px. There is nothing between body text and a large heading, and the step down lands at 9.9px, which is too small for anything a reader has to read.

Pitfalls

φ is a coarse ratio for type. 1.618 per step gives you three or four usable sizes on a page. If your scale feels like it is missing a size, it is, and 1.25 or 1.333 will give you the room. Use φ where you want obvious hierarchy and few levels.

The famous examples do not measure up. The Parthenon fits a golden rectangle only if you choose which parts of it to measure. The Mona Lisa’s proportions depend on where you decide her face starts. The nautilus is a logarithmic spiral with a growth rate that is not φ. None of that makes the ratio useless; it makes the marketing untrue.

The preference research is weaker than it is quoted as being. Studies asking people to pick a favourite rectangle find preferences spread across a wide band, and results shift with how the question is asked. There is no experimental case for 1.618 being uniquely pleasing.

Fibonacci is golden-ish, not golden. 8/5 is 1.6, 34/21 is 1.619, 144/89 is 1.61798. Each pair alternates above and below φ and closes in. For spacing, the whole numbers are usually worth more than the exact ratio, because they land on the pixel grid.

A golden rectangle is not a golden ratio layout. Dividing a page at φ once is a proportion; dividing every element at φ is a pattern, and it stops being interesting about three levels in.

Rounding accumulates. A five-step scale computed by multiplying a rounded value each time drifts from one computed with powers. This tool uses powers of φ from the base, which is the version that stays consistent.

Compatibility

Arithmetic in the browser: nothing is uploaded and nothing is stored. The share link carries the figures.

φ is computed as (1 + √5) / 2 in double precision, which is exact to about fifteen significant figures, far past what any layout can use. The identities φ² = φ + 1 and 1/φ = φ − 1 both hold in the output, which is a decent check that the arithmetic is doing what the definition says.

The aspect-ratio line is a CSS property value you can paste directly; it has been in every current browser since 2021 and it replaces the old padding-top box trick.

Frequently asked questions

Should I use the golden ratio for my type scale?
If you want a scale with strong contrast and few sizes, yes. If you want a scale with a caption size, a body size, three heading sizes and a display size, no: pick 1.2 or 1.25 and you will have room for all of them.
What is the golden ratio in design terms?
A rule for dividing a length so the two parts relate to the whole the way they relate to each other. It is a proportion system, not a law, and it competes with other proportion systems that are equally coherent: the musical fourth at 1.333, the major third at 1.25, √2 at 1.414, which is what paper sizes use.
Why do the Fibonacci ratios alternate above and below φ?
Because the error changes sign each step as the sequence converges. 5/3 is above, 8/5 is below, 13/8 is above, and each one is closer than the last.
Is 1.618 or 0.618 the golden ratio?
Both. φ is 1.618 and 1/φ is 0.618, and they differ by exactly one, which is one of the identities that makes the number unusual.
What about the golden ratio in typography for line length?
The claim usually made is that a line should be about φ times the measure of something, and there is no good evidence for it. The measure that has research behind it is 45 to 75 characters per line, which has nothing to do with φ.
Weekly drops

New tools, when there are new tools

One email when something worth using ships. No schedule to fill, so no filler.

Your address goes nowhere else, and one click unsubscribes.