Geometry calculator

Cylinder calculator

Find the volume, surface area, radius, diameter, or height of any cylinder. Enter the two values you know — the calculator solves for everything else, in the units you need.

I know:

Volume 942.48cm³
Total surface area 534.07cm²
Lateral (side)376.99 cm²
Top + bottom157.08 cm²
Base circumference31.42 cm
0.942 L 0.249 US gal 0.207 UK gal 0.0333 ft³
V = π × r² × h = π × 5² × 12

How to calculate the volume of a cylinder

A cylinder's volume is the area of its circular base multiplied by its height. Because the base is a circle, that area is π times the radius squared — so the full formula is:

V = π × r² × h

Here, r is the radius of the circular base and h is the perpendicular height — the straight-line distance between the two circular faces, not the slanted side length if the cylinder leans.

Worked example

A water tank has a radius of 5 cm and a height of 12 cm. What's its volume?

V = π × 5² × 12 = π × 25 × 12 = 942.48 cm³

That's also about 0.94 liters, or 0.25 US gallons.

If you only know the diameter

Measuring across a cylinder (the diameter) is usually easier than measuring to its center (the radius). Since the diameter is always twice the radius, substitute d/2 for r:

V = π × (d/2)² × h = (π × d² × h) / 4

How to calculate the surface area of a cylinder

A cylinder's surface has three parts: the curved side wall, plus the two flat circular ends. Imagine peeling the label off a can — it unrolls into a flat rectangle. That rectangle's height is the cylinder's height, and its width is the circumference of the base (2πr). That gives the lateral surface area:

Lateral surface area = 2 × π × r × h

Add the two circular ends (each π × r²) to get the total surface area:

Total surface area = 2πrh + 2πr² = 2πr(h + r)
Worked example

Using the same tank — radius 5 cm, height 12 cm:

Lateral area = 2 × π × 5 × 12 = 376.99 cm²

Two circular ends = 2 × π × 5² = 157.08 cm²

Total surface area = 376.99 + 157.08 = 534.07 cm²

How to find the radius, diameter, or height when you know the volume

Sometimes you're working backward — you know how much a cylindrical container needs to hold, and you need to figure out its dimensions. Rearranging the volume formula gives you each one directly. Use the calculator above (switch to a "Volume & ..." mode) to do this instantly, or use these formulas by hand. For a deeper walkthrough with more worked examples, see our full guide to reverse-solving cylinder dimensions.

You knowSolve forFormula
V and hradiusr = √(V / (π × h))
V and rheighth = V / (π × r²)
radiusdiameterd = 2 × r
diameterradiusr = d / 2

Is there a "perimeter" of a cylinder?

Strictly speaking, no — perimeter is a 2D concept, the distance around a flat shape's edge. A cylinder is a 3D solid, so it doesn't have a single perimeter. When people search for this, they usually mean one of two things:

If you're trying to find the circumference, the calculator above shows it automatically as "base circumference" alongside the surface area breakdown.

Cylinder volume in gallons and liters

For tanks, drums, and storage cylinders, volume in cubic units isn't always the most useful number — you usually want gallons or liters. The calculator converts automatically, but here's the math if you're doing it by hand:

ConversionMultiply cubic result by
cm³ → liters0.001
in³ → US gallons0.004329
ft³ → US gallons7.48052
liters → US gallons0.264172
liters → UK (imperial) gallons0.219969

Frequently asked questions

V = π × r² × h, where r is the base radius and h is the height. If you only have the diameter, divide it by 2 first to get the radius.
Rearrange the volume formula to h = V / (π × r²). Switch the calculator above to "Volume & radius → find height" to do this instantly.
Rearrange the volume formula to r = √(V / (π × h)). Switch the calculator above to "Volume & height → find radius."
Lateral surface area is just the curved side (2πrh) — like the label on a can. Total surface area adds the two flat circular ends (2πr²), giving 2πrh + 2πr² in total.
Find the volume in cubic inches or cubic feet, then convert: multiply cubic inches by 0.004329 for US gallons, or cubic feet by 7.48052. The calculator above shows this automatically once you enter dimensions.
Not in the strict geometric sense — perimeter applies to flat 2D shapes. People usually mean the circumference of the circular base (2πr), which the calculator shows in the surface area breakdown.