↔ • Reviewed 2026-11-05

Cylinder Volume Using Diameter

Calculate volume directly from diameter and perpendicular height.

Quick answer

The short version

Square the diameter, multiply by π and height, then divide by four: V = πd²h/4.

V = πd²h ÷ 4

Interactive tool

Calculate using diameter

Values convert through SI units; displayed digits are rounded only at the end.

V = πd²h/4

r h
Result
—cm³

Complete the fields to calculate.

How the result changes

Calculated from the current dimensions
How the result changesComplete the calculator to display a graph.
Reserved advertising area

Checked example

Worked calculation

Result: Diameter 8 cm and height 12 cm give π × 8² × 12 ÷ 4 = 603.185789 cm³.

01 • Guide

Why the formula divides by four

Radius is half the diameter. Squaring d/2 creates d²/4, so the usual πr²h formula becomes πd²h/4. The calculator uses this exact equivalent rather than rounding the radius first.

Keep the full precision of intermediate values and round only the final display. This avoids compounding error when a derived radius or converted unit is used in another step.

02 • Guide

Measuring diameter well

Measure a straight line through the circle’s centre. For a pipe or container, specify whether the inside diameter, outside diameter or nominal trade size is being used; those describe different physical quantities.

The calculator validates physical limits before displaying a result. Blank or impossible inputs never produce a stale value, NaN or Infinity.

03 • Guide

Oblique cylinders

The same diameter form works for a slanted cylinder, but h must be the perpendicular separation between the bases. Using the sloping edge overstates volume.

Interpretation

How to use the result responsibly

The answer models an ideal geometric cylinder. Manufacturing tolerances, wall thickness, rounded ends, deformation, tank tilt and measurement uncertainty can all shift a real value. Use inside dimensions for capacity and outside dimensions for occupied space. For safety, compliance, dosing, structural or purchasing decisions, compare the estimate with drawings, calibration data or a qualified professional.

Dimensional checks help catch mistakes: a volume result must carry cubic units, an area result square units and a derived radius or height linear units. If changing one unit alters the represented physical size, a conversion step was missed.

Clear answers

Using diameter: common questions

Is diameter twice the radius?

Yes. d = 2r for a circle.

Can I use circumference instead?

Yes. Use the circumference calculator, which derives radius as C/(2π).

Continue exploring

Related cylinder tools