Why the formula works
Think of a cylinder as a stack of identical round slices. One slice is a circle with area π r². Stack the slices to a height of h and the total space is the slice area times the height: V = π r² h.
That is also why the volume of a cylinder is just the base area times the height, a fact that solves the Reddit homework question where only the base area (30 cm²) and height (6 cm) are given: V = 30 x 6 = 180 cm³.
Every variant formula in one table
| Cylinder type | Formula | Calculator |
|---|---|---|
| Right (normal) cylinder | V = π r² h | Main calculator |
| From diameter | V = π (d/2)² h | Main calculator |
| Hollow cylinder / tube | V = π (R² - r²) h | Hollow |
| Oblique (slanted) | V = π r² x slant x sin(angle) | Oblique |
| Elliptical (oval) | V = π a b h | Elliptical |
| Half cylinder | V = (1/2) π r² h | Partially filled |
| Horizontal, partly filled | V = [r² cos-1((r - d)/r) - (r - d) √(2rd - d²)] x L | Horizontal |
| Engine cylinder (swept) | V = (π/4) bore² x stroke | Engine |
Finding height or radius instead
The same formula rearranges two ways. Height: h = V / (π r²). Radius: r = √(V / (π h)). Worked examples of both are on the find the height page, and the main calculator solves both backwards.
Reading the formula like a sentence
Read V = π r² h from left to right and it tells the story of the shape. First r²: the radius, squared, which grows the one dimensional radius into the size of the round end.
Then x π: the step that turns a square of side r into the true area of the circle, because a circle fills about 3.14159 of those radius squares. Then x h: the base area, stacked up through the height.
Every cylinder calculation ever done is those three moves in that order, which is why the calculator on the homepage prints its steps in exactly that sequence.
The order also tells you where errors hurt most. The radius is squared, so a small measuring slip there is doubled in effect: measure the radius 5 percent too big and the volume comes out about 10 percent too big. The height is not squared, so a 5 percent slip there costs exactly 5 percent.
If you only have time to measure one thing twice, measure the diameter.
Worked example: radius 3, height 7, three ways
Take a cylinder with radius 3 units and height 7 units, the numbers in many textbook problems.
- Exact form: V = π x 3² x 7 = 63π, which is the answer to leave if your teacher asks for terms of pi.
- With pi as 3.14159: 63 x 3.14159 = 197.920 cubic units.
- With pi as 3.14: 63 x 3.14 = 197.82 cubic units.
- With pi as 22/7: 63 x 22/7 = 198 exactly.
Answer: 63π, about 197.92 cubic units. The three pi choices move the answer by less than a tenth of one percent; the method matters far more than the pi precision.
Where the formula comes from
A cylinder is a prism with a round base, and every prism has the same volume rule: base area times height. A stack of paper sheets makes the idea physical.
One sheet has almost no height but a fixed area; stack 500 of them and the pile has the area of one sheet and the height of 500 thicknesses, and it clearly holds area x height of space.
A cylinder is that stack with round sheets: the base is a circle of area π r², and the height is the stack thickness. Nothing about the roundness changes the stacking rule; it only changes how the base area is found.
The same thinking explains the relatives. A cone is a stack whose sheets shrink evenly to a point, which is why it holds exactly a third of its cylinder. A sphere can be built from thin round slices whose radii change from slice to slice, which is why its formula needs calculus and comes out as (4/3) π r³.
The cylinder is the simple case where every slice is identical, and that sameness is the whole secret of its formula.
Using the formula with real measurements
Real cylinders rarely arrive with a radius printed on them. You will usually have a diameter (halve it), a circumference (divide by π, then halve, or divide by 2π in one move), or a tape wrapped around a tank that gives circumference directly. Worked versions of all three are on the how to calculate page.
Whatever route the radius arrives by, pause before squaring: the diameter used as the radius is the most common error in the whole topic, and it inflates the answer exactly four times, a mistake large enough to embarrass but small enough to believe.
Frequently asked questions
What is the formula for the volume of a cylinder?
V = π r² h, where r is the radius of the base and h is the height.
What do r and h stand for?
r is the radius, half the distance across the round base. h is the height, the straight line distance between the two round ends.
Can I use the formula with the diameter?
Yes, replace r with d/2: V = π (d/2)² h. Forgetting to halve the diameter is the most common error and makes the answer 4 times too big.
What is the formula in terms of pi?
Leave π as a symbol: for r = 3 and h = 7, V = π x 9 x 7 = 63π. Teachers ask for this form so the answer stays exact.
Where can you find cylinders in real life?
Cans, mugs, water tanks, pipes, tree trunks, drinking straws, batteries and concrete columns are all cylinders or close to them.
Why is the radius squared and not the diameter?
Because area grows with the square of a length. The base is a circle, and the circle area formula π r² is built on the radius. There is an equivalent diameter form, V = (π/4) d² h, used on the engine page, but mixing the two forms is a classic way to go wrong.
Does the formula work for a cylinder lying on its side?
For a full cylinder, yes: volume does not depend on orientation. For a partly filled horizontal cylinder, no: the liquid shape is a segment, not a full cylinder, and it needs the horizontal cylinder formula.