Complete guide
Fractal dimension explained
Fractal dimension is a number that tells how a shape fills space as you zoom in. It can be a fraction: about 1.26 for the Koch curve, 1.585 for the Sierpiński triangle, 1.25 for the coast of Britain. Here is how it is defined and measured.
The idea: how detail grows with scale
Double the size of a line and its length doubles: 2 = 21. Double a square and its area quadruples: 4 = 22. Double a cube and its volume grows eightfold: 8 = 23. The exponent is the dimension. A fractal fits the same rule with a fractional exponent.
Similarity dimension: the formula
If a shape is made of N copies of itself, each scaled by a factor r, its similarity dimension is
D = log N / log(1/r).
| Shape | N | r | D |
|---|---|---|---|
| Cantor set | 2 | 1/3 | 0.631 |
| Koch curve | 4 | 1/3 | 1.262 |
| Sierpiński triangle | 3 | 1/2 | 1.585 |
| Sierpiński carpet | 8 | 1/3 | 1.893 |
| Menger sponge | 20 | 1/3 | 2.727 |
When the copies have different scale factors, the dimension solves Moran’s equation r1D + … + rND = 1; the fractal calculators solve it for you.
Box-counting dimension: measuring real objects
Natural shapes are not exact copies of themselves, so we measure instead. Cover the shape with a grid of boxes of size ε, count the boxes N(ε) that contain part of it, and repeat with smaller boxes. If N(ε) grows like ε−D, the points (log 1/ε, log N) lie on a straight line of slope D. This is the box-counting dimension; upload any picture to the dimension calculator to try it.
The divider method and the coastline paradox
Lewis Fry Richardson measured coastlines with rulers of different lengths and found that the measured length L grows as the ruler s shrinks, following L ∝ s1−D. Mandelbrot interpreted the exponent as a dimension in his 1967 paper on the coast of Britain, finding about 1.25 for the west coast. Our article on measuring with dividers shows the method step by step.
Hausdorff dimension: the rigorous definition
Mathematicians define dimension with Hausdorff measure: cover the set with small pieces of diameter at most δ, add up their sizes raised to a power s, and see for which s the total jumps from infinity to zero. That critical s is the Hausdorff dimension (1918). For self-similar sets without overlaps it equals the similarity dimension. See the rigorous definitions.
What the number tells you
- D close to 1: a curve that is only slightly wiggly, like a smooth coast.
- D around 1.2–1.4: a rugged coastline or a crack.
- D around 1.6–1.8: densely branching patterns such as lightning, frost or river networks.
- D close to 2: a curve that almost fills an area.
A shape in the plane can never exceed 2, and one in space can never exceed 3. The dimension list gives about ninety measured values.
Frequently asked questions
What is the formula for fractal dimension?
For a self-similar shape made of N copies scaled by r, D = log N / log(1/r). For real objects, the box-counting dimension is the slope of log N(ε) against log(1/ε).
Can fractal dimension be greater than 2?
Yes, for shapes in three-dimensional space. The Menger sponge has dimension about 2.727. In the plane, the maximum is 2.
What is the fractal dimension of a coastline?
It depends on the coast. Rocky coasts usually give values between about 1.1 and 1.3; Mandelbrot estimated about 1.25 for the west coast of Britain.
Is fractal dimension the same as Hausdorff dimension?
Hausdorff dimension is the rigorous mathematical definition. Box-counting and similarity dimension are practical versions that agree with it for many common fractals.
Sources
- F. Hausdorff. Dimension und äußeres Maß. Mathematische Annalen 79 (1918), 157–179.
- B. B. Mandelbrot. How long is the coast of Britain? Science 156 (1967), 636–638.
- K. Falconer. Fractal Geometry: Mathematical Foundations and Applications. Wiley, 3rd ed. 2014.