Cylinder outline marked with a radius and a height, used for the cylinder volume calculator

Cylinder Volume Calculator

Capacity in litres, US gallons and Imperial gallons for solid cylinders, pipe walls and part filled tanks

V = π r² h

r is the radius of the circular base, h is the perpendicular height, and π is 3.14159. Measuring across instead of from the centre? Use V = π D² h / 4.

Sizes entered as

Every measurement on the page uses the one unit, and the answer is converted for you. A tape measure gives you a diameter, so switch to diameter and skip the halving.

cm
cm

A drum, a water butt, a concrete column or an aquarium with a round footprint. The height has to be the perpendicular height, measured straight up the axis, not along a leaning side.

cm
cm
cm

Two different questions come out of the same three measurements. How much water the pipe carries is the bore volume, which leads the tiles. How much steel, copper or plastic the sleeve is made of is the wall volume, shown beside it.

cm
cm
cm

A tank standing on its end fills in a straight line, so the liquid is simply a shorter cylinder: V = π r² f. Half the depth really is half the capacity.

cm
cm
cm

A tank lying on its side does not fill in a straight line. Drop a dipstick, enter the wet depth, and the matching row of the depth table below is highlighted for you.

Solid cylinder V = π r² h
Litres35.34 L
US gallons9.34
Imperial gallons7.77
Volume35,342.92 cm³
Base area706.86 cm²
Lateral surface4,712.39 cm²
Total surface6,126.11 cm²
WorkingV = π r² h = π × 15² × 50 = 35,342.92 cm³, which is 35.34 litres.

Working the four modes

Pick the mode that matches the object in front of you, then measure once in a single unit.

  1. 1Choose Solid for a drum, a column or an aquarium, Hollow for a pipe or sleeve, or one of the tank fill modes when the vessel is only part full.
  2. 2Set the unit once. Millimetres and metres suit pipework and site tanks, inches and feet suit US trade sizes.
  3. 3Switch Radius to Diameter if that is what your tape measured, so nothing is halved by hand.
  4. 4For capacity, measure the inside of the vessel. An outside measurement on a thick walled tank overstates what it will hold.
  5. 5Read litres, US gallons and Imperial gallons first, with the cubic figure, base area and surface areas underneath.

Depth versus capacity in a horizontal tank

Depth measured as a share of the tank diameter, turned into a share of full capacity. Length and units cancel out, so one table serves every horizontal cylinder. Use it as a dipstick chart.

Depth of diameterOf full capacityHow it reads
5%1.9%Far less than it looks
10%5.2%Far less than it looks
20%14.2%Below the depth
25%19.6%Below the depth
30%25.2%Below the depth
40%37.4%Below the depth
50%50.0%Exactly half full
60%62.6%Above the depth
70%74.8%Above the depth
75%80.4%Above the depth
80%85.8%Above the depth
90%94.8%Above the depth
95%98.1%Above the depth

Computed from the circular segment formula and cross checked against the published liquid level chart, which agrees at 10, 25, 50 and 75 percent. The curve is symmetrical: whatever a quarter depth reads, three quarters depth reads the same amount short of full.

Cubic units into litres and gallons

The four conversions this page uses, stated as numbers. US and Imperial gallons are not the same thing and the gap is over 20 percent, so both are always labelled.

MeasurementLitresUS gallonsImperial gallons
1,000 cm³10.26420.2200
1 m³1,000264.17219.97
1 in³0.016390.0043290.003605
1 ft³28.3177.48056.2288
1 US gallon3.7854110.8327
1 Imperial gallon4.546091.20101

A US gallon is 231 in³ and an Imperial gallon is 277.42 in³, which is why a 50 gallon drum means two different things on either side of the Atlantic.

Litres per metre of pipe by bore

Pipe capacity reduces to a constant per bore size, so a 40 m run is one multiplication rather than a calculation. Bores are actual internal sizes, not nominal trade labels, so check your pipe before you trust the row.

BoreBore in inchesLitres per metreUS gallons per foot
15 mm0.590.1770.0142
22 mm0.870.3800.0306
25 mm0.980.4910.0395
28 mm1.100.6160.0496
32 mm1.260.8040.0648
40 mm1.571.2570.1012
50 mm1.971.9630.1581
75 mm2.954.4180.3557
100 mm3.947.8540.6324
150 mm5.9117.6711.4229
300 mm11.8170.6865.6916

