Volume Calculator

Calculate volume of common 3D shapes.

What is volume?

Volume is the amount of three-dimensional space a solid occupies, measured in cubic units. Where area asks how many unit squares fit inside a flat shape, volume asks how many unit cubes fit inside a solid one.

Most volume formulas follow a single pattern: volume = base area × height. That covers cubes, boxes, cylinders and prisms directly. Cones and pyramids are exactly one third of the prism that encloses them, and the sphere is the one genuinely distinctive case.

Key takeaways

  • Volume is in cubic units - always cube whichever length unit you used.
  • Prisms and cylinders: volume = base area × height.
  • Cones and pyramids are exactly one third of the equivalent prism.
  • 1 m³ = 1,000 liters, and 1 liter = 1,000 cm³.
  • Doubling every dimension multiplies volume by eight.

Volume formulas

SolidFormulaWhat you need
CubeV = s³Side length
Rectangular boxV = l × w × hLength, width and height
CylinderV = π × r² × hRadius and height
SphereV = (4/3) × π × r³Radius
ConeV = (1/3) × π × r² × hRadius and height
Pyramid (any base)V = (1/3) × base area × hBase area and height (a square base of side b has area b²)
Triangular prismV = ½ × b × ht × lengthTriangle base, triangle height, prism length
CapsuleV = πr²h + (4/3)πr³Radius and cylinder length

Worked examples

  • Box 2 m × 3 m × 1.5 m: V = 9 m³ = 9,000 liters
  • Cylinder radius 0.5 m, height 2 m: V = π × 0.25 × 2 ≈ 1.571 m³ ≈ 1,571 liters
  • Sphere radius 3 m: V = (4/3) × π × 27 ≈ 113.10 m³
  • Cone radius 2 m, height 6 m: V = (1/3) × π × 4 × 6 ≈ 25.13 m³
  • Pyramid with a 4 m square base (base area 16 m²), height 6 m: V = (1/3) × 16 × 6 = 32 m³. Enter the base area, not the side, in the calculator.
Why a cone is exactly one third of a cylinder. Fill a cone with water and pour it into a cylinder of the same radius and height, and you will need exactly three cones to fill it. The same one-third relationship holds between any pyramid and the prism with the same base and height.

Volume and capacity units

UnitIn cubic metersIn litersNote
1 cm³0.0000010.001Also called 1 milliliter
1 liter0.00111,000 cm³, or a 10 cm cube
1 m³11,000Also called a kiloliter
1 ft³0.028316828.3168
1 US gallon0.003785413.78541
1 UK gallon0.004546094.54609About 20% larger than a US gallon

Cubic conversions are the length factor cubed. From meters to centimeters the factor is 100³ = 1,000,000, not 100.

US and UK gallons are not the same. A UK imperial gallon is about 4.546 liters while a US gallon is about 3.785 - about 17% smaller (or, the other way round, the UK gallon is about 20% larger). Recipes, fuel economy figures and tank capacities all suffer from this, so always check which gallon is meant.

Volume scales as the cube

Doubling every dimension multiplies volume by eight, because all three dimensions increase.

Cube sideVolumeRelative to the first
1 m1 m³1×
2 m8 m³8×
3 m27 m³27×
4 m64 m³64×

This is why a modest increase in the dimensions of a tank, a room or a package changes its capacity far more than intuition suggests.

Practical uses

  • Water tanks and pools - capacity in liters from physical dimensions.
  • Concrete and aggregate - ordered in cubic meters or cubic yards.
  • Shipping and freight, where volumetric weight often decides the price rather than actual weight.
  • Aquariums, where volume determines stocking levels and heater sizing.
  • HVAC sizing, which depends on room volume rather than floor area.
  • Packaging design and fill-volume calculations.

For flat measurements use the area calculator; for converting the resulting dimensions between systems, the length converter.

Frequently Asked Questions

How do I calculate the volume of a cylinder?

Multiply pi by the radius squared, then by the height: V = πr²h. A cylinder with a 0.5 meter radius and 2 meter height holds π × 0.25 × 2, about 1.571 cubic meters or 1,571 liters.

What is the volume formula for a sphere?

V = (4/3) × π × r³. A sphere of radius 3 meters has a volume of (4/3) × π × 27, about 113.10 cubic meters. Note the radius is cubed, so volume grows very quickly with size.

How many liters are in a cubic meter?

Exactly 1,000. A cubic meter is also called a kiloliter. Working the other way, one liter is 1,000 cubic centimeters, which is a cube 10 cm on each side.

Why is a cone one third of a cylinder?

It is a geometric fact you can verify physically: filling a cone with water and pouring it into a cylinder of the same radius and height takes exactly three cones. The same one-third relationship holds between any pyramid and its equivalent prism.

How do I work out the capacity of a water tank?

Calculate the internal volume using the formula for its shape, then convert to liters by multiplying cubic meters by 1,000. For a rectangular tank, that is length times width times depth, all in meters. Use internal dimensions, not external ones.

How do I convert cubic meters to cubic feet?

Multiply by 35.3147, which is 3.28084 cubed. Cubic conversion factors are the length factor cubed, which is why they look so much larger than the linear equivalents.

Is a US gallon the same as a UK gallon?

No. A US gallon is about 3.785 liters and a UK imperial gallon is about 4.546 liters, roughly 20 percent larger. This affects fuel economy figures, recipes and tank capacities, so always confirm which is meant.

Why does volume increase so fast when I scale a shape up?

Because all three dimensions grow at once. Doubling the side of a cube multiplies its volume by eight, and tripling it multiplies volume by twenty-seven. This is why a slightly larger container holds far more than it appears to.

Related Calculators