>

Home / Home

Free online tool

Cylinder Volume Calculator

Enter the radius or diameter and the height. Get the volume in cubic units, liters and gallons, the surface areas, and the full step by step working.

Quick answer: The volume of a cylinder is V = π r² h. Enter the radius (half the diameter) and the height in the same unit, and this calculator does the rest, including solving backwards for height or radius.

Cylinder Volume Calculator

Liquid fill preview

Cylinder diagram showing radius r and height h r h

Diagram is a visual guide, not to scale. It fills as your numbers change.

How this calculator works

Every answer starts from one formula: multiply pi by the radius squared, then by the height. The calculator first works out the area of the round base (π r²), then multiplies by the height, which is exactly how the volume of any straight sided round container is built up.

It then converts the result into cubic inches, cubic feet, cubic meters, liters, US gallons and Imperial gallons so you never have to convert by hand.

Use the mode menu to solve backwards: give it a volume and a radius and it finds the height, or give it a volume and a height and it finds the radius. That covers the three questions almost every cylinder problem asks.

The number one mistake to avoid

Most wrong answers come from one slip: using the diameter where the formula needs the radius. Because the radius is squared, that single slip makes the answer exactly 4 times too big. This calculator lets you enter the diameter directly and halves it for you. Read more on the common mistakes page.

Which cylinder do you have?

A plain upright cylinder is covered here. If yours is a tube or pipe shape with a hole through it, use the hollow cylinder calculator. A tank lying on its side that is only partly full needs the horizontal cylinder calculator, because a partly filled round tank does not fill in a straight line.

A slanted cylinder uses the oblique cylinder calculator.

How to use this calculator

  1. Choose what you want to find in the first menu: the volume, the height, or the radius.
  2. Tell the calculator whether your measurement is the radius or the diameter, then type it in.
  3. Enter the second measurement: the height for a volume, or the volume itself when solving backwards.
  4. Pick the unit your measurements are in, then press Calculate.
  5. Read the volume in every unit at once, and follow the step by step working under the result to check it.

Everything happens on this one page, with nothing to install and no sign up. If you only remember one thing, make it this: the radius is half the diameter.

The Given menu exists so you never have to halve anything in your head, because a diameter typed into the radius box is the single most common reason for a wrong answer.

Worked example: a water butt with radius 5 inches and height 10 inches

Say a small water butt measures 5 inches from its center to its wall (that is the radius) and stands 10 inches tall. How much water does it hold?

  1. Square the radius: 5 x 5 = 25 square inches.
  2. Multiply by pi for the base area: 25 x 3.14159 = 78.54 square inches.
  3. Multiply the base area by the height: 78.54 x 10 = 785.398 cubic inches.
  4. Convert: 785.398 cubic inches is 12.87 liters, or 3.4 US gallons.

Answer: 785.398 in³, which is 12.87 liters or about 3.4 US gallons.

Units: what goes in and what comes out

Your two measurements must be in the same unit: both inches, both feet, both centimeters. Mixing a diameter in inches with a height in feet is the second most common slip after the radius mix up, and it quietly wrecks the answer.

The result first appears in that unit cubed, then the table under it converts the same volume into cubic inches, cubic feet, cubic meters, liters, US gallons and Imperial gallons. If you only need one of those, the dedicated gallons, liters and cubic feet pages start from that answer directly.

How it works and why you can trust the results

The formula is shown, not hidden

Every calculator on this site prints the formula it uses, with each symbol explained, so you can see exactly what is being worked out before you trust the number.

Step by step results

The result panel shows the working line by line: the radius, the base area, then the volume. If an answer ever looks wrong, the steps show you which line to question.

Checked against worked examples

The calculators are tested against hand worked examples like the one above, where every line can be followed with a pocket calculator. More about how results are verified is on the About page.

Frequently asked questions

What is the formula for the volume of a cylinder?

V = π r² h, where r is the radius of the round base and h is the height. Multiply pi by the radius squared, then multiply by the height.

How do you find the volume of a cylinder with the diameter?

Halve the diameter to get the radius, then use V = π r² h. Or enter the diameter in this calculator and pick Diameter in the Given menu.

How do I find the height of a cylinder from its volume?

Rearrange the formula: h = V / (π r²). Pick Height in the mode menu above and enter the volume and radius.

How do I find the radius of a cylinder from its volume?

Use r = square root of (V / (π h)). Pick Radius in the mode menu above and enter the volume and height.

Why is the answer in cubic units?

Volume measures three dimensional space, so it is always length x length x length. Inches give cubic inches, feet give cubic feet, centimeters give cubic centimeters.

What value of pi should I use?

Use the full pi value (3.14159...) for real world measuring. For school work, some teachers ask for the answer in terms of pi, or using 3.14 or 22/7; the method is the same.

Can this calculator work backwards from a volume?

Yes. The first menu solves for height or radius as well as volume. Enter the volume and whichever measurement you already know, and it rearranges V = π r² h for you.

All cylinder calculators

Guides, charts and examples

Daniel Brooks, author of CylinderVolumeCalc

About the author

Daniel Brooks Mechanical engineer

I have spent 12 years sizing tanks, pipes and vessels for workshops and small plants, where a wrong volume means a wrong order, a short pour or a tank that overflows. I built this site after watching the same radius and diameter mix-up cause the same costly mistake again and again.

Every calculator, formula and worked example here is worked through and checked by hand before it goes live.

More about me and how I check the results