Loading…

Fractal Dimension Calculator

Math Geometry • Analytical and Advanced Geometry (capstone)

View all topics

Fractal Dimension Calculator – Box-Counting for Mandelbrot & Sierpinski

Estimate the box-counting fractal dimension by overlaying grids of different box sizes and counting how many boxes intersect the set. Works with Sierpinski triangle and Mandelbrot set.

Tip: Use Play to animate the box grid from coarse to fine, then inspect the log–log fit that estimates \(D\).

Fractal
Sierpinski inputs

Theoretical dimension: \(D=\log 3 / \log 2 \approx 1.585\) (ideal infinite Sierpinski triangle).

Box-counting settings

We count boxes that contain at least one “set” pixel. Then fit \(\log N(\varepsilon)\) vs \(\log(1/\varepsilon)\).

Ready
Fractal + box grid overlay

The overlay shows one chosen box size. Use the slider to change the box size; scroll to zoom; drag to pan (when zoomed).

Log–log plot (fit slope = dimension)

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is box-counting dimension?

It estimates D by counting how many grid boxes of size ε intersect the set and fitting the scaling law N(ε) ~ ε^{-D}.

Why does Sierpinski have dimension about 1.585?

Each step creates 3 self-similar copies scaled by 1/2, so D = log(3)/log(2) ≈ 1.585.

Why measure Mandelbrot boundary instead of the filled set?

The filled interior behaves like a 2D region and can push estimates toward D≈2. Boundary pixels better reflect the fractal edge.

Why can the estimate change with resolution or box sizes?

Finite pixel grids and limited scale ranges can bias the slope. Using multiple scales and adequate resolution improves stability.