Cylinder calculator

Right circular cylinder. Volume is the base disk times height. Unwrap the side and you get a rectangle 2πr by h.

Report error
Volume
π r² h
Lateral
2 π r h
Total surface
2πr(h+r)

Lateral vs two bases

Surface split

Parts

PartDecimalIn terms of π
V = π r² h

Dimensions

CYLINDER GEOMETRY GUIDE

Understanding the Volume of a Cylinder

A cylinder is one of the most useful solids in elementary and analytic geometry. The key idea is simple: a cylinder is built from a circular base repeated through a height. Once you understand the area of the base, the volume formula follows almost automatically.

For a right circular cylinder, let r be the radius of the circular base and h the perpendicular height. The volume is the amount of three-dimensional space enclosed by the solid.

r h right circular cylinder
The radius measures the circular base; the height is the perpendicular distance between the two bases.

What exactly is the volume of a cylinder?

Volume measures the space occupied by a three-dimensional object. For a cylinder, imagine cutting it into many very thin horizontal slices. Every slice is a circle with the same radius, so every slice has the same area:

Base area = πr²

If those identical circular slices are stacked through a height h, the total volume is the base area multiplied by the height:

V = πr²h

This is not merely a formula to memorize. It is an instance of a much broader geometric principle:

Volume = constant cross-sectional area × perpendicular height. For a right circular cylinder, the cross-sectional area is πr² at every horizontal level.

Why the formula works

There are two complementary ways to understand V = πr²h. The first is geometric and the second connects the formula to calculus.

1. Think in layers

Take a cylinder of radius r and height h. A horizontal slice through the cylinder is a disk. Its area is πr². If the cylinder is 12 cm high, conceptually you are stacking circular layers throughout those 12 cm. Since each layer has the same area, multiplying the area by the height gives the total volume.

V = (area of one circular slice) × (height)
V = πr² × h
V = πr²h

2. The calculus viewpoint

In integral calculus, volume can be found by adding the volumes of infinitely thin slices. At every height y between 0 and h, the cross-sectional area remains πr². Therefore:

V = ∫₀ʰ πr² dy = πr²h

The integral does not produce a different formula; it formalizes the same geometric idea. Because the cross-sectional area is constant, the integral is simply that constant multiplied by the interval length h.

Radius, diameter, and height

Students often make the same mistake here: the formula uses the radius, not the diameter. If a problem gives the diameter d, convert it first:

r = d/2

Substituting this into the volume formula gives a useful diameter form:

V = π(d/2)²h = πd²h/4
QuantitySymbolRole in the calculation
RadiusrDistance from the center of the base to its edge
DiameterdTwice the radius: d = 2r
HeighthPerpendicular distance between the bases
VolumeVThree-dimensional space inside the solid
A diameter of 10 cm means a radius of 5 cm. Putting 10 directly into πr²h would make the base area four times too large.

Volume is not surface area

Volume and surface area describe different geometric quantities. Volume tells you how much three-dimensional space the cylinder contains. Surface area tells you how much two-dimensional material would be needed to cover its boundary.

Volume

V = πr²h. Units are cubic: cm³, m³, ft³, and so on.

Total surface area

S = 2πrh + 2πr². Units are square: cm², m², ft², and so on.

The surface area formula comes from separating the cylinder into three pieces: the curved lateral surface and two circular bases.

S = 2πrh + 2πr² = 2πr(h+r)

Why the lateral area is 2πrh

The curved side of a cylinder can be understood by imagining that you cut it vertically and unroll it onto a flat plane. The curved surface becomes a rectangle.

cylinder side 2πr h unwrapped lateral surface
The rectangle has width equal to the base circumference 2πr and height h.

The rectangle's area is therefore:

L = (circumference) × (height) = 2πr × h = 2πrh

Add the two circular bases, each with area πr², and the total surface area follows:

S = 2πrh + 2πr²

Worked example: finding volume from radius and height

Suppose a cylinder has radius 5 cm and height 12 cm. We want its volume.

r = 5 cm
h = 12 cm

V = πr²h
V = π(5²)(12)
V = 300π cm³
V ≈ 942.48 cm³

The answer is approximately 942.48 cubic centimeters. Notice the unit: the input lengths are centimeters, so the volume is measured in cubic centimeters.

Finding a missing dimension

The cylinder formula can be rearranged algebraically. This is important because geometry problems do not always give radius and height directly.

