Geometry Calculator

Pick a shape, enter its dimensions, and get the area and perimeter (2D) or surface area and volume (3D) instantly. Runs entirely in your browser.

Measures (JSON)

About the geometry calculator

This free geometry calculator works out the key measures of a shape from its dimensions. Choose a shape, fill in the dimensions that shape needs, and it returns:

Everything runs locally in your browser. Nothing is uploaded to a server, and it works offline once the page has loaded.

Supported shapes

2D (area + perimeter)

3D (surface area + volume)

Units

The calculator is unit-agnostic: enter every dimension in the same unit and the results follow. Lengths come back in that unit, areas in unit² and volumes in unit³ — the JSON marks each value's unit suffix ("", ², ³).

Examples

How the values are computed

Standard formulas are used throughout — for example circle area is π·r², cylinder volume is π·r²·h, sphere volume is (4/3)·π·r³, and the regular polygon area is (n·s²) / (4·tan(π/n)). Triangle side lengths are checked against the triangle inequality before the perimeter is reported. Results are rounded to six decimal places.

FAQ

Which dimensions do I enter?

Only the ones the chosen shape uses — the rest are ignored. The field labels list which shape each dimension belongs to.

Why is my triangle perimeter missing?

The perimeter needs all three sides (side_a, side_b, side_c). With only base and height you still get the area.

Is it free and private?

Yes. Your input never leaves your device, and it works offline.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool geometry-calculator "..."

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/geometry-calculator/?shape=square&side=5&width=3&height=4&length=2&radius=2&radius_a=4&radius_b=2&base=6&top=4&sides=6&side_a=3&side_b=4&side_c=5

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.