tankvolumecalc.com
Home / Formulas / Rectangular Tank
Formula · Rectangular Tank

Rectangular Tank volume formula

Total volume, exact partial fill, derivation, worked example and a copy-ready fill table.

Total volume
V = L·W·H
Partial fill at liquid depth h
V(h) = L·W·h
LHWhOBLIQUE VIEW
L = inside length. W = inside width. H = inside height. h = liquid depth, measured from the lowest point inside the tank.

Derivation

Linear in depth, like the vertical cylinder: every slice is the same L×W rectangle. The only working hazard is units — 1 US gallon = 231 cubic inches exactly.

Worked example

Take L = 48 in, W = 24 in, H = 30 in. Total capacity: 149.6 gal. At a stick reading of 12 in (40% of the 30 in maximum depth), the filled volume is 59.8 gal — 40% of capacity. Check it live on the calculator.

Fill ratio: % of depth → % of volume (any rectangular tank (linear))
DepthVolume
5%5%
10%10%
15%15%
20%20%
25%25%
30%30%
35%35%
40%40%
45%45%
50%50%
55%55%
60%60%
65%65%
70%70%
75%75%
80%80%
85%85%
90%90%
95%95%

Need the full inch-by-inch table for specific dimensions? The dip chart generator prints it as a laminate-ready PDF.

Use the formula in a spreadsheet

Put the dimensions in inches in the cells shown. The formula gives US gallons.

Total volume (A2 = L, B2 = W, C2 = H)
=A2*B2*C2/231
Volume at depth (D2 = h)
=A2*B2*D2/231

Find the depth for a target volume

The depth for a target volume is h = V × 231 ÷ (L × W). Example: a 48 × 24 in tank needs 20.05 in of depth to hold 100 gal.

Unit factors

Exact and standard conversion factors
FromToFactor
cubic inchesUS gallons÷ 231 (exact)
cubic incheslitres× 0.016387064 (exact)
cubic feetUS gallons× 7.48052
cubic centimetreslitres÷ 1,000 (exact)
US gallonslitres× 3.785411784 (exact)

Common errors

  • Outside dimensions. Use the inside length, width and depth.
  • Imperial gallons. The factor 231 gives US gallons. For imperial gallons, divide by 277.42.
  • Mixed units. Enter all three dimensions in the same unit.

FAQ

What is the formula for a rectangular tank volume?

Total: V = L·W·H. Partial fill at depth h: V(h) = L·W·h. Derivation and a worked example are above.

Is the fill-ratio table exact?

Yes — computed by the same engine as our calculators (any rectangular tank (linear)), verified by the automated test suite described on the methodology page.

Can I use this in a spreadsheet?

Yes — the formulas are closed-form (acos and sqrt only). Copy the 5%-step table for quick interpolation, or implement the formula directly for exact values.