A labelled box with length, width and height, illustrating how to calculate volume
Math · 7 min read

How to calculate volume

Volume is the space inside a 3D object, measured in cubic units. There is no single formula: it depends on the shape. Here are the ones you actually need, worked examples, how to turn volume into litres, and the unit trap that catches people out.

Do the mathsSquare Footage Calculator

Calculate the area of a room or space, plus perimeter and material cost.

Volume is the amount of space inside a three-dimensional object: how much a box holds, how much water fills a tank, how much concrete fills a slab. Unlike area, which is flat, volume has three directions, so it is always measured in cubic units (cubic cm, cubic metres, cubic inches). The one thing that trips people up is that there is no single volume formula; the formula depends on the shape. This guide gives you the handful you actually need, with worked examples, plus how to turn volume into litres and the unit mistake to avoid.

What volume is (and the units)

Volume measures space in three dimensions, so its units are a length cubed. If you measure in centimetres, volume is in cubic centimetres (cm³); in metres, cubic metres (m³). The golden rule before any calculation: make sure every measurement is in the same unit. Mixing centimetres and metres is the most common source of wrong answers.

Here are the formulas for the shapes you will meet most, at a glance, before we work through each.

ShapeVolume formula
Box (cuboid)length × width × height
Cubeside³
Cylinderπ × r² × height
Sphere(4 ÷ 3) × π × r³
Cone(1 ÷ 3) × π × r² × height
Any prismend area × length

Box (rectangular prism): length times width times height

The most common shape is a box, also called a rectangular prism or cuboid. Its volume is simply the three sides multiplied together.

Volume = length × width × height

lhwV = l × w × h
A box: length (l) times width (w) times height (h).

For a box 2 m long, 3 m wide and 4 m high: 2 × 3 × 4 = 24 cubic metres. A cube is just a box with equal sides, so its volume is one side cubed: a 3 cm cube is 3 × 3 × 3 = 27 cubic cm.

Cylinder: pi times radius squared, times height

A cylinder (a tube or round tank) is a circle extended into a height. So you take the area of the circle and multiply by the height.

Volume = π × r² × height

For a cylinder with a radius of 5 cm and a height of 10 cm: 3.14159 × 5² × 10 = 3.14159 × 25 × 10 = 785.4 cubic cm. Remember the radius is half the diameter, so halve the diameter first if that is what you were given. For example, a pipe 20 cm across (diameter) has a radius of 10 cm, so a 50 cm length holds 3.14159 × 10² × 50 = 15,708 cubic cm, about 15.7 litres.

Sphere and cone

Two more round shapes come up often. A sphere (a ball) uses the radius cubed:

Sphere volume = (4 ÷ 3) × π × r³

A sphere of radius 5 cm is (4 ÷ 3) × 3.14159 × 5³ = (4 ÷ 3) × 3.14159 × 125 = 523.6 cubic cm. Because it uses the radius cubed, doubling the radius makes the volume 2³ = 8 times larger, so a 10 cm ball holds eight times as much as a 5 cm ball. A cone is exactly one third of the cylinder that would contain it:

Cone volume = (1 ÷ 3) × π × r² × height

A cone with radius 5 cm and height 10 cm is (1 ÷ 3) × 785.4 = 261.8 cubic cm, exactly a third of the cylinder above.

Triangular prism (and other prisms)

For any shape that is the same all the way along its length (a prism), the rule is the same: work out the area of the end face, then multiply by the length. For a triangular prism, the end is a triangle (area = half base times height), so a prism with a triangle 4 cm wide and 3 cm tall, 10 cm long, is (½ × 4 × 3) × 10 = 6 × 10 = 60 cubic cm. The same idea covers L-shaped or any odd prism: find the end area with our area calculator and multiply by the length.

Turning volume into litres (capacity)

