FLXCode Cylinder Volume Calculator

FLXCode apps

Appearance

Cylinder Volume Calculator

Type the diameter and the height of a drum, pipe, can or tank. You get the volume in cubic units, liters and US gallons.

rh

Example Cylinder

13,319.9 cubic inches

The formula with your numbers

r = d / 2 = 22.5 / 2 = 11.25 in

V = π × r² × h

V = π × 11.25² × 33.5 = 13,319.9 in³

The same volume in other units

Other units
Cubic feet7.70825
Cubic yards0.285491
Cubic centimeters218,273
Cubic meters0.218273
Liters218.273
US gallons57.6617

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Quick start

  1. The tool starts with a steel drum. Replace the diameter and the height with your own.
  2. Choose the unit. Inches, feet, yards, millimeters, centimeters and meters all work.
  3. Switch the round size between diameter and radius if you measured the other one.
  4. For a pipe wall or a hollow roller, press Tube and enter the outer and inner diameters and the length.

Worked examples

Each line is worked out by the engine behind the tool, with the diameter as the round size.

CylinderCubic feetLitersUS gallons
Steel drum, 22.5 in across, 33.5 in tall7.708218.2757.66
Rain barrel, 24 in across, 36 in tall9.425266.8870.5
Water pipe, 4 in inside diameter, 10 ft long0.87324.716.53
Round concrete form, 12 in across, 8 ft tall6.283177.9247
Stock tank, 6 ft across, 2 ft deep56.5491,601.28423.01
Small can, 8 cm across, 11 cm tall0.020.550.15

The formula

V = π x r² x h

The circle at the end has an area of pi times the radius squared. Stack that circle up to the height and you get the volume. With a diameter, the radius is half of it, so the formula also reads V = π x d² x h / 4. A hollow cylinder, such as a pipe wall, is the outer cylinder minus the inner one: V = π / 4 x (D² − d²) x L.

The units follow the sizes. Inches give cubic inches, and one US gallon is 231 cubic inches. Centimeters give cubic centimeters, and 1,000 of those make a liter.

Tanks, drums and pipes

For a tank, use the inside sizes. The outside diameter overstates the capacity by twice the wall thickness on each dimension. Add the lid and the rim to the height only if liquid can fill that space.

Measure the diameter across the top at two angles and average them if the tank is slightly out of round. For a drum, the height is the inside depth, not the overall height with the rim.

A pipe's capacity per foot is useful for filling and flushing. A 4 in pipe holds 0.653 US gallons per foot, since the 10 ft pipe above holds 6.53. A stock tank of 56.5 cubic feet is a common size for livestock water.

Numbers this uses

Every constant the tool uses is listed here with its source. Where a number varies, you can edit it in the tool.

  • Pi is 3.14159265.... The circumference of a circle divided by its diameter. The tool uses the full double-precision value.
  • One US gallon is 231 cubic inches, or 3.785411784 liters. The definition of the US liquid gallon (NIST Handbook 44).
  • One inch is 25.4 mm exactly. Set by the 1959 international yard and pound agreement.
  • One cubic foot is 1,728 cubic inches. 12 in x 12 in x 12 in.
  • One liter is 1,000 cubic centimeters. The SI definition of the liter, one cubic decimeter.

Common mistakes

  • Typing the diameter into the radius box. The tool labels which one it expects, so check the unit line.
  • Using outside sizes for a thick-walled tank or pipe.
  • Reading the label size of a drum or tank as exact. Nominal sizes are rounded and leave headroom.
  • Forgetting a cone or dome on the bottom. The result is for a straight-sided cylinder only.

Your sizes stay in this page and are not uploaded. We count events without cookies (details).

FAQ

What is the formula for the volume of a cylinder?

Volume = pi x r² x h, which is the area of the circular end times the height. A cylinder with a 3 in radius and a 10 in height holds 282.74 cu in. If you have the diameter, halve it first.

How many gallons is a 55 gallon drum, really?

A drum 22.5 in across and 33.5 in tall works out to 57.7 US gallons to the brim. The nominal 55 leaves room at the top, and the ribs and rims of real drums take some space, so the label figure is lower.

How do I find the volume of a pipe?

Use the inside diameter and the length. A 4 in pipe 10 ft long holds 6.53 US gallons, or 24.7 liters. For the material in the wall, pick Tube. A pipe with a 4.5 in outer and a 4 in inner diameter has 401 cu in of wall over 10 ft.

How many gallons are in each inch of a tank?

It is the area of the circular end times one inch. For a 22.5 in drum that is 397.6 cu in, or 1.72 gallons per inch of depth. Multiply by the liquid depth to know what is in a tank that is standing upright and part full.

Radius or diameter: which one do I type?

Whichever you measured. Under the sizes, choose "Radius" or "Diameter" in the box named for the round size. Measuring across the top is the easy way, and that is the diameter. A mix-up here changes the answer by a factor of four.

Does it work for a cylinder lying on its side?

For a full cylinder, yes, because the volume does not change when it lies down. Treat the length as the height. For a part-full horizontal tank, a depth chart from the maker is better, since the liquid shape is not a simple cylinder.

How do I convert the answer to liters or cubic feet?

The result shows cubic inches, feet, yards, centimeters, meters, liters and US gallons together. The rain barrel above, 24 in across and 36 in tall, is 16,286 cu in, 9.42 cu ft or 267 liters.

Is anything I type uploaded or saved?

No. The sums run in your browser. Your sizes are not put in the address bar, not stored in this browser and not counted. We only count which shape or unit you used.

More from FLXCode

Share Cylinder Volume Calculator