Every row is π d² / 4000 litres per metre with the bore in millimetres. A 1 km main at 300 mm bore therefore holds about 70,686 litres.

Guide

Cylinder volume, from the formula to what the tank actually holds

Solid cylinders, pipe walls and bores, part filled tanks, and the depth chart that turns a dipstick reading into litres.

Most people looking for the volume of a cylinder are not sitting an exam. They are standing beside a drum, a water butt, a heating oil tank or a coil of pipe, and the real question is how much it holds. This page answers the geometry and the capacity together: the cubic figure first, then litres, US gallons and Imperial gallons labelled separately, because a gallon means two different amounts depending on which side of the Atlantic you are standing on.

The cylinder volume formula

V = π r² h. Multiply pi by the radius squared, then multiply by the height. The π r² part is the area of the circular base, and multiplying by the height stacks that base all the way up the cylinder. The radius runs from the centre of the circle to its edge, the height is the perpendicular height measured straight along the axis, and pi is 3.14159.

Almost nobody measures a radius in the real world. A tape measure gives you the distance straight across, so the form you will reach for more often is V = π D² h / 4, where D is the diameter. A cylinder 10 cm across and 20 cm tall holds π × 100 × 20 / 4, which is 1,570.8 cm³. Both forms give the same answer. The second just saves you halving anything by hand.

A cubic figure is not the answer, capacity is

A volume in cubic centimetres is correct and almost useless. Divide cubic centimetres by 1,000 to get litres. Multiply cubic metres by 1,000 to get litres. One cubic metre is about 264.17 US gallons or 219.97 Imperial gallons. One cubic foot is 1,728 cubic inches, which is about 7.48 US gallons or 6.23 Imperial gallons. One US gallon is 3.78541 litres and one Imperial gallon is 4.54609 litres, a gap of roughly 20 percent, which is why nothing on this page is ever labelled with a bare word gallons.

Three capacity examples worked through

A rainwater butt 1 m in diameter and 2 m tall has a radius of 0.5 m, so V = π × 0.25 × 2 = 1.571 m³. That is about 1,571 litres, or 415 US gallons, or 345 Imperial gallons.

A tank 36 inches in diameter and 72 inches long has a radius of 18 inches, so V = π × 324 × 72 = 73,287 in³. Divide by 231 and it holds 317.26 US gallons, which is 264.2 Imperial gallons or 1,201 litres.

A water main of 300 mm bore running 1 km has a radius of 0.15 m, so V = π × 0.0225 × 1,000 = 70.7 m³, or 70,686 litres. That is the volume somebody has to drain before anyone cuts into it.

Hollow cylinders: the wall and the bore

A pipe, a tube, a sleeve or a thick walled jar is a cylinder with a smaller cylinder taken out of the middle. The wall volume, meaning the material itself, is V = π (R² - r²) h, where R is the outer radius and r is the inner radius. An outside diameter of 8 cm with a 4 cm bore over a 12 cm length gives π × (16 - 4) × 12, which is 452.4 cm³ of material.

If you know the bore and the wall thickness rather than the outside size, substitute R = r + t and the formula becomes V = π (t² + 2tr) h. The middle term is a plus, not a minus, because that is how the difference of two squares expands. Some published versions of this formula carry a minus there and they do not reproduce their own worked answers, so check any version you meet against a number you already trust.

Here is the part nobody states plainly: those same three measurements answer two completely different questions. A plumber asking how much water is inside the pipe wants the bore volume, π r² h, which for that example is 150.8 cm³. A fabricator asking how much steel is in the sleeve wants the wall volume, 452.4 cm³. Add the two together and you get the outer volume, 603.2 cm³. The hollow mode above shows all three at once and leads with the bore, because the bore is what a capacity question is really asking about.

How much water a length of pipe holds

