Cylinder Volume Calculator — Formula, Derivation & Worked Examples
Cylinder volume formula V = πr²h with derivation, radius-vs-diameter traps, unit tips, and three worked examples. Free browser calculator — no signup.
Inputs
Volume
—
Where this formula comes from
A right circular cylinder is a stack of identical disks. Each disk has area πr²; stacking them to height h multiplies that area by h, so volume is V = πr²h.
If you only know diameter d, convert first: r = d / 2. Using diameter in place of radius without squaring correctly is the most common source of a 4× error (π(d)²h vs π(d/2)²h).
Lateral surface area A = 2πrh covers only the curved wall. Total surface area also adds the two bases (2πr²). This page reports volume and lateral area; keep units consistent (cm with cm → cm³).
Common mistakes
- Entering diameter as radiusHalve the diameter before using V = πr²h, or rewrite as V = π(d/2)²h = πd²h/4.
- Mixing unitsConvert height and radius to the same unit before multiplying. Mixing inches with centimeters invalidates the cubic result.
- Confusing lateral and total area2πrh is the curved wall only. Include 2πr² when you need paint or wrap covering top and bottom.
- Using π ≈ 3 for precision workThe calculator uses Math.PI. Hand checks with 3.1416 are fine for rough work; engineering tolerances may need more digits.
How to use this calculator
Use this page when you need the capacity of a right circular tank, pipe segment, or solid cylinder and you already know radius (or diameter) and height in the same unit. Convert diameter to radius first if your drawing labels the full width across the base.
Worked checks: pick easy numbers such as r = 1 and h = 1 so V = π, then scale. If you double the radius while holding height fixed, volume grows by 4× because radius is squared — that scaling is the fastest mental test that you did not swap diameter for radius.
When comparing containers, keep cubic units explicit (cm³ vs m³ vs liters: 1 L = 1000 cm³). Lateral area from this tool covers only the curved wall; add the two bases when estimating wrap or paint for a closed can.
Do not use the cylinder identity for cones, barrels with tapered ends, or elliptical tanks. Those need different solid-geometry formulas. If the height is measured along a slanted side rather than perpendicular to the base, remeasure the perpendicular height before trusting V = πr²h.
If a problem gives circumference of the base instead of radius, recover r from C = 2πr before using the volume formula. Skipping that step and plugging circumference into πr²h will not produce a volume.
For stacked disks of slightly different radii (a tapered stack), the single-radius cylinder model is only an approximation — switch to a frustum or numerical slice method when accuracy matters.
Frequently asked questions
- What is the cylinder volume formula?
- Volume is V = πr²h. Multiply π by the squared radius, then by height. Units stay consistent (e.g. cm → cm³).
- Does the calculator need diameter or radius?
- Enter radius. If you only have diameter, divide by 2 first (r = d / 2), then use V = πr²h.
- What else does this page compute?
- Besides volume, it shows lateral surface area A = 2πrh (the curved wall, not including the circular bases).
- Can radius or height be zero?
- Non-negative values are allowed. If either is 0, volume is 0. Negative inputs are rejected.