Cylinder Volume Calculator Explained: Every Number You Get From a Radius and a Height

A right circular cylinder is defined by two measurements — the radius of its circular base and the height between its two flat ends. Once you have those, every other figure (volume, diameter, base area, lateral surface, total surface) is a direct consequence. This guide walks through where each formula comes from, runs a worked example, and shows where π·r²·h turns up in real tanks, pipes, and packaging.

#math#geometry#cylinder#volume#surface-area#pi#prism

What a cylinder is, and what its volume means

A right circular cylinder is the solid you get by stacking identical circles on top of one another along a straight axis perpendicular to their plane. Two numbers fix it completely: the radius r of the circular base and the height h between the two flat ends. Once you know those, every other measurement — diameter, base area, the curved side, the painted outside, and the volume of fluid the shape holds — falls out by direct calculation. The cylinder volume calculator on this page takes those two inputs and returns the volume, diameter, base area, lateral (curved) surface area and total surface area. Two numbers in, five numbers out.

“Volume” here means the three-dimensional space the cylinder encloses — cubic centimetres if the inputs are in centimetres, cubic metres if they are in metres, cubic inches if they are in inches. The unit on r and h carries through: it squares for any area output and cubes for the volume. The calculator does not assume any particular system, so whatever you type in is what you get out. That is convenient when you are working from a mixed drawing — a machinist’s spec in inches, a packaging brief in centimetres, a civil drawing in metres — because you do not have to convert before computing.

Cylinders are everywhere in the built world for the same reason spheres are everywhere in the natural one: they are structurally efficient. A cylinder holds a lot of contents per unit of bounding metal, and a circular cross-section under internal pressure has the lowest stress per unit wall thickness of any closed shape after the sphere. That is why drinks cans, gas bottles, pipelines, silos, storage tanks, and the barrels of pens, pencils, syringes and torches all converge on the same shape. The formulas below are the quantitative side of that fact.

How the cylinder formulas are derived

Every output of the cylinder volume calculator comes from the same two inputs through a short chain of elementary geometry. None of the steps requires calculus, but each can be re-derived from an integral if you prefer that route.

Volume

V = π · r² · h

A cylinder is a prism whose base happens to be a circle. Cavalieri’s principle — the rule that any two solids of the same height and the same cross-sectional area at every level have the same volume — gives the general result V = (base area) · (height) for every prism. Plug in the area of a circle, π·r², and you have V = π·r²·h. No approximations, no rounding; the only inexact number is π itself, and the calculator carries it at full machine precision (about 16 significant figures) so rounding shows up only when the answer is displayed.

If you prefer the calculus derivation: slice the cylinder into horizontal discs of thickness dz, each of which is a circle of area π·r². Integrate from 0 to h:

V = ∫0h π · r² dz = π · r² · h

Lateral (curved) surface

Alat = 2 · π · r · h

Cut the cylinder vertically and unroll the curved side flat. What you get is a rectangle: its width is the circumference of the base (2πr) and its height is the cylinder’s height h. So the lateral area is the area of that rectangle, 2π·r·h. This is also the area you need to know if you are wrapping a label round a can, sleeving a pipe, or sizing the side panel of a cylindrical tank.

Total surface area

Atot = 2 · π · r² + 2 · π · r · h

Add the two flat circular ends (each of area π·r²) to the lateral surface and you get the total area of the outside of the cylinder. That is what you need for paint coverage, coatings, heat-transfer skin area, or material estimates when both ends are closed. If only one end is closed (a tin can with a lid, an open cup) drop one of the π·r² terms; if the cylinder is a pure tube open at both ends (a pipe section), drop both.

Diameter, base area

d = 2 · r,    Abase = π · r²

The diameter is just twice the radius. The base is a circle of radius r, so its area follows the standard circle formula. Both numbers show up in the calculator’s breakdown because real-world cylinders are almost always specified by diameter rather than radius, and the base area is the most useful intermediate result for any volume or pressure calculation.

Worked example

