# Volume Calculator

> Calculate the volume of a cube, box, cylinder, sphere, cone, pyramid and more in any unit. Clear formulas and worked examples. Free volume calculator.

URL: https://allincalculators.com/volume-calculator/

Pick a shape, enter its sizes in any unit, and get the volume in cubic units, litres, gallons and cubic feet, plus the surface area and the working.

Measurements in

Volume–

Table of Contents
- [1Volume Calculator for 14 Shapes](#volume-calculator-for-14-shapes)

- [2How to Use the Volume Calculator](#how-to-use-the-volume-calculator)

- [3Volume Formulas for Every Shape](#volume-formulas-for-every-shape)

- [4Converting Volume to Litres and Gallons](#converting-volume-to-litres-and-gallons)

- [5Worked Examples](#worked-examples)

- [6Tips for Accurate Results](#tips-for-accurate-results)

- [7Volume vs Capacity vs Surface Area](#volume-vs-capacity-vs-surface-area)

- [8Frequently Asked Questions](#frequently-asked-questions)

- [9Related Calculators](#related-calculators)

## Volume Calculator for 14 Shapes

Volume is how much space a solid takes up, or how much a container can hold. You might need it for a fish tank, a raised garden bed, a water butt, a concrete pour or a geometry worksheet.
The awkward part is that every shape has its own formula, and the answer often has to end up in a different unit from the one you measured in. This volume calculator handles both.
Pick the shape, type the sizes in millimetres, centimetres, metres, inches, feet or yards, and you get the volume in cubic units plus litres, millilitres, cubic metres, cubic feet, cubic inches, cubic yards, US gallons and UK gallons.

It also gives the surface area, the exact answer in terms of π where there is one (handy for maths homework), and the working, so you can see exactly which numbers went into the formula.

## How to Use the Volume Calculator

- **Pick the shape.** There are 14: cube, box (cuboid or rectangular prism), cylinder, sphere, cone, pyramid, triangular prism, capsule, hemisphere, frustum, ellipsoid, tube or pipe, spherical cap and torus.

- **Choose your unit.** All the measurements must be in the same unit. If you measured a tank in inches, keep everything in inches.

- **Radius or diameter?** For round shapes you can switch the input to diameter, which is easier to measure across the top of a pot or tank. The calculator halves it for you.

- **Read the results.** The big figure is in cubic units of what you entered. The boxes underneath convert it to litres, gallons and other units.

## Volume Formulas for Every Shape

Shape | Volume formula | What the letters mean |

Cube | V = a³ | a = side length |

Box (cuboid) | V = l × w × h | length, width, height |

Cylinder | V = π r² h | r = radius, h = height |

Sphere | V = 4/3 π r³ | r = radius |

Hemisphere | V = 2/3 π r³ | half a sphere |

Cone | V = 1/3 π r² h | r = base radius, h = height |

Pyramid | V = 1/3 × l × w × h | rectangular base, h = height |

Triangular prism | V = triangle area × length | triangle area from its three sides (Heron’s formula) |

Capsule | V = π r² (4/3 r + h) | h = straight middle length |

Frustum | V = 1/3 π h (R² + Rr + r²) | R, r = bottom and top radius |

Ellipsoid | V = 4/3 π a b c | a, b, c = semi-axes |

Tube / pipe | V = π/4 (D² − d²) L | D, d = outer and inner diameter |

Spherical cap | V = 1/3 π h² (3R − h) | R = sphere radius, h = cap height |

Torus | V = 2 π² R r² | R = ring radius, r = tube radius |

A pattern worth spotting: any shape that comes to a point (cone, pyramid) holds exactly one third of the matching straight-sided shape (cylinder, box) with the same base and height.
And a sphere holds two thirds of the cylinder that would fit snugly around it, which Archimedes worked out over 2,000 years ago.

## Converting Volume to Litres and Gallons

Most real-world questions end in litres or gallons, not cubic centimetres. These are the conversions the calculator uses:

From | Equals |

1 cubic centimetre (cm³) | 1 millilitre (mL) |

1,000 cm³ | 1 litre |

1 cubic metre (m³) | 1,000 litres |

1 cubic foot (ft³) | 28.317 litres |

1 cubic yard (yd³) | 27 ft³ = 764.55 litres |

1 US gallon | 231 in³ = 3.785 litres |

1 UK (imperial) gallon | 4.546 litres |

1 m³ | 264.17 US gallons or 219.97 UK gallons |

Watch the gallon. A US gallon is about 17% smaller than a UK gallon, so a 50-gallon water butt from a British garden centre holds more than a 50-gallon drum from an American one. The calculator shows both.

## Worked Examples

### Raised garden bed

A bed 2.5 m long, 0.8 m wide and filled 0.3 m deep holds 2.5 × 0.8 × 0.3 = **0.6 m³**, which is 600 litres of soil.
Compost is often sold in 50 or 60 litre bags, so that’s 10 to 12 bags.

### Aquarium in gallons

A tank measuring 48 × 13 × 21 inches has a volume of 13,104 in³. Divide by 231 and you get **56.7 US gallons**, or about 214.7 litres.
Real tanks hold a little less once you allow for glass thickness and gravel.

### Water tank (cylinder)

A round tank 30 cm across and 60 cm tall has a radius of 15 cm. V = π × 15² × 60 = 13,500π ≈ **42,412 cm³**, or 42.4 litres.

### Football (sphere)

A size 5 football is about 22 cm across, so the radius is 11 cm. V = 4/3 × π × 11³ ≈ **5,575 cm³**, just under 5.6 litres of air.

### Bucket (frustum)

A bucket 24 cm across the bottom, 30 cm across the top and 30 cm tall holds 1/3 × π × 30 × (15² + 15 × 12 + 12²) ≈ 17,247 cm³, or **17.2 litres**.
Treating it as a plain cylinder would be well off.

### Water in a pipe

A hose or pipe with a 2 inch inside diameter and 50 ft long holds π × 1² × 600 ÷ 231 ≈ **8.16 US gallons**.
Use the tube shape: the “volume inside” box gives the water it holds, and the main figure gives the volume of the pipe wall.

### Concrete in cubic yards

A 12 × 10 ft slab, 4 inches thick, is 12 × 10 × (4 ÷ 12) = 40 ft³. Divide by 27 for **1.48 cubic yards**. For slabs, footings and steps, the [Concrete Calculator](/concrete-calculator/) also adds waste and bag counts.

## Tips for Accurate Results

- **Measure the inside** of a container if you want its capacity. Measure the outside if you want the space it takes up.

- **Don’t mix units.** 2 m × 50 cm × 30 cm has to become 200 × 50 × 30 cm (or 2 × 0.5 × 0.3 m) first.

- **Radius is half the diameter.** Using the full diameter in r² makes the answer four times too big. That’s the most common volume mistake.

- **Odd shapes can be split.** An L-shaped pond is two boxes. A silo is a cylinder plus a cone. Work each part out and add them.

- **Height means straight up,** not along the slope, for cones and pyramids.

## Volume vs Capacity vs Surface Area

**Volume** is the space a 3D shape occupies, measured in cubic units. **Capacity** is how much a container can hold, usually in litres or gallons; for a thin-walled container they’re the same number in different units.
**Surface area** is the total area of the outside, in square units. You need it for paint, wrapping or insulation, not for filling.
The calculator gives both, and for an ellipsoid the surface area is a very close approximation, because no exact simple formula exists.

## Frequently Asked Questions

### How do I find the volume of a box?

Multiply length × width × height. A box 30 × 20 × 15 cm is 9,000 cm³, which is 9 litres.

### How do I find the volume of a cylinder in litres?

Work out π × r² × h in centimetres, then divide by 1,000. Or work in decimetres (10 cm): 1 dm³ is exactly 1 litre.

### Why is a cone one third of a cylinder?

If you fill a cone and pour it into a cylinder with the same base and height, it takes exactly three cones to fill it. Calculus proves it, and it works for pyramids against boxes too.

### How many litres is a cubic foot?

One cubic foot is 28.317 litres, or about 7.48 US gallons.

### What does “exact in terms of π” mean?

Maths teachers often want answers like 250π cm³ instead of 785.4 cm³, because that keeps the answer exact. The calculator shows that form under the main result for round shapes.

### Can I use it for a partly filled tank?

For an upright box or cylinder, just enter the depth of the liquid as the height. For a sphere or a lying-down cylinder the maths is different.
The spherical cap shape gives the liquid in a round-bottomed bowl or tank, filled to depth h.

## Related Calculators

- [Cubic Feet Calculator](/cubic-feet-calculator/)

- [Surface Area Calculator](/surface-area-calculator/)

- [Concrete Calculator](/concrete-calculator/)

- [Gravel Calculator](/gravel-calculator/)

- [Mulch Calculator](/mulch-calculator/)

- [Circle Calculator](/circle-calculator/)

- [ML to OZ Converter](/ml-to-oz-converter/)

## Link to this calculator

Teacher, blogger or student? Share this free Volume Calculator with your readers or class by pasting this code into your website:

---
The interactive calculator runs in the browser at https://allincalculators.com/volume-calculator/
