Fractal Dimension Calculator
Calculate the fractal (Hausdorff) dimension of self-similar fractals using box-counting.
Covers coastlines, snowflakes, and strange attractors with examples.
What Is Fractal Dimension? The fractal dimension (or Hausdorff-Besicovitch dimension) is a measure of how completely a fractal appears to fill space. Ordinary geometric objects have integer dimensions: a point = 0, a line = 1, a square = 2, a cube = 3. Fractals have non-integer (fractional) dimensions, for example 1.26 or 1.585. A dimension between 1 and 2 means the object is “between a line and a surface”: more complex than a line but not quite a full 2D plane.
The Self-Similarity Formula For exact self-similar fractals, the dimension is: D = log(N) / log(S) Where N = number of self-similar pieces, S = scaling factor (magnification needed to see each piece as the whole).
Classic Fractals and Their Dimensions Cantor Set: N=2, S=3 → D = log(2)/log(3) ≈ 0.631. Created by removing the middle third of a line, infinitely. Koch Snowflake: N=4, S=3 → D = log(4)/log(3) ≈ 1.262. A curve with infinite length but zero area. Sierpinski Triangle: N=3, S=2 → D = log(3)/log(2) ≈ 1.585. Self-similar at every scale. Sierpinski Carpet: N=8, S=3 → D = log(8)/log(3) ≈ 1.893. Nearly 2-dimensional but with infinite holes. Menger Sponge: N=20, S=3 → D = log(20)/log(3) ≈ 2.727. A 3D fractal with zero volume but infinite surface area. Mandelbrot Set: D ≈ 2. Its boundary has D = 2, making it one of the most complex curves known.
Box-Counting Dimension For real-world irregular objects, the box-counting method estimates fractal dimension: Cover the object with boxes of size ε. Count the number of boxes N(ε) needed to cover the object. Plot log(N) vs log(1/ε). The slope = box-counting dimension D. This method is used for coastlines, mountain profiles, lung bronchial trees, and lightning bolts.
Richardson’s Coastline Paradox Lewis Fry Richardson, the British mathematician and meteorologist, found that the measured length of a coastline depends on the ruler length used. He did the work in the United Kingdom in the years before his death in 1953, and it reached print posthumously in 1961, buried in an appendix to a paper about the causes of war. Mandelbrot picked it up in 1967 and turned it into the famous question, “How long is the coast of Britain?” Using shorter measurement units gives longer coastlines, and the total never settles on a fixed value. The coastline of Britain has a fractal dimension of approximately 1.25. Norway’s fjord coastline: D ≈ 1.52 (more irregular). South Africa’s smooth coast: D ≈ 1.02.
Fractals in Nature Trees and roots: D ≈ 1.5–1.8 (optimized for transport and area coverage). Lungs (bronchial tree): D ≈ 1.7 for a flat outline of the branching, higher when measured as a 3D structure. Blood vessel networks: D ≈ 2.4–2.7 measured in three dimensions, which is why they reach so much tissue with so little material. Snowflakes: D ≈ 1.7–1.9 depending on the crystal structure. Brain cortex folding: D ≈ 2.73–2.79 (maximizes surface area within skull volume). Stock market price movements: D ≈ 1.5–1.8 (fractal-like time series, studied by Benoit Mandelbrot).
A caution about all of these: a real object is only fractal over a limited band of scales. A coastline stops being self-similar below the size of a boulder and above the size of the continent, so a measured dimension is really the slope of the log-log plot across whatever range you sampled. Two studies of the same coast can differ in the second decimal simply because they used different ruler lengths.
Benoit Mandelbrot Benoit Mandelbrot, a French-American mathematician born in Poland who worked in the United States at IBM in the 1970s, coined the word “fractal” in 1975 and demonstrated that fractals appear throughout nature. His 1982 book “The Fractal Geometry of Nature” brought fractals into mainstream science. The Mandelbrot set, the most famous fractal of all, is named in his honor.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.