Volume Calculator

Calculate solid volume for a box, cylinder, cone, sphere or square pyramid, with litre and cubic-unit conversions.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Choose the shape and measure it

For a box, enter length, width and height. For a cylinder, cone or sphere, the first dimension is the radius, not the diameter. For a square pyramid it is one base side. Height is perpendicular to the base, not slant height. Irrelevant fields are hidden.

Formulas

Box: abc. Cylinder: πr²h. Cone: πr²h/3. Sphere: 4πr³/3. Square pyramid: a²h/3. One cubic metre is 1,000 litres. One foot is exactly 0.3048 metres; cube the conversion factor for volume.

Examples and limits

A 2 × 3 × 4 m box holds 24 m³ or 24,000 L. A cylinder of radius 1 m and height 2 m has volume 2π ≈ 6.283185 m³. These are ideal solid dimensions, not usable tank capacity or material weight. Use interior measurements for capacity; wall thickness, voids and fill limits are not deducted.

Input limits

Positive dimensions from 0.000001 to 1,000,000 in the selected unit; results use floating-point arithmetic and rounded display.

Try every shape

Buttons replace current dimensions and select metres. r = radius, h = perpendicular height, a = square base side.

Shape / input (m)Volume (m³)Use
Box
L=2, W=3, h=4
24
Cylinder
r=1, h=2
6.283185
Cone
r=2, h=3
12.566371
Sphere
r=1
4.188790
Square pyramid
a=3, h=4
12

Cone volume is one third of a cylinder with the same base and height. A 3 m square base with 4 m perpendicular height gives 3² × 4 ÷ 3 = 12 m³. Radius errors are amplified: doubling radius multiplies cylinder volume by 4 and sphere volume by 8.

Unexpected result? Tell us the inputs and what you expected.