Cylinder Volume Calculator

The volume of a cylinder is V = πr²h: the area of the round base times the height. A cylinder with radius 3 cm and height 5 cm holds 45π ≈ 141.37 cm³, about 0.14 litres (see the steps). Type a radius or diameter to get the volume in cubic units, litres and gallons, and the surface area.

Find the volume of a cylinder

Type the radius or diameter and the height. Results update as you type.

Measure
Examples:

How to Use This Calculator

  1. Pick what you need

    Cylinder for the volume and area, Hollow for pipes and tubes, Find h or r (Find on phones) to work backwards from a volume, or Tank fill for the liquid in a part-full tank.

  2. Type the sizes

    Choose radius or diameter and your unit, then type the numbers. Decimals and fractions such as 3/4 both work.

  3. Read the answer

    You get the volume in terms of π and as a decimal, litres and gallons, the surface areas, a drawing to scale with the net, and the steps.

The volume of a cylinder formula

Formula
V = πr²h
V = πd²h ÷ 4 (with the diameter)
r is the radius of the circular end, d = 2r is the diameter, h is the height, and π ≈ 3.14159.

A cylinder is a circle pushed straight up. The circle at the bottom has area πr², and every slice of the cylinder above it has that same area, so the volume is the base area times the height. Think of a stack of coins: one coin's area times the height of the stack.

For a cylinder with radius 3 cm and height 5 cm:

  1. Square the radius: 3² = 9. The base has area 9π cm².
  2. Multiply by the height: 9 × 5 = 45, so V = 45π cm³. That is the answer "in terms of π".
  3. Multiply by π for a decimal: 45 × 3.14159 ≈ 141.37 cm³.

Show r = 3 cm, h = 5 cm in the calculator

Volume of a cylinder with the diameter

Most real objects are measured across, which gives the diameter. Halve it to get the radius, or put r = d ÷ 2 into the formula to get V = πd²h ÷ 4. Since π ÷ 4 ≈ 0.7854, trade books write it as V = 0.7854 × d² × h. A drinks can about 6.6 cm across and 12.2 cm tall has π × 6.6² × 12.2 ÷ 4 ≈ 417.39 cm³. A real can holds less than that because its top and bottom are narrower and it is not filled to the brim.

Show the can in the calculator

The most common mistake is to use the diameter as if it were the radius. Because the radius is squared, that makes the answer four times too big.

Cylinder volume in litres and gallons

The formula gives cubic units: cm³ if you measured in centimetres, in³ if you measured in inches. To get a capacity, convert with these exact or standard values:

Conversions from cubic units to litres and gallons
You measured in Volume comes out in To get litres or gallons
millimetres mm³ ÷ 1,000,000 for litres
centimetres cm³ ÷ 1,000 for litres (1 cm³ = 1 mL)
metres m³ × 1,000 for litres
inches in³ ÷ 231 for US gallons
feet ft³ × 7.4805 for US gallons
litres L ÷ 3.7854 for US gallons, ÷ 4.5461 for UK gallons

A water tank with radius 30 cm and height 100 cm holds π × 30² × 100 = 90,000π ≈ 282,743.34 cm³, which is about 282.74 litres. A bucket 6 inches in radius and 12 inches tall holds 432π ≈ 1,357.17 in³, or about 5.8752 US gallons.

Show the bucket in gallons

Volume, capacity and surface area of common cylinders measured in centimetres
r × h (cm) Volume ≈ cm³ Litres
1 × 1 π 3.1416 0.003142
2 × 5 20π 62.8319 0.062832
3 × 5 45π 141.37 0.141372
5 × 10 250π 785.4 0.785398
10 × 10 1,000π 3,141.59 3.1416
10 × 30 3,000π 9,424.78 9.4248
15 × 40 9,000π 28,274.33 28.2743
25 × 100 62,500π 196,349.54 196.35

Surface area of a cylinder

Cut a cylinder along its side and unroll it, and you get a flat net: one rectangle and two circles. The rectangle is as wide as the circle's circumference, 2πr, and as tall as the cylinder, h.

r πr² πr² curved side 2πr × h = 2πrh 2πr (the circumference) h
Add the pieces: two circles, 2 × πr², and the rectangle, 2πr × h. So A = 2πr² + 2πrh.
Formulas
Total surface area A = 2πr² + 2πrh = 2πr(r + h)
Curved (lateral) area = 2πrh
Area of each end = πr²

Indian and British textbooks call the curved part the CSA (curved surface area) and the whole the TSA (total surface area). For r = 3 and h = 5 the ends give 18π and the side gives 30π, so the total is 48π ≈ 150.8 square units. A cylinder with no lid, such as a cup or an open tank, has one end less: πr² + 2πrh.

Volume of a hollow cylinder

A pipe or tube is a big cylinder with a smaller one taken out. Its material has volume V = πR²h − πr²h = π(R² − r²)h, where R is the outer radius and r the inner one. The end of the pipe is a ring with area π(R² − r²).

Take a pipe 60 mm across the outside and 50 mm across the inside, 2 m long. The radii are 30 mm and 25 mm, so the material is π × (900 − 625) × 2000 = 550,000π ≈ 1,727,876 mm³, about 1.7279 litres. The hole inside holds π × 25² × 2000 ≈ 3.927 litres of water.

