Formula for the Volume of a Cylinder: 6 Worked Examples
The formula for the volume of a cylinder is V = πr²h. See 6 fully worked examples, from a soup can to a hollow pipe, plus the radius mistake to avoid.

In this article
The most common mistake with cylinder volume isn't the formula. It's putting the diameter where the radius should go. The problem says "a can 8 cm across", you plug in 8, and your answer comes out four times too big. The fix is to halve the diameter before you do anything else. The formula for the volume of a cylinder is V = πr²h: the area of the circular base (πr²) times the height (h). Below are six fully worked examples, from the basic case to working backwards and hollow pipes, so you can see the formula used every way a test might ask.
How the cylinder volume formula works
A cylinder is a stack of identical circles. Imagine a pile of coins: every coin has the same area, and the pile is as tall as the cylinder. So the volume is just the area of one circle × how tall the stack is.
The area of a circle is πr², so:
V = πr²h
- r is the radius, the distance from the centre of the circle to its edge (half the diameter)
- h is the height, the straight-up distance between the two circular ends
- π is about 3.14159
This "base area × height" idea is the same rule used for every prism, and open textbooks such as LibreTexts' geometry chapter on cylinders present it the same way. If you remember the coin stack, you'll never need to memorise the formula again.
Two quick checks before any calculation:
- Radius, not diameter. If the problem gives a width or diameter, divide it by 2.
- Same units. Radius and height must both be in cm, or both in m, and so on. Volume comes out in cubic units (cm³, m³, in³).
If shapes in general trip you up, our exterior angle theorem guide uses the same "draw it, label it, then calculate" habit that works here.
Example 1: The basic case (radius given)
Problem: A cylinder has a radius of 3 cm and a height of 10 cm. Find its volume.
- Write the formula: V = πr²h
- Square the radius: 3² = 9
- Multiply by the height: 9 × 10 = 90
- Multiply by π: V = 90π ≈ 282.74 cm³
If your teacher accepts exact answers, 90π cm³ is perfect and avoids rounding. Notice the order: square the radius first, then multiply. Squaring last (or squaring the height) is the second most common slip after the diameter one.
Example 2: Diameter given (the classic trap)
Problem: A cylinder is 8 inches in diameter and 5 inches tall. Find its volume.
- Halve the diameter: r = 8 ÷ 2 = 4 in
- Square it: 4² = 16
- Multiply by the height: 16 × 5 = 80
- Multiply by π: V = 80π ≈ 251.33 in³
What happens if you forget step 1? You get π × 64 × 5 = 320π ≈ 1,005.31 in³. That is exactly four times the real answer, because doubling the radius quadruples r². If your answer looks suspiciously large, this is the first thing to check.
You can also use the diameter version of the formula, V = πd²h ÷ 4. It gives the same result (π × 64 × 5 ÷ 4 = 80π), but the "÷ 4" is easy to drop, so halving first is the safer habit.
Example 3: A real can, converted to litres
Problem: A soup can is 7 cm wide and 12 cm tall. How much does it hold, in litres?
- Radius: 7 ÷ 2 = 3.5 cm
- Square it: 3.5² = 12.25
- Multiply by the height: 12.25 × 12 = 147
- Multiply by π: V = 147π ≈ 461.81 cm³
- Convert: 1 litre is 1,000 cm³, so 461.81 ÷ 1,000 ≈ 0.46 litres
Real-world problems love this extra conversion step. One cubic centimetre is one millilitre, so you could also say the can holds about 462 mL. (The printed amount on a real can is usually a little less, because cans are never filled to the very top.)
Example 4: Working backwards to find the height
Problem: A cylinder holds 500 cm³ and has a radius of 5 cm. How tall is it?
Here you know V and r, and you want h. Rearrange the formula by dividing both sides by πr²:
h = V ÷ (πr²)
- Base area: π × 5² = 25π ≈ 78.54 cm²
- Divide: h = 500 ÷ 78.54 ≈ 6.37 cm
Check it: π × 25 × 6.37 ≈ 500.3 cm³, which matches (the small difference is rounding). Doing this quick check takes ten seconds and catches most mistakes.
Example 5: Working backwards to find the radius
Problem: A cylinder has a volume of 1,000 cm³ and a height of 20 cm. What is its radius?
Rearrange for r²:
r² = V ÷ (πh), so r = √(V ÷ (πh))
- Multiply π by the height: π × 20 ≈ 62.83
- Divide the volume: 1,000 ÷ 62.83 ≈ 15.92
- Take the square root: r ≈ 3.99 cm
The square root is the step people forget. If you stop at 15.92, you've found r², not r. A sanity check helps: a radius of 4 cm gives π × 16 × 20 ≈ 1,005 cm³, so 3.99 cm is right where it should be.
Example 6: A hollow cylinder (pipe or tube)
Problem: A pipe is 100 cm long. Its outer radius is 5 cm and its inner radius is 4 cm. What volume of material is the pipe made of?
A hollow cylinder is a big cylinder with a smaller one removed from the middle. So subtract the two volumes:
V = π(R² − r²)h, where R is the outer radius and r is the inner radius.
- Square both radii: 5² = 25 and 4² = 16
- Subtract: 25 − 16 = 9
- Multiply by the height (length): 9 × 100 = 900
- Multiply by π: V = 900π ≈ 2,827.43 cm³
Kindly note the trap here: you must square each radius before subtracting. Doing (5 − 4)² = 1 gives 100π ≈ 314 cm³, which is far too small. If you want the space inside the pipe (how much water it holds), use only the inner radius: π × 16 × 100 = 1,600π ≈ 5,026.55 cm³.
Mistakes that cost marks
Most wrong answers on cylinder questions come from the same short list:
- Using the diameter as the radius. Answer comes out 4× too big. Halve it first.
- Mixed units. A radius of 50 cm and a height of 2 m must become 0.5 m and 2 m (or 50 cm and 200 cm) before you multiply.
- Squaring the wrong thing. Only the radius is squared, never the height.
- Measuring the slant. For a tilted (oblique) cylinder, h is the straight-up height, not the side length.
- Rounding too early. Keep π (or several decimals) until the last step, then round once.
- Forgetting cubic units. The answer is cm³, not cm or cm².
How to do your own
Here's a routine that works for any cylinder question, whether it's homework or a test:
1. Sketch it
Draw a quick cylinder and label the radius and height. If you're given a diameter, write "r = d ÷ 2" next to it straight away.
2. Match the units
Convert everything to one unit before calculating.
3. Decide what you're solving for
Volume? Use V = πr²h. Height? Use h = V ÷ (πr²). Radius? Use r = √(V ÷ (πh)). Hollow? Use V = π(R² − r²)h.
4. Calculate in order
Square the radius, multiply by the height, then by π.
5. Check the size
Does the answer make sense? A drinks can holding 5 litres, or 0.5 cm³, means something went wrong.
6. Write the units
Cubic units, every time.
Try making up one problem of each type above with your own numbers and solve it without looking. If you can do all six, you can handle any cylinder volume question you'll meet. For more practice with shapes, our similar triangles examples follow the same worked format, and the Math blog has more geometry and algebra walkthroughs.
How Photo Solver can help
When you're checking homework, it helps to see each step laid out next to your own. Photo Solver lets you scan a geometry problem with your iPhone camera and shows a step-by-step solution with a labelled diagram. It covers area, perimeter and volume, including 3D shapes like cylinders, so you can compare its working with yours and spot exactly where a radius got doubled or a unit got missed. It works best as a way to check and understand your method, not to replace doing the problem yourself.
Frequently asked questions
What is the formula for the volume of a cylinder using the diameter?
If you know the diameter d, the radius is d ÷ 2, so the formula becomes V = π(d/2)²h, which simplifies to V = πd²h ÷ 4. Most people find it safer to halve the diameter first and then use V = πr²h, because it is easy to forget the division by 4.
What units is the volume of a cylinder in?
Volume is always in cubic units, such as cm³, m³ or in³, because you multiply three lengths together (radius × radius × height). Make sure the radius and the height are in the same unit before you multiply, or the answer will be wrong by a large factor.
Should I use 3.14 or the π button?
Use whatever your teacher or exam asks for. The π button gives a more accurate answer, while 3.14 gives a slightly smaller result. Many teachers also accept an exact answer left in terms of π, such as 90π cm³, which avoids rounding altogether.
How do you find the height of a cylinder from its volume?
Rearrange the formula: h = V ÷ (πr²). Work out the base area πr² first, then divide the volume by it. For a volume of 500 cm³ and a radius of 5 cm, the base area is about 78.54 cm², so the height is about 6.37 cm.
Does the formula work for a slanted (oblique) cylinder?
Yes. V = πr²h still works for an oblique cylinder, as long as h is the perpendicular height between the two bases, not the length of the slanted side. Measuring along the slant is a common mistake and gives a volume that is too big.
Conclusion
The formula for the volume of a cylinder is V = πr²h: the base circle's area times the height. Almost every mistake comes from the inputs, not the formula itself: a diameter used as a radius, units that don't match, or a slanted side measured instead of the height. Sketch, label, convert, then calculate in order, and check that the answer is a sensible size. Once the six examples above feel routine, you'll be ready for whatever version of the question turns up on the test.