Take the calculator’s defaults: r = 3 and h = 10. Work each output through by hand and check it against the cylinder volume calculator.

  • Diameter: d = 2 · 3 = 6 units.
  • Base area: π · 3² = 9π ≈ 28.274334 square units.
  • Lateral surface: 2π · 3 · 10 = 60π ≈ 188.495559 square units.
  • Total surface: 2 · 9π + 60π = 78π ≈ 245.044227 square units.
  • Volume: 9π · 10 = 90π ≈ 282.743339 cubic units.

Snap units onto the same numbers and the geometry turns into physics. If r = 3 cm and h = 10 cm, the cylinder is about the size of a tall espresso glass: it holds 282.7 cm³, which is 282.7 millilitres or just under 0.3 litres. Its lateral surface, 188.5 cm², is about the area of a standard coffee-shop sleeve. Now scale every dimension by ten — r = 30 cm, h = 1 m — and you have a small storage drum. The volume becomes 90,000π cm³ ≈ 282.7 litres, a thousand times the original. Doubling just the height to 2 m instead doubles the volume to about 565 litres; doubling just the radius to 60 cm with h = 1 m quadruples it to about 1,131 litres. That asymmetry — radius matters more than height — controls most practical sizing decisions.

If your radius and height are in inches but you need litres or US gallons, use the volume converter on the result. 1 in³ is about 16.387 mL, so 282.7 in³ is roughly 4.63 litres or 1.22 US gallons.

Where cylinder volume shows up in real work

Pipes, tubes, and ducting

A pipe is a hollow cylinder. To find the fluid it holds per metre, use the internal radius and h = 1 m. A 50 mm bore pipe (r = 0.025 m, h = 1 m) holds π · 0.025² · 1 ≈ 0.00196 m³ per metre, which is 1.96 litres per metre. Multiply by length for total holdup; multiply by flow velocity for volumetric flow rate. The wall material itself is a cylindrical shell — an outer cylinder minus an inner one — so the steel volume per metre is the difference of two cylinder volumes computed from the outer and inner radii.

Storage tanks and silos

A vertical cylindrical tank with r = 5 m and h = 12 m has volume π · 25 · 12 = 300π ≈ 942 m³, or 942,000 litres — about 5,900 oil barrels. Tank capacity is dominated by the radius because of the r² factor, so widening a tank by 20% buys you 44% more volume for only 20% more lateral steel area, while making it 20% taller gives a flat 20% more volume and 20% more lateral area. Tank designers exploit this until wind, foundation, or seismic constraints push the optimum back the other way.

Cans, bottles, and packaging

A standard 330 mL drinks can has an outer diameter of about 66 mm (r ≈ 33 mm) and a height of about 115 mm. Run that through the formula: V = π · 3.3² · 11.5 ≈ 393 cm³. The fill is only 330 mL, so 63 mL is headspace — the gap above the liquid that absorbs thermal expansion and carbonation. Packaging engineers tune this gap to a few percent of total volume; too small and the can deforms in a warm warehouse, too large and you are paying to ship air.

Syringes, pistons, and cylinders in engines

A medical syringe is a graduated cylinder where the user reads the volume directly off the side. Internally, the displacement per millimetre of plunger travel is just the base area — push the plunger 10 mm in a syringe with bore 8 mm (r = 4 mm) and you dispense π · 16 · 10 ≈ 503 mm³, or about 0.5 mL. The same calculation underpins engine displacement: a four-cylinder engine with bore 80 mm (r = 40 mm) and stroke 86 mm has per-cylinder displacement π · 40² · 86 ≈ 432,000 mm³ = 432 cm³, so the total displacement is about 1,728 cm³ — what gets badged as a 1.7-litre engine.

Heat transfer and reaction surface

The ratio of surface area to volume controls how fast a cylindrical object exchanges heat or reacts with its surroundings. For a long cylinder ignoring the end caps, the ratio simplifies to A/V = 2/r — independent of height and inversely proportional to radius. That is why thin pipes cool faster than thick ones, why fine-gauge wire reaches its steady-state temperature sooner under a soldering iron, and why catalytic reactors use packed beds of small spheres or narrow tubes rather than a single wide vessel.

Cylinders compared with spheres and cones

