Volume Calculator
Pick a solid and type its sizes, or drag the drawing…
Pick a solid and type its sizes, or drag the drawing, to get its volume in cubic units, litres and US gallons, and its surface area.
ExampleVolume, Box
1.5m³
Also 1,500 litres, 396.26 US gallons, 1.9619 yd³.
Type your own sizes, or drag a handle.
Drag a round handle to change that size.
- Surface area
- 9.5 m²
- Space diagonal
- 2.5495 m
How this works: 4 sources,
How this works
Method
Volume counts how many unit cubes a solid holds. A box (a rectangular prism) is length times width times height: a planter 30 cm by 20 cm by 15 cm holds 9,000 cm³, which is 9 litres, since a litre is 1,000 cm³. A cube is the same with three equal sides. Full method
Sources
How it’s tested
2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: 13 shapes drawn to scale with handles, exact answers in π, litres and gallons, and slope, distance, midpoint, arc and polygon pages.
How to find the volume of a solid
Volume counts how many unit cubes a solid holds. A box (a rectangular prism) is length times width times height: a planter 30 cm by 20 cm by 15 cm holds 9,000 cm³, which is 9 litres, since a litre is 1,000 cm³. A cube is the same with three equal sides.
For shapes with a constant cross-section, volume is the area of the base times the height, which is why a cylinder is πr²h. Shapes that come to a point hold exactly a third of that: a cone is ⅓πr²h and a square pyramid ⅓s²h. A cone with a radius of 4 and a height of 9 holds 48π ≈ 150.8 cubic units.
A sphere is (4/3)πr³: a ball with a radius of 3 has a volume of 36π ≈ 113.1. Every answer here is also converted to litres and US gallons, using the exact definitions (1 inch = 2.54 cm, 1 US gallon = 231 cubic inches).
Box lwh · Cube s³ · Cylinder πr²h · Sphere (4/3)πr³ · Cone ⅓πr²h · Pyramid ⅓s²h
- Euclid proved that a cone is one third of the cylinder with the same base and height (Elements XII.10). Source: Euclid’s Elements, Book XII, Proposition 10 (D. E. Joyce’s edition).
- A US liquid gallon is defined as exactly 231 cubic inches, which makes it 3.785411784 litres. Source: NIST Special Publication 811, Appendix B (exact conversion factors).
Volume formulas with a worked example each
Each solid’s volume formula, one example in centimetres worked by the calculator, and the same volume in litres.
| Solid | Formula | Example (cm) | Volume (cm³) | Litres |
|---|---|---|---|---|
| Box | l × w × h | l 30, w 20, h 15 | 9,000 | 9 |
| Cube | s³ | s 10 | 1,000 | 1 |
| Cylinder | πr²h | r 5, h 20 | 500π ≈ 1,570.8 | 1.571 |
| Sphere | (4/3)πr³ | r 3 | 36π ≈ 113.0973 | 0.113 |
| Cone | ⅓πr²h | r 4, h 9 | 48π ≈ 150.7964 | 0.151 |
| Square pyramid | ⅓s²h | s 12, h 10 | 480 | 0.48 |
Common questions
How many litres are in a cubic metre?
Exactly 1,000. A litre is a cube 10 cm on each side, and a cubic metre is 10 × 10 × 10 of those. So a box 2 m by 1.5 m by 0.5 m holds 1.5 m³, or 1,500 litres.
How do I find the volume of an irregular object?
Split it into boxes, cylinders and cones and add them, or measure it by displacement: lower it into a measuring jug of water and read how much the level rises. 1 mL of rise is 1 cm³ of object.
What is the difference between volume and capacity?
Volume is the space an object takes up; capacity is how much a container holds, usually in litres or gallons. For a thin-walled container they are about the same, so the inside measurements give the capacity.