Volume formula

What Is the Formula for Calculating Volume of a Cylinder

The cylinder volume formula, what each symbol means, and a worked example you can copy — plus a live calculator to check your own numbers.

The volume of a right circular cylinder is V = π r² h: the area of the circular base, π r², multiplied by the height. This page explains where that comes from, works through an example, and gives you a live tool so you can check any set of numbers against the what is the formula for calculating volume of a cylinder.

The formula looks abstract until you connect each symbol to something you can point at: r is how far it is from the middle of the end to the edge, h is how tall it stands, and pi is the fixed number that ties any circle's width to its area. Once those click, the equation is just base area, stretched upward.

The formula behind it

The volume of a cylinder is:

V = π r² h

A worked example

Worked example. Take a cylinder with a diameter of 10 cm (so a radius of 5 cm) and a height of 25 cm. The base area is π × 5² = 78.54 cm², and multiplying by the height gives a volume of about 1.96 litres (1,963 cm³ · 0.52 US gallons).

For anything that holds liquid, measure the inside of the cylinder — the wall takes up space that the contents cannot.

Conversions use standard factors: 1 US gallon = 231 in³, 1 Imperial gallon = 4.54609 L, 1 litre = 1000 cm³.

How the calculation works

  1. Measure across the circular end — the diameter or radius.
  2. If you measured the diameter, halve it to get the radius r.
  3. Square the radius and multiply by π to get the base area.
  4. Multiply the base area by the height h: V = π r² h.
  5. Convert the result into your preferred unit above.

Getting an accurate measurement

If you can only reach the top, measure the diameter across the opening and halve it. Keep every measurement in the same system, and let the tool convert between units for you.

Follow-on questions, answered

To save you a second search, here are the related answers people most often want straight after this calculation:

How do I rearrange it to find the height?

Divide the volume by the base area: h = V divided by (pi r^2). To find a radius from a known volume and height, use r = the square root of V divided by (pi h). The reverse-solver does both for you.

What is the surface area, while I am here?

The total surface area of a closed cylinder is 2 pi r^2 + 2 pi r h — the two circular ends plus the curved side. It is a different quantity from volume, but it uses the very same two measurements.

Why is the radius squared?

Because the base is a circle, and a circle's area already needs r squared. Multiplying by the height then stretches that flat area into a solid, which is why the final unit is always cubic.

How does the diameter version work?

If you are given the diameter, use V = pi (d/2)^2 h, which is the same as pi d^2 h divided by 4. Halving the diameter first is usually the cleaner route, and it is what the calculator does automatically.

Getting it right

Two things trip people up: squaring the wrong number, and forgetting that the answer is cubic. If a result looks four times too big or too small, you have probably swapped radius and diameter somewhere, so it is always worth re-reading the measurement you are least sure of. It also helps to glance at the equivalent units; if the litre and gallon figures are both off by the same factor, the input is the culprit, not the maths.

Getting the number in the unit you need

Because volume units are where most errors creep in, the tool does the converting for you. Enter your measurements once and every common unit appears together, from millilitres up to cubic metres and across to US and Imperial gallons. Pick whichever the task calls for and lift the rest from the list; nothing needs a second calculation. The result also updates live as you change a measurement, so you can compare two sizes quickly without starting over.

Related things you might need

Once you have your answer you may also want to work in cylinder volume gallons litres & liters. These related calculators pick up where this one leaves off:

Where people use this

It comes in handy across quite different tasks:

  • Checking a geometry homework answer
  • Sizing a barrel, drum or planter
  • Estimating pipe or duct volume
  • Planning a DIY water feature

The bottom line: with the radius or diameter and the height, the volume follows immediately, and the breakdown lets you hand the same number to anyone in the unit they prefer. Measure inside dimensions for anything that holds liquid, leave a little headspace at the top of a real container, and treat the geometric figure as a clean maximum rather than the final word on usable capacity.

Frequently asked questions

What is the exact (π) form?
Leaving π in the answer gives the exact value — for example 144π in³ rather than 452.39 in³. Switch the precision control to 'Exact' to see it.
What is the formula for the volume of a cylinder?
The volume is V = π r² h — the area of the circular base (π r²) multiplied by the height (h). If you have the diameter instead of the radius, halve it first: r = d ÷ 2.
Do I use radius or diameter?
Either — just tell the calculator which you are entering. The radius is from the centre to the edge; the diameter is the full width across. The tool converts diameter to radius automatically.
What units can I use?
Any of millimetres, centimetres, metres, inches, feet or yards for the measurements, and you can read the result in litres, gallons, cubic feet, cubic inches and more.
Is the volume of a cylinder squared or cubed?
The result is in cubic units, because volume fills three dimensions. The radius is squared inside the formula only because it forms the flat circular base; multiplying by the height adds the third dimension.
Does this work for a tank or a pipe?
Yes. A solid tank uses the standard mode; for a pipe or tube use the hollow mode, which subtracts the bore. For a tank on its side, use the horizontal mode.

Related tools