Golden Ratio Calculator

Type a length, such as a 960px layout, to split it into a main part and a side part by the golden ratio, and build a golden type scale from your body size.

How it works

The golden ratio, written φ, is (1 + √5) / 2, about 1.618. A length is split in the golden ratio when the whole is to the longer part as the longer part is to the shorter. The longer part is the whole divided by φ, about 61.8%, and the shorter is the rest, about 38.2%.

Growing a length by φ gives the long side of a golden rectangle; dividing by φ gives its short side.

The type scale multiplies the base size by φ for each step up and divides by φ for each step down. All of it runs in your browser.

How to use it

  1. 1 Type the length to split, such as a page width of 960.
  2. 2 Read the longer and shorter parts, and the length grown or shrunk by φ.
  3. 3 Type your body text size to see a golden type scale in the table below.
  4. 4 Copy any value with the button beside it.

Good to know

  • The parts are in the same unit as the length, so the page works for pixels, centimetres or inches alike.
  • Fibonacci numbers approach φ: 8 / 5 is 1.6, 13 / 8 is 1.625 and 21 / 13 is 1.615. They make handy whole-number golden splits, such as 13 and 8 columns.
  • A golden type scale grows fast. Three steps up from 16px is almost 68px, so most pages use only one or two steps.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Laying out a page and its headings with the golden ratio

Take a blog layout 960px wide with a main column and a sidebar. Splitting it in the golden ratio means dividing 960 by φ, 1.618, which gives 593.31px for the main column. The sidebar gets the remaining 366.69px. The two parts relate to each other as the whole relates to the main column: 960 divided by 593.31 and 593.31 divided by 366.69 are both 1.618. That self-similarity is the whole idea of the ratio.

In practice there is a gutter between the columns, say 32px. One honest way to keep the proportion is to split the space after the gutter: 928px split gives 573.5px and 354.5px. Another is to split the full 960px and take 16px off each side of the line. The difference is small, a few pixels, and no reader will measure it. What they will notice is that the sidebar is clearly secondary without looking cramped, which is what the ratio is good at.

The same number can set the type. With 16px body text, one step up by φ is 25.89px, a good size for section headings. Two steps up is 41.89px, a large post title. Three steps is 67.78px, which suits a landing page headline and little else. One step down is 9.89px, too small for most reading, so a golden type scale usually has no steps below the body. If you want gentler steps, the Type Scale Generator offers smaller ratios such as 1.25.

φ also turns up in shapes. A golden rectangle has sides in the ratio 1 to 1.618, so a card 300px wide and 185.41px tall is golden, as is one 485.41px wide and 300px tall. Cut a square off a golden rectangle and what is left is another golden rectangle, which is where the familiar spiral comes from. The Times φ and Divided by φ rows give these sides for any length you type.

The calculator has limits. It does arithmetic, and the golden ratio is one proportion among many; a 2:1 or 3:2 split can suit a layout just as well. The values are rounded to two decimals, and browsers place fractional pixels in their own way. The type scale assumes a 16px root when it shows rem. And the page cannot tell you whether a design looks good, only whether it follows the ratio.

Frequently asked questions

What is the golden ratio exactly?

It is the number (1 + √5) / 2, which is 1.6180339887 and continues without repeating. It is the only positive number whose square is itself plus 1, and whose reciprocal is itself minus 1, which is why 1 / φ is 0.618.

How do I split a layout with it?

Divide the width by 1.618 for the main column, and give the rest to the sidebar. A 960px layout splits into 593.31px and 366.69px. Gutters come out of those numbers, so subtract half the gutter from each if you want the columns to follow the ratio exactly.

Is the golden ratio really in famous art and buildings?

Much less than is often claimed. Many examples were found by choosing which edges to measure after the fact, and measurements of buildings such as the Parthenon do not support a deliberate golden ratio. It is a pleasant proportion, not a law of beauty.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.