StatGardenREF. DESK
Calculators/Geometry/Diameter of a Cylinder Calculator
Geometry

Diameter of a Cylinder Calculator

Volume and surface area of a cylinder from its diameter and height, without converting to radius first.

Published 26 August 2026 · Updated 21 September 2026

What this calculator does

Cylinder volume is normally taught with the formula V = πr²h, which needs a radius. Measuring a pipe, tube or tank with a tape measure or calipers, though, usually gives a diameter, and this diameter of a cylinder calculator takes that measurement straight in, working out the volume of a cylinder with diameter without an extra manual step.

The maths underneath is the same either way, since the diameter is simply divided by two internally before the standard formula runs. What changes is convenience: entering the number actually on the tape measure or spec sheet, rather than doing the halving in your head or on a separate calculator first.

The formula

FormulaV = π(d/2)²h, A = 2π(d/2)² + πdh

The radius used internally is half the entered diameter. Volume is then π times that radius squared times the height, and total surface area adds the two circular end caps to the curved side, expressed directly in terms of diameter and height.

TermMeaning
dThe diameter of the cylinder, the full width across its circular face.
hThe height (or length, for a horizontal cylinder) of the cylinder.
VVolume: π(d/2)²h.

The inputs explained

FieldWhat to enter
DiameterThe diameter of the cylinder, measured straight across the circular face.
HeightThe height of the cylinder, measured along its axis.

When to use it

Sizing a pipe or tube from a spec sheet

Pipe specifications are almost always given as a diameter (nominal or actual), so entering that figure directly avoids halving it before working out how much the pipe can hold.

Estimating tank capacity from an outside measurement

Wrapping a tape measure around a cylindrical tank and dividing by π gives a diameter more naturally than a radius, since there is no centre point to measure from on the outside.

Cross-checking a radius-based calculation

Doubling a known radius and running it back through this calculator as a diameter is a quick way to confirm a volume figure from a separate radius-based tool.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How volume changes with diameter at a fixed height

A fixed height of 20 units, across a range of diameters.

Height held at 20
DiameterVolumeTotal surface area
4251.327276.460
81,005.31603.186
101,570.80785.398
153,534.291,295.91
206,283.191,884.96
3014,137.173,298.67
Volume grows with the square of the diameter, so doubling the diameter from 10 to 20 roughly quadruples the volume, from about 1,570.8 to 6,283.2.

How volume changes with height at a fixed diameter

A fixed diameter of 10 units, across a range of heights.

Diameter held at 10
HeightVolumeTotal surface area
5392.699314.159
10785.398471.239
201,570.80785.398
302,356.191,099.56
503,926.991,727.88
1007,853.983,298.67
Volume scales directly with height at a fixed diameter, so doubling the height from 20 to 40 doubles the volume as well.

Questions

Why not just halve the diameter and use the radius calculator?

You certainly can, and the answer is identical; this calculator simply saves that one manual step by accepting the diameter directly, which matches how most tape-measure and spec-sheet readings are already given.

Does this give the same answer as a radius-based cylinder calculator?

Yes, exactly, as long as the diameter entered here is twice the radius entered there. Both compute the same underlying formula, only starting from a different one of the two equivalent measurements.

What if I only know the circumference, not the diameter?

Divide the circumference by π to get the diameter first (circumference = π × diameter), then enter that result here.

Does this work for a hollow pipe or tube?

No, this gives the solid volume of a full cylinder. For a pipe with a wall thickness, an inner and outer diameter both need to be accounted for separately.

For a cylinder measured by radius instead, see the volume of a cylinder calculator. For a hollow tube or pipe with an inner and outer radius, see the hollow cylinder volume calculator.