Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Volume of a cylinder calculator

Find the volume of a cylinder, like a tank, pipe or can, from its radius or diameter and height. Results in cubic units, US gallons and liters.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Other shapes, like cones and boxes? Use the volume calculator. Painting or wrapping it? The surface area calculator covers it.

Volume of a cylinder formula

V = π × r² × h
r = radius (half the diameter), h = height or length

It's the area of the circular end, πr², times the height. The radius and height must be in the same unit, so the calculator converts them first if you use different units. Volumes are then converted using exact definitions: 1 inch = 2.54 cm, and 1 US gallon = 231 cubic inches = 3.785411784 liters.

Worked examples

A can 6 inches across and 10 inches tall: r = 3 in, so V = π × 3² × 10 = 90π ≈ 282.74 cubic inches. Divide by 231 for gallons: 1.224 US gallons, or 4.63 liters.

A tank 4 feet across and 5 feet tall: r = 2 ft, so V = π × 2² × 5 = 20π ≈ 62.83 cubic feet. One cubic foot is 1,728 ÷ 231 ≈ 7.48 US gallons, so it holds about 470 gallons.

Getting a realistic number

  • For how much a tank or pipe holds, measure the inside diameter. The outside measurement includes the wall.
  • A pipe's volume is the same formula with its length as h. Many pipes are sold by nominal size, which isn't the exact inside diameter, so measure if it matters.
  • This is the full volume. A tank lying on its side and partly filled needs a different calculation.
  • Water weighs about 8.34 pounds per US gallon, so a full tank can be very heavy.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • Radius 3 in, height 10 in: 90π = 282.74334 cubic inches ✓
  • Same cylinder holds 1.2239971 US gallons ✓
  • Diameter 4 ft, height 5 ft: 62.831853 cubic feet = 470.0149 US gallons ✓
  • Mixed units: 24 in across, 3 ft tall = 70.502235 US gallons ✓
  • Edge: a radius of 0 is rejected ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do you find the volume of a cylinder?

Multiply π by the radius squared and by the height: V = πr²h. A cylinder with radius 3 and height 10 has a volume of 90π ≈ 282.74 cubic units.

How do I calculate cylinder volume from the diameter?

Halve the diameter to get the radius first. A 4-foot diameter means r = 2 ft, so V = π × 4 × h.

How many gallons are in a cylinder?

Work out the volume in cubic inches and divide by 231, or in cubic feet and multiply by about 7.48. A tank 4 ft across and 5 ft tall holds about 470 US gallons.

How do I convert the volume to liters?

1 cubic centimeter is 1 milliliter, so divide cubic centimeters by 1,000. From cubic feet, multiply by about 28.317.

What if the radius and height are in different units?

Convert one so both match before multiplying. Choose each unit above and the calculator does it for you.

Related calculators