Pipe capacity collapses into a constant once the bore is fixed, because the length is only a multiplier. Litres per metre is π d² / 4000 with the bore in millimetres, so a 15 mm bore carries 0.177 litres per metre and a 50 mm bore carries 1.963 litres per metre. Forty metres of 22 mm pipe therefore holds 40 × 0.38, which is about 15.2 litres. The lookup table above removes the arithmetic altogether. Take the bore from the pipe itself rather than from the label on the box, because nominal trade sizes and true internal bores rarely agree.

Part filled tanks, standing up and lying down

Standing on its end, a tank is easy. The liquid is simply a shorter cylinder, so V = π r² f with f as the liquid depth. Fill it to 65 percent of its height and it holds 65 percent of its capacity. Nothing surprising happens.

Lying on its side, the very same tank behaves completely differently, and this is where most estimates go wrong. The wet end of the tank is a circular segment rather than a rectangle, so the volume becomes V = L [ R² arccos((R - d) / R) - (R - d) √(2Rd - d²) ], where L is the length, R is the radius and d is the measured depth.

What that means in practice is that a dipstick misleads you at both ends of its range. A quarter of the diameter deep is only 19.6 percent of capacity. Three quarters deep is 80.4 percent. Half full really is half full, because the barrel is symmetrical, but that is true at exactly one point on the scale. The depth table above is the whole curve, and because the length and the units cancel out, the same percentages hold for a 200 litre drum and for a 30,000 litre farm tank.

Inside diameter or outside diameter

Capacity always uses the inside. It sounds obvious and it is missed constantly, because the outside of a tank is usually the only part a tape measure can reach. The error grows with the square of the diameter, so it is bigger than it feels. A tank 1 m in outside diameter with 25 mm walls has a bore of 0.95 m, and 0.95 squared divided by 1 squared is 0.9025, so it holds 90.25 percent of what the outside measurement suggests. On a nominal 1,000 litre tank that is nearly 100 litres of capacity that was never there. For a structural question, such as how much concrete a round column needs, the outside measurement is the correct one.

Five ways a cylinder calculation goes wrong

  • Using the diameter where the radius belongs. This quadruples the answer, because the radius is squared. Switching the calculator above into diameter mode makes it impossible.
  • Mixing units inside one calculation. A radius in centimetres with a height in metres produces a number that means nothing at all. Convert everything first, then calculate.
  • Measuring a leaning cylinder along its side. An oblique cylinder still uses V = π r² h, but h has to be the perpendicular height between the two circular ends, never the length of the slanting side.
  • Dropping the unit. An answer of 1,570.8 is not an answer. It is 1,570.8 cm³, and it is the cubic unit that lets you convert to litres afterwards.
  • Assuming a tank on its side fills evenly. It does not, and the depth table above shows by how much.

Surface area, or the label unrolled

Peel the label off a tin and it is a rectangle, as tall as the cylinder and as wide as the circumference. That is the lateral surface area, 2 π r h, and it is the figure you want for wrapping, cladding, lagging or painting the side of something. Add the two circular ends and the total surface area is 2 π r (r + h). For a drum of 15 cm radius and 50 cm height, the side alone is 4,712 cm² and the full skin is 6,126 cm². Paint coverage is quoted per square metre, so divide by 10,000 before you read the tin.

Where cylinder volume turns up

Engine displacement is a cylinder calculation wearing overalls: the swept volume of one piston is pi times the bore radius squared times the stroke, and multiplying by the number of cylinders gives the engine size. Aquarium capacity, drum and barrel capacity, the water sitting in a borehole or a culvert, and the concrete in a round column or a pier footing all come back to the same formula.

If your vessel tapers to a point rather than running straight up, the cone volume calculator handles that case. For other solids, start at the volume calculator. For a round column of concrete there is the concrete calculator, and for the circle underneath all of this, the area calculator.

FAQ

Frequently Asked Questions

How do I find the volume of a cylinder if I only measured the diameter?

Halve the diameter to get the radius and use V = π r² h, or skip the halving with V = π D² h / 4. A cylinder 10 cm across and 20 cm tall gives π × 100 × 20 / 4 = 1,570.8 cm³. Switching the calculator above into diameter mode does this for you, which also removes the single most common error on this calculation: feeding a diameter into a formula that wants a radius quadruples the answer.

How do I convert cylinder volume into litres, US gallons and Imperial gallons?

