Fibonacci & Golden Ratio Explorer

Build the famous spiral from Fibonacci squares, watch the ratio of neighbouring Fibonacci numbers home in on the golden ratio φ, and see why sunflowers turn each new seed through 137.5°.

Grades 6–12FreeNo sign-up

Explore

The Fibonacci numbers

Start with 1 and 1. From then on, every number is the sum of the two before it:

1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …   F(n) = F(n − 1) + F(n − 2)

The sequence is named after Leonardo of Pisa (“Fibonacci”), who used it in 1202 in a puzzle about breeding rabbits. The numbers grow fast: F(100) = 354,224,848,179,261,915,075. The explorer computes them exactly, digit for digit, up to F(10,000).

Squares and the spiral

Draw two 1 × 1 squares side by side. Their long edge is 2, so a 2 × 2 square fits against it. Now the long edge is 3, then 5, then 8 — each new square has a Fibonacci side, because it sits on the two previous squares. After n squares you have an F(n) × F(n + 1) rectangle, which proves a neat identity with no algebra:

1² + 1² + 2² + 3² + … + F(n)² = F(n) · F(n + 1)

Example: six squares give 1 + 1 + 4 + 9 + 25 + 64 = 104 = 8 × 13.

Drawing a quarter circle in each square gives the Fibonacci spiral. It closely approximates the true golden spiral, which grows by a factor of φ every quarter turn.

The golden ratio φ

Divide each Fibonacci number by the one before: 1/1 = 1, 2/1 = 2, 3/2 = 1.5, 5/3 ≈ 1.667, 8/5 = 1.6, 13/8 = 1.625 … The ratios jump alternately above and below one value, closing in on it quickly:

φ = (1 + √5) / 2 ≈ 1.6180339887

Why this number? If the ratio settles down to some value x, then dividing F(n + 1) = F(n) + F(n − 1) by F(n) gives x = 1 + 1/x, or x² = x + 1. The positive solution of that quadratic equation is φ. A rectangle whose sides are in the ratio φ : 1 is a golden rectangle: cut off a square and the piece left over has the same shape.

The error roughly shrinks by a factor of φ² ≈ 2.6 at every step, and it changes sign each time, which is why the dots on the chart zigzag.

Sunflowers and the golden angle

Many plants grow new seeds, leaves or florets one at a time from the centre, each turned by a fixed angle from the last. The third tab does the same: seed number k is placed at distance √k from the centre, turned k times the chosen angle.

If the turn is a simple fraction of a circle, such as 90° = 1/4 or 135° = 3/8, the seeds line up in straight spokes with empty wedges between them. To pack well the turn must be as far as possible from every simple fraction — and the number that is hardest to approximate by fractions is φ. Dividing the circle in the golden ratio gives the golden angle:

360° × (1 − 1/φ) = 360° / φ² ≈ 137.508°

At this angle the seeds fill the disc evenly, and your eye picks out spiral arms whose counts are neighbouring Fibonacci numbers (often 21 and 34, or 34 and 55) — the same counts found on real sunflowers and pine cones. Change the angle by as little as 0.1° and gaps open up.

Other starting numbers

Keep the rule “add the last two” but start from any two numbers. Starting 2, 1 gives the Lucas numbers 2, 1, 3, 4, 7, 11, 18, … The ratios of neighbours still tend to φ. The reason is that every such sequence is a mix A·φⁿ + B·ψⁿ, where ψ = (1 − √5)/2 ≈ −0.618. Since |ψ| < 1, the second part fades away and only growth by φ remains. (With whole-number starts, A is never 0 unless both numbers are 0.) Check powers of φ with the exponent calculator.

Experiments to try

  1. In the spiral tab, write down the rectangle's sides for 5, 6 and 7 squares. Check the “sum of squares” identity by hand for 5 squares.
  2. How many terms does it take before F(n + 1)/F(n) agrees with φ to 3 decimal places? To 6?
  3. Set the sunflower to 137.3°, 137.5° and 137.7°. Sketch what you see. Which way do the arms curve on each side of the golden angle?
  4. Try a turn of 360° × 5/13 ≈ 138.46°. How many spokes appear? Why 13?
  5. Choose your own two starting numbers — try negatives. Does the ratio always approach φ? How do the first few ratios depend on your choice?

Frequently asked questions

What is the Fibonacci sequence?

It is the sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, … in which each number is the sum of the two before it. Written as a formula, F(n) = F(n − 1) + F(n − 2) with F(1) = F(2) = 1.

What is the golden ratio?

The golden ratio, written φ (phi), is (1 + √5)/2 ≈ 1.6180339887. It is the positive solution of x² = x + 1, and it is the limit of the ratio of consecutive Fibonacci numbers.

Why do the ratios of Fibonacci numbers approach the golden ratio?

If F(n + 1)/F(n) settles to a value x, dividing the rule F(n + 1) = F(n) + F(n − 1) by F(n) shows that x = 1 + 1/x. The positive solution of that equation is the golden ratio. The ratios alternate above and below it, getting closer each time.

What is the 100th Fibonacci number?

With F(1) = F(2) = 1, the 100th Fibonacci number is F(100) = 354,224,848,179,261,915,075, a 21-digit number.

What is the golden angle and why do sunflowers use it?

The golden angle is about 137.508°, the smaller part of a full turn divided in the golden ratio. When each new seed is turned by this angle from the previous one, the seeds never line up in spokes and fill the flower head evenly with no wasted space.

Is the Fibonacci spiral the same as the golden spiral?

Not quite. The Fibonacci spiral is made of quarter circles drawn in squares with Fibonacci side lengths. The golden spiral is a logarithmic spiral that widens by a factor of φ every quarter turn. The two are very close, and the match improves as the squares get larger.