ExplorationsTurn a little less than 137.5° and the seeds crowd into arms with gaps between
Sunflower Spirals and the Golden Angle
Known as Sunflower phyllotaxis
Put the first seed at the centre and every seed after it one turn of 137.5° from the one before, a little further out each time, with its distance from the centre growing as the square root of its number. The seeds spread evenly, in curving spirals. Turn 137° instead, only half a degree less, and the same 800 seeds crowd into a few bold arms with visible gaps between them. The golden angle is unusually hard to approximate by simple fractions of a turn, which helps explain why the spokes fade near it.
Interactive laboratory
Drag the marker round the rim to turn the seeds. Arrow keys adjust the angle by 0.1°.
800 of 800 seeds · 137.507764° apart · 800 directions
The numbers behind the picture
| Gap in seed numbers | Seeds whose nearest neighbour is that far along |
|---|---|
| 55 | 471 |
| 34 | 203 |
| 21 | 78 |
| 13 | 29 |
| 8 | 12 |
| 5 | 3 |
| 1 | 1 |
| 2 | 1 |
| Seed | Direction (degrees) | Distance from centre |
|---|---|---|
| 0 | 0 | 0.000 |
| 1 | 137.507764 | 0.035 |
| 2 | 275.015528 | 0.050 |
| 3 | 52.523292 | 0.061 |
| 4 | 190.031056 | 0.071 |
| 5 | 327.53882 | 0.079 |
| 6 | 105.046584 | 0.087 |
| 7 | 242.554348 | 0.094 |
| 8 | 20.062112 | 0.100 |
| 9 | 157.569876 | 0.106 |
| 10 | 295.07764 | 0.112 |
| 11 | 72.585404 | 0.117 |
| 12 | 210.093168 | 0.123 |
| 13 | 347.600932 | 0.128 |
| 14 | 125.108696 | 0.132 |
| 15 | 262.61646 | 0.137 |
| 16 | 40.124224 | 0.142 |
| 17 | 177.631988 | 0.146 |
| 18 | 315.139752 | 0.150 |
| 19 | 92.647516 | 0.154 |
| 20 | 230.15528 | 0.158 |
- a seed
- one dot, placed one turn of the angle after the one before
- a highlighted arm
- every seed whose number is a multiple of the arm count, joined in order
Each dot is one seed. Seed 0 is the centre and the last seed is on the outer rim. A seed is placed one turn of the chosen angle after the one before, and its distance from the centre is proportional to the square root of its number, so the disk out to that distance gains the same area with each seed. The red line joins every seed whose number is a multiple of the chosen arm count, in order. That is one arm of a family of spirals with that many arms.
137.507764° between seeds, 800 seeds, 800 drawn. Counted over all seeds, they point in 800 different directions, and the nearest neighbours of most seeds differ in number by 55 (471 seeds), 34 (203 seeds), 21 (78 seeds). Spiral families that fit this many seeds, from the angle’s convergents: 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 and 377. These are measurements of this picture, not a claim about any flower.
- Angle
- 137.507764°
- Seeds
- 800
- Directions
- 800
Things to try
The turn between seeds
One full turn is 360°. The slider moves a hundredth of a degree at a time.
The seeds
The number of arms is a denominator of a convergent of the angle. Seeds numbered 0, q, 2q and so on make one arm of the q.
Grow them one at a time
Speed sets how fast Run adds seeds.
Moves how many seeds are on the page. Their places never change as more arrive.
Cases worth seeing
What is going on
Each explanation begins with a worked example and follows the same operation through intuition, formal statements and proofs. Later sections distinguish what is established from questions that remain open, so you can follow the level of detail useful to you.
- the angle as a fraction of a full turn137.5 ÷ 360 = 275/72055/144dividing top and bottom by 5 gives the fraction in lowest terms; after 144 seeds the directions repeat
- Euclid’s algorithm on 55 and 144144 = 2×55 + 34, 55 = 1×34 + 21, 34 = 1×21 + 13, 21 = 1×13 + 8, 13 = 1×8 + 5, 8 = 1×5 + 3, 5 = 1×3 + 2, 3 = 1×2 + 1, 2 = 2×1[0; 2, 1, 1, 1, 1, 1, 1, 1, 2]the quotients, in order, are the continued fraction of 55/144; seven 1s in a row is the golden ratio’s signature
- the best fractions of a turn, one for each prefix of the quotients1/2, 1/3, 2/5, 3/8, 5/13, 8/21, 13/34, 21/55, 55/1442, 3, 5, 8, 13, 21, 34, 55, 144each is the closest fraction of a turn to the angle among all with a denominator that small; the denominators, the spiral counts, are Fibonacci numbers
What you are seeing
One seed at a time, each a fixed turn from the last
Start with a single seed at the centre. Place the second seed a little way out and turn it by the chosen angle, say 137.5° round from the first. Place the third a little further out and turn it by the same angle again, and keep going. Each seed is as far from the centre as the square root of its number. The disk out to that distance gains the same area with each seed. This is Vogel's model of a sunflower head.
At the golden angle, about 137.5°, the seeds spread out without gaps, and curving spirals appear that nobody drew: they are only where neighbouring seeds happen to line up. Count the spirals that turn one way and then the other. Highlight a family with the arm buttons, which joins every seed whose number is a multiple of that count, and the family shows as one spiral arm among several.
Now move the angle by half a degree. The same number of seeds, placed by the same rule, crowds into a few bold arms with the gaps showing between them.
Why it starts to make sense
A fraction of a turn repeats, so the seeds fall on spokes
Suppose the angle is exactly a third of a turn, 120°. Seed 3 is a full turn from seed 0, so it points the same way, and so does seed 6. Every seed lands on one of three spokes, and the pattern is three rays with seeds spread along them. Any angle that is a simple fraction of a turn does the same, with as many spokes as the fraction's denominator: 135° is three eighths of a turn and gives eight spokes.
An angle that is only close to a simple fraction does something quieter. Take 137.0°. Eight turns of it come to 1,096°, which is three full turns and 16° more, so every eighth seed sits almost where the seed eight before it sat, 16° further round each time. The drift is what makes a spiral and not a spoke. The closer the angle is to a fraction with a small denominator, the longer the drift takes to open a gap, and the more clearly the spokes show.
So the angle that packs best is one that is not close to any simple fraction of a turn. That is a question about how well a number can be approximated by fractions, and continued fractions are the tool that answers it.
The key idea
Continued fractions, and the number that is hardest to approximate
Any number can be written as a whole part plus the reciprocal of another number, over and over: . The whole numbers are its partial quotients, and stopping the fraction early gives the fractions that fit the number best. A large partial quotient means the fraction stopped just before it is a remarkably close fit, and a close fit to a fraction with a small denominator is exactly what makes spokes.
The golden angle's fraction of a turn is , and its partial quotients are without end. There is no large quotient anywhere, so no fraction is ever a remarkably good fit. The fractions that fit best have Fibonacci numbers for numerators and denominators: 1/2, 1/3, 2/5, 3/8, 5/13, and so on. Those denominators, 5, 8, 13, 21, 34, 55, are the numbers of spiral arms that stand out in the picture, and the laboratory lists the ones that fit the number of seeds on the page.
Hurwitz proved in 1891 that this is as bad as a good fit can get. For every irrational number there are infinitely many fractions with , and the constant cannot be improved: the golden ratio is the number it fails for. In that sense the golden ratio gives the sharp constant in Hurwitz’s theorem. For the exact golden angle the later bars approach the dashed line at . The rounded angle used here preserves that pattern at the small denominators shown in the figure.
Formal statement
Directions, convergents and the bound
Write the angle as a fraction of a turn in lowest terms. Seed points turns round, and only the fractional part matters, so seed points in the direction .
Directions. The first seeds point in exactly different directions.
Write the continued fraction of as with convergents , where . Whenever there is a next convergent,
For a rational angle the upper bound is attained when the next convergent equals the angle. For a one-third turn, the error of is exactly . Each convergent is closer to than any fraction with a smaller denominator.
Hurwitz. For every irrational , for infinitely many , and cannot be replaced by a larger constant. For the golden ratio every .
Proof
Why the directions repeat, and why large quotients make spokes
Seeds and point the same way exactly when is a whole number, that is when divides . Because and have no common factor, that happens exactly when divides . So the directions repeat with period and no sooner, and seeds point in directions. At 137.5°, , which gives 144 directions for 2,000 seeds.
For the second claim, look at the upper bound in the formal statement. The error of the convergent is at most . Since , a large makes large and the error tiny. Then turns of the angle fall within times that error of a whole number of turns: seeds that are apart in number sit in almost the same direction, and the seeds line up along spokes before the drift opens them into spirals. For the exact golden angle, the coefficients after the initial 2 are all 1. The denominators then grow by the Fibonacci recurrence , so there is no large coefficient to make a small-denominator fraction fit unusually well.
The bounds above and Hurwitz's theorem are cited, not proved here. The kernel's tests check the convergents against a brute-force search for the best approximation, and compare the number of directions with for hundreds of random angles.
Limits and further questions
A model of a sunflower, and not a claim about every sunflower
Every angle on this page is a whole number of millionths of a degree, so it is a fraction of a turn and its continued fraction ends. Mathomaly rounds the golden angle to 137.507764°. That rounding is invisible for the seed counts offered, and the fractions-that-fit view stops at denominators of 5,000 for that reason.
The page measures what its own seeds do: how many directions they point in, and how far apart in number the nearest neighbours of a seed are. At the golden angle those gaps are Fibonacci numbers in the runs checked, 300 and 1,000 seeds. At other angles the gaps need not be Fibonacci numbers. At 137.0° with 800 seeds the commonest gap is 21, the denominator of that angle's own convergent 8/21, and no angle has been checked beyond the cases the page lists.
Nothing here says that real flowers follow the model. Swinton and colleagues counted spirals on many real sunflower heads in 2016 and reported non-Fibonacci structure as well as Fibonacci counts, so the counts on a real head are a measurement and not a law. The model explains why a fixed angle near 137.5° gives even packing and Fibonacci-type counts. It does not explain why a plant would use it.
What is actually established
Every statement on this page, with its status, its exact scope, and the date that status was last checked.
If the angle is the fraction a/b of a turn in lowest terms, the first N seeds point in exactly min(N, b) different directions. At 137.5° = 55/144 of a turn, 2,000 seeds point in 144 directions.
- Scope
- An angle that is a rational number of turns, which every angle on the page is, since angles are held to a millionth of a degree. Seeds are counted by direction only, whatever their distance from the centre.
- Why
- Seed n points n·a/b turns round, which matters only modulo 1, so only the remainder of n·a on division by b matters. Seeds n and m then point the same way exactly when b divides (n − m)·a, and since a and b share no factor that happens exactly when b divides n − m. So the directions repeat with period b and no sooner. The kernel counts directions with exact integer arithmetic and its tests compare the count with min(N, b) over randomly chosen angles.
- Status checked
The convergents p/q of the continued fraction of the angle, as a fraction of a turn, are its best approximations: no fraction with a smaller denominator is closer than p/q.
- Scope
- A standard theorem of continued fractions (Lagrange), stated in any text on the subject and not proved on the page. The kernel computes the convergents by Euclid’s algorithm in exact integers and its tests check the property by brute force for randomly chosen angles with denominators up to 5,000.
- Why
- The kernel’s brute-force test compares every smaller denominator with each convergent for sixty random angles. That is a check on the code and not a proof of the theorem.
- Status checked
For every irrational α there are infinitely many fractions p/q with q²·|α − p/q| < 1/√5, and 1/√5 cannot be replaced by any smaller number. The golden ratio gives this sharp constant. Its continued fraction has only 1s.
- Scope
- Hurwitz’s theorem, proved in the cited paper and not on this page. The page does not prove it: it measures q²·|α − p/q| for the convergents of the angle chosen, and every angle on the page is rational, so its continued fraction is finite.
- Why
- The measured values at the golden angle are within 0.006 of 1/√5 for every convergent with denominator from 13 to 1,597, as the unit tests check. Further convergents of the rounded angle are not drawn, because the rounding to a millionth of a degree separates it from the true golden angle beyond denominators of about 5,000.
- Status checked
For the golden angle, the nearest neighbour of every seed has a number that differs from the seed’s own by a Fibonacci number, for 300 seeds and for 1,000 seeds.
- Scope
- The golden angle rounded to a millionth of a degree, with exactly 300 seeds and exactly 1,000 seeds. This is not claimed for other counts or other angles, where the gaps need not be Fibonacci numbers.
- Why
- Distances are floating-point; ties in distance are broken towards the lower number. The check shows the Fibonacci gaps in these runs and proves nothing for other counts.
- Computation (approximate)
- The tally covers every seed away from the centre, for 300 and 1,000 seeds at 137.507764°. Seed 1 is nearest to the centre because radius increases with the seed number. An independent distance sort agrees with the tallies for 150 seeds at four angles. Algorithm sunflower-1.
- Status checked
Real sunflower heads do not always show Fibonacci spiral counts: a citizen-science survey of many heads found non-Fibonacci structure as well.
- Scope
- Reported by Swinton et al. 2016 and cited without independent checking. The page draws a mathematical model and says nothing more about real flowers.
- Why
- The model puts a fixed angle between seeds. A real head grows from a changing, living process, and the page does not attempt to model it.
- Status checked
Sources
Review notes show which bibliographic details Mathomaly has checked and which remain unresolved. Checking a publication record does not independently verify its proof.
I’ve checked each citation below against the publication itself, unless it says otherwise. That checks the reference, not the proof.
- Helmut Vogel, A better way to construct the sunflower head, Mathematical Biosciences 44(3-4), 1979. Link
The model places seed n at distance c√n and turns by the same angle for each new seed. The golden angle gives a dispersed arrangement in this model. Every figure and count in the lab is computed here.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
The Crossref record for the DOI gives the title, the author Helmut Vogel, Mathematical Biosciences volume 44 issues 3-4, pages 179-189, 1979. The paper’s text was not inspected.
- Adolf Hurwitz, Ueber die angenäherte Darstellung der Irrationalzahlen durch rationale Brüche, Mathematische Annalen 39(2), 1891. Link
Hurwitz’s theorem: for every irrational α there are infinitely many fractions p/q with |α − p/q| < 1/(√5·q²), and the constant √5 cannot be improved, the golden ratio being the extreme case. Cited, not proved on the page; the page only measures the quantity q²·|α − p/q| for the convergents it lists.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
The Crossref record for the DOI gives the title, the author A. Hurwitz, Mathematische Annalen volume 39 issue 2, pages 279-284, 1891. That the theorem is stated there with the constant √5, and the golden ratio as the extreme case, rests on the standard attribution and was not checked against the paper’s text.
- Jonathan Swinton, Erinma Ochu, The MSI Turing’s Sunflower Consortium, Novel Fibonacci and non-Fibonacci structure in the sunflower: results of a citizen science experiment, Royal Society Open Science 3(5), 160091, 2016. Link
A survey of real sunflower heads documented spiral counts outside the Fibonacci sequence, including heads with no clear spiral count.
Bibliographic review:
AI-assisted source review. Evidence type: source text.
The university archive hosts the published version. Its abstract and results report non-Fibonacci and ambiguous spiral counts in the surveyed seedheads.
Related explorations
(connected by how they work)