GALAXY OF TOOLS

DESIGN SECTOR

Golden Ratio Calculator

Split any length by φ, get golden layouts and type scales as CSS, and overlay a phi grid on a photo.

φ = (1 + √5) ÷ 2

—
—Longer part a (61.8%)
—Shorter part b (38.2%)
—Total a + b
—Next golden length (total × φ)

Golden layout

px
px


Golden type scale

px
SteppxremSample

Fibonacci ratios approach φ

nF(n)F(n+1)F(n+1) ÷ F(n)Difference from φ

Phi grid and golden spiral on your photo

Drop a photo here or click to choose The overlay is drawn on your device · the photo is never uploaded

Runs entirely in your browser. Nothing you enter or upload is sent to a server.

Golden ratio calculator for designers

The golden ratio, φ (phi), is about 1.618: two lengths are in golden proportion when the longer divided by the shorter equals the whole divided by the longer. This golden ratio calculator finds the missing lengths from any one of them — split a 1200 px container into 741.64 px and 458.36 px, or find the other side of a golden rectangle — and shows φ itself to as many as 1,000 decimal places.

Designers can go further: get a two-column CSS grid in golden proportion, a typographic scale built on φ with CSS custom properties ready to paste, the Fibonacci ratios that approach φ, and a phi grid or golden spiral drawn over your own photo to check a composition. The photo never leaves your device.

How to use the Golden Ratio Calculator

  1. Choose which length you know — the total, the longer part (a) or the shorter part (b) — and type it, with a unit if you like.
  2. Read the other two lengths; change Round to for more or fewer decimals.
  3. For a page layout, enter the container width and any gap under Golden layout and copy the CSS.
  4. For type, set a base font size and how many steps up and down you want, then copy the CSS variables.
  5. To check a photo, drop it on the box at the bottom, choose the phi grid, the golden spiral or both, move the spiral’s centre and press Download PNG.

Golden Ratio Calculator features

Any length, any unit

Start from the total, the longer or the shorter part, in pixels, centimetres, inches or anything else.

φ to 1,000 places

Calculated in your browser with exact integer arithmetic, not copied from a table.

CSS you can paste

A fixed and a fluid two-column grid, and a φ-based type scale as custom properties.

Photo overlay

Phi grid, golden spiral in four orientations, or the rule of thirds for comparison, on photos of any shape.

Fibonacci table

See the ratio of consecutive Fibonacci numbers close in on φ.

The golden ratio formula

If a line is split into a longer part a and a shorter part b so that a ÷ b = (a + b) ÷ a, that ratio is φ = (1 + √5) ÷ 2 = 1.6180339887… It is the positive solution of φ² = φ + 1, which gives it neat properties: 1 ÷ φ = φ − 1 = 0.618… and φ² = 2.618….

So from a total T, the longer part is a = T ÷ φ (61.8% of T) and the shorter part is b = T ÷ φ² (38.2%). From the longer part, b = a ÷ φ; from the shorter part, a = b × φ.

Worked example: a 1200 px page split in golden proportion gives a 741.64 px content column and a 458.36 px sidebar, because 1200 ÷ 1.618034 = 741.64. With a 24 px gap, the remaining 1176 px split into 726.81 px and 449.19 px.

Golden rectangles, spirals and Fibonacci numbers

A golden rectangle has sides in the ratio 1 : 1.618. Cut a square off it and the piece left over is another golden rectangle; keep going, and quarter-circles drawn through the squares trace the golden spiral used in the photo overlay.

Ratios of consecutive Fibonacci numbers — 3/2, 5/3, 8/5, 13/8 and so on — land alternately above and below φ and get closer every step. By 89/55 = 1.61818 the gap is under 0.00015, which is why designers often use Fibonacci numbers such as 8, 13, 21 and 34 as spacing steps.

Using φ in design — and its limits

  • Type: a 16 px base times φ gives 25.89 px, 41.89 px and 67.78 px headings — a bold scale that suits posters and landing pages. Text-heavy pages often use a gentler ratio. Convert sizes with the px to rem converter.
  • Layout: a 61.8 / 38.2 split balances a content column against a sidebar. Use the fluid fr version so it holds at every width, and stack the columns on phones.
  • Photography: phi-grid lines sit at 38.2% and 61.8% of the frame, a little nearer the centre than rule-of-thirds lines at 33.3% and 66.7%. Try both, then crop with the crop image tool or set a frame shape with the aspect ratio calculator.
  • Be sceptical of claims that φ hides in famous buildings, paintings or faces: many of those measurements are approximate or chosen after the fact. Treat φ as a useful tool, not a law of beauty.

Golden Ratio Calculator FAQ

What is the golden ratio?

It is the number φ = (1 + √5) ÷ 2 ≈ 1.618034. Two lengths are in the golden ratio when the longer divided by the shorter equals their sum divided by the longer.

How do I calculate the golden ratio of a number?

Divide it by 1.618 to get the longer part, and subtract that from the number to get the shorter part. For 1200, that is 741.64 and 458.36. The golden ratio calculator does this from any of the three lengths.

What are the dimensions of a golden rectangle?

Multiply the shorter side by 1.618 to get the longer side. A rectangle 500 px tall should be 809.02 px wide; one 1000 px wide should be 618.03 px tall.

Is the golden ratio the same as the rule of thirds?

No. The rule of thirds puts guide lines at 33.3% and 66.7%; a phi grid puts them at 38.2% and 61.8%. Choose Rule of thirds in the photo overlay to compare them on the same picture.

How is φ related to the Fibonacci sequence?

Divide any Fibonacci number by the one before it and the answer approaches φ as the numbers grow: 8/5 = 1.6, 13/8 = 1.625, 21/13 ≈ 1.6154 and 89/55 ≈ 1.6182.

Is my photo uploaded?

No. The overlay is drawn on a canvas in your browser, and the downloaded PNG is created on your device. Nothing is sent to a server.

You might also need