Tank Volume Calculator: Cylinder, Sphere & Rectangle Tanks
Calculate the volume of cylindrical, spherical, and rectangular tanks. Get capacity in liters, gallons, cubic meters, or cubic feet, with the formula shown.
Tank Volume Calculator
Cylindrical Tank Volume Formula:
V = π × r² × h
Tank Volume
Documentation
What is a tank volume calculator?
A tank volume calculator works out how much liquid a tank can hold, based on its shape and dimensions. This tool covers the three shapes used in most storage tanks: cylinders, spheres, and rectangular boxes.
Knowing tank volume matters for choosing the right tank size, dosing chemicals correctly, and estimating how long a stored supply will last.
Tank volume formulas
Cylindrical tank formula
A cylindrical tank is a tube shape, either standing upright or lying on its side. Its volume is:
V = π × r² × h
Here, r is the radius (half the diameter) and h is the height. On a tank lying on its side, h is the length of the tube instead.
Spherical tank formula
A spherical tank is shaped like a ball, sometimes raised on legs. Its volume is:
V = (4/3) × π × r³
Here, r is the radius, measured from the center of the sphere to the inner wall.
Rectangular tank formula
A rectangular tank is a box shape. Its volume is:
V = l × w × h
Here, l is length, w is width, and h is height.
For all three shapes, measure the inside of the tank, not the outside. The tank wall takes up space and reduces how much liquid actually fits inside.
How to calculate tank volume
- Choose the tank shape: cylindrical, spherical, or rectangular.
- Choose a unit for the dimensions: meters, centimeters, feet, or inches.
- Enter the radius (for cylindrical or spherical tanks) or the length and width (for rectangular tanks).
- Enter the height (for cylindrical or rectangular tanks).
- Choose a unit for the result: cubic meters, cubic feet, liters, or gallons.
The calculator converts the units automatically and shows the volume right away.
Worked example
A cylindrical tank has an inside radius of 1.5 meters and a height of 3 meters.
V = π × 1.5² × 3 = π × 2.25 × 3 ≈ 21.21 cubic meters
That is about 21,206 liters, or about 5,602 US gallons.
Converting between volume units
These factors follow the NIST tables of units of measurement, where one US gallon is defined as 231 cubic inches.
- 1 cubic meter = 1,000 liters
- 1 cubic meter ≈ 264.17 US gallons
- 1 cubic foot ≈ 7.48 US gallons
- 1 cubic foot ≈ 28.32 liters
- 1 US gallon ≈ 3.785 liters
Measuring tanks accurately
Small measurement errors add up. On a cylindrical tank with a 3-foot radius and a 6-foot height, an error of just 1/8 inch in the radius changes the calculated volume by roughly 9 gallons. Errors in height cause similar shifts, so measure carefully and use inside dimensions wherever possible.
Wall thickness matters too. A steel wall 1/4 inch thick takes up 1/4 inch on each side of the tank, so it reduces the inside diameter by about half an inch compared with the outside diameter. On thicker-walled tanks, such as pressure vessels, the difference is larger and should not be ignored.
Internal fittings reduce usable space further. Baffles, pipes, mixers, and support structures can take up 5 to 10 percent of a tank's geometric volume. The formulas above give the empty geometric volume; the real, usable storage capacity is often somewhat less.
Common uses for tank volume calculations
Rainwater storage. The average American uses about 82 gallons of water per day at home. Three days of emergency water for a family of four therefore calls for around 1,000 gallons of storage. A cylindrical tank 5 feet in diameter and 7 feet tall holds about 1,030 gallons, enough to cover it.
Municipal water towers. Water utilities size elevated tanks to cover peak demand and firefighting needs, typically one to two days of average use. A spherical tank holding 500,000 gallons has an inside diameter of roughly 50 feet.
Fuel storage. Underground tanks at filling stations commonly hold 10,000 to 20,000 gallons per fuel type. For aboveground bulk oil tanks, the U.S. Environmental Protection Agency's spill prevention rule requires secondary containment that holds the entire capacity of the largest single container plus enough freeboard for rain.
Chemical and food processing. Batch reactors and fermentation tanks need accurate, known volumes, because reaction and recipe ratios depend on them. Process engineers usually verify a tank's true volume instead of relying only on the manufacturer's stated size.
Septic systems. Local building codes commonly require a three-bedroom house to have a septic tank of at least 1,000 to 1,500 gallons.
Limitations
The formulas above apply to plain cylinders, spheres, and rectangular boxes. Many real tanks are more complex.
- Combined shapes. A tank with a cylindrical body and rounded (hemispherical) ends must be split into sections, calculated separately, then added together.
- Partial fill levels. This calculator gives total capacity, not the volume at a given depth. In a horizontal cylindrical tank, volume does not rise in a straight line with depth, because the cross-section is a circle rather than a rectangle. Finding that volume needs trigonometry.
- Tanks that cannot be measured directly. Buried or sealed tanks sometimes need other methods, such as metering the water used to fill them or hiring professional calibration.
- Legal or regulatory measurement. Industries that transfer custody of liquids, such as petroleum storage, generally require certified tank calibration, known as strapping, rather than a general-purpose calculator. Strapping tables map liquid level to volume at fine intervals, following standards such as American Petroleum Institute Chapter 2 and ISO 7507.
History
Calculating the volume of a cylinder is an old problem. The Rhind Mathematical Papyrus, an Egyptian document written by the scribe Ahmes around 1650 BCE, includes problems on the volumes of granaries. The Greek mathematician Archimedes worked out the volume formula for a sphere around 250 BCE, in his treatise On the Sphere and Cylinder. Both formulas are unchanged today. What has changed is the speed of the calculation, from tables and slide rules to an instant result in a browser.
Frequently asked questions
What is a tank volume calculator?
A tool that works out how much a tank holds, based on its shape and measurements. It covers cylindrical, spherical, and rectangular tanks, with results in liters, gallons, cubic meters, or cubic feet.
How do I find the radius of a tank?
Measure the diameter, the distance straight across the tank through its center, then divide by two. A tank with a 6-foot diameter has a 3-foot radius.
Should I measure inside or outside dimensions?
Inside dimensions. The tank wall takes up space that liquid cannot fill, so using outside dimensions overstates the true capacity.
Can this calculator handle a tank that is only partly full?
No. It gives the tank's total capacity. Finding the volume at a partial fill level, especially in a horizontal cylindrical tank, needs a separate formula, because volume does not rise in a straight line with depth.
How do horizontal and vertical cylindrical tanks differ?
They use the same formula. On a vertical tank, height is the upright dimension. On a horizontal tank, the "height" in the formula is really the length of the tube lying on its side.
Is the result accurate enough for legal or regulatory use?
For planning and design, yes. For custody transfer, insurance, or regulatory filings involving large or hazardous tanks, use certified professional tank calibration instead.
References
- National Institute of Standards and Technology. NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement. NIST Handbook 44, Appendix C (PDF) — 1 gallon = 231 in³, 1 ft³ = 7.480 519 gal = 28.316 846 592 L, 1 L = 0.001 m³ = 0.000 264 172 1 gal.
- MacTutor History of Mathematics, University of St Andrews. Archimedes of Syracuse. Archimedes biography — in On the Sphere and Cylinder, Archimedes shows the volume of a sphere is two-thirds that of its circumscribing cylinder.
- MacTutor History of Mathematics, University of St Andrews. Ahmes. Ahmes biography — the Rhind Papyrus, written by Ahmes (about 1680–1620 BC), contains problems on the volumes of granaries.
- U.S. Environmental Protection Agency. 40 CFR 112.8 — Spill Prevention, Control, and Countermeasure Plan requirements for onshore facilities. 40 CFR 112.8 on eCFR — bulk storage tanks need secondary containment for the entire capacity of the largest single container plus sufficient freeboard for precipitation.
- U.S. Environmental Protection Agency, WaterSense. Statistics and Facts. WaterSense statistics — each American uses an average of 82 gallons of water a day at home.