🇺🇸 USC
Math & Conversion
🥫

Cylinder Calculator

Volume, surface area, radius and height from any two known values

✅

Last updated October 2026

Method: V = πr²h, lateral area 2πrh and total area 2πr(r + h), solved algebraically from whichever two values you know. Volume with total area leads to the cubic 2πr³ − Tr + 2V = 0, solved numerically, which can return two valid cylinders. US gallons use the exact definition of 231 in³ and liters the exact inch of 2.54 cm (NIST Handbook 44, Appendix C).

Included: Ten input pairs; radius or diameter; volume entered in cubic units, US gallons or liters; radius, diameter, height, circumference, end area, lateral and total area; volume in seven units; capacity per unit of height; and the algebra for each step.

Not included: Partly filled horizontal tanks, domed or cone-bottom ends, wall thickness, oblique and elliptical cylinders, imperial gallons and the expansion of liquids with temperature.

🥫 What you know about the cylinder

Try:
Length unit
I measured the
in
in
Formulas: V = πr²h · L = 2πrh · T = 2πr(r + h)

🥫 Volume

48,858.05in³
211.51 US gal · 800.64 L · 28.27 ft³
Radius
18.00 in
Height
48.00 in
Lateral area
5,428.67 in²
Total surface area
7,464.42 in²

📐 Dimensions and areas

MeasureValue
Radius (r) (given)18.00 in
Diameter (d)36.00 in
Height (h) (given)48.00 in
Circumference (2πr)113.10 in
Area of each end (πr²)1,017.88 in²
Lateral area (2πrh)5,428.67 in²
Total surface area7,464.42 in²
Height ÷ diameter1.33
Capacity per 1 in of height
4.41 gal
16.68 L

🧪Volume in other units

US gallons
211.51
Liters
800.64
Cubic feet (ft³)
28.27
Cubic inches (in³)
48,858.05
Cubic yards (yd³)
1.05
Cubic meters (m³)
0.8006
Cubic centimeters (cm³)
800,639.98

1 US gallon = 231 in³ exactly, so 1 ft³ = 1,728 ÷ 231 = 7.4805 gallons and 1 gallon = 3.7854 liters. One cubic yard is 27 ft³, the unit concrete is ordered in.

📋 Step-by-step

  1. V = πr²h = π × 18² × 48 = 48,858.05 in³
  2. Lateral area = 2πrh = 2 × π × 18 × 48 = 5,428.67 in²
  3. Total area = 2πr(r + h) = 2 × π × 18 × (18 + 48) = 7,464.42 in²
Everything is computed in your browser. V = πr²h, lateral area = 2πrh, total area = 2πr(r + h). Gallons use the exact US definition of 231 cubic inches and liters the exact 1 in = 2.54 cm. Measure inside dimensions when you want capacity.

Cylinder calculator: volume, surface area and tank capacity

The volume of a cylinder is the area of its circular base times its height, V = πr²h. A tank 36 inches across (radius 18 in) and 48 inches tall holds π × 18² × 48 = 48,858.05 in³, which is 211.51 US gallons or 800.64 liters. Its total surface area is 2πr(r + h) = 7,464.42 in².

Enter any two known values and the calculator works out the rest, including the backward cases: the height of a 100-gallon tank, or the radius from a volume and an area. For the outside of other solids use the Surface Area Calculator, for boxes, spheres and cones the Volume Calculator, and for a single circle the Circle Calculator.

The cylinder volume formula and its relatives

A cylinder is a circle pushed straight up, so every formula starts from the radius r and the height h:

V = πr²h = πd²h ÷ 4 Lateral area L = 2πrh Total area T = 2πr² + 2πrh = 2πr(r + h) End area B = πr², circumference C = 2πr US gallons = in³ ÷ 231 = ft³ × 7.4805

Why the formula works: slice the cylinder into thin disks, like a stack of coins. Each disk has the area of the end, πr², and the stack is h tall, so the volume is the end area times the height. By the same reasoning, known as Cavalieri's principle, a leaning stack of the same coins holds the same volume, so an oblique cylinder also holds πr²h when h is its vertical height.

Because volume grows with the square of the radius, a tank twice as wide holds four times as much, while doubling the height only doubles it. The lateral area also links neatly to the volume, L = 2V ÷ r, which makes a quick check on any answer.

Worked example 1: a 36 × 48 inch tank in gallons

An upright tank measures 36 inches across the inside and 48 inches tall. Halve the diameter to get r = 18 in, then:

