Volume Calculator for Common Solids
Pick a solid and enter its lengths in one unit. You get the volume in cubic units and the capacity in litres and US gallons, plus the slant height, base or surface area where they apply.
Last reviewed
Volume
785.398163397 cm³
cylinder
- Capacity in litres
- 0.785398163397 L
- Capacity in US gallons
- 0.207480244743 gal
Volume is in cubic units: lengths in centimetres give cubic centimetres. Use one unit for every length. Capacity assumes the solid is a container filled to the brim.
Volume formulas
Volume is the amount of space inside a solid, in cubic units. Choose the shape and the calculator applies its formula to your lengths:
| Solid | Inputs | Volume |
|---|---|---|
| Cube | edge a | a³ |
| Rectangular box | l, w, h | l × w × h |
| Cylinder | radius r, height h | π × r² × h |
| Cone | base radius r, height h | ⅓ × π × r² × h |
| Sphere | radius r | 4/3 × π × r³ |
| Hemisphere | radius r | 2/3 × π × r³ |
| Pyramid, rectangular base | l, w, height h | ⅓ × l × w × h |
| Ellipsoid | semi-axes a, b, c | 4/3 × π × a × b × c |
The sphere, cylinder, cone, pyramid and ellipsoid formulas are those given by Wolfram MathWorld. A hemisphere is half of a sphere. MathWorld gives the volume of a cone and of a pyramid as one third of the base area times the height, whatever the shape of the base.
Capacity in litres and gallons
The calculator turns the volume into litres and US gallons, as for a container filled to the brim. Lengths convert to metres exactly (a foot is 0.3048 m, an inch 0.0254 m, a yard 0.9144 m, a mile 1,609.344 m). A cubic metre is 1,000 litres, and a US gallon is 3.785411784 litres.
Worked examples
| Solid and inputs | Volume | Litres |
|---|---|---|
| Cylinder, radius 5 cm, height 10 cm | 785.398163397 cm³ | 0.785398163397 |
| Cube, edge 3 m | 27 m³ | 27000 |
| Box 2 by 3 by 4 ft | 24 ft³ | 679.604318208 |
| Sphere, radius 6 cm | 904.778684234 cm³ | 0.904778684234 |
| Cone, radius 3 cm, height 4 cm | 37.6991118431 cm³ | 0.0376991118431 |
| Hemisphere, radius 3 cm | 56.5486677646 cm³ | 0.0565486677646 |
| Pyramid, base 6 by 6 cm, height 9 cm | 108 cm³ | 0.108 |
| Ellipsoid, semi-axes 4, 3, 2 cm | 100.530964915 cm³ | 0.100530964915 |
The cylinder holds 0.785 litres, which is 0.2075 US gallons. The cube holds 27,000 litres, about 7,132.6 US gallons. The cone holds exactly one third of the cylinder with the same base and height: a cylinder of radius 3 and height 4 would hold 36π, and the cone holds 12π.
The cone’s slant height, √(3² + 4²), is 5, and the sphere of radius 6 has a surface area of 4π × 36 = 452.389342117.
Doubling the size
Volume depends on lengths cubed. Doubling every length multiplies the volume by 8. A sphere of radius 12 holds eight times as much as one of radius 6. This is why a small change in the size of a pot or a tank makes a large change in what it holds.
Common mistakes
- Using the diameter as the radius. Halve it first.
- Mixing units. Use one unit of length for every input.
- Forgetting the one third for a cone or pyramid.
- Using a slanting length as the height. The height is perpendicular to the base.
- Confusing square and cubic units. Volume is in cubic units, area in square ones.
For flat shapes, use the area calculator. For the skin of a solid, use the surface area calculator, and to move between cubic units, the volume converter. Concrete and soil quantities are in the cubic yards calculator.
Volume in everyday jobs
- A cylindrical tank of radius 0.5 m and height 1.2 m holds π × 0.5² × 1.2 = 0.9425 m³, which is 942.48 litres.
- A swimming pool 8 m long, 4 m wide and 1.5 m deep holds 8 × 4 × 1.5 = 48 m³, or 48,000 litres, if it is filled to the top.
- A concrete slab 3 m by 2 m and 0.1 m thick needs 3 × 2 × 0.1 = 0.6 m³ of concrete, before any allowance for waste.
Add an allowance when you order material, because a real container is never filled exactly to the brim and a slab is never perfectly level. Ten per cent is a common starting point, but the supplier or the job will tell you what is right.
How it is calculated
The arithmetic is exact decimal arithmetic to 50 digits, with π computed to the same precision. Results are shown to 12 significant figures.
Frequently asked questions
What is volume?
The amount of space a solid occupies, measured in cubic units such as cubic metres or cubic feet. For a container it is also its capacity: 1,000 cubic centimetres is one litre.
How do I find the volume of a cylinder?
Multiply the area of the circular end, πr², by the height. A cylinder with a radius of 5 cm and a height of 10 cm has a volume of 250π, which is 785.4 cm³ or 0.785 litres.
Why is a cone one third of a cylinder?
A cone with the same base and height as a cylinder holds exactly one third as much. MathWorld gives the volume of a cone as one third of the base area times the height, and the same one-third rule holds for a pyramid.
How do I find the volume of a sphere?
V = 4/3 π r³. A sphere of radius 6 has a volume of 288π, which is 904.78. Doubling the radius multiplies the volume by eight.
How do I turn cubic units into litres?
One cubic metre is 1,000 litres and one cubic centimetre is 1 millilitre. For feet, one cubic foot is 28.316846592 litres, because a foot is exactly 0.3048 metres. A US gallon is 3.785411784 litres.
Does the shape have to be upright?
The formulas assume a right cylinder or cone, with the axis perpendicular to the base, and a pyramid whose height is measured straight up from the base. A pyramid leaning over has the same volume if the height is the perpendicular height.
Related calculators
- Area CalculatorPick a shape and enter its lengths.
- Surface Area CalculatorPick a shape and enter its size.
- Circle CalculatorChoose what you know about the circle and enter it.
- Cubic Feet CalculatorPick a shape, choose your unit and enter the measurements.
- Cubic Yards CalculatorEnter each section of the job as a rectangle or a circle, with its depth, and add an allowance for waste.
- Volume ConverterConvert any volume.