Volume Calculator

Volume of 8 shapes — cube, cuboid, sphere, cylinder, cone, square pyramid, hemisphere and frustum. Pick a shape, enter measurements, get the answer with the formula shown.

Loading calculator…

What this tool does

Volume of 8 shapes — cube, cuboid, sphere, cylinder, cone, square pyramid, hemisphere and frustum. Pick a shape, enter measurements, get the answer with the formula shown. All measurements in the same unit give volume in that unit cubed. Heights are perpendicular (vertical) heights, not slant heights.

How to use the Volume Calculator

  1. Enter or select shape.
  2. Enter or select side (cube).
  3. Enter or select length (cuboid).
  4. Enter or select width (cuboid).
  5. Enter or select height (cuboid).
  6. Enter or select radius (sphere / hemisphere).
  7. Enter or select radius (cylinder).
  8. Enter or select height (cylinder).
  9. Enter or select radius (cone).
  10. Enter or select height (cone).
  11. Enter or select base side (square pyramid).
  12. Enter or select height (square pyramid).
  13. Enter or select top radius (frustum).
  14. Enter or select bottom radius (frustum).
  15. Enter or select height (frustum).
  16. Read the calculated result; change any measurement to compare alternatives.

Formula

Cube s³; cuboid l×w×h; sphere (4/3)πr³; cylinder πr²h; cone (1/3)πr²h; square pyramid (1/3)s²h; hemisphere (2/3)πr³; frustum (1/3)πh(R² + Rr + r²).
shape
Shape
vSide
Side (cube)
vLength
Length (cuboid)
vWidth
Width (cuboid)
vCubH
Height (cuboid)
vRadius
Radius (sphere / hemisphere)
vCylR
Radius (cylinder)
vCylH
Height (cylinder)
vConeR
Radius (cone)
vConeH
Height (cone)
vPyrBase
Base side (square pyramid)
vPyrH
Height (square pyramid)
vTopR
Top radius (frustum)
vBotR
Bottom radius (frustum)
vFrustumH
Height (frustum)

All measurements in the same unit give volume in that unit cubed. Heights are perpendicular (vertical) heights, not slant heights.

Worked example

For volume calculator, the following measurements illustrate the exact method: Shape: cylinder; Side (cube): 5; Length (cuboid): 10; Width (cuboid): 6; Height (cuboid): 4; Radius (sphere / hemisphere): 5; Radius (cylinder): 4; Height (cylinder): 10; Radius (cone): 4; Height (cone): 9; Base side (square pyramid): 6; Height (square pyramid): 8; Top radius (frustum): 3; Bottom radius (frustum): 5; Height (frustum): 7.

Inputs

  • ShapeCylinder
  • Side (cube)5
  • Length (cuboid)10
  • Width (cuboid)6
  • Height (cuboid)4
  • Radius (sphere / hemisphere)5
  • Radius (cylinder)4
  • Height (cylinder)10
  • Radius (cone)4
  • Height (cone)9
  • Base side (square pyramid)6
  • Height (square pyramid)8
  • Top radius (frustum)3
  • Bottom radius (frustum)5
  • Height (frustum)7

Result

  • Volume502.65
  • Shapecylinder

Results explained

Volume
Volume from the formula above. All measurements in the same unit give volume in that unit cubed. Heights are perpendicular (vertical) heights, not slant heights.
Shape
Shape from the formula above. All measurements in the same unit give volume in that unit cubed. Heights are perpendicular (vertical) heights, not slant heights.

Frequently asked questions

Volume = π × radius² × height. A cylinder with radius 4 and height 10 has volume π × 16 × 10 = 160π ≈ 502.65 cubic units — that is the worked example this calculator opens with. The same formula, with the radius and height in feet, gives a tank's capacity in cubic feet.

A cube is side³: 5³ = 125 cubic units. A cuboid (rectangular box) is length × width × height: 10 × 6 × 4 = 240 cubic units. Both are special cases of 'base area × height', which is why one formula pattern covers so many shapes.

A sphere is (4/3)πr³: (4/3) × π × 27 = 36π ≈ 113.10 cubic units. A cone is exactly one third of its cylinder, (1/3)πr²h: (1/3) × π × 16 × 9 = 48π ≈ 150.80 cubic units — compare the cylinder with the same radius and height, 144π ≈ 452.39.

One cubic foot is about 7.48052 US gallons or 28.3168 litres. A 240-cubic-foot tank therefore holds about 240 × 7.48052 ≈ 1,795 gallons. Keep every measurement in one unit before you start — mixing inches and feet is the most common volume error.

Each shape's volume depends on different dimensions: a sphere needs only its radius, a cone needs radius and height, and a frustum (a cone with the top cut off) needs both end radii plus height. The calculator shows only the inputs the selected shape actually uses.