V = π × 18² × 48 = 48,858.05 in³ 48,858.05 ÷ 231 = 211.51 US gallons Lateral area = 2 × π × 18 × 48 = 5,428.67 in² Total area = 2 × π × 18 × (18 + 48) = 7,464.42 in²

In other units the tank holds 28.27 ft³, 1.05 yd³ or 800.64 liters. Each inch of depth holds 4.41 gallons, the number to use with a dipstick. The side measures 37.70 ft² and the whole outside 51.84 ft². This is the calculator's default, so these figures appear as soon as the page loads.

Worked example 2: how tall is a 100-gallon tank 30 inches wide?

Working backwards needs the volume in cubic inches first. Choose Radius (or diameter) and volume, switch to Diameter and US gallons, and enter 30 and 100:

V = 100 × 231 = 23,100 in³ h = V ÷ (πr²) = 23,100 ÷ (π × 15²) = 32.68 in

The tank needs 32.68 inches (2.72 ft) of straight wall on the inside. Its side has an area of exactly 3,080 in², which the shortcut L = 2V ÷ r = 2 × 23,100 ÷ 15 confirms, and the total area with both ends is 4,493.72 in². Add headroom above that height if the liquid must not reach the lid.

Worked example 3: two cans with the same volume and area

Volume and total area do not always pin down a single cylinder. Substituting h = V ÷ (πr²) into T = 2πr² + 2πrh gives the cubic 2πr³ − Tr + 2V = 0, which has two positive roots whenever T is above the minimum. For a 1-liter can (1,000 cm³) made from 600 cm² of sheet:

2πr³ − 600r + 2,000 = 0 r = 4.01 cm, h = 19.82 cm (tall and narrow) r = 7.13 cm, h = 6.26 cm (short and wide)

The table shows how the proportions of a 1-liter cylinder drive the material it needs. Lengths are in centimeters and areas in square centimeters.

Height ÷ diameter Diameter Height Side area Total area Above minimum
0.2517.214.30232.49697.47+26.0%
0.513.666.83292.92585.84+5.8%
110.8410.84369.05553.58minimum
28.6017.21464.98581.22+5.0%
37.5222.55532.27620.98+12.2%
46.8327.31585.84659.07+19.1%

The minimum, 553.58 cm², comes when the height equals the diameter. Below that area no 1-liter cylinder exists, and the calculator says so instead of returning a meaningless number.

Solving from any two values

Each pair of known values has its own rearrangement of the formulas. The calculator applies the right one for the pair you pick:

You know Formula used
Radius, heightV = πr²h, L = 2πrh, T = 2πr(r + h)
Radius, volumeh = V ÷ (πr²)
Radius, lateral areah = L ÷ (2πr)
Radius, total areah = T ÷ (2πr) − r
Height, volumer = √(V ÷ (πh))
Height, lateral arear = L ÷ (2πh)
Height, total arear = (−h + √(h² + 2T/π)) ÷ 2
Volume, lateral arear = 2V ÷ L, then h = L ÷ (2πr)
Volume, total area2πr³ − Tr + 2V = 0 (zero, one or two cylinders)
Lateral area, total arear = √((T − L) ÷ (2π)), then h = L ÷ (2πr)

Gallons per foot of pipe and well casing

A pipe is a long, thin cylinder, so its capacity per foot depends only on the inside diameter d in inches: gallons per foot = π × (d ÷ 2)² × 12 ÷ 231 ≈ 0.0408 × d². Every value below is computed from the exact 231 cubic inches per gallon.

Inside diameter Gallons per foot Gallons per 100 ft Liters per meter Feet per gallon
1/2 in0.01021.020.12798.04
3/4 in0.02292.290.28543.57
1 in0.04084.080.50724.51
1 1/4 in0.06376.370.79215.69
1 1/2 in0.09189.181.14010.89
2 in0.163216.322.0276.13
3 in0.367236.724.5602.72
4 in0.652865.288.1071.53
5 in1.0200102.0012.6680.98
6 in1.4688146.8818.2410.68
8 in2.6112261.1232.4290.38
10 in4.0800408.0050.6710.25
12 in5.8752587.5272.9660.17

The last column shows how many feet of pipe hold one gallon: 98.04 ft for a 1/2-inch bore. A hot-water line that long holds a full gallon of standing water, which runs out of the faucet before hot water arrives. Use the actual inside diameter: pipe sold by nominal size often measures differently inside, depending on the material and wall thickness.

Vertical tank capacity by diameter and height

