Volume is the amount of space a 3D object takes up. You need it to fill a fish tank, order concrete, size a storage box or work out how much a container holds. Our volume calculator covers the five most common solids and also gives each shape's surface area. This guide sets out every formula with a worked example and shows how to turn cubic units into litres or gallons.
How to use the calculator
- Shape: cube, box, cylinder, sphere or cone.
- Side / length / radius: the side of a cube, the length of a box, or the radius of a round shape.
- Width or height: the width of a box, or the height of a cylinder or cone.
- Height (box only).
The default is a cylinder with radius 3 and height 10. Its volume is 282.74 and its surface area is 245.04 cubic and square units.
Formulas for each shape
| Shape | Volume | Surface area |
|---|---|---|
| Cube (side s) | s³ | 6s² |
| Box (l, w, h) | l × w × h | 2(lw + lh + wh) |
| Cylinder (r, h) | πr²h | 2πr² + 2πrh |
| Sphere (r) | 4/3 πr³ | 4πr² |
| Cone (r, h) | 1/3 πr²h | πr² + πr√(r² + h²) |
Worked examples
Cube, side 3. Volume = 3³ = 27. Surface area = 6 × 9 = 54.
Box, 2 × 3 × 4. Volume = 2 × 3 × 4 = 24. Surface area = 2(6 + 8 + 12) = 52.
Cylinder, radius 3, height 10. Volume = π × 9 × 10 = 90π ≈ 282.74. Surface area = 2π × 9 + 2π × 3 × 10 = 18π + 60π = 78π ≈ 245.04.
Sphere, radius 3. Volume = 4/3 × π × 27 = 36π ≈ 113.10. Surface area = 4π × 9 = 36π ≈ 113.10. At radius 3, the two numbers happen to match.
Cone, radius 3, height 10. Volume = 1/3 × π × 9 × 10 = 30π ≈ 94.25, exactly a third of the cylinder with the same base and height. The slant height is √(9 + 100) ≈ 10.44, giving a surface area of about 126.67.
Converting to litres and gallons
Cubic units are not always the most useful. These conversions help:
- 1,000 cm³ = 1 litre
- 1 m³ = 1,000 litres
- 1 ft³ ≈ 7.48 US gallons ≈ 28.32 litres
- 1 US gallon = 231 in³
A fish tank 60 × 30 × 40 cm holds 72,000 cm³, which is 72 litres. A cylindrical water butt with a 30 cm radius and 90 cm height holds about 254,469 cm³, or roughly 254 litres. The volume converter handles any other units.
Practical uses
- Concrete and gravel: a slab is a box, so length × width × depth gives cubic metres or cubic yards to order. The concrete calculator and gravel calculator add waste allowances.
- Garden beds and mulch: area times depth, as in the mulch calculator.
- Packing and shipping: box volume tells you how much fits, though couriers often charge by dimensional weight instead.
- Cooking: the volume of a round cake tin is πr² × depth, useful when scaling a recipe to a different tin.
- Engines: cylinder displacement is πr² × stroke per cylinder, which is where engine sizes in litres or cc come from.
Tips for accurate results
- Use the radius, not the diameter. If you measured across a circle, halve it first.
- Keep units the same. Mixing centimetres and metres gives answers wrong by a factor of 100 or more. Convert first with the length converter.
- Measure inside dimensions for capacity, because walls take up space.
- Round at the end. Small rounding in the radius is multiplied several times in r² or r³.
Surface area versus volume
Surface area matters for painting, wrapping, insulation and heat loss. As an object gets bigger, its volume grows faster than its surface area. That is why large animals lose heat more slowly than small ones, and why crushed ice melts faster than a single block. For flat shapes, see the area calculator; for surface area of more solids, see the surface area calculator.
Frequently asked questions
What unit is volume measured in?
Cubic units: cm³, m³, in³ or ft³, matching the unit of your measurements. Liquids are often measured in litres or gallons instead.
Why is a cone's volume a third of a cylinder's?
A cone tapers to a point, and integration shows it holds exactly one third of the cylinder with the same base and height. You can check it by filling a cone three times to fill the cylinder.
How do I find the volume of an irregular object?
Submerge it in water and measure how much the water level rises. The displaced volume equals the object's volume.
Does the calculator handle hemispheres?
Not directly, but a hemisphere is half a sphere. Calculate the sphere's volume and divide by two.
Try it yourself
Run your own numbers with our free tool: Volume calculator. No sign-up, and it works on any device.