Square Tank Volume Calculator: Gallons
- Volume
- cubic inches
- Result
- Volume
- liters
- Result
- Length
- 24 in
- You entered
This calculator works out the volume of a square or rectangular tank in US gallons. You enter the length, width, and height (or water depth) in inches, feet, or centimeters, and it returns the total capacity in gallons. It uses the standard formula: volume = length × width × height, then converts the cubic result to gallons.
Formula
The volume of a square or rectangular tank is found by multiplying its three internal dimensions:
V = L × W × H
- V = volume (cubic inches, cubic feet, cubic centimeters, etc.)
- L = internal length (inches, feet, cm)
- W = internal width (same unit as L)
- H = internal height or water depth (same unit as L)
To convert cubic inches to US gallons, divide by 231 (since 1 US gallon = 231 cubic inches). For cubic feet, multiply by 7.48052. For liters, multiply cubic inches by 0.0163871.
Worked Example
Using the default values from the calculator: length = 24 in, width = 12 in, height = 12 in.
- Calculate cubic inches: 24 × 12 × 12 = 3,456 in³
- Convert to gallons: 3,456 ÷ 231 = 14.96 gallons
- Convert to liters: 3,456 × 0.0163871 = 56.63 liters
The calculator shows 14.96 US gallons, which rounds to 14.96 (2 decimals).
Why Tank Volume Matters
Knowing the exact volume of a square or rectangular tank is essential in many practical situations:
- Aquariums: Stocking fish, dosing medications, and choosing a heater or filter all depend on water volume.
- Hydroponics: Nutrient solution strength is calculated per gallon or liter.
- Fuel or water storage: For generators, RVs, or rainwater collection, knowing capacity helps plan usage.
- Chemical mixing: Pesticides, cleaning solutions, and fertilizers often require dilution ratios based on tank volume.
Even a small error in volume can lead to overstocking fish or overdosing chemicals, so accurate measurement is worth the effort.
How to Measure a Tank Correctly
To get accurate results, measure the inside dimensions, not the outside. Wall thickness can add an inch or more, especially on larger tanks.
- Use a tape measure or ruler. For large tanks, a laser measure works well.
- Measure length, width, and height in the same unit (inches or centimeters).
- If the tank is already filled, measure the water depth from the bottom to the water surface, not the tank height.
- For irregular shapes (rounded corners, sloped bottoms), the formula still gives a close estimate, but the actual volume may differ slightly.
If you only know the dimensions in feet, convert to inches first (1 ft = 12 in) or use the cubic feet conversion factor.
Common Mistakes and Misconceptions
Here are the most frequent errors people make when calculating tank volume:
- Mixing units: Multiplying feet by inches gives nonsense. Always use the same unit.
- Using outside dimensions: Wall thickness reduces internal volume, sometimes by 10% or more.
- Confusing US and UK gallons: A UK gallon is about 1.2 US gallons. This calculator uses US gallons.
- Forgetting water depth: If you only fill the tank halfway, the volume is half, not the full capacity.
- Rounding too early: Round only at the final step to avoid accumulating error.
Another misconception: a tank that is 2 feet long, 1 foot wide, and 1 foot tall is not 2 gallons. It is 2 cubic feet, which is about 14.96 US gallons (since 1 ft³ = 7.48 gal).
When to Use Full Capacity vs. Actual Water Volume
For many purposes, you need the actual water volume, not the full tank capacity. For example:
- Aquarium stocking: Use the water volume (subtract substrate, decorations, and the fact that you don’t fill to the brim).
- Water changes: If you change 25% of a 20-gallon tank, you remove 5 gallons, not 5 gallons plus the gravel.
- Chemical dosing: Always dose based on actual water volume, not tank dimensions.
- Filtration sizing: Filters are rated for tank size, but it’s safer to use actual water volume.
To estimate actual water volume, measure the water depth instead of tank height. If you have substrate, measure from the top of the substrate to the water surface.
Alternatives and Comparison
For round or cylindrical tanks, the formula is different: V = π × r² × h. For oval tanks, you can approximate by treating them as a rectangle with rounded ends, or use a more complex formula. This calculator is specifically for square or rectangular tanks, which are the most common shape for aquariums and storage containers.
If your tank has a tapered bottom or is a truncated pyramid, the formula changes. For most home and hobbyist uses, the simple rectangular formula is accurate enough.
Limitations of the Formula
The formula assumes perfectly straight sides and flat bottom. In reality, many tanks have slight bowing or rounded corners. For high precision (e.g., laboratory or industrial), you would need to measure the actual water volume by filling the tank and measuring the amount of water added. For aquariums and general storage, the formula is usually within a few percent.
Also, water expands slightly with temperature, but the change is negligible for typical home use (less than 0.5% between 40°F and 100°F).
Frequently Asked Questions
How many gallons is a 24x12x12 tank?
Using the formula: 24 × 12 × 12 = 3,456 cubic inches. Divide by 231 to get 14.96 US gallons. This is a common 15-gallon aquarium size.
How do I convert cubic feet to gallons?
Multiply the cubic feet by 7.48052. For example, a 2 ft × 1 ft × 1 ft tank is 2 cubic feet, which is 2 × 7.48052 = 14.96 gallons.
What is the difference between US and UK gallons?
A US gallon is 231 cubic inches (about 3.785 liters). A UK (imperial) gallon is 277.42 cubic inches (about 4.546 liters). So a UK gallon is about 20% larger. This calculator uses US gallons, which is standard in the US and for most aquarium equipment.
Should I measure from the outside or inside of the tank?
Always measure from the inside. Glass or plastic walls can be 1/4 inch to 1/2 inch thick on smaller tanks, and up to 1 inch or more on large tanks. Using outside dimensions overestimates the volume.
Does the calculator account for substrate or decorations?
No. The calculator gives the total volume of the empty tank. To get the actual water volume, subtract the volume displaced by substrate, rocks, and decorations, or measure the water depth instead of tank height.
Can I use this for a fish tank with a sump?
For a system with a sump, add the volume of the sump (calculated separately) to the main tank volume. But remember that the sump is not filled to the brim, so measure the actual water depth in the sump.
Related
Formula used
in length | Length | in | 24 | 0 in width | Width | in | 12 | 0 in height | Height (or water depth) | in | 12 | 0 out gallons | Volume | US gallons | (length * width * height) / 231 | 2 out cubic_in | Volume | cubic inches | length * width * height | 0 out liters | Volume | liters | (length * width * height) * 0.0163871 | 2
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.