Area and Volume Calculator

Compute area or volume of common shapes: square, circle, cube, and cylinder.

Inputs

Allowed range: 0 to 1000000

Allowed range: 0 to 1000000

Allowed range: 0 to 1000000

Results

Area
28.2743 unit²
Circumference
18.8496 unit
Diameter
6.0000 unit

How it works

Square: A = s². Circle: A = π·r², circumference C = 2π·r. Cube: V = s³, surface area S = 6s². Cylinder: V = π·r²·h, surface area S = 2π·r·(r + h).

Complete guide

Pick a shape, then enter the relevant dimensions. Unused inputs are ignored.

For 2D shapes (square, circle) we return area and perimeter/circumference. For 3D shapes (cube, cylinder) we return volume and total surface area.

Units are whatever you put in — results are in the same unit² or unit³.

Frequently asked questions

Which value of π is used?
JavaScript's Math.PI (≈ 3.141592653589793).
Can I use it for a sphere or cone?
Not in this version — we focus on the four most common shapes. Open an issue if you would like more added.

Related math calculators