Divide cubic centimetres by 1,000 for litres, or multiply cubic metres by 1,000. From there, one US gallon is 3.78541 litres and one Imperial gallon is 4.54609 litres. One cubic metre is 264.17 US gallons or 219.97 Imperial gallons. One cubic foot is 7.48 US gallons or 6.23 Imperial gallons. The two gallons differ by about 20 percent, so a figure labelled only gallons is worth nothing. The calculator shows both, labelled.

How do I work out the volume of a hollow cylinder or a pipe wall?

Take the volume of the outer cylinder and subtract the bore: V = π (R² - r²) h, with R the outer radius and r the inner radius. An 8 cm outside diameter with a 4 cm bore over 12 cm of length gives π × (16 - 4) × 12 = 452.4 cm³ of material. If you know the wall thickness t instead of the outside size, the same answer comes from V = π (t² + 2tr) h. That middle term is a plus, because R² - r² expands to t² + 2tr when R = r + t.

Should I calculate the bore volume or the wall volume?

It depends which question you are asking, and they are different numbers from the same three measurements. How much water the pipe carries is the bore volume, π r² h. How much material the pipe is made of is the wall volume, π (R² - r²) h. For an 8 cm outside diameter, 4 cm bore and 12 cm length, the bore holds 150.8 cm³ and the wall contains 452.4 cm³, which together make the outer volume of 603.2 cm³. The hollow mode shows all three and leads with the bore.

How much liquid is in a part filled vertical tank?

A tank standing on its end fills in a straight line, so the liquid is just a shorter cylinder: V = π r² f, where f is the depth of the liquid. Fill a 100 cm tall tank to 65 cm and it holds 65 percent of its capacity, no curve involved. Measure the depth from the inside floor of the tank, not from a rim or a collar, or the reading will run high.

How do I work out the liquid in a part filled horizontal tank?

The wet end of a tank lying on its side is a circular segment, so use V = L [ R² arccos((R - d) / R) - (R - d) √(2Rd - d²) ], with L the length, R the radius and d the measured depth. It is not linear: a quarter of the diameter deep is 19.6 percent of capacity, half depth is exactly 50 percent, and three quarters deep is 80.4 percent. The depth table on this page is the full curve, and it works for any horizontal cylinder because the length and the units cancel out.

Should I measure the inside or the outside diameter of a tank?

The inside, every time, for a capacity question. The error grows with the square of the diameter, so it is larger than it looks. A tank 1 m in outside diameter with 25 mm walls has a 0.95 m bore, and 0.95² divided by 1² is 0.9025, so its real capacity is 90.25 percent of what the outside measurement implies. Use the outside measurement only for a structural question, such as the concrete in a round column.

How do I find the height of a cylinder when I know the volume?

Rearrange V = π r² h into h = V / (π r²). A volume of 1,600 cm³ with a 9 cm radius gives 1,600 / (π × 81), which is 6.29 cm. Keep pi at full precision rather than rounding it to 3.14 partway through, because rounding pi early is one of the quiet ways a reverse solve drifts away from the right answer.

How do I find the radius when I know the volume and the height?

Rearrange to r = √(V / (π h)). A volume of 1,400 cm³ with a height of 15 cm gives √(1,400 / 47.12), which is 5.45 cm, so the diameter is 10.9 cm. The square root is the step people forget: dividing the volume by pi and the height leaves you with r squared, not r.

Does the formula still work if the cylinder is slanted?

Yes. An oblique cylinder, one whose ends are offset so it leans, has exactly the same volume as an upright cylinder with the same base and the same perpendicular height, so V = π r² h still holds. The catch is what you measure: h is the straight vertical distance between the two circular ends, never the length of the leaning side. Measure along the slant and the answer comes out too large.

How much water fits in a length of pipe?

Work out litres per metre once, then multiply by the run. With the bore in millimetres, litres per metre is π d² / 4000, so 15 mm carries 0.177 litres per metre, 22 mm carries 0.380 and 50 mm carries 1.963. A 40 m run of 22 mm pipe therefore holds about 15.2 litres. The table on this page lists the common bores. Use the true internal bore, because nominal pipe sizes are labels rather than measurements.