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
🥫 Volume
📐 Dimensions and areas
| Measure | Value |
|---|---|
| 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 area | 7,464.42 in² |
| Height ÷ diameter | 1.33 |
| Capacity per 1 in of height | 4.41 gal 16.68 L |
🧪Volume in other units
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
- V = πr²h = π × 18² × 48 = 48,858.05 in³
- Lateral area = 2πrh = 2 × π × 18 × 48 = 5,428.67 in²
- Total area = 2πr(r + h) = 2 × π × 18 × (18 + 48) = 7,464.42 in²
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.25 | 17.21 | 4.30 | 232.49 | 697.47 | +26.0% |
| 0.5 | 13.66 | 6.83 | 292.92 | 585.84 | +5.8% |
| 1 | 10.84 | 10.84 | 369.05 | 553.58 | minimum |
| 2 | 8.60 | 17.21 | 464.98 | 581.22 | +5.0% |
| 3 | 7.52 | 22.55 | 532.27 | 620.98 | +12.2% |
| 4 | 6.83 | 27.31 | 585.84 | 659.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, height | V = πr²h, L = 2πrh, T = 2πr(r + h) |
| Radius, volume | h = V ÷ (πr²) |
| Radius, lateral area | h = L ÷ (2πr) |
| Radius, total area | h = T ÷ (2πr) − r |
| Height, volume | r = √(V ÷ (πh)) |
| Height, lateral area | r = L ÷ (2πh) |
| Height, total area | r = (−h + √(h² + 2T/π)) ÷ 2 |
| Volume, lateral area | r = 2V ÷ L, then h = L ÷ (2πr) |
| Volume, total area | 2πr³ − Tr + 2V = 0 (zero, one or two cylinders) |
| Lateral area, total area | r = √((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 in | 0.0102 | 1.02 | 0.127 | 98.04 |
| 3/4 in | 0.0229 | 2.29 | 0.285 | 43.57 |
| 1 in | 0.0408 | 4.08 | 0.507 | 24.51 |
| 1 1/4 in | 0.0637 | 6.37 | 0.792 | 15.69 |
| 1 1/2 in | 0.0918 | 9.18 | 1.140 | 10.89 |
| 2 in | 0.1632 | 16.32 | 2.027 | 6.13 |
| 3 in | 0.3672 | 36.72 | 4.560 | 2.72 |
| 4 in | 0.6528 | 65.28 | 8.107 | 1.53 |
| 5 in | 1.0200 | 102.00 | 12.668 | 0.98 |
| 6 in | 1.4688 | 146.88 | 18.241 | 0.68 |
| 8 in | 2.6112 | 261.12 | 32.429 | 0.38 |
| 10 in | 4.0800 | 408.00 | 50.671 | 0.25 |
| 12 in | 5.8752 | 587.52 | 72.966 | 0.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 ft | 1.96 | 23.50 | 94 | 141 | 188 | 235 |
| 3 ft | 4.41 | 52.88 | 212 | 317 | 423 | 529 |
| 4 ft | 7.83 | 94.00 | 376 | 564 | 752 | 940 |
| 5 ft | 12.24 | 146.88 | 588 | 881 | 1,175 | 1,469 |
| 6 ft | 17.63 | 211.51 | 846 | 1,269 | 1,692 | 2,115 |
| 8 ft | 31.33 | 376.01 | 1,504 | 2,256 | 3,008 | 3,760 |
| 10 ft | 48.96 | 587.52 | 2,350 | 3,525 | 4,700 | 5,875 |
| 12 ft | 70.50 | 846.03 | 3,384 | 5,076 | 6,768 | 8,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
- For the surface area of cones, spheres, prisms and pyramids, use the Surface Area Calculator.
- For the volume of boxes, spheres, cones and pyramids, use the Volume Calculator.
- For the area and circumference of the circular end, use the Circle Calculator.
- For the flat area of the pad under a tank, use the Area Calculator.
- To paint the walls of a room rather than a tank, use the Paint Calculator.
- For concrete piers and slabs in bags or yards, use the Concrete Calculator.
Sources
The geometry is exact. The unit definitions behind the gallon and liter figures come from primary sources:
- National Institute of Standards and Technology, NIST Handbook 44 (2026), Appendix C, General Tables of Units of Measurement: the US gallon is exactly 231 cubic inches (3.785411784 liters), the inch is exactly 2.54 centimeters, and the British imperial gallon is 277.42 cubic inches.
- National Institute of Standards and Technology, NIST Special Publication 811, Appendix B.8: the exact length factors (1 ft = 0.3048 m, 1 yd = 0.9144 m) used for the unit conversions.
- Tables and worked examples: computed with the formulas on this page, using the same code the calculator runs.
⚠️ 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.
❓ 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.