How to use the cylinder volume calculator
- Pick what you're measuring: a solid cylinder, a pipe or tube, or a tank that's only partly full.
- Enter the diameter or radius and the height, each in any unit (inches, feet, yards, meters or centimeters).
- Read the volume in cubic feet, US gallons, liters, cubic meters, cubic inches and cubic yards, plus the surface area.
Cylinder volume formula
With diameter: V = π × d² × h ÷ 4
Hollow cylinder: V = π × (R² − r²) × h
Surface area = 2πr² + 2πrh
The idea is simple: the base is a circle with area πr², and the cylinder is that circle stacked up to height h. Keep every length in the same unit, and the answer comes out in that unit cubed.
Worked examples
A water tank 4 ft across and 5 ft tall
62.83 × 7.48052 = 470.0 US gallons · 62.83 × 28.3168 = 1,779 liters
A can 10 cm across and 10 cm tall
r = 5 cm, so V = π × 25 × 10 = 785.4 cm³, which is 0.785 liters (1,000 cm³ = 1 L).
The same tank lying on its side, filled 1 ft deep
Because the tank is round, 1 ft of liquid in a 4 ft tank is not a quarter full. The circular-segment formula gives 12.28 ft³, or 91.9 gallons, just 19.6% of capacity.
Unit conversions
| 1 cubic foot equals | Value |
|---|---|
| US gallons | 7.48052 |
| Liters | 28.3168 |
| Cubic inches | 1,728 |
| Cubic meters | 0.0283168 |
| Cubic yards | 0.037037 (1/27) |
Other handy facts: 1 US gallon = 231 cubic inches, and 1 liter = 1,000 cubic centimeters.
Common uses
- Concrete columns and sonotubes: find the volume in cubic feet, then convert to yards with the cubic yard calculator. Filling round holes with stone? The gravel calculator turns volume into tons.
- Tanks, drums and pools: gallons and liters tell you how much water, fuel or chemical a container holds.
- Pipes: the inside capacity tells you how much water sits in a run of pipe; the wall volume tells you how much material it's made of.
- Working backward: to find the radius from a known volume, r = √(V ÷ (π × h)). The square root calculator handles the last step.
Common mistakes
- Using the diameter as the radius makes the answer 4 times too large.
- Mixing units, such as a diameter in inches with a height in feet, unless you convert first (this calculator does it for you).
- Measuring the outside of a thick-walled tank when you want its capacity. Use the inside diameter.
More math calculators.
Sources
Frequently asked questions
What is the formula for the volume of a cylinder?
V = π × r² × h, where r is the radius (half the diameter) and h is the height. Multiply the area of the circular base by the height. A cylinder 4 ft across and 5 ft tall holds π × 2² × 5 ≈ 62.83 cubic feet.
How do I find the volume if I only know the diameter?
Halve the diameter to get the radius, or use V = π × d² × h ÷ 4. Using the diameter as the radius is the most common mistake and makes the answer four times too big.
How many gallons are in a cylinder?
Work out the volume in cubic feet and multiply by 7.48052 for US gallons, or calculate in cubic inches and divide by 231. For liters, multiply cubic feet by 28.3168, or divide cubic centimeters by 1,000.
How do I calculate the volume of a pipe or hollow cylinder?
Subtract the inner cylinder from the outer one: V = π × (R² − r²) × h, where R is the outer radius and r the inner radius. That gives the volume of the material. The inside capacity (what the pipe holds) is π × r² × h.
How much liquid is in a partly filled tank?
For a standing tank, use the liquid depth as the height: π × r² × depth. For a tank lying on its side, the liquid's cross-section is a circular segment, so the volume isn't proportional to depth. Choose "Partly filled tank" and "Lying (horizontal)" to calculate it exactly.
Does the formula work for slanted (oblique) cylinders?
Yes. By Cavalieri's principle, an oblique cylinder has the same volume as a straight one with the same base and perpendicular height. Measure the height straight up, not along the slanted side.