Construction estimating · verified formulas Free · no signup

How to Calculate Tank Volume: The Complete Guide

Tank volume is pure geometry — pick the formula that matches the shape, plug in the internal dimensions, and convert to gallons or liters. The wrinkles are partial fills (a half-full horizontal cylinder is the classic trap), dished ends, and reading a dipstick correctly. This guide runs from the core formulas to dipsticks, codes, and verification — distilling the 100 questions operators and DIYers ask most into one readable pass.

The 60-second version
  1. Vertical cylinder: V = π × r² × h. Box: L × W × H.
  2. Convert: 1 cu ft = 7.48 gallons; cubic inches ÷ 231 = gallons.
  3. Horizontal cylinders fill non-linearly — depth and volume aren't proportional.
  4. Always use internal dimensions; wall thickness eats real capacity.
  5. Fluid weight = volume × density (water = 8.34 lb/gal).
  6. Quick check (vertical): gallons ≈ diameter(ft)² × height(ft) × 5.875.

1 · Core math & units

A tank volume calculator finds either total capacity or current fluid volume from a shape and its dimensions. The two foundational shapes are the vertical cylinder and the box, and the rest of the work is converting cubic units into gallons or liters.

The two base formulas + key conversions
Vertical cylinder: V = π × r² × h  (r = ½ diameter)
Rectangular: V = Length × Width × Height
1 cu ft = 7.48 gal · gallons = cu in ÷ 231 · 1 m³ = 1,000 L
Inches to feet: ÷12 (9 in = 0.75 ft). Always compute with internal dimensions — subtract wall thickness and bracing for true fluid capacity.

Two terms come up constantly. Ullage (or outage) is the empty headspace above the liquid, needed for thermal expansion. And nominal vs. actual capacity: a "500-gallon tank" is a commercial name; its true geometric ceiling is often 5–10% larger to prevent overfills.

2 · Volume formulas by shape

Most tanks are one of a handful of shapes, or a combination you sum. Here's the complete reference:

Total-volume formula by tank shape
ShapeVolume formula
Vertical cylinderV = π × r² × h
Rectangular / squareV = L × W × H
SphereV = (4/3) × π × r³
Elliptical (oval) cylinderV = π × a × b × L
Cone (full)V = (1/3) × π × r² × h
Conical frustumV = (1/3) × π × h × (R² + Rr + r²)

For the elliptical tank, a and b are the semi-major and semi-minor axes. Don't approximate an oval as a rectangle — it overestimates by about 21.5% because a rectangle includes corners the oval doesn't have. Combination tanks (like a hopper) are just two formulas added: compute each section and sum.

3 · Horizontal cylinders & partial fills

This is the one everyone gets wrong. In a vertical tank, volume rises in step with depth. In a horizontal cylinder, it doesn't — the cross-section is widest at the middle, so an inch of depth near the center is far more liquid than an inch near the bottom. You need circular-segment trigonometry.

Horizontal cylinder, partial fill
Cross-section area: A = r² × cos⁻¹((r − d) ÷ r) − (r − d) × √(2rd − d²)
Volume: V = A × L
d = liquid depth, r = radius, L = length. The cos⁻¹ must be in radians. At d = r the tank is exactly 50% full.

When a horizontal tank is more than half full, the easy route is to calculate the empty headspace instead — run the segment formula with the dry depth (height − d) and subtract that from the total tank volume. Spheres have their own partial-fill formula too:

Sphere, partial fill
V = (π × d² ÷ 3) × (3r − d)
d = fluid depth, r = sphere radius.

4 · Dished ends, cones & hoppers

Industrial pressure tanks don't have flat ends — they have curved heads (caps) that hold extra fluid. The three standard profiles are hemispherical, elliptical (2:1), and torispherical (flanged-and-dished). A flat-ended calculator underestimates a dished tank because it ignores that cap volume. The handy shortcut: two hemispherical ends equal one full sphere, so add a sphere's volume to the cylinder body. Torispherical caps need empirical formulas or lookup tables.

Cones and hoppers follow the table above. A conical frustum is a truncated cone (wide top, narrow bottom). A cone-bottom (hopper) tank is a cylinder plus a cone for full gravity drainage — compute each and add.

5 · Fluid weight & pressure

Volume is only half the story — supports and slabs must carry the weight of a full tank. Weight is volume times density, and pressure rises with depth.

