Volume Calculator

Calculate volume instantly in your browser.

Loading calculator…

What this tool does

Calculate volume instantly in your browser. 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

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²).

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

Where mathematically meaningful, yes. Fields specify permitted ranges and undefined operations display an error.

Exact integer calculations use safe integers; decimal calculations use browser floating point, so small rounding differences can occur.

All values remain in your browser and are never uploaded.