↑ ↓ to move · enter to open

001 · Number theory · Irrational numbers

the golden ratio φ

Split a line so the whole is to the long part as the long part is to the short part. That ratio is φ ≈ 1.618. It never repeats, it hides inside the Fibonacci numbers, and it is the number fractions approximate worst.

φ to 120 decimal places · the digits never repeat
φ = (1 + √5) / 2
closed form
x² = x + 1
its equation
φ² = φ + 1 = 2.618…
square it, add 1
1 / φ = φ − 1 = 0.618…
invert it, subtract 1
LAB 1

the self-similar rectangle

Glue Fibonacci-sized squares together, each one as wide as the long side so far. The shape that grows tends toward a golden rectangle, and the quarter-circles through each square trace a spiral.

9
  • the square just added
  • the spiral
  • number in a square: its side length

Try this: press Build and watch Long ÷ short settle on 1.618.

55 × 34
Rectangle
34
Newest square
1.617647
Long ÷ short
−0.000386
Distance from φ

Why φ

Cut a square off a golden rectangle and the piece left over is another golden rectangle, smaller and turned 90°. Write the long side as a and the short side as b:

a / b = (a + b) / a
let x = a / b → x = 1 + 1/x → x² = x + 1
x = (1 + √5) / 2 = 1.6180339887…

Fibonacci rectangles never hit it exactly, since every one has whole-number sides. They get closer with each square.

LAB 2

fibonacci converges

Divide each Fibonacci number by the one before it. The ratios overshoot and undershoot φ in turn, closing in every time.

F(n+1) ÷ F(n)n = 1 … 20

How to read this: each dot is one Fibonacci number divided by the one before it (1/1, 2/1, 3/2, 5/3…). The dots hop over and under the dashed φ line, getting closer each time.

  • above φ
  • below φ
  • φ itself

Correct digits+0.418 per step

How to read this: each bar is one step of the zigzag above, carried on to step 30.

  • digits correct at that step
  • the steady gain the math predicts

The error shrinks by a factor of φ² ≈ 2.618 each step, so you gain log₁₀ φ² ≈ 0.418 correct digits per term: about 5 digits every 12 terms.

nFractionDecimal (digits that match φ in gold)Digits

Binet's formula

F(n) = (φⁿ − ψⁿ) / √5, ψ = 1 − φ ≈ −0.618

Since |ψ| < 1, the ψⁿ term fades away and F(n) becomes φⁿ/√5 rounded to the nearest whole number. Its sign flips each step, which is why the ratios zigzag.

LAB 3

the sunflower

Seed i sits at distance √i from the center, rotated by a fixed angle from the seed before it. At the golden angle, 137.508°, the seeds pack with no gaps. Move the angle by a tenth of a degree and spokes appear.

137.508°
1200

How to read this: each dot is a seed, placed one fixed turn after the last. Older seeds sit near the middle, newer ones further out, and they fade as they go. With spiral arms on, neighboring arms alternate gold and green so you can count them.

Try this: click 137.3°, then 137.508° golden, and watch the straight spokes vanish.

Presets

0.381966
Fraction of a turn
≈ 34/89
Nearest small fraction

Show spiral armscolor every other arm

If the turn is close to a fraction p/q, every q-th seed lines up and you see q straight spokes. The golden angle is 1/φ² of a turn, and its best fractions are ratios of Fibonacci numbers. That's why real sunflowers show 21, 34, 55 or 89 spirals.

LAB 4

the most irrational number

Start from x = 1 + 1/x and substitute the equation into itself forever. You get a continued fraction made only of 1s, the slowest-converging one possible.

4

How to read this: each step of depth tucks one more "1 + 1/…" inside the bottom. The value creeps closer to φ.

8/5
Value at this depth
1.6
As a decimal

Hurwitz, 1891

Every truncation is a ratio of Fibonacci numbers. Larger terms in a continued fraction make it converge faster. φ has the smallest possible term, 1, at every step, so no number is harder to approximate with fractions.

|φ − p/q| ≈ 1 / (√5 · q²) and √5 is the worst constant possible

That resistance to fractions is what keeps sunflower seeds from lining up in Lab 3.

FIELD NOTES

where φ actually shows up

φ has a reputation that runs ahead of the evidence. Here is what holds up.

◆The pentagram

side s diagonal d

In a regular pentagon, diagonal ÷ side = φ exactly. The crossing points of the star split each diagonal in the golden ratio too.

◆Holds up

  • RealSeed heads, pinecones and pineapples show consecutive Fibonacci spiral counts.
  • RealRegular pentagons, dodecahedra and icosahedra are full of φ.
  • RealPenrose tilings and quasicrystals use φ for their non-repeating order.

◆Mostly myth

  • MythThe Parthenon was designed on φ. No evidence from its builders.
  • MythThe nautilus shell is golden. It is a log spiral, but its growth ratio is nearer 1.33.
  • Mythφ is the most beautiful rectangle. Preference studies don't find a strong winner.