For upright round tanks, cisterns and stock tanks measured in feet, gallons = π × (D ÷ 2)² × H × 7.4805 ≈ 5.875 × D² × H. The first two columns give the capacity per inch and per foot of depth, for gauging a tank that is partly full.

Diameter Gal per inch Gal per foot 4 ft tall 6 ft tall 8 ft tall 10 ft tall
2 ft1.9623.5094141188235
3 ft4.4152.88212317423529
4 ft7.8394.00376564752940
5 ft12.24146.885888811,1751,469
6 ft17.63211.518461,2691,6922,115
8 ft31.33376.011,5042,2563,0083,760
10 ft48.96587.522,3503,5254,7005,875
12 ft70.50846.033,3845,0766,7688,460

The capacities are geometric, to the brim, and rounded to whole gallons in the height columns. Usable volume is lower once you leave headroom and allow for fittings.

How to use this calculator

Choose the two values you know from the menu, then the length unit. Say whether you measured a radius or a diameter, and whether a known volume is in cubic units, US gallons or liters. Results appear as you type: the volume with its gallon and liter equivalents, a table of every dimension and area with the given values marked, the volume in seven units, the capacity per unit of height and the algebra behind each step. The Try buttons load the three worked examples and a length of pipe.

Measuring a real tank or pipe

  • Inside or outside: measure inside dimensions for capacity and outside dimensions for paint, wrap or insulation.
  • Measuring around: if you cannot measure straight across, wrap a tape around the tank and divide the circumference by π. A circumference of 113.10 in means a diameter of 36 in.
  • Straight wall only: measure the height of the vertical wall. Domed tops and cone bottoms hold volume the cylinder formula does not count.
  • One unit: a 36-inch diameter with a 4 ft height must become 36 in and 48 in, or 3 ft and 4 ft, before you multiply.
  • Concrete forms: work in feet and read the cubic yards. A round form 12 inches across and 4 ft deep takes 3.14 ft³, or 0.12 yd³, so eight piers need about 0.93 yd³ before waste. The Concrete Calculator adds bag counts.

Who this calculator is for

Homeowners size water tanks, rain barrels and stock tanks in gallons. Plumbers and well drillers estimate the water held in a pipe run or a casing. Contractors convert column and pier forms to cubic yards. Students check homework that asks for a missing radius or height, and engineers and packaging designers compare cylinders that hold the same volume with different amounts of material.

Key terms

  • Radius (r): the distance from the center of a circular end to its edge, half the diameter.
  • Height (h): the length of the straight side, at a right angle to the ends.
  • Lateral area: the area of the curved side only, 2πrh.
  • Total surface area: the lateral area plus both circular ends.
  • Capacity: how much a container holds, usually stated in gallons or liters.
  • US gallon: exactly 231 cubic inches.

Limitations

The formulas describe a right circular cylinder: straight walls at a right angle to two flat, circular ends. Tanks with domed or conical ends, tapered buckets and oval tanks need other formulas or a split into pieces, and a leaning (oblique) cylinder keeps the volume πr²h but not the side-area formula. A horizontal tank that is partly full does not fill in proportion to depth, so the per-inch capacity applies only to upright tanks. Results ignore wall thickness, fittings and the expansion of liquids with temperature.

Related calculators

Sources

The geometry is exact. The unit definitions behind the gallon and liter figures come from primary sources:

⚠️ Common mistakes & edge cases

Using the diameter as the radius

Entering the 36-inch diameter of the example tank as its radius gives 846.03 gallons instead of 211.51, exactly four times too much, because the radius is squared. Switch to Diameter when that is what you measured.

Mixing inches and feet

A tank 36 inches across and 4 ft tall is not π × 18² × 4. Entering the height as 4 while working in inches gives 17.63 gallons instead of 211.51. Convert the height to 48 inches, or everything to feet.

Using the wrong gallon factor

The number 231 converts cubic inches to gallons; 7.4805 converts cubic feet. Dividing the example tank's 28.27 ft³ by 231 gives 0.12 gallons, more than a thousand times too little.

Measuring the outside of a thick-walled tank

Outside dimensions include the walls. A 36-inch tank with half-inch walls holds 199.92 gallons, not 211.51, so the outside measurement overstates its capacity by 5.8%.

Trusting the nominal pipe size

Pipe and tubing are sold by trade sizes that often differ from the real inside diameter. Capacity follows the square of the diameter, so a small difference matters. Check the manufacturer's inside diameter or measure it.

Expecting one answer from volume and area

Volume plus total area can describe two cylinders, a tall one and a squat one. The calculator shows both, so pick the one that fits your space. If none exists, the area is below the minimum for that volume.

