Trees in maths
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
Step 1
1 branch
Step 2
2 tips
Step 3
4 tips
Step 4
8 tips
Step 10
512 tips
+ 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
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.
One number
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
Twigs thin out too fast
α = 2
Leonardo’s rule
α = 3
Upper end for real trees
α = 6
No longer reads as a tree
The same branching in all four drawings. Only α changes.
Try it yourself
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.
Beyond fractal dimension
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 →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
Leonardo da Vinci, Manuscript M (c. 1495–1500), folio 78v. Institut de France, Paris.
Benoit Mandelbrot, Les objets fractals: forme, hasard et dimension, Flammarion, 1975.
Cecil D. Murray, “The physiological principle of minimum work”, PNAS 12 (3), 207–214, 1926.
All diagrams and tree drawings on this page are generated by FractalTree from the rules described here.