Volume and capacity are the same thing measured differently. The key conversions: 1 litre = 1,000 cubic cm, and 1 cubic metre = 1,000 litres. So to find how many litres a tank holds, work out its volume in cubic cm and divide by 1,000. A fish tank 60 cm long, 30 cm wide and 30 cm deep is 60 × 30 × 30 = 54,000 cubic cm, which is 54,000 ÷ 1,000 = 54 litres. If you work in feet and inches, 1 cubic foot = 12 × 12 × 12 = 1,728 cubic inches and is about 28.3 litres, and 1 US gallon is about 3.785 litres (a UK gallon is about 4.546 litres); the method is the same, just with different conversion numbers.

Watch the units

Because volume is a length cubed, unit conversions are bigger than you expect. There are not 100 cubic cm in a cubic metre; there are 100 × 100 × 100 = 1,000,000. So to convert cubic cm to cubic metres you divide by a million, and to go from cubic metres to litres you multiply by 1,000. Getting this wrong is the single biggest volume error, so always convert all your measurements to one unit before you multiply, not after.

Where you use it

Volume is everywhere once you look: the litres a fish tank or water butt holds, the cubic metres of concrete a slab needs, the capacity of a fridge or shipping box, the amount of soil for a raised bed, or the air a room contains for heating. The shape tells you which formula, and the rest is careful multiplication.

The short version

Volume is the space inside a 3D shape, always in cubic units, and the formula depends on the shape: a box is length times width times height; a cylinder is pi times radius squared times height; a sphere is four-thirds pi r cubed; a cone is a third of its cylinder; and any prism is its end area times its length. Convert to litres with 1 litre = 1,000 cubic cm, keep every measurement in the same unit before you multiply, and remember unit conversions are cubed (a million cubic cm in a cubic metre). To size the flat areas these shapes are built from, the free square footage calculator handles the area step, and our guide on the area of a circle is the piece you need for cylinders and cones.

Frequently asked questions

How do you calculate volume?

Volume is the space inside a 3D object, measured in cubic units, and the formula depends on the shape. For a box it is length times width times height. For a cylinder it is pi times the radius squared times the height. For a sphere it is four-thirds times pi times the radius cubed. Always put every measurement in the same unit before multiplying.

How do you calculate the volume of a box?

Multiply the three sides: length times width times height. For a box 2 m long, 3 m wide and 4 m high, that is 2 x 3 x 4 = 24 cubic metres. A cube is a box with equal sides, so its volume is one side cubed, for example a 3 cm cube is 3 x 3 x 3 = 27 cubic cm. Keep all three measurements in the same unit.

How do you calculate the volume of a cylinder?

Multiply the area of the circular end by the height: volume = pi times the radius squared times the height. For a cylinder with a radius of 5 cm and a height of 10 cm, that is 3.14159 x 25 x 10 = 785.4 cubic cm. Remember the radius is half the diameter, so halve the diameter first if that is what you are given.

What is the difference between volume and area?

Area is the space inside a flat, two-dimensional shape and is measured in square units. Volume is the space inside a three-dimensional object and is measured in cubic units. Area uses two measurements (such as length and width), while volume uses three (length, width and height, or a radius and a height).

How do you convert volume to litres?

Use 1 litre = 1,000 cubic cm, and 1 cubic metre = 1,000 litres. So work out the volume in cubic cm and divide by 1,000 to get litres. A tank 60 cm by 30 cm by 30 cm is 54,000 cubic cm, which is 54 litres. Capacity and volume are the same thing, just expressed in litres instead of cubic units.

What is the formula for the volume of a sphere?

The volume of a sphere is four-thirds times pi times the radius cubed: (4/3) x pi x r cubed. For a sphere with a radius of 5 cm, that is (4/3) x 3.14159 x 125 = 523.6 cubic cm. Note it uses the radius cubed, so doubling the radius makes the volume eight times larger.

Calculators in this article

Square Footage Calculator

Calculate the area of a room or space, plus perimeter and material cost.

Open

Percentage Calculator

Three common percentage questions in one place, pick a mode and type your numbers.

Open