Golden Ratio Calculator
Last updated: 12 August 2026
Reviewed by Gavin · Research and drafting assisted by AI
Golden Ratio Calculator
A golden ratio calculator computes the value of φ (phi ≈ 1.6180339887) from any two of the six quantities that describe a golden configuration, the golden ratio itself, the longer segment a, the shorter segment b, the total length a+b, the wider side of a golden rectangle, and the narrower side, and shows a live breakdown of the resulting golden rectangle into nested squares with the logarithmic spiral that fits inside them. It is used by graphic designers proportioning type grids and layouts, by photographers planning prints, by architects sketching façades, by artists drawing comps for canvases, by mathematicians teaching Euclidean construction and Fibonacci recurrence, by biologists modelling phyllotaxis and spiral growth, by financial analysts marking Fibonacci retracements, and by anyone who needs to verify whether two given lengths, or two given rectangle sides, actually meet the golden ratio within tolerance.
What makes a rectangle "golden" is the proportion 1 : φ, and what makes that proportion interesting is that the rectangle can be split into a square plus another, smaller, perfectly-proportioned golden rectangle. Repeating the split indefinitely produces the logarithmic golden spiral, the same curve that appears in living things.
How to Use the Golden Ratio Calculator
- Leave exactly one of the six fields blank, the one you want to solve for. Enter known values in the other five (or any subset that is sufficient).
- The simplest entry points are the two-segment form (enter
aandb) or the rectangle form (enterrectWandrectH). Both produce a complete solution with the spiral preview. - Click Calculate. The result panel populates with all six values, the resulting φ, the a/b ratio, the verification check, and the SVG spiral preview.
- The verification check reports whether the supplied numbers actually form a golden configuration within tolerance. Approximations (8/5 = 1.6000, 13/8 = 1.6250, 21/13 ≈ 1.6154) are flagged as "Fibonacci-fair" rather than rejected.
- Use the spiral levels control to choose how many nested squares to draw.
- Quick-example buttons load common test cases: the 8/5 Fibonacci pair, the 13/8 Fibonacci pair, a 1000 × 618 px rectangle, and "solve for b given a = 1 and φ".
The Formulas
The golden ratio is defined as the unique positive solution of x² = x + 1, which gives the closed form:
φ = (1 + √5) / 2 ≈ 1.6180339887
Equivalently, two lengths a (longer) and b (shorter) are in the golden ratio when:
(a + b) / a = a / b = φ
Algebraically that reduces to a² − a·b − b² = 0, whose positive root in a (treating b as given) is:
a = b · φ = b · (1 + √5) / 2
The reciprocal relationship is just as important:
1 / φ = φ − 1 ≈ 0.6180339887
The remaining conversions, b = a / φ, a + b = a · (1 + 1/φ), rectW = a + b, rectH = b, are all rearrangements of the same definition. Euclid gave this construction in Book II, Proposition 11 of the Elements: "To cut a given straight line so that the rectangle contained by the whole and one of the parts equals the square on the other part." That is exactly x² = x + 1 in geometric clothing, the oldest known written instance of the golden ratio (~300 BC).
Worked Examples
Example 1, Solve for φ given a = 1, b = φ − 1
If a = 1 and we set b equal to the reciprocal of φ, then by definition b = 1 / φ = φ − 1 ≈ 0.6180339887. Enter a = 1 and b = 0.6180339887 (or use the "solve for b" example button) and the calculator returns:
a / b= 1 / 0.6180339887 ≈ 1.6180339887(a + b) / a= 1.6180339887 / 1 = 1.6180339887φ= 1.6180339887 (matches the closed form to ten decimals)total=a + b= 1.6180339887
This is the trivial hand-check of the definition, confirming the solver is computing the correct equation.
Example 2, The 8 / 5 Fibonacci approximation
The Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … gives a = 8, b = 5 as the first widely-used integer pair. Enter those two values and the calculator returns:
φ= 8 / 5 = 1.6 (about 1.1 % below true φ)(a + b) / a= 13 / 8 = 1.625total= 13- ratio check:
a/b ≈ 1.6is flagged as "Fibonacci fair" rather than "exact"
Fibonacci approximations oscillate around φ, every other pair overestimates, every other pair underestimates, and the oscillation narrows geometrically as the indices grow.
Example 3, The 13 / 8 Fibonacci pair
Move one term up the sequence and the approximation tightens. With a = 13 and b = 8:
φ= 13 / 8 = 1.625 (about 0.4 % above true φ)(a + b) / a= 21 / 13 ≈ 1.6153846154total= 21- alternating over/under pattern continues: 8/5 (under), 13/8 (over), 21/13 (under), 34/21 (over), …
13 by 8 "looks like" a golden rectangle to most viewers, although mathematically it is a few parts per thousand off.
Example 4, Large-numerical test (a = 100, b ≈ 61.8)
For practical layout work you may want a positive real-number pair. Choose a = 100 and let the calculator solve for b:
b= 100 / 1.6180339887 ≈ 61.803398875φ= 100 / 61.803398875 ≈ 1.6180340037 (matches to six decimals)total= 161.803398875 (the same100·φrounded)
The recipe is so reliable it is used in stock-photo cropping tools: take the long side as 100 %, set the short side to 100 % / φ ≈ 61.8 %, and you have a golden rectangle at any image size.
Example 5, A real golden rectangle: 1000 × 618
The classic pixel-friendly test. Enter rectW = 1000 and rectH = 618:
b= 618 (the shorter side)a= 1000 − 618 = 382 (the leftover after cutting the square)rectW/rectH= 1000/618 ≈ 1.61806 (within 0.001 % of φ)- First few squares in the spiral: 618, 382, 236, 146, 90, 56, … (each step multiplies by 1/φ)
The entered rectangle is already 1000/618 ≈ 1.618 in proportion, so the calculator accepts it as the outer boundary. Internally the smaller dimension b = 618 is treated as the side of the first square, and the leftover 382 × 618 is the inner golden rectangle the spiral breaks into.
Where the Golden Ratio Shows Up
- Art and design, Classical compositions from Mondrian to Le Corbusier, posters from Saul Bass and the Push Pin Studios, and modern book covers from Penguin's Great Ideas series use φ-derived canvases. Designers who set their baseline grid on φ produce type that feels comfortable without the viewer knowing why.
- Architecture, Le Corbusier's Modulor system of preferred dimensions used φ as its primary step. The façade of the Parthenon, the elevations of Gothic cathedrals, and many Palladian villas have proportions within a percent of φ. Modernists including Mies van der Rohe and Louis Sullivan cited the same ratio in their writings.
- Biology, Sunflower seed heads place their florets on two interlocking spirals with counts of 34 and 55, 55 and 89, or 89 and 144, consecutive Fibonacci numbers whose ratio approaches φ. Pine cones, pineapples, and romanesco broccoli do the same. Phyllotaxis (the angle between successive leaves on a stem) is 360° · (1 − 1/φ) ≈ 137.5°, the golden angle, which is what produces the non-overlapping spacing plant evolution has converged on for ~400 million years.
- Finance and trading, Technical analysis uses 38.2 %, 50 %, and 61.8 % Fibonacci retracements to mark likely support and resistance levels. The 61.8 % figure is 1 / φ; the 38.2 % figure is 1 − 1 / φ. Charts plot horizontal lines based on prior swing highs and lows; traders watch for price action around those levels because enough market participants act on them to create self-fulfilling reactions.
- Graphic-design grid systems, Jan Tschichold, Josef Müller-Brockmann, and Massimo Vignelli built modular grid systems where the gutter-to-margin ratio and column-width ratios echo φ. Modern responsive systems (Material Design's M3, IBM's Carbon) use related proportions. Müller-Brockmann's book grids translate directly into modern CSS
grid-template-columnsusingfrunits that are ratios of φ. - Photography and prints, Standard print sizes are often within 1 % of φ: 8 × 5, 10 × 6, 16 × 10, 24 × 16 inches. Cinematography's 2.39:1 anamorphic widescreen ratio is within 0.4 % of 2·φ, and that difference is what makes films look proportionally distinct from 16:9 HDTV.
- Typography, Many typeface designers (Garamond, FF Meta, Bembo) use vertical proportions near φ between cap-height, x-height, ascender, and descender. A cap-height to body-ratio in this range looks typographically "right" without explanation.
Common Mistakes When Using the Golden Ratio
Mistake 1, Treating every nice-looking ratio as φ. Many ratios are described as "the golden ratio" but are really 4:3 (1.333), 5:3 (1.667), 3:2 (1.5), or 16:9 (1.778). When someone says "the Greeks used the golden ratio in their temples," check the numbers, many attested ratios are within ±5 % of φ but closer to other simple ratios. Use the calculator to verify before quoting.
Mistake 2, Confusing "Fibonacci approximation" with "exact golden ratio." The Fibonacci pair 8/5 gives 1.6000, not 1.6180. Every pair except the limit definition is an approximation.
Mistake 3, Treating φ as a universal aesthetic constant. Studies on aesthetic preference for φ-proportioned rectangles are mixed; well-designed rectangles of other ratios are preferred almost as often in controlled trials. Use φ when it fits, not as a rule.
Mistake 4, Thinking the nautilus spiral is φ. The nautilus-shell cross-section popularly cited as the "golden spiral" is in fact an exponential spiral (each step multiplies by a constant), not a true φ-spiral. The two curves look almost identical over the first few turns but diverge measurably beyond four or five turns.
Mistake 5, Forgetting that φ is irrational. φ cannot be written as a repeating decimal or as a fraction of integers. Every integer pair quoted as "the golden ratio" is a Fibonacci approximation.
Frequently Asked Questions
What is φ to 10 decimal places?
The exact expansion is φ = (1 + √5) / 2 ≈ 1.6180339887. The integer part is 1, then 6, then 1, then 8, with no repeating cycle because φ is irrational. The reciprocal is 1 / φ = φ − 1 ≈ 0.6180339887, the same digits shifted one place. Ten decimals are enough for any practical layout or geometry problem; computer-algebra systems produce φ to thousands of digits.
What is the difference between the golden ratio and the Fibonacci sequence?
The Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …) is a recurrence relation computed step by step. The golden ratio φ is the limit of consecutive Fibonacci ratios: F(n+1) / F(n) → φ as n → ∞. They are related but distinct, you cannot derive either from the other alone. You need the closed-form x² = x + 1 to name the limit, and you need the recurrence to enumerate the integer sequence.
Can the golden ratio appear in a rectangle whose width and height are both integers?
Only exactly when one of the sides is 0. Otherwise no, because φ is irrational, and the ratio of two integers is rational. The closest integer-approximation pairs are 8/5, 13/8, 21/13, 34/21, 55/34, 89/55, …, each tighter than the last. For practical use, 1000 / 618 is preferred over 8/5 because it lets you work in pixels without losing precision to rounding.
What is the golden spiral?
The golden spiral is a logarithmic spiral that fits inside a golden rectangle, with each quarter-turn inscribed in one of the squares you get by repeatedly cutting off the shorter side. Every quarter-turn covers an angle of 90°, and the radius grows by a factor of φ over each 90°. The spiral is self-similar: zoom into any quarter and you see the same shape as the whole, the property that makes it useful in design because it carries the eye smoothly from the centre outward at constant visual speed.
Where did the golden ratio get its name?
The American mathematician Mark Barr coined the symbol φ in 1900, after the Greek sculptor Phidias (the Parthenon sculptor), because several of his works contain φ-proportioned figures. The ratio itself was known to Euclid and described verbally by Plato as "the mean and extreme ratio." Luca Pacioli's 1509 treatise De Divina Proportione established the mystic association with divinity that later writers have elaborated on.
Why is the golden ratio so popular in finance?
The 38.2 % and 61.8 % "Fibonacci retracement" levels used in technical analysis come directly from 1 / φ and 1 − 1 / φ. The argument is that crowd psychology tends to act at round proportions when prices pull back from a swing high, so those levels become self-fulfilling support and resistance lines. Whether this reflects underlying market behaviour or is a self-reinforcing convention is debated, the levels work in some markets and timeframes and not in others. The mathematics of φ is not in doubt; the financial interpretation is empirical and conditional.
Is the golden rectangle mathematically nicer than any other rectangle?
No. Mathematically there is no privileged status. What φ gives you is the property that when you remove a square the remaining rectangle is similar to the original, proportional in the same ratio. This self-similarity is the source of the recursive spiral. Other rectangles do not have this property. Outside that one specific distinction, φ is just one of an infinite family of real numbers.
What about Fibonacci numbers above 144?
The Fibonacci sequence is infinite: 233, 377, 610, 987, 1597, 2584, … The ratio F(n+1) / F(n) approaches φ so tightly by n = 12 that the difference from φ is around 10⁻⁵, and by n = 25 the difference has dropped to 10⁻¹³. For all practical calculation, F(89)/F(55) = 1.6181818… is indistinguishable from φ at 4-decimal precision.
References
- Euclid, Elements, Book II, Proposition 11 (extreme and mean ratio), translated by Thomas L. Heath, Cambridge University Press, 1908. The original construction of the golden ratio in a line segment.
- Mario Livio, The Golden Ratio: The Story of Phi, the World's Most Astonishing Number, Broadway Books, 2002. A readable popular treatment of φ with sections on biology, art, architecture, and finance.
- Keith Devlin, The Man of Numbers: Fibonacci's Arithmetic Revolution, Walker Books, 2012. The historical origin of the Fibonacci sequence.
- Jan Tschichold, The Form of the Book, Hartley & Marks, 1991 (originally 1955). Discussion of φ in typographic grid systems.
- Le Corbusier, Le Modulor, translated by Peter de Francisco, Faber and Faber, 1961. The φ-based system of preferred dimensions used in architectural proportion.
Also try these free tools: