Rectangular Tank volume formula
Total volume, exact partial fill, derivation, worked example and a copy-ready fill table.
V = L·W·HV(h) = L·W·hDerivation
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.
| Depth | Volume |
|---|---|
| 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.
=A2*B2*C2/231=A2*B2*D2/231Find 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
| From | To | Factor |
|---|---|---|
| cubic inches | US gallons | ÷ 231 (exact) |
| cubic inches | litres | × 0.016387064 (exact) |
| cubic feet | US gallons | × 7.48052 |
| cubic centimetres | litres | ÷ 1,000 (exact) |
| US gallons | litres | × 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.