Skip to content

Volume of a Cylinder Calculator

This volume of a cylinder calculator takes the diameter or radius and the height, each in its own unit, and gives the volume as pi x r squared x h, in every common unit. It also handles pipes, partly full tanks on their side, weight, and working back from a volume.

1. Your cylinder
2. Pipes, tanks and weight (optional)

Result

Volume

0

Total volume in every unit

Unit Whole cylinder
Show the working

    Weights use typical densities and are rough. Real pipe sizes, tank ends and concrete mixes vary, so check the maker's figures before you rely on one.

    Runs in your browser. Nothing uploaded.

    This volume of a cylinder calculator takes the diameter or radius and the height, with a separate unit for each one, and gives the volume in gallons, litres, cubic feet and every other common unit. Measure a 6 inch pipe 20 feet long and enter exactly that. It also handles pipes with a wall, tanks that are only partly full, weight, and working back from the volume you need.

    About the volume of a cylinder calculator

    The formula takes one line. The mistakes happen around it: mixing inches and feet, using the diameter where the radius belongs, or assuming a tank on its side is a quarter full at a quarter of its height. This volume of a cylinder calculator handles each of those.

    • Mixed units. Each length has its own unit box, so nothing needs converting first.
    • Diameter or radius. Enter whichever you measured.
    • Every unit at once. Cubic inches, feet, yards, centimetres and metres, litres, millilitres, US and imperial gallons, quarts and fluid ounces.
    • Work backwards. Find the height or radius needed to hold a volume.
    • Pipes and tubes. Add a wall thickness to split what it holds from the material in the wall.
    • Partly full tanks. Upright or lying on its side, from the depth of the liquid.
    • Rough weight. Water, oil, concrete, steel, aluminum or your own density.
    • The working. The sum with your numbers in it, for checking or homework.

    It runs in your browser. Nothing you enter is sent anywhere or saved.

    How to use it

    1. Choose what to find: the volume, the height or the radius.
    2. Enter the size, each length with its own unit.
    3. Add any options: wall thickness, liquid depth, material, or how many cylinders.
    4. Read the result. It updates as you type. Open “Show the working” to see the sum.

    How to calculate the volume of a cylinder

    Volume = π × r² × h

    Here r is the radius, h is the height, and π is about 3.1416. If you have the diameter d, the same formula becomes π × d² × h ÷ 4. The reason it works: a cylinder is a stack of identical circles, each with an area of π × r². Multiply that area by the height and you have the volume.

    A worked example

    A pipe 6 inches across and 20 feet long. These are the calculator’s defaults.

    1. Radius: 6 in ÷ 2 = 3 in.
    2. Same unit: 3 in is 0.25 ft.
    3. Square it: 0.25 × 0.25 = 0.0625.
    4. Multiply by π: 0.0625 × 3.1416 = 0.19635 sq ft. That’s the area of the end.
    5. Multiply by the height: 0.19635 × 20 = 3.927 cubic feet.
    6. In gallons: 3.927 × 7.48 = about 29.38 US gallons, or 111.2 litres.

    A metric example

    A bucket-sized cylinder 30 cm across and 50 cm tall. The radius is 15 cm, so 3.1416 × 15 × 15 × 50 = 35,342.92 cubic centimetres. Divide by 1,000 and that’s 35.34 litres.

    Calculate volume of a cylinder from the diameter

    You don’t have to find the radius first. Use π × d² × h ÷ 4. With a 6 inch diameter and a 240 inch height: 3.1416 × 36 × 240 ÷ 4 = 6,785.84 cubic inches, the same answer as the pipe above.

    Calculate volume of a cylinder from the circumference

    If you can only measure around it, divide the circumference C by π to get the diameter, or use V = C² × h ÷ (4 × π) directly. A cylinder 18.85 inches around is 6 inches across.

    Converting the answer

    From To How
    Cubic inches US gallons ÷ 231
    Cubic feet US gallons × 7.48
    Cubic feet Cubic yards ÷ 27
    Cubic inches Cubic feet ÷ 1,728
    Cubic centimetres Litres ÷ 1,000
    Cubic metres Litres × 1,000
    US gallons Litres × 3.785
    Imperial gallons Litres × 4.546

    Measuring a real cylinder

    • Diameter: measure across the widest part of the end, through the centre.
    • Can’t get across it? Wrap a tape around it and divide by π. A distance of 18.85 inches around is 6 inches across.
    • Height: for something lying down, the length is the height. The formula doesn’t care which way up it is.
    • For what it holds, measure the inside. A pipe’s nominal size often isn’t either of its true diameters, so check its actual figures.

    Pipes and hollow cylinders

    A hollow cylinder has two useful volumes: what it holds, and the material in its wall.

    • Holds: π × r² × h, using the inside radius.
    • Wall: π × (R² − r²) × h, where R is the outside radius.

    Take a pipe 4 inches across on the outside, with a 1/4 inch wall, 10 feet long. The inside radius is 1.75 inches. It holds about 5 US gallons, and the wall is 353.43 cubic inches of material. In steel that’s about 100 pounds. Tick “It is hollow” and enter the wall thickness.

    Tanks that are only partly full

    Standing upright, a tank is simple: the liquid is a shorter cylinder, so a tank at a quarter of its height is a quarter full.

    On its side, it isn’t. The tank is narrow near the bottom and wide in the middle, so the first few inches hold much less than the middle ones. The liquid’s end is a shape called a circular segment:

    Area = r² × acos((r − d) ÷ r) − (r − d) × √(2rd − d²)

    Here d is the depth of the liquid. Multiply the area by the tank’s length to get the volume. A tank 48 inches across and 10 feet long holds about 940 US gallons when full:

    Share of the height Share of the volume
    10% 5.2%
    25% 19.55%
    50% 50%
    75% 80.45%
    90% 94.8%

    So a 12 inch reading on that tank means about 184 gallons, not the 235 you’d guess from a quarter of the height. Real tanks with rounded ends hold a little more than a plain cylinder does.

    Working backwards from a volume

    Sizing a tank or a mold? Turn the formula around.

    • Height: h = V ÷ (π × r²). To hold 500 US gallons in a tank 4 feet across, it needs to be about 5.32 feet tall.
    • Radius: r = √(V ÷ (π × h)). To hold 500 gallons in a tank 4 feet tall, it needs a radius of about 2.31 feet, or 4.61 feet across.

    Everyday uses

    • Concrete for footings and tube forms. Eight footings 12 inches across and 4 feet deep take 0.93 cubic yards, about 3,766 pounds of concrete. The cubic yard calculator handles slabs and other shapes.
    • Tanks and water butts. Gallons held, and how much weight the floor or stand has to carry. Water is about 8.34 pounds a US gallon.
    • Round pools. The gallons in a round pool come from the same formula. The pool salt calculator turns those gallons into a salt dose.
    • Pipes. The water sitting in a run of pipe, or how much the pipe weighs.
    • Homework. The working is laid out in the order a teacher expects.

    Surface area of a cylinder

    The calculator gives this too, useful for paint, insulation or wrapping.

    • Curved side: 2 × π × r × h.
    • One end: π × r².
    • Whole outside: 2 × π × r × h + 2 × π × r².

    With a 3 inch radius and a 5 inch height, the curved side is 94.25 square inches and the whole outside is 150.80.

    Cylinders, cones and spheres

    The volume of a cylinder is a handy yardstick for other round shapes with the same radius and height:

    Shape Volume Compared with the cylinder
    Cylinder π × r² × h All of it
    Cone π × r² × h ÷ 3 One third
    Sphere that just fits inside 4 ÷ 3 × π × r³ Two thirds, when h = 2r

    A cylinder that leans over, called an oblique cylinder, has the same volume as a straight one with the same base and the same vertical height. Measure the height straight up, not along the slant.

    Common mistakes

    • Using the diameter as the radius. The answer comes out four times too big.
    • Mixing units. Inches for the radius and feet for the height gives nonsense unless you convert first.
    • Squaring the wrong thing. Only the radius is squared, not π or the height.
    • Assuming a lying tank is proportional. A quarter of the height is 19.55% of the volume.
    • Measuring the outside for capacity. A thick wall takes a noticeable share of what you think it holds.

    What it can’t tell you

    • Tanks with domed ends. It treats the ends as flat.
    • Exact weights. Densities vary with the mix and grade: 2,400 kg per cubic metre for concrete and 7,850 for steel are typical figures.
    • Whether a tank is level. A tilted tank changes every depth reading.

    Comparing a cylinder with a flat area? Our guide on how to calculate square footage covers circles and odd shapes. More tools are on the full tools list.

    Frequently asked questions

    How to calculate volume of a cylinder?

    Multiply pi by the radius squared, then by the height: V = pi x r squared x h. A cylinder with a 3 inch radius and a 5 inch height is 3.1416 x 9 x 5 = 141.37 cubic inches. Use the same unit for the radius and the height, and the answer comes out in that unit cubed.

    How to calculate the volume of a cylinder?

    If you measured the diameter, halve it first to get the radius, then use pi x r squared x h. A pipe 6 inches across and 20 feet long has a radius of 0.25 feet, so its volume is 3.1416 x 0.25 x 0.25 x 20 = 3.927 cubic feet, which is 29.38 US gallons.

    How do you calculate the volume of a cylinder?

    In three steps: square the radius, multiply by pi, then multiply by the height. For a radius of 2 cm and a height of 10 cm: 2 x 2 = 4, 4 x 3.1416 = 12.57, and 12.57 x 10 = 125.66 cubic centimetres, or about 0.126 litres.

    How do we calculate the volume of a cylinder?

    We find the area of the circular end and multiply it by the height. A cylinder is a stack of identical circles, and each circle has an area of pi x r squared. Stack them to height h and you have pi x r squared x h. Every prism works the same way: the area of the base times the height.

    How do I calculate the volume of a cylinder?

    Measure across the widest part of the end for the diameter, measure the height, and halve the diameter for the radius. If you can only wrap a tape around it, divide that distance by pi to get the diameter: 18.85 inches around is 6 inches across. Then use pi x r squared x h, or enter the numbers in the calculator above.

    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 7.48. A tank 48 inches across and 10 feet long holds about 940 US gallons.

    How much liquid is in a cylinder tank lying on its side?

    It is not proportional to the depth, because the tank is narrower near the bottom. At a quarter of the height, it holds only 19.55% of its volume. At half the height it is half full. That 48 inch tank at 12 inches deep holds about 184 gallons, not 235.

    Last updated: November 1, 2026