Mathematics · geometry

Geometry — 2D & 3D

Twenty-nine shapes. Rotate the solids, fold them flat, and see where every formula comes from.
exact closed-form formulas
Circle · r=5

Pick a shape

Circle

Why the formula works

Field notes

Scaling, folding, and why shape matters

How it works

Twenty-nine shapes, one consistent approach

Every shape here reduces to the same handful of ideas: a 2D shape has an area (how much surface it covers) and a perimeter (the distance around its edge); a 3D solid has a volume (how much space it fills) and a surface area (the total area of its outer skin). Pick a shape, adjust its dimensions, and both figures update from the exact formula — nothing here is approximated except where a shape genuinely has no elementary closed form, which is flagged where it happens. Every solid can be rotated by dragging, and every solid that can be flattened will fold flat along its real hinges while you watch.

Worked example

A sphere and a cube with the same volume don't have the same surface area — the sphere always has less. A sphere of radius 3 has a volume of about 113 cubic units; a cube with that same volume needs sides of about 4.84 units, giving it a surface area near 140.5 — noticeably more than the sphere's 113. That's not a coincidence: for a fixed volume, a sphere always has the least possible surface area of any shape.

Why doesn't the ellipse have an exact perimeter formula?

Unlike a circle, an ellipse's perimeter genuinely has no elementary closed-form expression — it requires an elliptic integral. This tool uses Ramanujan's second approximation, which is accurate to within a fraction of a percent for any realistic ellipse.

What's the difference between a triangular prism and a pyramid?

A prism has the same cross-section all the way through (like a Toblerone bar) — its volume is simply the base area times the length. A pyramid tapers to a single point, which is exactly why its volume formula has that extra ⅓ factor.

Why does area scale with the square, and volume with the cube?

Area is fundamentally a product of two lengths (like base × height); volume is a product of three. Scale every dimension of a shape by a factor k, and its area scales by k², its volume by k³ — which is why doubling a shape's size doesn't just double how much material or space it needs.

How does the fold animation work?

It is a real hinge fold, not a visual effect. The tool builds a spanning tree over the solid's faces, and every face rotates about the actual edge it shares with its parent face — by exactly the angle that makes the two faces coplanar. At the end of the animation the whole surface lies flat in one plane, and the total area of that net matches the surface-area formula. Because the fold is genuine, you can stop it half way and rotate the half-open shape.

Why can't a sphere or torus be unfolded into a net?

It's not a limitation of this tool — it's a real fact about those shapes. A surface can only be flattened without stretching or tearing if it has zero Gaussian curvature everywhere, which cones, cylinders, prisms and pyramids all do (despite the cone looking curved, it's flat in the direction that matters). A sphere curves the same way in every direction at once, the same reason every flat map of Earth distorts something — area, shape, or distance — because the globe itself cannot be flattened.

Ideal shapes with no thickness. Real objects have wall thickness, fillets, draft angles and manufacturing tolerance, so a volume computed here is the mathematical solid rather than the thing you are holding. For material estimates, work out which surface you actually want — inside, outside or mid-wall — before you trust the number.
Version history · 4 releases
  1. v0.682026-07-26Geometry rebuilt: 29 shapes, drag-rotate 3D viewer, true hinge fold, animated proof for every shape
  2. v0.692026-07-26Geometry refinement: scroll-wheel zoom, nothing overflows its frame, grid proofs 142ms -> 2.9ms, degenerate 360 deg arc fixed
  3. v0.702026-07-26Geometry 3D view defaults to orthographic (perspective was distorting the shapes); constant-scale framing
  4. v1.162026-07-29Solids-and-nets homepage demo (one of four shapes per load), and fixed the Unfold button, which never unfolded from assembled

Releases in which this page changed, newest last. Derived from the archived copy of every release, not from notes written afterwards — so it reflects what actually shipped. Site-wide passes are left out; they are in the full changelog.