ThisCalculator

Everyday

Rectangle Tank Volume Calculator: How to Find Gallons

Updated · Standard formula, shown below

Total volume 49.9 US gal
Total volume
188.8 L
Result
Usable volume
44.9 US gal
Result
Length
48 in
You entered

This calculator works out the volume of a rectangular tank (like a fish tank, fuel tank, or water storage container) in gallons, liters, and cubic units. You enter the length, width, and height (or depth) of the tank in inches, feet, centimeters, or meters, and it returns the total volume and the usable capacity if you leave a gap at the top.

Formula

The volume of a rectangular tank is simply the product of its three internal dimensions:

V = L × W × H

  • V = volume (cubic inches, cubic feet, cubic centimeters, etc.)
  • L = internal length of the tank
  • W = internal width of the tank
  • H = internal height (or depth) of the tank

All three dimensions must be in the same unit before multiplying. If you measure in inches, the result is cubic inches. To convert to US gallons, divide by 231 (because 1 US gallon = 231 cubic inches). To convert to liters, multiply cubic inches by 0.0163871 (since 1 cubic inch = 16.3871 milliliters). For metric measurements, volume in cubic centimeters divided by 1000 gives liters, and 1 liter = 0.264172 US gallons.

Worked Example

Using the default values from the calculator: a tank that is 48 inches long, 12 inches wide, and 20 inches high, with a 2-inch gap left at the top.

  1. Calculate total volume in cubic inches: 48 × 12 × 20 = 11,520 in³.
  2. Convert to US gallons: 11,520 ÷ 231 = 49.87 gallons (rounded to 49.9).
  3. Convert to liters: 11,520 × 0.0163871 = 188.8 liters.
  4. Calculate usable volume (with 2-inch gap): height for water = 20 − 2 = 18 in. Volume = 48 × 12 × 18 = 10,368 in³. Divide by 231 = 44.88 gallons (rounded to 44.9).

The calculator shows the same results: 49.9 US gal total, 188.8 L total, and 44.9 US gal usable.

When to Use a Rectangle Tank Volume Calculator

This tool is useful in several everyday situations:

  • Aquariums: Determining how many gallons a fish tank holds helps with dosing medications, choosing a heater, and stocking fish.
  • Fuel or water storage: Knowing the capacity of a rectangular tank on a boat, RV, or off-grid system.
  • Hydroponics and gardening: Calculating nutrient solution volumes for grow beds or reservoirs.
  • Shipping and logistics: Estimating the volume of rectangular cargo boxes to plan truck or container space.
  • Home brewing: Checking the size of a fermenter or mash tun.

For any rectangular prism, the math is the same. The only difference is the unit you use for the final answer.

How to Measure a Rectangular Tank Correctly

To get an accurate volume, measure the inside dimensions, not the outside. The wall thickness of glass, plastic, or metal reduces the internal volume. For a glass aquarium, subtract twice the glass thickness from the outside length and width, and subtract the bottom thickness from the height (unless you measure from the inside).

Also, measure the height to the top edge, not to the rim or frame. If the tank has a lid or a rim that extends above the glass, the water level can only reach the bottom of that rim. Use that lower point as the effective height.

For irregular shapes like a sump with baffles, divide the tank into rectangular sections, calculate each separately, and add them together.

Common Mistakes and How to Avoid Them

  • Mixing units: Multiplying inches by feet gives a nonsense number. Convert all dimensions to the same unit first.
  • Using outside dimensions: This overestimates volume, especially for thick-walled tanks. Always use internal measurements.
  • Forgetting the gap: Most tanks are not filled to the very top. Leaving a 1–2 inch gap is standard for aquariums to prevent fish jumping out and to allow for water displacement from decorations.
  • Confusing US and UK gallons: A US gallon is 231 in³, while a UK (imperial) gallon is 277.42 in³. The calculator uses US gallons, which is the standard for aquariums in North America. If you need imperial gallons, multiply US gallons by 0.833.
  • Rounding too early: If you round each dimension before multiplying, you can lose accuracy. Keep full precision until the final step.

Limits of the Formula

The formula V = L × W × H works only for a perfect rectangular prism with straight sides and flat bottom. It does not apply to:

  • Bow-front or curved-corner tanks
  • Cylindrical or spherical tanks
  • Tanks with a sloped bottom (like some boat fuel tanks)
  • Tanks with internal structures (baffles, overflow boxes) that displace water

For those shapes, you need a different formula or a more advanced calculator that accounts for the geometry. Also, the volume calculation gives the nominal capacity; the actual usable volume may be less if the tank has a sump, a filter, or a lid that reduces the fill level.

Safety and Practical Considerations

Knowing the volume is important for safety, especially with water-filled tanks. Water weighs about 8.34 pounds per US gallon (1 kg per liter). A 50-gallon aquarium weighs roughly 417 pounds just for the water, plus the weight of the glass, substrate, and decorations. Make sure the floor or stand can support that load.

When filling a tank, never exceed the maximum recommended fill level. Leave enough air space at the top to allow for water movement, equipment, and (for aquariums) fish jumping. For fuel tanks, leave room for expansion as temperature changes.

If you are using the volume for chemical dosing (e.g., water treatments, fertilizers, or medications), always use the actual water volume, not the total tank volume. Subtract the volume displaced by substrate, rocks, and equipment. A common rule is to subtract 10–20% for aquariums with substrate and decorations.

Frequently Asked Questions

How many gallons is a 48x12x20 tank?

Using the default example, a 48×12×20 inch tank holds 49.9 US gallons when filled to the top. With a 2-inch gap, it holds 44.9 gallons of water. This is a common size for a 50-gallon aquarium.

Why do I need to leave a gap at the top?

Leaving a gap (usually 1–2 inches) prevents water from spilling over the rim, allows space for equipment like filters and heaters, and gives fish room to jump without escaping. It also accounts for water displacement from decorations and substrate, which reduces the actual water volume.

What is the difference between US gallons and imperial gallons?

A US gallon is 231 cubic inches (about 3.785 liters). An imperial (UK) gallon is 277.42 cubic inches (about 4.546 liters). The calculator uses US gallons. To convert US gallons to imperial, multiply by 0.833. To convert imperial to US, multiply by 1.201.

Can I use this calculator for a cylinder tank?

No, this calculator is only for rectangular tanks. For a cylinder, use the formula V = π × r² × h, where r is the radius and h is the height. You can find a dedicated cylinder tank calculator on this site.

How do I measure the volume of a tank with a rounded bottom?

If the bottom is not flat, the simple rectangle formula will overestimate. You can approximate by measuring the average depth, or divide the tank into sections: a rectangular lower part and a curved upper part. For precise results, use a volume calculator that accepts a custom shape or measure the actual water added with a known container.

Does the volume change if I use metric measurements?

No, the physical volume is the same. The calculator converts between units automatically. If you enter centimeters, the volume in liters is (L × W × H) / 1000. If you enter meters, the volume in liters is (L × W × H) × 1000. The calculator handles the conversion for you.

Related

Formula used
in length | Length | in | 48 | 0
in width | Width | in | 12 | 0
in height | Height | in | 20 | 0
in gap | Gap from top | in | 2 | 0
out volume_gal | Total volume | US gal | (length * width * height) / 231 | 1
out volume_l | Total volume | L | (length * width * height) * 0.0163871 | 1
out usable_gal | Usable volume | US gal | (length * width * (height - gap)) / 231 | 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.