Set a sphere of radius r snugly inside a cylinder of the same radius and height 2r, and inscribe a cone of the same base and height in the same cylinder. Their volumes line up in a clean 1 : 2 : 3 ratio — cone : sphere : cylinder — which Archimedes considered his finest result:

  • Cone (base r, height 2r): V = (1 / 3) · π · r² · 2r = (2 / 3) · π · r³.
  • Sphere (radius r): V = (4 / 3) · π · r³.
  • Cylinder (radius r, height 2r): V = π · r² · 2r = 2π · r³.

The sphere is exactly two-thirds of the cylinder; the cone is one-third. A hemispherical scoop of ice cream sitting on top of an empty waffle cone of the same radius will, when melted, exactly fill the cone twice over. The sphere volume calculator and cone volume calculator cover the other two members of the trio.

Common mistakes

Using diameter where the formula wants radius

Real-world cylinders — pipes, drums, cans, tanks — are almost always specified by diameter rather than radius. Feeding the diameter straight into π·r²·h multiplies your answer by 2² = 4. A 100 mm bore pipe is r = 50 mm, not 100 mm. Always halve first, and use the diameter readout in the cylinder volume calculator as a sanity check that you have the right number for your application.

Mixing linear, area, and volume units

Radius in cm gives surface area in cm² and volume in cm³. Radius in metres gives volume in m³, which is one thousand litres — not one millilitre. The conversions between linear (cm to m: factor 100), area (cm² to m²: factor 10,000), and volume (cm³ to m³: factor 1,000,000) trip people up because the same prefix hides three different multipliers. If you need to convert between units after the fact, use the volume converter.

Forgetting that radius matters more than height

Doubling the height doubles the volume. Doubling the radius quadruples it. That asymmetry is the single most useful intuition for cylinder sizing: if you need 4× the capacity, widen the cylinder rather than lengthening it, and you will spend roughly the same surface area instead of double. The reverse applies when you want a long thin object — a probe, a wire, a catheter — where you are willing to trade volume for reach.

Treating an oblique cylinder like a right one for surface area

Cavalieri’s principle keeps the volume formula working for oblique cylinders, but the lateral surface stops being a clean 2π·r·h rectangle — it becomes a parallelogram whose long sides are slanted. If the cylinder is meaningfully tilted, the calculator’s lateral and total surface numbers will under-estimate; use the volume only and treat the surface separately.

When to seek professional advice

Geometry is geometry. The formulas behind the cylinder volume calculator are exact, and you can trust them for the kinds of jobs where getting the volume right matters — sizing a water butt, estimating fluid in a pipe run, working out air capacity of a tank, or calculating engine displacement. Where you should stop and ask a specialist is anywhere the consequences are regulatory or safety-critical: storage tank specifications under BS EN 14015 or API 650, pressure-vessel design under ASME BPVC Section VIII, and any vessel that holds flammable, toxic, or pressurised contents. The maths is the easy part of those projects; the engineering judgement and the inspection regime are not.

Frequently asked questions

What is the formula for the volume of a cylinder?

V = π · r² · h, where r is the radius of the circular base and h is the perpendicular height between the two flat ends. It is the same “base area × height” rule that gives the volume of any prism, applied to a circular base of area π·r².

What is the difference between lateral and total surface area?

Lateral surface area is only the curved side — the rectangle you would get if you unrolled the side flat, with area 2π·r·h. Total surface area also includes the two circular ends, each of area π·r², giving 2π·r·h + 2π·r². Use lateral when wrapping a label around a can; use total when painting or coating the whole shape.

Does the volume formula work for an oblique cylinder?

Yes, as long as h is the perpendicular height between the two parallel circular ends rather than the slant length. Cavalieri’s principle keeps the volume the same as for an upright cylinder of identical r and perpendicular h. The surface-area formulas, however, assume a right cylinder.

How do I convert the volume to litres or gallons?

If r and h are in centimetres, the volume is in cubic centimetres, and 1 cm³ = 1 millilitre, so divide by 1,000 for litres. In metres, 1 m³ = 1,000 litres. A US gallon is about 3.78541 litres; a UK gallon about 4.54609 litres. A typical 330 mL drinks can has internal volume around 393 cm³ — the difference is the headspace above the liquid.

