How much soil fills a raised bed? How many litres does a cylindrical water tank hold? How much concrete does a slab need, and should you order it in cubic feet or cubic yards? All of these are volume questions, and nearly all of them come down to a handful of formulas plus careful unit conversion.
This guide explains what volume is, gives the formula for each common shape with the reasoning behind it, works through realistic examples, and covers the unit conversions where most mistakes happen. Every number was checked with our calculator.
What volume measures
Volume is the amount of three-dimensional space a shape occupies. It is measured in cubic units: cubic centimetres (cm³), cubic metres (m³), cubic inches (in³), cubic feet (ft³). For liquids, the litre is defined as exactly 1,000 cm³, and 1 m³ = 1,000 litres.
Because volume has three dimensions, every formula multiplies three lengths together, sometimes with a constant such as π or ⅓.
Prisms: base area × height
Any solid with the same cross-section all the way through is a prism, and its volume is:
V = base area × height
Every "straight" shape follows from this:
| Shape | Base | Formula |
|---|---|---|
| Cube | square s × s | V = s³ |
| Box (cuboid) | rectangle l × w | V = l × w × h |
| Triangular prism | triangle ½ × b × t | V = ½ × b × t × l |
| Cylinder | circle πr² | V = πr²h |
Example: a raised garden bed 2 m long, 1 m wide and 0.3 m deep holds 2 × 1 × 0.3 = 0.6 m³, which is 600 litres of soil.
Example: a water tank that is a cylinder 1.2 m in diameter and 1.5 m tall. The radius is 0.6 m, so:
V = π × 0.6² × 1.5 = 0.54π ≈ 1.696 m³ ≈ 1,696 litres
Example: a concrete slab 12 ft by 10 ft and 6 inches (0.5 ft) thick is 12 × 10 × 0.5 = 60 ft³. Concrete is often ordered in cubic yards; there are 27 ft³ in a cubic yard, so that is about 2.22 yd³. Suppliers usually recommend ordering a little extra.
Pointed shapes: one third
A cone or pyramid that rises to a point from the same base and height as a prism holds exactly one third of the volume:
Cone: V = ⅓πr²h
Rectangular pyramid: V = ⅓ × l × w × h
You can check this by filling a cone with water and pouring it into a cylinder of the same base and height: it takes three cones to fill it. The proof uses calculus, but the result is exact.
Example: a cylinder with r = 5 cm and h = 10 cm holds 250π ≈ 785.4 cm³. A cone with the same radius and height holds a third of that, ≈ 261.8 cm³.
A pyramid with a 6 × 4 base and height 9 has volume ⅓ × 6 × 4 × 9 = 72 cubic units.
Spheres and hemispheres
Sphere: V = ⁴⁄₃πr³
Hemisphere: V = ⅔πr³
A sphere of radius 5 cm holds ⁴⁄₃ × π × 125 ≈ 523.6 cm³, about half a litre. A striking fact, first shown by Archimedes: a sphere fills exactly two thirds of the smallest cylinder that contains it.
Because radius is cubed, size matters enormously. Doubling the radius of a ball multiplies its volume by eight.
Frustums: a cone with the top cut off
Buckets, flower pots, lampshades and many tanks are frustums: cones with the tip sliced off parallel to the base. With bottom radius R, top radius r and height h:
V = ⅓πh(R² + Rr + r²)
Example: a bucket 30 cm tall, 15 cm radius at the top opening and 12 cm at the base. The formula is symmetric in R and r, so the order does not matter:
V = ⅓ × π × 30 × (225 + 180 + 144) = 5,490π ≈ 17,247 cm³ ≈ 17.2 L
Setting the top radius to 0 turns the formula back into the ordinary cone.
How to use the Volume Calculator
- Open the Volume Calculator.
- Choose a Shape: cube, rectangular box, cylinder, cone, sphere, hemisphere, rectangular pyramid, triangular prism, any prism (base area × height) or cone frustum.
- Choose a Length unit, from millimetres to miles, including inches, feet and yards.
- The formula for the shape appears. Fill in each dimension; the labels say exactly which measurement is needed, for example Radius (r) rather than diameter.
- Read the volume in cubic units of your chosen length. Below it, the result is converted to cubic metres, cubic centimetres, litres, millilitres, cubic feet, cubic inches, cubic yards, US gallons and UK (imperial) gallons. Most shapes also show the Surface area.
- Open the steps to see the formula with your numbers substituted and the conversion to cubic metres and litres.
Other ways to calculate volume
- Spreadsheets: type the formula, such as
=PI()*A2^2*B2for a cylinder. Useful for a list of tanks or containers. - Displacement: for an irregular solid object, submerge it in a measuring container and read how much the water rises. This is the most reliable method for odd shapes such as stones or machine parts.
- Split into simple shapes: an L-shaped slab is two boxes; a silo is a cylinder plus a cone. Calculate each part and add them.
For the outside area of a shape, for paint or wrapping, the Surface Area Calculator goes into more detail. Circle measurements feeding into these formulas can be checked with the Circle Calculator, and units converted with the Unit Converter.
Common mistakes
Using the diameter as the radius
Tank and pipe sizes are usually quoted as diameters. Halve them first, or the volume comes out four times too large for cylinders and eight times too large for spheres.
Mixing units
A slab measured as 12 ft × 10 ft × 6 in must have all three in the same unit. 12 × 10 × 6 = 720 is neither cubic feet nor cubic inches.
Converting cubic units like linear ones
1 m = 100 cm, but 1 m³ = 100 × 100 × 100 = 1,000,000 cm³. Similarly 1 yd³ = 27 ft³, not 3.
Confusing US and UK gallons
A US gallon is about 3.785 litres and an imperial gallon about 4.546 litres. Check which one a specification uses.
Forgetting the one third
Cones and pyramids need the ⅓. Without it, you order three times as much material.
Frequently asked questions
How do I calculate the volume of a cylinder in litres?
Work out πr²h in centimetres to get cm³, then divide by 1,000. For a radius of 10 cm and height of 10 cm, that is 1,000π ≈ 3,141.6 cm³, or about 3.14 litres.
Why is the volume of a cone one third of a cylinder?
A cone tapers evenly to a point, and adding up its shrinking circular slices gives exactly one third of the cylinder with the same base and height. Filling experiments show the same result.
How do I calculate cubic feet?
Measure length, width and height in feet, converting inches by dividing by 12, and multiply them. A 12 ft × 10 ft area 6 inches deep is 12 × 10 × 0.5 = 60 ft³.
How many litres are in a cubic metre?
Exactly 1,000. A cubic metre is 100 cm × 100 cm × 100 cm = 1,000,000 cm³, and a litre is 1,000 cm³.
How do I find the volume of an irregular shape?
Split it into simpler shapes and add their volumes, or, for a solid object, measure the water it displaces when fully submerged.