Cylinder Volume Calculator
Enter the radius or diameter and the height in any units. The calculator returns the volume instantly in cubic units, litres or gallons, and shows V = π r² h worked out in front of you.
- ✓ Radius or diameter input
- ✓ Mixed units welcome
- ✓ Formula shown live
— cm³
Enter the values above — the volume updates instantly.
Quick answer: the volume of a cylinder is
V = π r² h — pi times the radius squared times the height.
If you have the diameter instead, halve it first (or use
V = π d² h / 4). Measurements in feet give cubic feet;
multiply by 7.4805 for US gallons.
The cylinder volume formula, step by step
A cylinder is a circle extended straight upward, so its volume is the area of that circle multiplied by the height:
V = π r² h · π ≈ 3.14159 · r = radius of the circular end · h = height (or length)
Worked example: a cylinder with radius 3 and height 5:
- Square the radius: 3² = 9
- Multiply by π: 9 × 3.14159 = 28.274 (that's the base circle's area)
- Multiply by the height: 28.274 × 5 = 141.37 cubic units
The units follow your measurements: centimetres in, cm³ out; feet in, ft³ out. Because the radius is squared, it dominates the result. A cylinder twice as wide holds four times as much, while one twice as tall holds only twice as much — that's why a short, wide tank so often out-holds a tall, narrow one that looks bigger.
How to use this calculator
- Choose Radius or Diameter in the first field's menu. Pipes, tanks and drums are usually labelled by diameter; the calculator halves it for you.
- Enter the height — or the length, if the cylinder is lying on its side. Its unit can differ from the radius unit.
- Pick your output unit. Cubic feet for construction, litres for lab work, gallons for tanks. Switching converts the same result, with no re-entry.
- Verify with the formula bar, which shows your numbers substituted into V = π r² h, ready to copy into homework or a work order.
Useful variants
Find the height from the volume
Use h = V ÷ (π r²). A 2-litre (2,000 cm³) jug 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. A pipe 10 cm across the outside, 8 cm
across the inside, 1 m long, contains π × (25 − 16) × 100 =
2,827 cm³ of material. The space inside that same pipe
holds π × 16 × 100 ≈ 5.03 litres.
Oblique (slanted) cylinder
A leaning cylinder 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 side.
Cylinder capacity by diameter: quick reference
Contractors and tank owners often just need "how much per foot of height". This table gives the volume of one vertical foot of cylinder at common diameters:
| Diameter | ft³ per ft of height | US gal per ft | Litres per ft |
|---|---|---|---|
| 1 ft (12 in) | 0.785 | 5.88 | 22.24 |
| 2 ft (24 in) | 3.142 | 23.50 | 88.96 |
| 3 ft (36 in) | 7.069 | 52.88 | 200.2 |
| 4 ft (48 in) | 12.566 | 94.00 | 355.8 |
| 5 ft (60 in) | 19.635 | 146.9 | 556.0 |
| 6 ft (72 in) | 28.274 | 211.5 | 800.6 |
| 8 ft (96 in) | 50.265 | 376.0 | 1,423 |
| 10 ft (120 in) | 78.540 | 587.5 | 2,224 |
Multiply the per-foot figure by your cylinder's height. A 4-ft-diameter tank standing 6 ft tall holds 94.00 × 6 ≈ 564 gallons.
Where cylinder volume shows up in real life
Sizing a rain barrel or drum
A standard 55-gallon drum measures about 22.5 in across and 33.5 in tall. Check it: r = 11.25 in, so V = π × 11.25² × 33.5 ≈ 13,320 in³, and at 231 in³ per gallon that's 57.7 gallons — the "55" is the nominal fill, with headspace left on top.
Water in a length of pipe
Pipe is just a long, thin cylinder. A 100-ft run of 2-inch (inside diameter) pipe: r = 1 in = 0.0833 ft, so V = π × 0.00694 × 100 ≈ 2.18 ft³ ≈ 16.3 gallons.
Concrete in a round footing
A sonotube 12 in across and 4 ft deep: r = 0.5 ft, so V = π × 0.25 × 4 = 3.14 ft³ ≈ 0.116 cubic yards — roughly five 80-lb bags of concrete per tube.
Common mistakes & pro tips
- Diameter entered as radius. The classic. It inflates the result 4×. If the number came off a label or a tape measure across the top, it's almost certainly a diameter — use Diameter mode.
- Mixed units without converting. A radius in inches and a height in feet can't go into the formula together. This calculator converts per field automatically; on paper, convert everything to one unit first.
- Measuring the outside of a container. For capacity, measure inside dimensions and subtract twice the wall thickness from the outer diameter.
- Pro tip: no ruler across a tank? Wrap a tape around it: radius = circumference ÷ 2π. A tank measuring 12.57 ft around has a radius of exactly 2 ft.
- Pro tip: partial fills aren't proportional on their side. A horizontal tank at a quarter of its diameter holds ~20% of capacity, not 25%.
Three worked examples you can reproduce
Numbers make a formula easier to trust than words alone. The three cases below use deliberately different scales — a small value, a fractional value and a large round value — so you can see how the answer scales and confirm that the calculator behaves the same way your hand calculation does. Each row lists the inputs as typed, the substituted formula, and the volume the tool reports.
| Case | Inputs | Substitution | Volume |
|---|---|---|---|
| Set 1 | l=2cm, w=3cm, h=4cm, r=5cm | V = π × 5² × 4 | 314.2 cm³ |
| Set 2 | l=1.5cm, w=2.5cm, h=3.2cm, r=4.1cm | V = π × 4.1² × 3.2 | 169 cm³ |
| Set 3 | l=6cm, w=8cm, h=10cm, r=12cm | V = π × 12² × 10 | 4,523.9 cm³ |
Compare case 1 with case 3: when every dimension is multiplied by the same factor, a length-based answer grows by that factor, an area-based answer by its square, and a volume-based answer by its cube. This scaling rule is the fastest way to spot a misplaced decimal point. If doubling every input quadruples a volume result, something has been entered or read as an area; if it leaves the answer unchanged, a field is being ignored.
Reproduce at least one of these examples by hand before using the tool on real measurements. Enter the exact same numbers, confirm that the live formula line shows the substitution you expect, and only then replace them with your own data. A calculator is only as reliable as the understanding of which number belongs in which box.
Try reversing one of the worked rows: fix the volume and solve for a dimension, then check the calculator returns your original input. This round-trip test is the single best way to build confidence in a new tool, because it exercises the formula in both directions and exposes any misunderstanding of which symbol stands for which measurement before real data is at stake.
A useful discipline is to keep a single "home" unit for all your records and convert only when a result is consumed. Store every measurement in one consistent system so two jobs can be compared directly and summed without conversion arithmetic at the comparison stage. Note the home unit in your notes: a spreadsheet column labelled only with a number is a liability, while one labelled with its unit is an asset that survives handover.
Frequently asked questions
How do you find the volume of a cylinder with the diameter?
Divide the diameter by 2 to get the radius, then apply V = π r² h. Equivalently, V = π d² h / 4. For example, a cylinder 10 cm across and 20 cm tall holds π × 5² × 20 = 1,570.8 cm³. The calculator above has a Diameter mode that does the halving for you.
How do I calculate cylinder volume in gallons?
Compute the volume in cubic feet with V = π r² h (dimensions in feet), then multiply by 7.4805 gallons per cubic foot. A tank 2 ft in radius and 5 ft tall holds π × 4 × 5 = 62.83 ft³ ≈ 470 US gallons. Or simply select US gal as the output unit above.
How many litres are in a cylinder?
Work in centimetres: V = π r² h gives cubic centimetres, and 1,000 cm³ = 1 litre. A cylinder with a 10 cm radius and 30 cm height holds π × 100 × 30 = 9,424.8 cm³ ≈ 9.42 litres.
What if I only know the circumference?
Divide the circumference by 2π (≈ 6.2832) to get the radius, then use V = π r² h. A tree trunk measuring 62.8 inches around has a radius of 62.8 ÷ 6.2832 ≈ 10 inches. Wrapping a tape around is often the most practical way to measure pipes, tanks and logs.
Does it matter if the cylinder is lying on its side?
Not for total volume — orientation does not change how much a cylinder holds, so use its length as h. It matters enormously for partial fills though: a horizontal tank filled to half its diameter is exactly half full, but at a quarter of its diameter it holds only about 20% of capacity.
What is the volume of a cylinder with radius 3 and height 5?
V = π × 3² × 5 = π × 45 = 141.37 cubic units. In centimetres that is 141.37 cm³; in feet it is 141.37 ft³, which is about 1,057.6 US gallons.
How do you find the volume of a hollow cylinder?
Subtract the inner cylinder from the outer one: V = π (R² − r²) h. A tube with a 5 cm outer radius, a 4 cm inner radius and a 100 cm length contains π × 9 × 100 = 2,827 cm³ of material.
How do I find the height of a cylinder from its volume?
Divide the volume by the base area: h = V ÷ (π r²). A 2,000 cm³ container with a 6 cm radius stands 2,000 ÷ 113.1 ≈ 17.7 cm tall. Keep the volume and radius in matching units.