Skip to content
helpyself

Golden Ratio Calculator

Local only — nothing is uploaded unless you save or share it.

Split any length at the golden ratio, or find the whole from one part, with a φ scale for type.

  1. Type the one length you know
  2. Pick whether it is the longer part, the shorter part or the whole
  3. Read the other two lengths and the golden scale, rounded as you like
 
 
 

(a + b) : a = a : b = φ ≈ 1.618

Golden scale

    Your value multiplied and divided by φ. Handy for font sizes and spacing.

    Save this tool

    Keep Golden Ratio Calculator handy

    Bookmark it
    Embed

    Put Golden Ratio Calculator on your website

    Paste this into your page. It shows the tool, free, with a link back to it.

    About this tool

    Two lengths are in the golden ratio when the whole is to the longer part as the longer part is to the shorter one. That ratio is φ (phi), about 1.618. This golden ratio calculator takes any one of the three lengths and gives you the other two: type the whole width of a 960 px layout and it splits into a 593.313 px main column and a 366.687 px sidebar; type a longer side of 100 and the shorter one is 61.803. Pick which length you know in the dropdown: the longer part (a), the shorter part (b) or the whole (a + b). The answer is in whatever unit you typed, pixels, centimetres or inches, and you can round it to whole numbers or up to three decimals. The drawing shows the proportion as a golden rectangle: a square and the smaller golden rectangle left beside it, with the start of the golden spiral. Under the answer is a golden scale: your value multiplied and divided by φ a few times. Designers use it for type and spacing. With 16 px body text the steps are 25.889 and 41.889 for headings and 9.889 for small print, and each size relates to the next by the same ratio. The arithmetic is simple: a = b × φ, a + b = a × φ, and φ = (1 + √5) / 2 = 1.6180339887. It runs in your browser.

    Frequently asked questions

    How do I calculate the golden ratio?

    Multiply or divide by φ, which is about 1.618. If you know the longer part a, the shorter part is a ÷ 1.618 and the whole is a × 1.618. If you know the whole, the longer part is the whole ÷ 1.618, and the shorter part is what is left. For 960: 593.313 and 366.687.

    What exactly is φ?

    φ (phi) is (1 + √5) ÷ 2 = 1.6180339887…, an irrational number, so its decimals never end or repeat. It is the only ratio where the whole is to the longer part as the longer part is to the shorter. The calculator uses its full double-precision value.

    How do I use the golden ratio in typography?

    Use it as a scale. Start from your body size and multiply by 1.618 for each step up: 16 px text, 25.9 px subheadings, 41.9 px headings. A line height of about 1.6 times the font size is also often traced back to φ. The scale under the answer gives these steps for any starting value.

    How do I use the golden ratio in a layout?

    Split a width into a main column and a sidebar at the golden ratio. Type the full width and choose the whole: 960 px gives 593 and 367 px, 1200 px gives 742 and 458 px. Set the decimals to 0 for whole pixels.

    What is a golden rectangle?

    A rectangle whose sides are in the golden ratio, such as 161.8 × 100. Cut a square off one end and the piece left over is again a golden rectangle, which is why the drawing can repeat into a spiral. To size one, type the short side as the shorter part, or the long side as the longer part.

    Is the golden ratio really everywhere in art and nature?

    Less than is claimed. It turns up in real mathematics, such as the Fibonacci numbers, whose neighbours divide to ever closer to 1.618, and in some plant spirals. Many famous examples, from the Parthenon to the Mona Lisa, were measured to fit after the fact. It is a pleasant, useful proportion, not a law.

    Can I put this calculator on my own website?

    Yes. Tap Embed under the calculator and copy the code into your page. It works there for free, with a link back here.

    Help improve this tool

    Found a bug, want a change, or need a tool we don't have?

    /golden-ratio-calculator

    ↑↓ to move · Enter to open · Esc to close