FractalTree

Trees in maths

One simple rule, repeated at every scale

How a fractal tree grows, why Leonardo’s rule makes it look real, and the single number that decides whether a drawing reads as a tree. Try it yourself further down.

Step by step

How a fractal tree grows

  1. A single trunk

    Step 1

    1 branch

  2. The trunk split into two branches

    Step 2

    2 tips

  3. Each branch split again: four tips

    Step 3

    4 tips

  4. Eight tips after four steps

    Step 4

    8 tips

  5. A full fractal tree after ten steps, with 512 tips

    Step 10

    512 tips

  6. The same tree with branches that thin out by Leonardo's rule: the FractalTree logo

    + Leonardo’s rule

    the FractalTree logo

Every step doubles the number of tips: after n steps there are 2n−1. That is exponential growth from a rule that never changes.

Zoom in on any branch and you find a smaller copy of the whole tree. This is called self-similarity. In 1975 the mathematician Benoit Mandelbrot coined a word for shapes like this: fractals.

Leonardo’s rule

Real trees also get the thickness right

A mathematical tree only needs angles and lengths. A living tree has to carry water and its own weight, so the thickness of every branch matters too.

Leonardo da Vinci spotted the pattern around 1500: wherever a tree branches, the branches together are as thick as the stem below. Their cross-sections add up. With a and b the radii of the two branches and c that of the stem, that gives a² + b² = c². It looks like Pythagoras, and it is about as simple.

cabtrunkbranchesa² + b² = c²

One number

What makes a tree look like a tree

Jingyi Gao and Mitchell Newberry work with a general form of Leonardo’s rule, in which the 2 becomes a variable, α (alpha):

aα + bα = cα

α sets how quickly branches thin out. It also tells you how many branches to expect at each thickness: halve the thickness and you find about 2α times as many branches.

α = 1
The thicknesses simply add up. Branches thin out fast.
α = 2
Leonardo’s rule: the cross-sections add up.
α = 3
Murray’s law, known from blood vessels.
1.5 – 3
Roughly the range of real trees.
Generated tree with alpha 1: very thin twigs

α = 1

Twigs thin out too fast

Generated tree with alpha 2: natural looking branches

α = 2

Leonardo’s rule

Generated tree with alpha 3: sturdier branches

α = 3

Upper end for real trees

Generated tree with alpha 6: branches barely thin out and the shape no longer reads as a tree

α = 6

No longer reads as a tree

The same branching in all four drawings. Only α changes.

Try it yourself

Grow your own tree

Drag the slider to change α. Between about 1.5 and 3 the drawing reads as a tree. Go higher and every branch keeps nearly the same thickness, like Mondrian’s Blooming Apple Tree.

Generated tree with alpha 2

Beyond fractal dimension

Why α says more than D

Fractals are usually measured by their fractal dimension D, a number for how densely a pattern fills space. For trees, Gao and Newberry argue that α is more telling. D depends on the whole drawing, including branch lengths and how it is rendered; α depends only on how the branches thin out. And that turns out to be the cue that makes us see a tree.

They tested it on art: a carved screen from a 16th-century mosque in India, a Japanese scroll, Klimt and Mondrian.

See the art →

Sources

  1. Jingyi Gao and Mitchell G. Newberry, “Scaling in branch thickness and the fractal aesthetic of trees”, PNAS Nexus 4 (2), pgaf003, 2025. doi.org/10.1093/pnasnexus/pgaf003

  2. Leonardo da Vinci, Manuscript M (c. 1495–1500), folio 78v. Institut de France, Paris.

  3. Benoit Mandelbrot, Les objets fractals: forme, hasard et dimension, Flammarion, 1975.

  4. Cecil D. Murray, “The physiological principle of minimum work”, PNAS 12 (3), 207–214, 1926.

  5. All diagrams and tree drawings on this page are generated by FractalTree from the rules described here.