Free Online Utility • MATH Studio • Exact BigInt Engine

Generate Sierpinski Square

Recursive 4-sided Sierpinski square / carpet IFS placing 8 corner & edge sub-squares scaled by 1/3. Live High-DPI Canvas generator with PNG and SVG export.

Formula & Quick Reference Live Engine
r_n = 1 / (2 · (1 + Σ_{k=1..⌊n/4⌋} cos(2πk / n)))
Hausdorff Dim = ln(k) / ln(1 / r_n)
Dimensionlog₃(8) ≈ 1.8928
Sub-copies4 per step
ExportPNG & SVG
POLYGONAL N-FLAKE FRACTAL
Generate Sierpinski Square
High-DPI Canvas & SVG Fractal Engine Instant

Session Calculation Log

No entries recorded in this session yet.

Complete Technical Guide to Generate Sierpinski Square

Recursive 4-sided Sierpinski square / carpet IFS placing 8 corner & edge sub-squares scaled by 1/3.

Adjust recursion order, geometry parameters, and color palettes live on a High-DPI HTML5 Canvas, with instant PNG and vector SVG export.

Optimal N-Flake Contraction Ratio

r_n = 1 / (2 · (1 + Σ_{k=1..⌊n/4⌋} cos(2πk / n)))
Hausdorff Dim = ln(k) / ln(1 / r_n)

This exact trigonometric contraction factor places n scaled copies around every vertex so adjacent sub-polygons kiss tangentially with zero overlap.

How to Use Generate Sierpinski Square

  1. 1Slide the recursion depth and adjust fractal parameters live.
  2. 2Select Rainbow, Plasma, Emerald, or Cyan color themes.
  3. 3Export crisp PNG images or scalable SVG vector artwork with one click.

Reference Examples & Worked Benchmarks

PropertyValue / FormulaSignificance
Dimensionlog₃(8) ≈ 1.8928Exact similarity dim
Sub-copies4 per stepOptional +1 center
ExportPNG & SVGVector-clean polygons

Practical Applications & Engineering Workflows

Fractal Geometry & Self-Similarity

Explore exact Hausdorff scaling and recursive construction of Sierpinski Square.

Generative Math Art

Download high-contrast SVG/PNG fractals for publications, posters, and laser cutters.

Accuracy, Edge Cases & Best Practices

  • Computed 100% locally in your browser with automatic bounding-box centering.

All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.

Frequently Asked Questions

What is the Hausdorff dimension of Sierpinski Square?
log₃(8) ≈ 1.8928.
Can I add a central sub-polygon?
Yes—toggle 'Include center sub-polygon' on pentaflake/hexaflake/polyflake tools.