Golden Rectangle Calculator - Long Side, Area, and Diagonal
Use this golden rectangle calculator to find the long side, short side, area, perimeter, and diagonal of any rectangle in the 1.6180339 golden ratio.
Golden Rectangle Calculator
Results
What Is a Golden Rectangle Calculator?
A golden rectangle calculator is a geometry and proportion tool that returns every useful dimension of a rectangle sized in the golden ratio phi = 1.6180339: the long side a, the short side b, the area, the perimeter, and the diagonal, plus a percent deviation that shows how close a user-supplied pair of sides is to a true golden rectangle.
- • Sizing a canvas, photo, or frame to the golden ratio: Enter the long side of a print, monitor, or canvas and read the matching short side that keeps the rectangle in the 1.6180339 golden ratio.
- • Recovering a golden rectangle from a target area: Type the area you have available for a poster or book cover, and the calculator returns the long side, short side, and diagonal of the matching golden rectangle.
- • Checking whether an existing rectangle is golden: Enter a candidate long side and short side to see the actual ratio a / b and the percent deviation from phi, useful for design QA on logos and layouts.
- • Working a textbook or art-history problem: Use the form as a quick scratchpad when a geometry, art, or design class asks for the dimensions, area, or diagonal of a golden rectangle.
A golden rectangle is the only rectangle that can be split into a square and a smaller golden rectangle, and the same self-similar split is what produces the golden spiral. Once you have one side of a golden rectangle, the other follows from phi = 1.6180339.
When the problem is just phi and the three sub-segments a, b, and a + b, the dedicated golden ratio calculator solves the proportion in one step.
How the Golden Rectangle Calculator Works
The golden rectangle calculator reads your three input fields - long side a, short side b, and area - and decides whether you supplied one value or more. A single value triggers the matching golden dimension; two or three values keep your numbers and report how far they are from a true golden rectangle.
- longSide (a): The longer edge of the rectangle. With a = 1 the short side is 0.6180339 and the area is 0.6180339.
- shortSide (b): The shorter edge of the rectangle. With b = 1 the long side is 1.6180339.
- area (a x b): Optional target area. The calculator recovers a = sqrt(area * phi) and b = a / phi.
- phi: The constant golden ratio, the positive root of x^2 - x - 1 = 0, equal to (1 + sqrt(5)) / 2.
When you fill in two or three of the input fields, the calculator trusts your values and reports the implied ratio a / b plus the percent deviation from phi. This makes the form a quick checker for pairs of lengths taken from a real design, photo, or textbook problem.
Build a golden rectangle from a long side of 5
long side a = 5, short side b = blank, area = blank
b = 5 / 1.6180339 = 3.0902. area = 15.4508. perimeter = 16.1803. diagonal = sqrt(34.5492) = 5.8779.
long side 5, short side 3.0902, area 15.4508, perimeter 16.1803, diagonal 5.8779, deviation 0%.
The 5 by 3.0902 rectangle is an exact golden rectangle, and the perimeter equals 10 * phi.
Recover a golden rectangle from a target area of 100
long side a = blank, short side b = blank, area = 100
a = sqrt(100 * 1.6180339) = 12.7202. b = 7.8615. area = 100. perimeter = 41.1634. diagonal = 14.9535.
long side 12.7202, short side 7.8615, area 100, perimeter 41.1634, diagonal 14.9535, deviation 0%.
Use this to fit a poster or web hero whose target area is 100 square units, and the diagonal 14.9535 lets you verify the layout against a diagonal ruler.
According to Wolfram MathWorld, phi is the positive root of x^2 - x - 1 = 0, which evaluates to (1 + sqrt(5)) / 2, approximately 1.6180339887.
For the more general case of any two-number ratio, the ratio calculator accepts an arbitrary pair and returns the reduced ratio plus the same percent deviation this calculator uses.
Key Concepts Explained
Four small ideas cover every number the golden rectangle calculator returns.
The golden ratio phi = 1.6180339
Phi is the positive root of x^2 - x - 1 = 0, equivalent to (1 + sqrt(5)) / 2. It is irrational, so the calculator rounds phi to six decimal places and the side lengths to four decimal places.
Golden rectangle definition a / b = phi
A golden rectangle is any rectangle whose long side a and short side b satisfy a divided by b equals phi. The same proportion is the unique positive solution to (a + b) / a = a / b.
Self-similar square + rectangle split
When you draw a square of side b inside a golden rectangle of long side a, the remaining strip is itself a golden rectangle. Repeating the split draws the golden spiral.
Connection to Fibonacci numbers
The ratio of consecutive Fibonacci numbers approaches phi as n grows. 8/5 = 1.6000 and 13/8 = 1.6250 are the closest integer approximations a designer can use for whole-number units.
All four ideas show up together when you scale a logo, crop a photo, or lay out a web hero, so keeping a golden rectangle calculator on hand covers most of the day-to-day proportion work in a design file.
The same self-similar split that powers the golden rectangle also drives the golden spiral, and the spiral length calculator returns the arc length of that spiral from a chosen inner and outer radius.
How to Use This Calculator
Five short steps cover both the auto-solve case and the check-an-existing-rectangle case.
- 1 Decide which value you know: Pick the long side a, the short side b, or a target area. The other two values are solved from phi when you leave them blank.
- 2 Type that value into the matching field: Enter a positive number in the long side, short side, or area field. The other two fields can stay blank.
- 3 Or fill two fields to check an existing rectangle: Type a long side and a short side. The calculator keeps your values and reports the actual ratio a / b plus the percent deviation from phi.
- 4 Read phi and the long side first: The first two rows show phi to six decimal places and the resolved long side a. Use them as a quick reference.
- 5 Read the area, perimeter, diagonal, and deviation: The next four rows show area, perimeter, and diagonal. The final row shows the percent deviation from phi when you supplied a non-golden pair.
If you enter long side 5 with the other fields blank, the calculator solves short side 3.0902, area 15.4508, perimeter 16.1803, and diagonal 5.8779 with 0% deviation. Change the short side to 3 with long side 5 still set, and the calculator reports an actual ratio of 1.6667 and a 3.00% deviation from phi.
When the same rectangle stops being golden and you only need length, width, and area, the length width area rectangle calculator handles the non-golden case without a phi assumption.
Benefits of Using This Calculator
A purpose-built golden rectangle calculator is faster than solving the proportion, area, and diagonal by hand, and it keeps the rounding rules consistent across every output.
- • Solved in one step from any one input: The proportion a / b = phi is awkward to solve in your head. The calculator does the algebra, so a single long side, short side, or area gives you the other five values in a fraction of a second.
- • Checks existing rectangles at the same time: The actual-ratio and percent-deviation rows let you check a pair of real numbers from a design, photo, or textbook problem without computing the deviation yourself.
- • Uses the standard phi value: The phi value matches Wolfram MathWorld and Wikipedia, so the result lines up with reference material.
- • Works in any unit system: All input and output fields are unitless numbers, so the same form handles millimeters, centimeters, inches, pixels, or points.
- • Returns the diagonal for layout QA: The diagonal output lets you verify a layout against a diagonal ruler, which is useful when two rectangles need to share a diagonal at the same angle.
The five outputs - phi, long side, short side, area, perimeter, and diagonal - are the same numbers a designer or architect would carry into a layout file, so the form also works as a quick scratchpad during a design review.
When the same rectangle stops being golden and you instead know a short side plus the area, perimeter, or diagonal, the length of a rectangle calculator works the other direction and finds the long side for you.
Factors That Affect Your Results
Three small factors control the result, and two limitations tell you when to double-check the number.
Which field you fill in
A single input triggers the auto-solve path, while two or three inputs keep your values and report the deviation from phi.
Decimal precision of the result
Phi is irrational, so the displayed value is always rounded. Six decimal places for phi and four for the lengths are enough for design and most textbook problems.
Unit system of the sides and area
All fields are unitless numbers, but the side lengths and area inherit whatever unit you typed in. Use the same unit before you add or compare them.
- • The deviation row reports a percent difference between the actual ratio and phi, but it does not detect off-by-one mistakes in the order of the long and short sides. A 4 by 6 rectangle and a 6 by 4 rectangle both report the same 7.29% deviation from phi.
- • The four-decimal display is fine for layout and most textbook problems, but not high enough for symbolic algebra. Use a computer algebra system if you need a closed-form proof involving phi.
For a non-golden rectangle, the ratio calculator accepts any two positive numbers, and the same percent gap can be re-expressed through the formula |a - b| / ((a + b) / 2) * 100.
According to Wikipedia Golden ratio article, the golden ratio is also the limit of the ratio of consecutive Fibonacci numbers, which is why rectangles sized as 8:5, 13:8, 21:13, or 34:21 are convenient integer approximations of a true golden rectangle.
When the shape turns three-dimensional and you need the surface area of a rectangular solid instead of a 2D golden rectangle, the surface area of a rectangle calculator extends the same length and width into a 3D box.
Frequently Asked Questions
Q: What is a golden rectangle?
A: A golden rectangle is a rectangle whose long side a and short side b satisfy a divided by b equals the golden ratio phi, where phi = (1 + sqrt(5)) / 2, approximately 1.6180339887. It is the only rectangle that can be split into a square and a smaller, similar golden rectangle.
Q: What is the golden rectangle formula?
A: The defining formula is a / b = phi, where phi = (1 + sqrt(5)) / 2. Once a is known, b = a / phi, area = a * b, perimeter = 2 * (a + b), and the diagonal equals sqrt(a^2 + b^2).
Q: How do you find the short side of a golden rectangle?
A: Divide the long side by phi. With a = 5, the short side is 5 / 1.6180339 = 3.0902. Reverse: with b = 8, the long side is 8 * 1.6180339 = 12.9443. The calculator does both directions in one step.
Q: What is the area of a golden rectangle?
A: Area equals a times b. For the default a = 1, area is 1 * 0.6180339 = 0.6180339. For a = 5, area is 5 * 3.0902 = 15.4508. The inverse formula is a = sqrt(area * phi), which lets you back out the long side from a target area.
Q: What is the diagonal of a golden rectangle?
A: The diagonal equals sqrt(a^2 + b^2). For a = 1, diagonal is sqrt(1 + 0.6180339^2) = 1.1756. For a = 5, diagonal is sqrt(25 + 9.5492) = 5.8779. The diagonal lets you verify a layout against a diagonal ruler.
Q: What are the dimensions of the golden rectangle in art?
A: A 1 by 1.6180339 rectangle is the standard form, and most art-history references scale it to integer Fibonacci pairs: 5 by 8, 8 by 13, 13 by 21, or 21 by 34. The first three pairs approximate phi to 0.6%, 0.4%, and 0.16% respectively.