Can I use the diameter instead of the radius?

Halve it first. Pipes, cans, and tanks are usually labelled by diameter, but the formula wants the radius — r = d/2. A pipe with internal diameter 50 mm has r = 25 mm. Skipping that halving multiplies your volume by four, which is the single most common cylinder-volume mistake.

Why does doubling the radius multiply the volume by four?

Volume is proportional to r²·h. With h fixed, doubling r multiplies r² by four, so the volume goes up four-fold. Doubling the height only doubles the volume, because h appears linearly. That asymmetry is why a tank twice as wide holds far more than a tank twice as tall.

How is a cylinder related to a sphere and a cone?

A cylinder of radius r and height 2r is the tightest fit around a sphere of radius r. The cylinder has volume 2π·r³, the sphere (4/3)·π·r³, and a cone of the same base and height has (2/3)·π·r³ — the 1 : 2 : 3 ratio for cone : sphere : cylinder that Archimedes asked to have carved on his tombstone.

What units does the calculator return?

Whatever you put in. Linear inputs keep the same unit; areas are squared; volume is cubed. Centimetres in give cm³ out; metres in give m³ out; inches in give in³ out. The cylinder volume calculator does not assume any system, so you can stay in whichever units your drawing or spec uses.

Frequently asked questions

What is the formula for the volume of a cylinder?

V = π·r²·h, where r is the radius of the circular base and h is the perpendicular height between the two flat ends. It is the same "base area × height" rule that gives the volume of any prism, applied to a circular base of area π·r².

What is the difference between lateral and total surface area?

Lateral surface area is only the curved side — the rectangle you would get if you unrolled the side flat, with area 2π·r·h. Total surface area also includes the two circular ends, each of area π·r², giving 2π·r·h + 2π·r². Use lateral when wrapping a label around a can; use total when painting or coating the whole shape.

Does the volume formula work for an oblique cylinder?

Yes, as long as h is the perpendicular height between the two parallel circular ends rather than the slant length. Cavalieri's principle says any solid whose horizontal cross-section is a fixed circle of area π·r² has volume π·r²·h, so an oblique cylinder of the same r and perpendicular h has the same volume as the upright one. The surface-area formulas, however, assume a right cylinder.

How do I convert the volume to litres or gallons?

If r and h are in centimetres, the volume is in cubic centimetres, and 1 cm³ = 1 millilitre, so divide by 1,000 for litres. In metres, 1 m³ = 1,000 litres. A US gallon is about 3.78541 litres; a UK gallon about 4.54609 litres. A typical 330 mL drinks can has r ≈ 3.3 cm and h ≈ 11.5 cm, giving roughly 393 cm³ of internal volume — the difference is the headspace.

Can I use the diameter instead of the radius?

Halve it first. Pipes, cans, and tanks are usually labelled by diameter, but the formula wants the radius — so r = d/2. A pipe with internal diameter 50 mm has r = 25 mm. Skipping that halving multiplies your volume by 4, which is the single most common cylinder-volume mistake.

Why does doubling the radius multiply the volume by four?

Volume is proportional to r²·h. With h fixed, doubling r multiplies r² by 4, so the volume goes up four-fold. Doubling the height only doubles the volume, because h appears linearly. That is why a tank twice as wide holds far more than a tank twice as tall.

How is a cylinder related to a sphere and a cone?

A cylinder of radius r and height 2r is the tightest fit around a sphere of radius r. The cylinder has volume 2π·r³, the sphere (4/3)·π·r³, and a cone of the same base and height has (2/3)·π·r³ — the famous 1 : 2 : 3 ratio for cone : sphere : cylinder that Archimedes asked to have carved on his tombstone. The surface area of the sphere equals the lateral surface of the surrounding cylinder, both 4π·r².

What units does the calculator return?

Whatever you put in. Linear inputs (radius, diameter) keep the same unit; areas (base, lateral, total) are squared; volume is cubed. Centimetres in → cm³ out; metres in → m³ out; inches in → in³ out. The calculator does not assume any system, so you can stay in whichever units your drawing or spec uses.

Informational only. Not personalised financial, legal, or tax advice.