Skip to content
Jellykit

Golden Ratio Calculator

Split a length by the golden ratio and build a type or spacing scale in which each step is φ times the last.

  • Runs on your device
Loading tool

About Golden Ratio Calculator

Enter a length, such as a page width, and this calculator splits it into two parts in the golden ratio: the larger part is about 61.8% of the whole and the smaller about 38.2%, as in a classic two-column layout. It also gives the length multiplied and divided by φ.

Below that, a golden scale starts from a base size, such as your body text, and multiplies by φ (about 1.618) for each step up and divides for each step down. Copy it as CSS custom properties in rem.

How it works

  1. The golden ratio φ is (1 + √5) ÷ 2, about 1.6180339887. It is the one ratio where the whole is to the larger part as the larger part is to the smaller.
  2. The larger part is the length divided by φ, and the smaller part is what remains, which is also the length divided by φ².
  3. Step n of the scale is the base multiplied by φ to the power n. Results are shown to two decimals in px and four in rem.

Questions

Is the golden ratio the same as the Fibonacci sequence?

They are close relatives. The ratio between consecutive Fibonacci numbers (8 and 13, 13 and 21) approaches φ as the numbers grow, so a Fibonacci scale is a whole-number approximation of a golden one.

Is a golden scale good for type?

It has strong contrast: each step is about 62% bigger than the last, so headings grow large quickly. It suits sites with few heading levels. For long documents with many levels, a smaller ratio such as 1.25 is often easier to use.

Why are the CSS steps below the base named n1, n2?

A custom property name such as --phi--1 is valid but easy to misread, so steps below the base use n for negative: --phi-n1 is one step below the base.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.