Note: Results are exact for a perfect cylinder. Real tanks have domed ends, fittings and headroom, so usable capacity is usually a little lower than the geometric volume.

❓ Frequently asked questions

What is the formula for the volume of a cylinder?

V = πr²h: the area of the circular base, πr², times the height. With the diameter instead, V = πd²h ÷ 4. A cylinder with a 4 cm radius and a 10 cm height holds π × 16 × 10 = 502.65 cm³, about half a liter. Keep both measurements in the same unit, and the volume comes out in that unit cubed.

How do I calculate the volume of a cylinder in gallons?

Measure in inches, compute πr²h in cubic inches and divide by 231, the exact number of cubic inches in a US gallon. In feet, multiply cubic feet by 7.4805. Two shortcuts give nearly the same answer: gallons ≈ 0.0034 × d² × h with inches, or 5.875 × D² × H with feet. A tank 4 ft across and 5 ft tall holds 470.01 gallons.

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

Divide the volume by the area of the base: h = V ÷ (πr²). A 100-gallon tank 30 inches across holds 100 × 231 = 23,100 in³ and has a base of π × 15² = 706.86 in², so it must be 23,100 ÷ 706.86 = 32.68 inches tall. Convert gallons or liters to cubic units first, or let the calculator do it.

How do I find the radius of a cylinder from its volume and height?

Rearrange the volume formula: r = √(V ÷ (πh)). For 500 gallons in a tank 5 ft tall, convert to 66.84 ft³, divide by π × 5 and take the square root: r = 2.06 ft, so the tank must be about 4.13 ft (49.5 in) across. Choose Height and volume in the calculator and enter the gallons directly.

What is the surface area of a cylinder?

The total surface area is the two circular ends plus the curved side: 2πr² + 2πrh, or 2πr(r + h). The side alone, the lateral area, is 2πrh. For a tank 36 inches across and 48 inches tall the side is 5,428.67 in² (37.70 ft²) and the total is 7,464.42 in² (51.84 ft²), the figures to use for paint or insulation.

Can two different cylinders have the same volume and surface area?

Yes. Volume and total area together lead to a cubic equation with up to two positive answers. A 1-liter can made from 600 cm² of metal can be 8.01 cm across and 19.82 cm tall, or 14.26 cm across and 6.26 cm tall. Below 553.58 cm² no 1-liter cylinder exists; at exactly that area there is one, with its height equal to its diameter.

How many gallons of water does a pipe hold per foot?

Square the inside diameter in inches and multiply by 0.0408. A pipe with a 2-inch inside diameter holds 0.1632 gallons per foot, so a 50 ft run holds 8.16 gallons, and a 6-inch well casing holds 1.4688 gallons per foot. Use the real inside diameter, which is not always the nominal size printed on the pipe.

Should I measure the inside or the outside diameter?

Inside for capacity, outside for paint, insulation or a cover. If you can only reach the outside of a tank, wrap a tape around it, divide the circumference by π to get the outside diameter, then subtract twice the wall thickness. On a 36-inch tank with half-inch walls that leaves 35 inches inside, and the capacity drops from 211.51 to 199.92 gallons.

How do I find how much liquid is in a partly filled tank?

For an upright cylinder, multiply the liquid depth by the capacity per unit of height, which the calculator lists. A tank 36 inches across holds 4.41 gallons per inch, so 20 inches of water is 88.13 gallons. A horizontal cylinder is different: the liquid forms a circular segment, so depth and volume are not proportional.

What is the difference between a US gallon and an imperial gallon?

The US gallon is defined as exactly 231 cubic inches, which is 3.785411784 liters. The British imperial gallon is about 277.42 cubic inches or 4.546 liters, roughly 1.2 US gallons. This calculator reports US gallons; divide by 1.201 to get imperial gallons.

💡 Good to know

Two gallon rules worth memorizing

With inches, gallons ≈ 0.0034 × d² × h; with feet, gallons ≈ 5.875 × D² × H. For the 36 × 48 inch tank both give 211.5 gallons, within a hundredth of the exact 211.51.

Width beats height

Volume grows with the square of the radius but only in step with the height. A tank 10% wider holds 21% more, while a tank 10% taller holds only 10% more, so a small increase in diameter adds capacity fastest.

A cubic foot is 7.48 gallons

One cubic foot is 1,728 in³ and a gallon is 231 in³, so a cubic foot holds 1,728 ÷ 231 = 7.4805 gallons. A cubic yard holds 201.97 gallons and a cubic meter 264.17 gallons.

Related Calculators