Maths Solids

Volume calculator

Length
Width
Height
Unit
Volume 9,000
l × w × h = 9,000
Surface area 2,700
In litres 9
In US gallons 2.378
Live · volume, surface area and capacity

A cubic centimetre is a millilitre, so a box measured in centimetres gives you litres without a second conversion. The same box measured in inches or feet is converted for you.

Volume is the space a solid encloses. A box is length times width times height; a cylinder is π times the radius squared times the height; a sphere is four-thirds π times the radius cubed; a cone is a third of the matching cylinder. Each shape here also reports its surface area and its capacity in litres and US gallons.

How to use it

1 Pick the shape from the row of buttons.
2 Enter the measurements and choose the unit they are in.
3 Read the volume, and the litres and gallons underneath if you are filling something.

A cone is exactly one third of the cylinder that would contain it, and a pyramid is one third of its box. Neither is a coincidence or an approximation: both fall out of the same integral, and remembering it turns four formulas into two. The default cone here, radius 5 and height 12, comes out at 314.159 cm³ against the 942.478 cm³ of a cylinder with the same radius and height.

The capacity rows are the part most likely to catch someone out, because a gallon is not one thing. The figure here is the US liquid gallon, defined as 231 cubic inches and equal to 3.785412 litres. The imperial gallon still used in the UK and Canada is 4.546090 litres, a little over 20 per cent larger, so a tank that holds 100 US gallons holds about 83 imperial ones. Litres are simpler: a cubic centimetre is a millilitre by definition, so a box measured in centimetres gives its capacity with no conversion at all. Where a conversion is needed it is exact rather than approximate, because the inch has been defined as precisely 25.4 millimetres since 1959, which makes a foot 304.8 mm and a yard 914.4 mm with no rounding anywhere in the chain.

Every surface area on this page is the whole closed surface. A cylinder is 2πr(r + h), both flat ends included; a cone includes its base disc; a pyramid includes its rectangular base and assumes the apex sits over the centre of it. For an open-topped tank or a pyramid standing on the ground, subtract the one face you are not painting: the default cylinder loses 78.540 cm² of its 785.398 that way.

What people use it for

  • Working out how many litres an aquarium or a water butt holds
  • Ordering concrete, soil or gravel by the cubic metre
  • Sizing a propane or pressure vessel from its cylindrical body and caps
  • Getting the surface area to paint, clad or insulate a solid
  • Comparing the capacity of two containers that are not the same shape
  • Turning a delivery quoted in US gallons into litres before you buy it

Questions

Half the diameter. Measuring across a tank gives the diameter, so halve it before entering it here. Getting this wrong multiplies the volume by four.

NIST SP 811, Guide for the Use of the SI (Appendix B conversion factors)
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding