Fractal Dimension Calculator
Calculate the fractal (Hausdorff) dimension of self-similar fractals and measure irregular objects using box-counting.
Explore the mathematics of coastlines, snowflakes, and strange attractors.
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 Richardson, a British mathematician working in the United Kingdom in 1961, discovered that the measured length of a coastline depends on the ruler length used. Using shorter measurement units gives longer coastlines — the coastline never reaches 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 (maximizes surface area for gas exchange). Blood vessel networks: D ≈ 2.0 (fills the 3D body volume). 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).
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 — is named in his honor.