About the Cylinder Calculator
A cylinder is a circle extruded — the same round cross-section, all the way along. Tins, pipes, tanks, mugs, drums, silos, drill holes, fence posts, rolls of carpet. Once you start looking, industry runs on cylinders, because a tube is both easy to make and strong against pressure from inside.
The volume formula follows from the shape in one line: every slice through a cylinder is the same circle, so the volume is that circle stacked to the full height. Cross-section times length, which is the rule for any prism.
This calculator goes both ways. It gives the volume and surface area from the dimensions, and — more usefully in practice — tells you what height or radius you need to hit a required capacity.
How to Use the Cylinder Calculator
From the radius and height. The basic case.
From the diameter and height. Pipes and tanks are specified across, not from the centre, so this saves you halving it yourself — and avoids the fourfold error that comes from forgetting to.
Height needed for a volume. "I need 300 litres and I have 40 cm of radius to work with."
Radius needed for a volume. "I need 300 litres and the ceiling limits me to 1.2 metres."
For a pipe lying down, the "height" is its length. The formula does not care which way up the cylinder is.
The Formulas
Volume V = π r² h
Curved side = 2 π r h
Two ends = 2 π r²
Total surface S = 2 π r h + 2 π r² = 2 π r (r + h)
Backwards:
h = V / (π r²)
r = √( V / (π h) )
The curved surface unrolls into a rectangle. Cut a tube lengthwise, flatten it, and you have a rectangle as tall as the cylinder and as wide as the circle's circumference — 2πr by h. There is nothing to memorise; it is the area of a rectangle.
Whether you add the two ends depends on the object. A closed tin needs them. An open tube, a chimney or a length of pipe needs only the curved side. This calculator reports the parts separately so you can take what applies.
Why a Wider Pipe Carries So Much More
The single most useful consequence of πr²h: capacity depends on the square of the radius.
| Pipe diameter | Relative capacity | |---------------|-------------------| | 1× | 1 | | 2× | 4 | | 3× | 9 | | 4× | 16 |
A 4-inch pipe carries roughly four times what a 2-inch one does, not twice. Going up one pipe size is a much bigger change than the label suggests, which is why undersizing a pipe or a duct causes such disproportionate problems — and why oversizing is expensive in material for capacity you may not need.
(Real flow rate is a bit more complicated still: friction against the pipe wall means actual throughput grows even faster than the cross-section for pressurised flow. But cross-section is the right first approximation, and it is already a square law.)
The Shape That Uses the Least Material
For a closed cylinder of fixed volume, the surface area is smallest when the height equals the diameter — that is, h = 2r. A tin of those proportions uses less metal than any other holding the same amount.
This calculator reports that optimum for whatever volume you enter, and tells you how much more material your proportions use.
So why is no tin of beans shaped that way? Because material is not the only cost. Real containers trade it against:
- Shelf space and stacking, which favour taller, narrower shapes.
- Label area, which is the curved surface — taller tins show more.
- How a hand holds it, and how easily it tips.
- Manufacturing, where ends and seams cost differently from wall.
The mathematics gives you the material optimum; the other constraints usually win. Worth knowing which is which.
Step-by-Step Example
A water tank, radius 40 cm, height 120 cm.
Base area = π × 40² = 5026.55 cm²
V = 5026.55 × 120 = 603,185.79 cm³
In litres: 603,185.79 / 1000 = 603.19 litres
Surface area, if you were lagging it:
Curved side = 2 × π × 40 × 120 = 30,159.29 cm²
Two ends = 2 × π × 40² = 10,053.10 cm²
Total = 40,212.39 cm², about 4.02 m²
Working backwards. You need 300 litres — 300,000 cm³ — and the radius is fixed at 40 cm.
h = 300,000 / (π × 40²) = 300,000 / 5026.55 = 59.68 cm
Just under 60 cm tall.
The diameter trap. That tank is 80 cm across. If you put 80 into the formula as the radius, you get 2,412,743 cm³ — four times the real answer, because the radius is squared. It is the most expensive mistake available with a cylinder.
Understanding Your Result
The volume is in cubic units of whatever you entered.
The dimensions echo back the radius, diameter and height, so you can confirm the calculator halved what you meant it to halve.
The total surface area is the closed cylinder: tube plus both ends.
The curved side and ends are given separately, because most real objects need one or the other rather than the sum.
The capacity line converts to litres both ways — treating your figure as cubic centimetres and as cubic metres — because the calculator has no way of knowing which unit you typed. It also flags when your proportions use noticeably more material than the optimum.
When Should You Use This Calculator?
Water tanks and rain butts. Capacity in litres, and the height needed for a target volume.
Pipes and ducts. Volume of contents, and the square-law capacity comparison between sizes.
Concrete. A round post hole or a sonotube column is a cylinder; volume gives the bags of mix.
Cooking and brewing. Pot and fermenter capacity, and how full a given depth leaves you.
Aquariums. Cylindrical tanks, where volume drives the stocking and filtration.
Packaging. Material used against volume held, and how much label area a shape offers.
Silos and grain stores. Capacity by volume, and steel by surface area.
Drilling and boring. Spoil volume from a hole of a given diameter and depth.
Common Mistakes
Using the diameter as the radius. Gives four times the true volume. Halve it first — this is the error to guard against above all others.
Forgetting to square the radius. πrh is not a volume of anything.
Adding the ends when the object is open. A pipe has no ends. A trough has one side missing. Take the parts you need rather than the total.
Confusing cubic centimetres with litres. 1 litre = 1000 cm³. A tank of 600,000 cm³ is 600 litres, not 600,000.
Converting cubic units linearly. A cubic metre is 1,000,000 cubic centimetres. The conversion factor is cubed.
Ignoring wall thickness. For a thick-walled pipe or tank, the capacity uses the internal radius. The outside dimension overstates what it holds — badly, for small bores.
Measuring the height of a leaning cylinder along its side. The height is along the axis. For an upright cylinder those are the same; for a tilted one they are not.
Assuming a taller tin is a bigger tin. A short wide one can easily hold more. Compare volumes, not heights.