Cylinder volume formula
with the diameter: V = π · d² · h ÷ 4
π ≈ 3,14159
Cylinder volume formula
The volume of a cylinder is the space it takes up, in other words how much it can hold. You get it by multiplying the area of the circular base by the height: the base area is π · r², so the volume is V = π · r² · h.
If you know the diameter and not the radius, divide the diameter by 2 or use V = π · d² · h ÷ 4 directly. The result is the same. All the other formulas (area, surface, inverse formulas) are collected on the cylinder formulas page.
The same formula applies to engines: each cylinder has the bore as its diameter and the piston stroke as its height, and that is where the engine displacement calculation comes from.
Radius and height need the same unit: with centimeters you get cm³, with meters you get m³. The calculator accepts a different unit for each measurement and converts on its own.
Inverse formulas
Height from the volume: h = V ÷ (π · r²). Radius from the volume: r = √(V ÷ (π · h)).
How to calculate the volume of a cylinder
You calculate the volume of a cylinder in three steps: find the radius, work out the area of the circular base, and multiply it by the height.
Measure the radius
Take the diameter of the base and divide it by 2. On a pipe or a drum it's easier to measure the diameter.
Find the base area
Square the radius and multiply it by π. With r = 5 cm: 3.14159 · 25 = 78.54 cm².
Multiply by the height
Base area times height gives the volume. With h = 10 cm: 78.54 · 10 = 785.40 cm³, which is 0.785 liters.
Worked examples
Here are five complete cylinder volume calculations, from the school exercise to the tank, with all the numbers.
1. A middle school exercise. A cylinder has a radius of 5 cm and a height of 10 cm.
V = π · 5² · 10 = 3.14159 · 25 · 10 = 785.40 cm³ (0.785 liters).
2. How many liters does a drum hold? Diameter 60 cm, height 90 cm. The radius is 30 cm.
V = π · 30² · 90 = 254,469 cm³ = 254.47 liters. Every centimeter of height holds 2.83 liters.
3. Pipe (hollow cylinder). Outer radius 5 cm, inner radius 4 cm, length 100 cm.
V = π · 100 · (5² − 4²) = π · 100 · 9 = 2,827.43 cm³ of material. Multiplying by the density of steel (7.85 g/cm³), the pipe weighs about 22.2 kg. For commercial pipes with diameter and wall thickness in mm, use the steel pipe weight calculator.
4. Horizontal tank. Diameter 100 cm, length 200 cm, liquid 30 cm deep.
Full, it holds 1,570.80 liters, but with 30 cm of liquid there are only 396.34 liters (25.2%). That's not 30%, because a tank lying on its side is narrower at the bottom.
5. Height from the volume. You need a cylindrical container of 1,000 liters with a radius of 50 cm.
1,000 liters = 1,000,000 cm³. h = 1,000,000 ÷ (π · 50²) = 127.32 cm.
You can find more graded exercises, with liters, cones and spheres, in the cylinder problems.
Cylinder volume from other data
In exercises you often don't get the radius and height, but an area or the circumference. First you find the missing measurement, then you apply V = π · r² · h. In the calculator, choose “Volume from other data” under More options. If you need the surface instead, use the cylinder area calculator.
| Known values | First find | Example |
|---|---|---|
| Base area Ab and height h | V = Ab · h | Ab 78.54 cm², h 10 cm: V = 785.4 cm³ |
| Circumference C and height h | r = C ÷ 2π | C 31.42 cm: r ≈ 5 cm, V ≈ 785.6 cm³ |
| Lateral area Al and radius r | h = Al ÷ (2π · r) | Al 314.16 cm², r 5 cm: h = 10 cm |
| Lateral area Al and height h | r = Al ÷ (2π · h) | Al 314.16 cm², h 10 cm: r = 5 cm |
| Total area At and radius r | h = (At − 2π · r²) ÷ (2π · r) | At 471.24 cm², r 5 cm: h = 10 cm |
| Equilateral cylinder | h = 2r, so V = 2π · r³ | r 3 cm: V = 169.65 cm³ |
Volume of an oblique cylinder
An oblique cylinder has its bases shifted relative to each other, but the volume uses the same formula: V = π · r² · h. By Cavalieri's principle, two solids of the same height in which every horizontal section has the same area have the same volume: in the oblique cylinder every horizontal section is a circle equal to the base, just like in the right cylinder.
The one mistake to avoid: h is the vertical height between the two bases, not the length of the slanted side. If you know the side L and the angle θ with the base, h = L · sin θ.
Example: r = 4 cm, L = 10 cm, θ = 60°. h = 10 · sin 60° = 8.66 cm, so V = π · 16 · 8.66 = 435.31 cm³.
Cylinder, cone and sphere compared (r = 5 cm)
| Solid | Volume |
|---|---|
| Cylinder, h = 10 cm | 785.40 cm³ |
| Cone, h = 10 cm (⅓ of the cylinder) | 261.80 cm³ |
| Sphere (⅔ of the equilateral cylinder) | 523.60 cm³ |
Table: cylinder volume in liters
Liters held by a cylinder, by diameter and height, calculated with V = π · d² · h ÷ 4 and rounded to two decimals. To calculate the cylinder volume in liters online with your own measurements, use the calculator at the top, which converts automatically, and open the calibration table under the result.
| Diameter | h 10 cm | h 50 cm | h 100 cm | h 150 cm | h 200 cm |
|---|---|---|---|---|---|
| 10 cm | 0,79 | 3,93 | 7,85 | 11,78 | 15,71 |
| 20 cm | 3,14 | 15,71 | 31,42 | 47,12 | 62,83 |
| 30 cm | 7,07 | 35,34 | 70,69 | 106,03 | 141,37 |
| 40 cm | 12,57 | 62,83 | 125,66 | 188,50 | 251,33 |
| 50 cm | 19,63 | 98,17 | 196,35 | 294,52 | 392,70 |
| 60 cm | 28,27 | 141,37 | 282,74 | 424,12 | 565,49 |
| 80 cm | 50,27 | 251,33 | 502,65 | 753,98 | 1.005,31 |
| 100 cm | 78,54 | 392,70 | 785,40 | 1.178,10 | 1.570,80 |
| 120 cm | 113,10 | 565,49 | 1.130,97 | 1.696,46 | 2.261,95 |
| 150 cm | 176,71 | 883,57 | 1.767,15 | 2.650,72 | 3.534,29 |
Useful conversions
1 liter = 1 dm³ = 1,000 cm³ = 1,000 ml. 1 m³ = 1,000 liters. 1 cm³ = 1 ml. 1 US gallon = 3.785 liters; 1 UK gallon = 4.546 liters.
For the liters per meter held in a pipe, with the real sizes of copper, multilayer and steel, see the guide to the volume of a pipe.
Partly filled horizontal tank
In a tank lying on its side the liters don't grow in proportion to the level: with 30 cm of liquid in a tank 100 cm in diameter you're at 25.2%, not 30%. The calculator solves it with the circular segment formula: choose “Partly filled horizontal tank” under More options.
For measuring a real tank (inner diameter, dipstick, domed ends) and for ready-made tables for the most common diameters, see the guide to liters in a tank.
For a silo with a cone hopper and the weight in metric tons, use the silo volume guide. For rainwater, read how many liters the tank needs.
Practice: a random exercise
Try to solve it on your own, then check. Using π = 3.14 is fine: the check accepts a small rounding difference.
Press “New exercise” to start.
More cylinder calculators
Cylinder area
Base area, lateral area and total area, with the surface in cm² and m².
Cylinder formulas
All the formulas, direct and inverse, with a solver that finds any measurement from two values.
Liters in a tank
How many liters are in a diesel tank, vertical or horizontal, plus a table to print.
Steel pipe weight
Kilograms per meter of pipes and round bars in steel, stainless steel and aluminum, from diameter and thickness.
Engine displacement
Engine displacement in cc from bore, stroke and number of cylinders.
Cm³ to liters
Convert cm³, cc and ml to liters and back, with a table of the most used values.