1. Home
  2. Design tools
  3. Golden Ratio Calculator

Golden Ratio Calculator

Enter a length and get the two parts whose ratio is 1.618, for layouts, logos or proportions.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Golden Ratio Calculator

  1. Say which length you know.
  2. Enter its value.
  3. Read the parts, the layout CSS and the diagram.

Features

  • Whole, longer part and shorter part from any one
  • Percent shares and exact ratio check
  • Two-column grid-template-columns line
  • Golden rectangle and spiral diagram
  • Fibonacci numbers and their ratios
  • Any unit

Supported formats

Input

  • A length in any unit

You get

  • Parts
  • CSS

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Golden Ratio Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The golden ratio is a proportion to try, not a rule for good design.
  • Results are shown to three decimals.

Guide

The golden ratio: dividing a length, drawing the spiral and the Fibonacci link

Two lengths are in the golden ratio when the whole divided by the longer part equals the longer part divided by the shorter one. The value of that ratio, called phi, is about 1.618. Designers use it as a starting point for splitting a layout into a main area and a sidebar, for sizing nested elements and for choosing steps in a type scale. This calculator does the division in any direction, shows the pieces and draws the classic construction.

The definition

If a line of length 1000 is cut so that the whole to the longer part equals the longer part to the shorter part, the longer part is 1000 ÷ 1.618 = 618.034 and the shorter part is 1000 − 618.034 = 381.966. Dividing 618.034 by 381.966 gives 1.618034, the same ratio as 1000 to 618.034. That self-similarity is what makes the proportion special. Exactly, phi is (1 + √5) ÷ 2, an irrational number that never repeats, which is why the page shows the rounded value to six decimals.

A worked example

Press Sample for a whole length of 1000. The page shows the longer part as 618.034 and the shorter as 381.966, with shares of 61.8% and 38.2%. The two-column CSS it writes is grid-template-columns: 618.03fr 381.97fr;, and a coloured bar below the numbers shows the split. Switch to “Longer part” and enter 960: the whole becomes 1553.313 and the shorter part 593.313. Switch to “Shorter part” and enter 100: the longer part is 161.803 and the whole is 261.803.

The golden rectangle and spiral

A rectangle with sides in the ratio 1 : 1.618 has a special property. Cut the largest possible square from it and the rectangle left over has the same ratio again. Repeat on each remainder and you get a series of squares, each smaller than the last, which the page draws. A quarter circle through each square, joined end to end, makes the spiral. The picture uses eight squares in a box 1000 units wide; the arcs meet at the corners of the squares and each is a quarter of a circle with the square’s side as the radius.

Fibonacci numbers

The list 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 starts with two ones and adds the last two numbers each time. Divide each number by the one before it and the results, 2, 1.5, 1.667, 1.6, 1.625, 1.615, 1.619 and so on, close in on 1.618. For 144 ÷ 89 the page shows 1.61798. This is why Fibonacci sizes, such as 8, 13, 21 and 34, are a convenient way to choose spacing that roughly follows the golden ratio with whole numbers.

Using it in layout

A 1000 pixel content area splits into about 618 and 382 pixels. A 960 pixel page splits into 593 and 367. With a base text size of 16 pixels one step up the ratio gives 25.9 pixels. These are starting points: round to values that fit your grid, check that content fits and compare against alternatives, because many successful layouts use simpler ratios such as 2:1 or 3:2.

Edge cases

Lengths can be in any unit; the ratio does not care. Very small values, below 0.001, are not accepted. The page shows three decimals, so for printed work check rounding. The CSS output uses fr units, which divide the available space in proportion, so the columns keep the ratio at any container width.

Limits

The calculator is arithmetic and a drawing. It does not claim that the ratio is aesthetically superior, and it does not analyse existing designs. Everything runs in your browser.

Checked against the current version of the Golden Ratio Calculator on .

Troubleshooting

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Is the golden ratio better than other proportions?

There is no evidence it is a universal rule for good design. It is a proportion that is easy to compute and to relate to other numbers. Use it as a starting point and judge the result by eye.

How is the golden ratio related to Fibonacci numbers?

The ratio of one Fibonacci number to the one before it approaches 1.618 as the numbers grow. For 144 and 89 it is 1.61798, already close to the exact value of 1.61803.

How is the golden ratio defined?

It is the number (1 + √5) ÷ 2, about 1.6180339887. Two parts are in golden ratio when the whole is to the longer part as the longer part is to the shorter.

Is the golden ratio a rule for good design?

No. It is a proportion to try. Judge layouts by eye and by how people use them.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.