Known quantitiesUnknownRearranged formula
r and hVV = πr²h
V and rhh = V/(πr²)
V and hrr = √(V/(πh))
V and hdd = 2√(V/(πh))

For example, if the volume is 500π cm³ and the radius is 5 cm:

500π = π(5²)h
500π = 25πh
500 = 25h
h = 20 cm

CalculatorSoup likewise treats these rearrangements as standard algebraic forms of the cylinder equations, including solving for height from volume and radius and solving for radius from volume and height.

The volume of a hollow cylinder

A hollow cylinder, such as a pipe or tube, is not filled throughout its outer circular boundary. Its material occupies the region between an outer radius R and an inner radius r.

R r cross-section of the material outer cylinder minus inner cylinder = material volume
The hollow cylinder is the outer cylinder with the inner cylindrical void removed.

The cross-sectional area of the material is the outer disk minus the inner disk:

A = π(R² − r²)

Multiplying by the height gives:

V = π(R² − r²)h

If the problem gives outer diameter D and inner diameter d instead, use:

V = π(D² − d²)h / 4

This is especially useful for pipes, tubes, washers extruded through a height, and other cylindrical shells. The same outer-minus-inner-cylinder construction is the standard way to model the volume of a hollow cylinder.

What changes for an oblique cylinder?

An oblique cylinder is tilted, so its lateral edges are not perpendicular to the bases. The crucial distinction is between height and slanted side length.

h height is measured perpendicular to the bases
Tilting the cylinder does not change the volume formula, provided h is the perpendicular height.

The volume remains:

V = πr²h

This is a consequence of the fact that every horizontal cross-section still has the same circular area. In more advanced geometry, this is closely related to Cavalieri's principle: solids with equal cross-sectional areas at corresponding heights have equal volumes.

Do not replace the perpendicular height with the slanted side length. The slanted length belongs to a different measurement and should not be substituted for h in the volume formula.

Units and dimensional reasoning

Units provide a powerful error check. The radius and height are lengths, so r² has square units. Multiplying r² by h produces cubic units:

length² × length = length³
Input unitsVolume unitExample
cmcm³250 cm³
m2.5 m³
inin³18 in³
ftft³40 ft³

If you calculate an ordinary cylinder volume and end up with square centimeters rather than cubic centimeters, something has gone wrong in the setup.

Common mistakes worth avoiding

  • Using diameter as radius: convert d to r = d/2 before squaring.
  • Forgetting the square: the formula is πr²h, not πrh.
  • Using slanted length as height: for an oblique cylinder, h is perpendicular to the bases.
  • Confusing volume and surface area: volume is cubic units; surface area is square units.
  • Mixing units: convert dimensions to a consistent unit before calculating.
  • Using the wrong radius in a pipe: hollow-cylinder volume requires the difference between the outer and inner cylinders.

A geometric way to remember the formula

Rather than memorizing V = πr²h as an isolated equation, remember the structure:

Volume = base area × perpendicular height

For a cylinder, the base is a circle, so its area is πr². Substitute that base area into the general rule and the cylinder formula appears immediately.

This way of thinking is more useful than memorization because the same principle appears repeatedly in geometry. A prism uses the area of a fixed base times its perpendicular height; a cylinder follows the same pattern, with a circular base.

Frequently asked questions

What is the formula for the volume of a cylinder?

For a right circular cylinder, the volume is V = πr²h, where r is the radius of the base and h is the perpendicular height.

Can I use the diameter instead of the radius?

Yes, but convert it correctly. Since r = d/2, the formula becomes V = πd²h/4.

Does an oblique cylinder have the same volume formula?

Yes. Use the perpendicular height between the bases: V = πr²h. The slanted side length is not the height.

How is a hollow cylinder different?

Its material occupies the outer cylinder minus the inner cylindrical void, so V = π(R² − r²)h.

What units should the answer have?

Because volume is three-dimensional, the answer uses cubic units such as cm³, m³, ft³, or in³.

Cylinder volume: the essential ideas

A cylinder becomes much easier once its geometry is reduced to its cross-section. The base is a circle with area πr², and the cylinder extends that same cross-section through a perpendicular height h.

V = πr²h

From this one relationship, you can derive the diameter form, solve for a missing dimension, understand hollow cylinders by subtraction, and see why an oblique cylinder still uses perpendicular height. The formula is therefore not just a rule for a calculator—it is a compact expression of the geometry itself.