How to Calculate Volume of a Cylinder Step by Step
By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.
Calculating volume of a cylinder starts with one simple idea: find the area of the circular base, then multiply by the cylinder's height. The formula is pi times radius squared times height, which is usually written as V = pi r squared h.
The formula: base area times height
A cylinder can be imagined as many identical circular layers stacked on top of one another. The area of each circular layer is pi times radius squared. Multiplying that base area by the height tells you how much three-dimensional space fills the full stack. That is why the formula for volume is V = pi r squared h.
Suppose a cylinder has radius 3 centimetres and height 10 centimetres. First square the radius: 3 squared is 9. Multiply by the height to get 90, then multiply by pi. The exact volume is 90 pi cubic centimetres, which is approximately 282.7 cubic centimetres. This is the basic method for calculating volume of a cylinder.
The order of multiplication does not change the result, but keeping the formula organised reduces mistakes. Write the values underneath the symbols before calculating. That makes it easier to notice if you accidentally used the diameter where the formula expects the radius.
Radius and diameter are easy to mix up
The radius runs from the centre of the circular base to its edge. The diameter runs all the way across the circle through the centre, so the diameter is twice the radius. If a question gives a diameter of 8 centimetres, the radius is 4 centimetres. You must make that conversion before using the standard cylinder volume formula.
This detail matters a lot when calculating volume of a cylinder because the radius is squared. If you accidentally use 8 instead of 4, the base-area part becomes four times too large. A quick sketch of the circle with r or d labelled can prevent a surprisingly large error.
Volume needs cubic units
Area is measured in square units because it covers a two-dimensional surface. Volume is measured in cubic units because it fills three-dimensional space. If radius and height are in centimetres, the final answer should be in cubic centimetres. If they are in metres, the answer should be in cubic metres.
Unit consistency is part of calculating volume of a cylinder correctly. If the radius is given in centimetres and the height in metres, convert one measurement so both use the same unit before substituting into the formula. Mixing units inside the calculation produces a number that is difficult to interpret and usually wrong.
Also check whether the question asks for an exact answer in terms of pi or a decimal approximation. If no rounding instruction is given, keeping pi until the final step is usually safer. Early rounding can slightly change the final result, especially in multi-step problems.
If the cylinder is hollow or only partly filled, read the question carefully. You may need a different measurement or an extra subtraction rather than applying the full solid-cylinder formula once.
Working backwards and converting to litres
Some questions give you the volume and ask for a missing measurement. Suppose a cylindrical container must hold 2 litres and has a radius of 5 centimetres. First convert the volume to cubic centimetres, remembering that 1 litre equals 1,000 cubic centimetres, so the target is 2,000. The base area is pi times 5 squared, which is 25 pi, or about 78.5 square centimetres. Rearranging V = pi r squared h gives h = V divided by the base area, so the height is about 2,000 divided by 78.5, roughly 25.5 centimetres.
The formula also tells you how volume responds when dimensions change. Height appears once, so doubling the height doubles the volume. The radius is squared, so doubling the radius makes the volume four times as large, and tripling it makes the volume nine times as large. This explains why a slightly wider pipe can carry much more water, and why a mug that looks only a little wider than another can hold noticeably more. Checking your answer against these scaling rules is a quick way to spot errors.
Why a leaning cylinder holds the same volume
Picture a neat stack of identical coins forming an upright cylinder. Now push the stack sideways so it leans, like a slanted tower. Every coin is still the same circle, and there are still the same number of them, so the total amount of metal has not changed. This tilted shape is called an oblique cylinder, and the stacking argument shows it has exactly the same volume as the upright one, provided you use the perpendicular height rather than the length of the slanted side.
This idea is known as Cavalieri's principle, after the seventeenth century Italian mathematician Bonaventura Cavalieri. It says that two solids have equal volume if every horizontal slice at the same height has equal area. It explains why the formula V = pi r squared h works for leaning cylinders too, and why exam questions about oblique shapes usually hinge on spotting the true vertical height. The same slicing reasoning helps prove that a cone with the same base and height has one third of the cylinder's volume.
The cylinder that uses the least material
Volume tells you how much a cylinder holds, but the material needed to make it depends on its surface area: two circular ends of pi r squared each, plus a curved side of 2 pi r h. For a fixed volume, a very tall thin cylinder and a very short wide one both need a lot of material. Using calculus, you can show that the smallest surface area occurs when the height equals the diameter. For a container holding 330 cubic centimetres, that means a radius of about 3.7 centimetres and a height of about 7.5 centimetres, a short, squat shape.
A standard 330 millilitre drinks can is noticeably taller and narrower, about 11.5 centimetres high and 6.6 centimetres across. That is not a design mistake. The can's ends are made from thicker metal than its very thin wall, so saving end area matters more than the simple calculation assumes, and a slimmer can is also easier to hold and to fit in a fridge door. The calculation is still a useful tool for comparing designs: write the volume and the area as formulas, fix the volume, and see how the area changes as you vary the radius.
Hollow pipes and Archimedes' favourite result
For a hollow cylinder such as a pipe, the volume of material is the outer cylinder minus the hole. Suppose a pipe is 100 centimetres long, with an outer radius of 5 centimetres and an inner radius of 4. The material occupies pi times (5 squared minus 4 squared) times 100, which is pi times 9 times 100, or 900 pi, about 2,827 cubic centimetres. Notice that you subtract the squares, not the radii: subtracting first and squaring the 1 would give only 100 pi. The space inside is pi times 16 times 100, or 1,600 pi, about 5,027 cubic centimetres, just over 5 litres of water.
The cylinder formula also appears in one of the most celebrated results of ancient mathematics. Archimedes showed that a sphere fitting exactly inside a cylinder, touching the top, bottom and sides, has two thirds of the cylinder's volume. With radius r, the cylinder's height is 2r, so its volume is pi r squared times 2r, or 2 pi r cubed, while the sphere's is four thirds pi r cubed, two thirds of that. The sphere's surface area is two thirds of the cylinder's total surface area too. Archimedes asked for a sphere and cylinder on his tomb, and Cicero later found it overgrown near Syracuse by spotting that carving.
The takeaway
Calculating volume of a cylinder is a base-area-times-height problem. Use V = pi r squared h, make sure you have the radius rather than the diameter, keep all measurements in compatible units, and write the answer in cubic units. A quick estimate of size can also help you catch calculator slips before you finish.