Cylinder Volume Calculator
Work out how much a cylinder holds from any pair of measurements. Enter the radius, diameter or a tape-wrapped circumference together with the height or length, pick your output unit, and see the volume plus the substituted formula.
Formula: V = π r² h
The cylinder volume formula, step by step
A cylinder is a stack of identical circular discs. Its volume is the area of one circular face multiplied by how far the shape extends: V = πr²h, where r is the radius of the circular end and h is the perpendicular height or length. Square the radius first, multiply by π to get the base area, then multiply by the height to get the volume.
Working an example: a cylinder with a 5 cm radius and a 10 cm height has a base area of π × 25 = 78.54 cm². Multiplied by 10 cm, the volume is 785.4 cm³, which is just under 0.8 litres. The same logic works no matter the units as long as radius and height share a unit - if they do not, convert one of them before multiplying, or use the unit selectors in the calculator above, which handle conversion for you.
If you measure across the circle instead of to its centre, you have the diameter d. The radius is d ÷ 2, so the formula becomes V = πd²h ÷ 4. Squaring the diameter and dividing by 4 is mathematically identical to squaring the radius, so pick whichever form matches what your tape measure gives you.
How to use this calculator
- Choose what you measured. The mode selector accepts radius, diameter or circumference pairs - including reverse modes where you know the volume and want a missing dimension.
- Type the two values with their units. Each measurement keeps its own unit selector, so a diameter in inches and a height in feet is fine.
- Read the volume in the panel. The headline shows litres and cubic metres; the table underneath lists cm³, ft³ and US gallons without re-entering anything.
- Copy the worked formula. The bar below the results substitutes your numbers into V = πr²h so you can drop it into homework, a quote or a work order.
Solve a cylinder from any two measurements
Two of a cylinder's measurements determine the rest, so the calculator doubles as a solver. Choose the pair you have - including the circumference from a tape wrapped around a drum, or a volume printed on a can label - and the tool returns every remaining dimension.
Find the height from the volume
Rearrange the formula to h = V ÷ (πr²). A 2-litre (2,000 cm³) container with a 6 cm radius needs a height of 2,000 ÷ (π × 36) = 17.7 cm. For the radius instead, use r = √(V ÷ (πh)).
Hollow cylinder (pipe or tube wall)
Subtract the inner cylinder from the outer one: V = π(R² − r²)h, with R the outer and r the inner radius. A pipe 10 cm across the outside, 8 cm across the inside and 1 m long contains π × (25 − 16) × 100 = 2,827 cm³ of material. The open space inside holds π × 16 × 100 = 5,027 cm³, or about 5 litres - the pipe volume side of that question is covered by the dedicated pipe calculator.
Oblique (slanted) cylinder
A cylinder leaning to one side holds the same volume as an upright one with the same base and perpendicular height, so V = πr²h still applies. Measure h straight up from the base, not along the slanted wall. Every horizontal slice of the solid keeps the same circular area, which is why the lean does not change capacity.
Cylinder surface area
The curved side unrolls into a rectangle 2πr wide and h tall, and the two ends add 2πr². Total surface area is 2πr(r + h). A can 7.5 cm across and 11 cm tall uses about 259 cm² of side plus 88 cm² of ends - roughly 347 cm² in all.
Cylinder capacity by diameter: quick reference
Volumes below are for cylinders 1 metre long in the listed diameter, rounded to sensible figures.
| Diameter | Volume per metre of length | Litres per metre | US gal per metre |
|---|---|---|---|
| 10 cm | 7,854 cm³ | 7.85 L | 2.07 gal |
| 20 cm | 31,416 cm³ | 31.4 L | 8.30 gal |
| 30 cm | 70,686 cm³ | 70.7 L | 18.7 gal |
| 50 cm | 196,350 cm³ | 196 L | 51.9 gal |
| 100 cm | 785,398 cm³ | 785 L | 207.5 gal |
| 12 in | 0.606 ft³/ft | 5.67 L/ft | 1.50 gal/ft |
Capacity grows with the square of the diameter, so doubling the width of a pipe or drum quadruples what it holds per unit of length. That is why a 30 cm drain moves far more water than four 15 cm drains combined, and why upsizing a tank diameter is usually more effective than making it taller.
Where cylinder volume shows up in real life
Sizing a rain barrel or drum
Standard 55-gallon drums are about 57.8 cm across and 88.9 cm tall - π × 28.9² × 88.9 ≈ 233 litres, matching the 208-litre rating once wall thickness is accounted for. When a supplier quotes a barrel only by dimensions, this formula converts them to litres so you can compare against the stated capacity.
Water in a length of pipe
Plumbers estimate how much water a line holds to size expansion tanks or antifreeze quantities: a 25 mm (1 inch) internal pipe holds about 0.49 litres per metre. Multiply by the run length, add fittings allowance of roughly 10%, and you have the fill volume.
Concrete in a round footing
A pier or post hole 30 cm across and 1.2 m deep takes π × 15² × 120 ≈ 84,823 cm³, about 0.085 m³ of concrete. Ordering in cubic metres against this figure - plus a small overage - prevents a short pour.
Common mistakes & pro tips
- Diameter used as radius. This doubles the radius and quadruples the result - the single most common error. If your number came from measuring across the circle, halve it first or switch the mode to diameter.
- Height measured along a slant. For tilted cylinders the perpendicular height, not the wall length, belongs in the formula.
- Mixed units. A radius in inches with a height in centimetres produces a nonsense number. Convert first; the calculator's per-field unit selectors prevent this entirely.
- Inside vs outside walls. For capacity use internal dimensions; for material volume subtract the inner cylinder from the outer. Tank ratings refer to internal volume.
- Forgetting ² on r. πrh (missing the square) gives an area-like number roughly a factor of r too small - sanity-check against the litre figure, not just the raw value.
Frequently asked questions
How do you find the volume of a cylinder with the diameter?
V = πd²h ÷ 4. Square the diameter, multiply by π and the height, then divide by 4. A 20 cm wide, 50 cm tall cylinder holds π × 400 × 50 ÷ 4 ≈ 15,708 cm³, or 15.7 litres.How do I calculate cylinder volume in gallons?
How many litres are in a cylinder?
What if I only know the circumference?
Does a slanted cylinder hold less?
How do I find the height if I know the volume?
h = V ÷ (πr²). Make sure V and r are in compatible units first - e.g. V in cm³ and r in cm gives h in cm. The reverse modes in the calculator handle this automatically.