This calculator works out the volume in gallons of a rectangular tank when you enter its length, width, and depth. You get the result in US gallons and cubic feet, using the standard formula for a box-shaped container. It is useful for fish tanks, fuel tanks, water storage, or any rectangular vessel where you need to know capacity.
Formula
The volume of a rectangular tank is length × width × height (or depth). To get gallons, you need to convert the cubic units to gallons. The formula used here is:
Gallons = (L × W × D) / 231
Where:
- L = length of the tank in inches
- W = width of the tank in inches
- D = depth (or height) of the tank in inches
- 231 = number of cubic inches in one US gallon
If you measure in feet and inches, convert everything to inches first. For example, 3 feet = 36 inches. The calculator above lets you enter length and width in feet and depth in inches, so it converts automatically.
Worked Example
Using the default values from the calculator: length = 40 ft, width = 25 ft, depth = 3 in.
First, convert length and width to inches:
- Length: 40 ft × 12 = 480 in
- Width: 25 ft × 12 = 300 in
Then multiply all three dimensions:
480 × 300 × 3 = 432,000 cubic inches
Divide by 231 to get US gallons:
432,000 ÷ 231 = 1,870.13 gallons
The calculator shows 1,870.13 gallons as the headline result, matching this manual calculation.
Why Use a Rectangular Tank Calculator?
Rectangular tanks are common because they are easy to manufacture, stack well, and use space efficiently. Unlike cylindrical tanks, the volume formula is simple multiplication, but the unit conversions trip people up. A calculator removes the risk of mixing feet with inches or using the wrong gallon definition.
You might need this for:
- Aquarium water volume (for fish stocking and medication dosing)
- Fuel or water storage tanks
- Septic or sump pit sizing
- Swimming pool (if rectangular) water volume
- Shipping or freight volume calculations
How to Measure a Rectangular Tank
To get an accurate result, measure the inside dimensions of the tank, not the outside. The wall thickness adds to the exterior size but does not hold water. Use a tape measure or ruler and record the length, width, and depth in the same unit (inches or feet).
For a tank that is not completely full, measure the actual water depth rather than the full tank height. This gives you the current volume, which is what you need for water changes or chemical dosing.
If the tank has rounded corners or a sloped bottom, the simple rectangular formula will overestimate the volume. In that case, measure at the narrowest points or use a more complex shape approximation.
Common Mistakes and How to Avoid Them
The most frequent error is mixing units. For example, entering length in feet and width in inches without converting. Always convert to a single unit before multiplying.
Another common mistake is using the outside dimensions. A 1-inch thick acrylic tank will hold significantly less than its exterior suggests. Always measure the interior.
Also, be aware of the difference between US gallons and imperial gallons. The calculator above uses US gallons (231 cubic inches). Imperial gallons are about 20% larger (277.4 cubic inches). If you are in the UK or using British measurements, you need a different conversion factor.
US Gallons vs. Imperial Gallons
There are two common gallon definitions:
- US gallon: 231 cubic inches, or about 3.785 liters
- Imperial gallon: 277.42 cubic inches, or about 4.546 liters
Most calculators and aquarium products in the US use the US gallon. If you are buying a tank from the UK or using British fuel measurements, confirm which gallon is being referenced. The difference matters: a 100-gallon imperial tank holds about 120 US gallons.
Limitations of the Simple Formula
The formula L × W × D assumes a perfect rectangular prism with flat, perpendicular sides and a flat bottom. Real tanks often have:
- Rounded corners (radius reduces volume)
- Tapered walls (narrower at the bottom)
- Sloped or dished bottoms
- Internal bracing or partitions
For those, the simple formula overestimates. If you need high accuracy, measure the actual water volume by filling the tank with a known container (like a 5-gallon bucket) and counting. That is the gold standard.
Also, the calculator gives the nominal volume. When filling a tank, you rarely fill it to the very top, so the usable volume is slightly less. For safety, leave a few inches of headspace.
Frequently Asked Questions
How do I convert cubic feet to gallons?
One cubic foot equals 7.48052 US gallons. So multiply the cubic feet by 7.48 to get gallons. For example, 10 cubic feet is 74.8 gallons. If you have cubic inches, divide by 231.
What if my tank is not a perfect rectangle?
Break the shape into rectangular and triangular sections, calculate each separately, then add them. For a trapezoidal cross-section, use the average width. For irregular shapes, the water displacement method is most accurate: submerge the tank (or a model) and measure the overflow.
Does the calculator work for liters?
No, it outputs gallons and cubic feet. To get liters, multiply the US gallons by 3.78541. For example, 100 gallons is 378.5 liters. Or calculate the volume in cubic inches and divide by 61.0237 to get liters.
Why is my tank’s label different from my calculation?
Tank manufacturers often list the nominal size based on outside dimensions or an industry standard, not the actual interior volume. For example, a “55-gallon” aquarium may actually hold 48–50 gallons when filled to the recommended level. The difference is due to glass thickness, trim, and the fact that you don’t fill it to the rim.
Can I use this for a pool or pond?
Yes, if the pool or pond is rectangular with a flat bottom. For a pool with a sloped bottom, measure the average depth (shallow end + deep end ÷ 2) and use that as the depth. For a pond with irregular sides, the formula is only an estimate.
How accurate is the calculator for a fish tank?
It is accurate to within a few percent for a standard rectangular aquarium, provided you measure the interior dimensions. For medication dosing, always use the actual water volume (excluding gravel and decorations), which is typically 10–20% less than the tank’s nominal volume.
Related
Formula used
in l | Lawn length | ft | 40 | 0 | 100000 in w | Lawn width | ft | 25 | 0 | 100000 in d | Depth | in | 3 | 0 | 120 out yd | Volume | yd³ | l * w * d / 324 | 2 out ft3 | Volume | ft³ | l * w * d / 12 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More in this bed
- Calculate Yardage Landscape: Formula & Calculator9.26 yd³
- Roth IRA at 40: Calculator & Guide433,769 $
- Post Judgment Interest Calculator QLD
- PPF Interest Rate Calculator: How It Works2,532,343 ₹
- Post Office Loan Calculator: How to Estimate241.79 $
- Rate Calculator Auto Loan: How It Works489.15 $