Weight & hydrostatic pressure
Fluid weight = Volume × density  (water = 8.34 lb/gal = 62.4 lb/cu ft)
Bottom pressure: P = ρ × g × h ≈ 0.433 PSI per foot of water depth
Example: a 30-ft water column = 30 × 0.433 ≈ 13.0 PSI at the base.

Specific gravity (SG) scales weight for other fluids — water is 1.000, so a chemical at SG 1.40 weighs 8.34 × 1.40 = 11.67 lb/gal. And remember liquids expand with heat (the coefficient of thermal expansion), which is why tanks keep 5–8% ullage and why hydrostatic testing (filling with water to check for leaks) is done before certification.

6 · Real-world tanks

A few everyday tanks have standard numbers worth knowing:

Rainwater harvesting
Gallons = Rainfall(in) × Roof area(sq ft) × 0.623 × runoff efficiency
Example: 1″ of rain on a 2,000 sq ft roof at 90% efficiency = 1 × 2,000 × 0.623 × 0.90 ≈ 1,121 gal → size a 1,200-gal cistern.

7 · Dipsticks, tilt & gauging

To read volume from a depth, you need a calibrated chart, not a ruler. A dipstick for a horizontal cylinder must use the partial-fill formula at every inch — linear markings are wrong because the tank narrows top and bottom. A strapping table (or tank chart) maps inches of depth to exact gallons for a specific tank, verified in the field by measuring the outer circumference at height increments. Automated magnetostrictive probes and ultrasonic sensors do this electronically against an internal table.

Tilt is a real source of error: a 1° pitch on a 40-ft tank shifts the liquid 8.3 inches end-to-end, so a single dipstick reading can be badly off. Dual-probe gauges measure both ends and average. Many tanks are intentionally sloped toward a drain valve for cleaning. Also watch dead volume — fluid below the intake pipe that can't be pumped out — and tank bulging, where liquid weight bows thin walls and changes capacity.

8 · Bulk solids & silos

A volume calculator works for grain silos too, with one big difference: dry solids form a cone at the top instead of a flat surface. Use the material's angle of repose (the steepest stable slope) to find the cone's height, then add that cone's volume to the cylinder body. Bulk density also rises toward the bottom as upper material compacts the lower layers. To convert grain volume to bushels, multiply cubic feet by 0.8035.

9 · Codes, barrels & units

Industrial tank work runs on standards and specific units:

Standards & unit conversions
ItemValue / meaning
1 barrel (oil)42 U.S. gallons
1 U.S. gallon3.78541 liters
1 Imperial gallon4.54609 L (20% larger than U.S.)
1 cu ft28.3168 L (= 7.48 gal)
API 650welded steel storage tank design standard
Secondary containmentdike holds ≥ 110% of tank volume

API 12F covers shop-fabricated tanks (90–750 barrels). OSHA requires headspace vapor monitoring on chemical tanks, since ullage can collect flammable or toxic gas. And always use internal dimensions in any script — external measurements ignore wall thickness and overestimate capacity, badly on thick steel or concrete tanks.

10 · Verification & shortcuts

Two fast checks save a lot of grief. For a vertical cylinder, the gallon shortcut skips the unit juggling; and any pipe run is just a long horizontal/vertical cylinder.

Quick checks
Vertical cylinder: Gallons ≈ Diameter(ft)² × Height(ft) × 5.875
Pipe volume: V = π × r² × length (then × 7.48 for gallons)
Example: 100 ft of 4″ PVC (r = 0.1667 ft) = π × 0.1667² × 100 ≈ 8.7 cu ft ≈ 65 gallons.

If your number disagrees with an invoice or stamped plate, the usual culprits are external-vs-internal dimensions, ignoring dished ends, or unit-conversion slips. Internal struts, baffles, and pipes also displace fluid, lowering real capacity below the raw geometry. Before ordering bulk fluid, measure at multiple points with a certified steel tape, check against the manufacturer's stamped plate, and keep a 10% headroom safety factor.

Geometry gives the ceiling — never fill to it

Actual usable volume is always less than the geometric maximum: subtract ullage for thermal expansion, dead volume below the intake, and any internal bracing. For fuel and chemicals, design to 5–8% ullage and confirm against the tank's own strapping table.

Related calculators