Enter the width or height you have and the tool works out the other side using the golden ratio, about 1.618. The preview draws the golden rectangle, cuts it into squares and adds the spiral and a grid you can lay over your design. When the numbers look right, copy the CSS in one click. Everything runs in your browser, and nothing you enter is sent to a server.

The golden ratio is a guide, not a rule. Use it to get a balanced starting point, then trust your eye.

How to use the golden ratio viewer

  • Enter a size: choose whether you know the width or the height, pick landscape or portrait, and type the length.
  • Pick a unit: use px, rem, em, pt, cm, mm, in or %. The unit is added to the result and the CSS.
  • Show the guides: set how many squares to draw, then turn the squares and the spiral on or off.
  • Add a grid: lay a phi grid or a rule of thirds grid over the rectangle to compare them.
  • Set the colors: type a HEX code or click a swatch for the squares, the spiral and the background.
  • Copy the CSS: click any row in the results to copy one value, or press Copy CSS for the size and aspect ratio.
  • Build a scale: use the golden ratio scale to get larger and smaller sizes from your length.

What the golden ratio is

Two lengths are in the golden ratio when the whole is to the longer part as the longer part is to the shorter part. The value is about 1.618, often written with the Greek letter phi. A golden rectangle has a long side that is 1.618 times the short side. If you cut a square from it, the part that is left is another golden rectangle, and you can repeat this as many times as you like. Joining quarter circles inside the squares draws the golden spiral.

Common golden ratio values

These are the numbers the tool uses, rounded to a few decimals.

ValueNumberWhat it means
Phi1.618The long side divided by the short side of a golden rectangle.
1 ÷ phi0.618The short side as a share of the long side.
Larger part61.8%The bigger piece when you split a length in the golden ratio.
Smaller part38.2%The smaller piece when you split a length in the golden ratio.
Phi squared2.618Phi times phi, the next step up in a golden ratio scale.

How the sizes are worked out

If you know the long side, the short side is the long side divided by 1.618. If you know the short side, the long side is the short side multiplied by 1.618. The tool decides which side you gave from the known side and the shape you chose. For example, a landscape rectangle with a width of 800 px has a height of about 494.4 px. Results are rounded to two decimals, so a real design may need a small change to land on whole pixels.

What this tool does and does not do

The tool draws the golden rectangle, squares, spiral and grids from the length you enter. It does not load or analyze an image, so you cannot place the spiral over a photo. The preview is scaled to fit the screen, so use the numbers in the results, not the size of the drawing. The CSS you copy is a starting point. Test it in your real page, with your real content.

Tips for better results

  • Use it for layout: a content column and a sidebar at about 62% and 38% of the width is a classic golden ratio split.
  • Use it for images: an aspect ratio of 1.618 / 1 gives a frame a little wider than 3:2 and a little narrower than 16:9.
  • Use it for type: multiply a base size by 1.618 for a heading, or divide for small text. The scale list does this for you.
  • Round with care: small changes to the numbers do not break the look, so round to whole pixels or to a grid you already use.
  • Compare the grids: switch between the phi grid and the rule of thirds to see where the lines fall for your shape.
  • Do not force it: if the content does not fit the ratio, change the layout, not the content.
Enter one side, check the squares and the spiral, and copy the CSS. A few minutes here gives you a balanced starting point.

Common golden ratio problems

  • The field will not accept my number: use digits and one decimal point, such as 800 or 12.5, and a value above zero.
  • The sizes have decimals: the golden ratio is not a whole number ratio. Round the result to the nearest whole unit.
  • The spiral looks cut off: raise the number of squares. More squares draw more turns of the spiral.
  • The drawing is smaller than my size: the preview always fits the screen. The real size is in the results.
  • My settings disappeared: the last settings are saved in your browser. Clearing site data or using a private window removes them.

Frequently asked questions

Is this golden ratio viewer free?

Yes. There is no sign-up and no limit on how many sizes you test.

What is the golden ratio?

It is a ratio of about 1.618 to 1. A golden rectangle has a long side that is 1.618 times its short side.

How do I find the other side of a golden rectangle?

Divide the long side by 1.618 to get the short side, or multiply the short side by 1.618 to get the long side.

What is the difference between the phi grid and the rule of thirds?

The rule of thirds puts lines at 33% and 67%. The phi grid puts them at 38.2% and 61.8%, so the middle area is a little narrower.

Can I use the golden ratio for a website layout?

Yes. A common use is a 61.8% main column next to a 38.2% sidebar. It is a starting point, so adjust it to fit your content.

Is the golden ratio the same as 16:9?

No. 16:9 is about 1.778, while the golden ratio is about 1.618. The golden rectangle is a little less wide.

Are my numbers sent anywhere?

No. All calculations run in your browser, and your last settings are saved only on this device.

Share this article