Golden Rectangle Calculator
Compute a golden rectangle's height, diagonal, area and perimeter from its width, with the leftover rectangle after removing the largest square.
Golden Rectangle Calculator
Compute a golden rectangle's height, diagonal, area and perimeter from its width, with the leftover rectangle after removing the largest square.
How this page computes
The height is the width divided by φ, and the aspect ratio is the width over the height, which returns φ. The diagonal follows from the Pythagorean theorem on those two sides.
The largest square has side h, so the remainder is (w − h) by h. Its ratio is computed and printed as the self-similarity check.
The calculation runs entirely in this browser tab; nothing is uploaded.
A golden rectangle has width over height equal to φ. For a width of 100 the height is 61.803398875, and removing the largest square leaves a rectangle 38.196601125 by 61.803398875 whose ratio is again 1/φ.
That self-similarity is the defining property, and the page prints the leftover rectangle rather than only the two original dimensions. The diagonal, area and perimeter follow from the same pair.
How to use Golden Rectangle Calculator
Enter the width and press Run. The width must be above zero.
The output gives the height, the aspect ratio, the diagonal, the area, the perimeter, the largest square that fits and the leftover rectangle with its ratio.
Why the leftover rectangle is similar to the original
Cut the largest square from a golden rectangle and the remainder has sides (w − h) and h. Its ratio is (w − h)/h = w/h − 1 = φ − 1, and φ − 1 equals 1/φ because φ² = φ + 1.
So the remainder is a golden rectangle turned through a quarter turn, which is what makes the shape self-similar and what a golden spiral is drawn from. The page prints that ratio as the check.
What to Expect
Best for
- The height of a golden rectangle from its width
- The square-removal construction
- Area, perimeter and diagonal of the shape
Not ideal for
- A rectangle given by two measured sides, which may not be golden
- The golden section of a line, which has its own page
- A width of zero or below, which is refused
What this tool keeps
- The width exactly as typed
What may need cleanup
- Nothing: every derived value follows from the ratio
Common errors
- A width at or below zero is refused
- A non-numeric width is refused by name
Example use cases
- Find the height for a width of 100
- See the leftover rectangle's ratio
- Get the diagonal of a golden rectangle
Sample input
width 100
Sample output
height 61.803398875, aspect ratio 1.61803398875, diagonal 117.5570504585
Who this is for
- Designers proportioning a layout
- Students meeting self-similar shapes
Frequently asked questions
Why divide the width by φ?
Because the width is the longer side and the ratio of longer to shorter is φ, so the height is the width divided by φ. Multiplying instead would produce a rectangle taller than it is wide.
What is left after removing the square?
A smaller golden rectangle, turned through a quarter turn. Its ratio is 1/φ, which equals φ − 1, and the page prints both the dimensions and the ratio.
Is the diagonal a simple multiple of the width?
No. It is the square root of w² + h², which is irrational, and the page prints it to ten decimals rather than pretending it is exact.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.