Show the pipe in the calculator

Liquid in a partly filled tank

In a tank standing upright, the liquid is a shorter cylinder, so its volume is πr² times the depth. A tank lying on its side is harder. Seen from the end, the liquid fills a slice of the circle called a circular segment, and its area depends on the depth y:

Horizontal tank
V = L × [r² acos((r − y) ÷ r) − (r − y)√(2ry − y²)]
r is the inside radius, L the length and y the depth of the liquid, all in the same unit. acos gives radians.

A tank 120 cm across and 250 cm long with liquid 45 cm deep holds about 968.45 litres. That is about 34.25% of the tank, even though the depth is 37.5% of the diameter, because the tank is narrow at the bottom.

Show this tank in the calculator

Finding the height or radius from the volume

Rearrange V = πr²h. For the height, divide the volume by the base area: h = V ÷ (πr²). For the radius, divide by πh and take the square root: r = √(V ÷ (πh)). Make sure the volume is in the cube of your length unit first, so 2 litres becomes 2,000 cm³. A container with a radius of 5 cm needs to be 2000 ÷ (25π) = 80/π ≈ 25.4648 cm tall to hold 2 litres.

Find the height for 2 litres

Cylinder, cone and sphere

A cone with the same base and height as a cylinder holds exactly a third of it, V = ⅓πr²h. A sphere that just fits inside a cylinder (so h = 2r) holds two thirds of it, V = ⁴⁄₃πr³. Archimedes worked out that second fact more than 2,000 years ago. For r = 3 cm and h = 6 cm the three volumes are:

Volumes of a cylinder, cone and sphere with radius 3 cm and height 6 cm
Shape Formula Volume Share of the cylinder
Cylinder πr²h 54π ≈ 169.65 cm³ 1
Sphere inside it ⁴⁄₃πr³ 36π ≈ 113.1 cm³ 2/3
Cone inside it ⅓πr²h 18π ≈ 56.5487 cm³ 1/3

Oblique cylinders

A cylinder that leans to one side, like a stack of coins pushed over at an angle, has the same volume as a straight one, V = πr²h, as long as h is the straight-up height and not the length of the slanted side. Every slice is still a circle of area πr², and there are just as many slices. This is Cavalieri's principle. The surface area does change, because the side is longer.

Common mistakes

  • Using the diameter as the radius. The answer comes out four times too big.
  • Mixing units, such as a radius in centimetres and a height in metres. Convert first.
  • Squaring the height instead of the radius. Only r is squared in πr²h.
  • Reading cm³ as litres. 1,000 cm³ make one litre, so 141 cm³ is 0.141 L.
  • Measuring a tank on the outside. The capacity depends on the inside size, without the wall.

Frequently Asked Questions

What is the formula for the volume of a cylinder?

V = πr²h, where r is the radius of the circular end and h is the height. It is the area of the base, πr², times the height. For r = 3 cm and h = 5 cm, V = π × 9 × 5 = 45π ≈ 141.37 cm³.

Show r = 3 cm, h = 5 cm

How do you find the volume of a cylinder with the diameter?

Halve the diameter to get the radius, or use V = πd²h ÷ 4, which is the same as 0.7854 × d² × h. A can 6.6 cm across and 12.2 cm tall has V = π × 6.6² × 12.2 ÷ 4 ≈ 417.39 cm³.

Show the can in the calculator

How many litres are in a cylinder?

Work out the volume in cubic centimetres and divide by 1,000, because 1 litre is 1,000 cm³. A tank with radius 30 cm and height 100 cm holds π × 30² × 100 ≈ 282,743.34 cm³, which is about 282.74 litres. In metres, 1 m³ is 1,000 litres.

Show the 30 cm × 100 cm tank

What is the surface area of a cylinder?

The total surface area is A = 2πr² + 2πrh: two circular ends plus the curved side. The curved part alone, 2πrh, is called the lateral or curved surface area (CSA), and the total is the TSA. For r = 3 and h = 5 the total is 18π + 30π = 48π ≈ 150.8.

How do you find the volume of a hollow cylinder?

Subtract the hole from the whole: V = π(R² − r²)h, with R the outer radius and r the inner radius. A pipe with an outer diameter of 60 mm, an inner diameter of 50 mm and a length of 2 m has π × (30² − 25²) × 2000 ≈ 1,727,876 mm³ of material, about 1.7279 litres.

Show the pipe in the calculator

How do you calculate the volume of a cylindrical tank?

A full tank holds πr²h, measured on the inside. For a partly filled upright tank, use the liquid depth instead of the height. For a tank lying on its side, the liquid fills a slice of the circle, so multiply that slice's area by the tank's length. The calculator's Tank fill mode does both.

Try a tank lying on its side

How do you find the height of a cylinder from its volume?

Divide the volume by the area of the base: h = V ÷ (πr²). To hold 2 litres (2,000 cm³) with a radius of 5 cm, the height is 2000 ÷ (π × 25) ≈ 25.4648 cm.

Find the height for 2 litres