Geometry & Trigonometry 3D Solids: Volume & Surface Area Euclidean solid geometry (Cavalieri's principle)

Cylinder Volume Calculator

Enter the radius or diameter of a cylinder and its height, and this calculator returns the volume, the capacity in gallons, litres, cubic metres, cubic yards or oil barrels, the base area, and the curved and total surface areas. It also gives the capacity per foot of height, which is the number pipefitters and tank operators actually work from, and builds a dip table showing how much the cylinder holds at each quarter of its depth. Every result comes from V = πr²h, and the steps are shown so you can reproduce them on paper.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Cross-section dimension you havePipe and tank specifications almost always quote diameter, so that is the default here.Diameter
Radius or diameterFor a pipe use the internal bore, not the nominal size, or the capacity will come out too high.4 ft
Height or lengthThe distance along the axis: the height of an upright tank or the run length of a pipe.6 ft
Report capacity inPick the trade unit for your contents; the volume figure itself is always in cubic feet.US gallons

It returns

  • Volume — Base area multiplied by height.
  • Capacity
  • Capacity per foot of height — Multiply by any depth in feet to get the contents at that depth.
  • Base area
  • Curved surface area
  • Total surface area (both ends included)

The formula

V=πr2h
A=2πr(h+r)

In plain text: V = π r² h = π d² h / 4

  • VVolume of the cylinder (ft³)
  • rRadius of the circular cross-section (ft)
  • hHeight, or length along the axis (ft)

The cross-section is constant all the way along, so the volume is simply cross-sectional area multiplied by length. Cavalieri's principle means a leaning cylinder with the same perpendicular height holds exactly the same amount.

Updated Category 3D Solids: Volume & Surface Area Verified against published test cases Reading time 8 min

Why a cylinder is just an area with a length

A cylinder has the same circular cross-section from one end to the other, so its volume is nothing more than that cross-sectional area multiplied by the length. Work out the area of the circle, πr², then stretch it along the axis by h. That gives V = πr²h, and there is no correction factor of any kind because nothing tapers.

Cavalieri's principle extends the result further than you might expect. If you shear a stack of coins sideways so the pile leans, the volume does not change: every horizontal slice still has the same area, and the height from bottom to top is unchanged. So an oblique cylinder holds exactly as much as an upright one of the same perpendicular height. What does change is the surface area, since the curved surface of a leaning cylinder is longer.

Because the radius is squared, cross-sectional area is the sensitive parameter. Doubling the diameter quadruples the capacity, which is why a modest increase in bore transforms a pipe's carrying volume. A 2-inch pipe holds four times as much per foot as a 1-inch pipe, and a 6-inch pipe holds nine times as much as a 2-inch one.

Capacity per foot: the number the trades actually use

For pipe runs, well casings and tank dipping, the useful figure is not the total volume but the volume per unit of length. It is the base area converted straight into the trade unit: gallons per foot = πr² × 7.480519, with r in feet. Once you know it, you multiply by any length or any depth and you are done.

The standard plumbing figures come straight out of this. A 4-inch bore is a radius of 1/6 foot, so the base area is π/36 = 0.087266 ft² and the capacity per foot is 0.087266 × 7.480519 = 0.6528 gallons per foot. A 2-inch bore is a quarter of that at 0.1632 gal/ft; an 8-inch bore is four times it at 2.611 gal/ft. This calculator reports the same figure for whatever bore you enter.

The important caveat is that nominal pipe size is not internal diameter. A pipe described as 4-inch nominal has an outside diameter of 4.5 inches and an internal bore that depends on the wall schedule — 4.026 inches in Schedule 40 steel. Using 4 inches instead of 4.026 understates the capacity by 1.3%; using the 4.5-inch outside diameter overstates it by 25%. Always work from the bore.

Worked example: a 6-foot-diameter water tank

An upright cylindrical tank has an internal diameter of 6 feet and stands 8 feet tall. Find its capacity in gallons and the gallons per foot of depth.

  1. Halve the diameter. r = 6 ÷ 2 = 3 ft.
  2. Find the base area. π × 3² = π × 9 = 28.2743 ft².
  3. Multiply by the height. 28.2743 × 8 = 226.195 ft³.
  4. Convert to gallons. 226.195 × 7.480519 = 1,692.06 US gallons.
  5. Find gallons per foot of depth. 28.2743 × 7.480519 = 211.51 gal/ft. Check: 211.51 × 8 = 1,692.1 gallons, which matches.
  6. Find the material area. Curved surface 2π × 3 × 8 = 150.80 ft², plus two ends at 28.2743 each, giving 207.35 ft² in total.

The gallons-per-foot figure is what makes a dipstick useful. Measure 5 feet 3 inches of water in this tank and the contents are 5.25 × 211.51 = 1,110.4 gallons. That linear relationship holds only because the tank stands on end; lay the same tank on its side and the contents against depth follow a curve, not a straight line.

Upright versus lying down, and other cautions

The dip table produced here assumes the cylinder stands on end, so contents rise in exact proportion to depth: half the depth is half the volume. That is the easy case and it is why vertical tanks are so much simpler to gauge.

A cylinder lying on its side behaves completely differently. At half depth it is exactly half full by symmetry, but at a quarter depth it holds only about 19.6% of its capacity, because the cross-section at the bottom is a narrow circular segment. Anywhere other than the exact midpoint, treating a horizontal tank as linear will mislead you, and you need a segment-area calculation instead.

Two more cautions. First, a real tank is rarely a bare cylinder: dished or domed ends add volume beyond the πr²h figure, and internal fittings subtract it. Second, quoted tank capacity is usually working capacity rather than geometric capacity, since fill lines, ullage and expansion space are deducted. A drum with a 22.5-inch bore and 33.5 inches of internal height computes to 57.7 gallons of geometric volume but is sold as a 55-gallon drum for exactly that reason.

Capacity per foot for common bores

Each row is πr² with r in feet, converted at 7.480519 US gallons and 28.31685 litres per cubic foot. Bores are internal diameters, not nominal pipe sizes.
Internal diameterBase area (ft²)US gal per ftLitres per metre
1 in0.0054540.04080.5067
2 in0.0218170.16322.0268
3 in0.0490870.36724.5604
4 in0.0872660.65288.1073
6 in0.1963501.468818.2415
8 in0.3490662.611232.4293
12 in0.7853985.875272.9659
3 ft7.06858352.877656.69
6 ft28.27433211.512,626.77

Litres per metre is the same quantity in metric: multiply the base area in square metres by 1,000. A 4-inch bore is 8.107 litres per metre of run.

Mistakes that ruin a capacity estimate

  • Using the diameter as the radius. Because the radius is squared, this overstates the volume by a factor of four. It is the single most common error on this shape.
  • Using nominal pipe size as the bore. A 4-inch Schedule 40 steel pipe has a 4.026-inch internal diameter and a 4.5-inch outside diameter. Only the bore carries fluid.
  • Treating a horizontal tank as linear. A cylinder on its side is half full at half depth but holds only about 19.6% at quarter depth. Use a segment calculation instead.
  • Forgetting dished ends. Domed heads on a pressure vessel add real volume that πr²h does not include; the manufacturer's data sheet is the authority.
  • Mixing gallon definitions. A US gallon is 231 cubic inches; an imperial gallon is about 20% larger. This calculator uses the US gallon throughout.

A fast mental estimate for round tanks

For an upright tank measured in feet, gallons ≈ 5.875 × d² × h, with d the diameter in feet. The constant is π ÷ 4 × 7.480519 = 5.8752. For a 6-foot tank 8 feet tall that gives 5.875 × 36 × 8 = 1,692 gallons, matching the exact calculation. In metric the equivalent shortcut is litres ≈ 785.4 × d² × h with both dimensions in metres.

Related shapes and where they take over

Once a shape tapers, the cylinder formula stops applying. A cone holds exactly one third as much as the cylinder that contains it, so a conical hopper bottom needs the cone volume calculator, and a tapered silo transition needs the frustum calculator. A domed tank head is a spherical cap, handled by the spherical cap volume calculator.

For a tank that is neither round nor tapered, use the rectangular prism calculator. And where you only need the flat cross-section — to size a pump inlet or check a flow velocity — the circle area calculator gives you that directly from the bore.

Surface area alone, for insulation, cladding or painting, is often the quantity that costs money rather than the volume. The cylinder surface area calculator separates the curved area from the ends, which matters because the two are usually treated differently in a coating specification.

Frequently asked questions

What is the formula for the volume of a cylinder?

V = πr²h, where r is the radius of the circular cross-section and h is the height or length. If you have the diameter, the equivalent form is V = πd²h ÷ 4. Because the cross-section never changes along the axis, the volume is simply the area of the circle multiplied by the length.

How many gallons does a round tank hold?

Compute the volume in cubic feet and multiply by 7.480519. For a 6-foot-diameter tank 8 feet tall, the volume is π × 9 × 8 = 226.19 ft³, which is 1,692 US gallons. A quick shortcut for feet is gallons ≈ 5.875 × diameter² × height.

How much water does a pipe hold per foot?

Multiply the internal cross-sectional area in square feet by 7.480519. A 4-inch bore has an area of π × (1/6)² = 0.087266 ft², giving 0.6528 gallons per foot; a 2-inch bore gives 0.1632 gal/ft. Use the actual bore rather than the nominal pipe size, which is always different.

How do I work out a cylinder lying on its side?

Not with this calculator's dip table, which assumes the cylinder stands upright. A horizontal cylinder fills along a curve: half full at half depth by symmetry, but only about 19.6% full at a quarter of the diameter. You need the area of a circular segment for the wetted cross-section, then multiply by the tank length.

Why is my 55-gallon drum bigger than 55 gallons?

Because the quoted size is working capacity, not geometric capacity. A standard drum with a 22.5-inch internal bore and 33.5 inches of internal height computes to 7.708 cubic feet, which is 57.7 gallons. The difference is deliberate headspace for expansion and for the closure. Most tanks are rated the same way.

Does a leaning cylinder hold less?

No. By Cavalieri's principle, an oblique cylinder with the same base and the same perpendicular height holds exactly the same volume as an upright one, because every horizontal slice has the same area. The surface area does increase, though, since the curved side has to cover a longer slant distance.

What is the difference between curved and total surface area?

The curved surface is the wrapper around the side, 2πrh. The total surface adds both circular ends, 2πr², giving 2πr(h + r). For a tank, you often want the curved area alone for lagging and the total for painting; for a pipe you almost always want the curved area only.

How do I convert cubic feet to litres or cubic metres?

One cubic foot is 28.316846592 litres, which is 0.028316846592 cubic metres, both exact by definition since the international foot is exactly 0.3048 metres. Select litres or cubic metres in the capacity selector above and the calculator applies the factor for you.

References