Fish Tank Volume Calculator: How Many Gallons?
- Water volume (liters)
- L
- Result
- Water volume (UK gallons)
- gal
- Result
- Length
- 48 in
- You entered
A fish tank volume calculator works out the water capacity of an aquarium in gallons or liters from its length, width, and height. You enter the tank’s outside dimensions in inches or centimeters, and the calculator returns the volume, accounting for glass thickness and typical water level. This is the number you need for sizing filters, heaters, and medications, and for deciding how many fish the tank can safely hold.
Formula
The calculator uses the standard rectangular tank volume formula:
V = (L – 2t) × (W – 2t) × (H – 1) × 0.0163871 (for liters)
or divide by 231 to get US gallons, or by 277.42 for UK gallons. Each variable is:
- L – outside length of the tank, in inches
- W – outside width, in inches
- H – outside height, in inches
- t – glass thickness, in inches (subtract twice for the two panes)
- 1 inch – subtracted from height to account for the water level being below the rim (typical for open tanks; adjust if you fill to the very top)
The factor 0.0163871 converts cubic inches to liters (1 in³ = 16.3871 mL). One US gallon is exactly 231 cubic inches; one UK (imperial) gallon is about 277.42 cubic inches.
Worked Example
Using the default values from the calculator: a tank that measures 48″ long, 13″ wide, and 20″ high, with 0.5″ glass.
- Inside length: 48 − 2×0.5 = 47 inches
- Inside width: 13 − 2×0.5 = 12 inches
- Inside height (water depth): 20 − 1 = 19 inches
- Inside volume: 47 × 12 × 19 = 10,716 cubic inches
- US gallons: 10,716 ÷ 231 = 46.39 gallons → rounds to 46.4 gallons
- Liters: 10,716 × 0.0163871 = 175.6 liters
The calculator’s first output shows 46.4 US gallons, matching this step-by-step result.
Why Tank Volume Matters
Knowing the true water volume is not just a curiosity—it drives several important decisions:
- Filter sizing: Most filters are rated for a certain tank size (e.g., “up to 50 gallons�). An undersized filter cannot keep the water clean.
- Heater wattage: A common rule is 3–5 watts per gallon, depending on room temperature and desired water temperature. A 40-gallon tank needs roughly 120–200 watts.
- Medication dosing: Many fish medications give doses per gallon or per liter. Overdosing is a common cause of fish death.
- Stocking levels: The “one inch of fish per gallon� rule is a rough starting point—it assumes a standard rectangular tank, not a tall or oddly shaped one.
- Water changes: If you change 25% weekly, you need to know exactly how much water that is.
How to Choose the Right Measurement
Most aquarium equipment and medications are labeled in US gallons, but many outside the US use liters or UK gallons. The calculator gives all three so you can match your local products. When measuring your tank:
- Measure the outside dimensions with a tape measure, from edge to edge.
- Estimate glass thickness: common values are 0.25″ (6 mm) for small tanks, 0.5″ (12 mm) for 50–75 gallons, and 0.75″ (19 mm) for large tanks. If unsure, measure the glass edge at the top.
- Decide on the water level: most tanks are filled to about 1 inch below the rim to prevent splash and allow for the water displaced by fish and decor. If you fill to the brim, subtract 0 instead of 1 inch.
For non-rectangular tanks (bow-front, hexagon, cylinder), the formula is different—see the alternatives section below.
Common Mistakes and Misconceptions
A frequent error is using the outside dimensions without subtracting glass thickness. For a 48″×13″×20″ tank, ignoring the glass overestimates the volume by about 4–5%—that’s 2 gallons on a 46-gallon tank. That might not sound like much, but it matters for medication dosing.
Another misconception is that the volume listed by the manufacturer is the water volume. Manufacturers usually list the nominal size (e.g., “55 gallon�) based on outside dimensions or even rounded up. The actual water volume is often 5–10% less. Always measure your own tank.
Also, be careful with units: 1 US gallon ≠ 1 UK gallon. A 50 UK-gallon tank is about 60 US gallons. The calculator shows both to avoid confusion.
Finally, the “one inch of fish per gallon� rule is a very rough guideline. It does not account for fish activity level, bioload, or adult size. It is safer to research each species’ needs.
Limits of the Formula
The formula assumes a perfectly rectangular tank with uniform thickness and a flat bottom. Real tanks have slight variations: the glass may be thicker at the bottom, the corners may be rounded, and the water level may be lower if you have a lot of substrate or hardscape. The result is an estimate, not a precise measurement.
For tanks with a built-in overflow or sump, the volume of the sump adds to the total water volume, but the sump is not included in the tank’s dimensions. If you run a sump, add its volume separately.
The calculator also does not account for the water displaced by substrate, rocks, and decorations. A heavily decorated tank can hold 10–15% less water than the calculated value. For medication dosing, it is safer to use the lower, realistic volume.
Alternatives for Non-Rectangular Tanks
If your tank is not a rectangle, the volume calculation changes:
- Bow-front: Approximate as a rectangle using the widest width, then multiply by 0.85–0.9 (depending on curvature).
- Hexagon: Divide into triangles or use the formula for a hexagonal prism: V = (3√3/2) × s² × H, where s is the side length and H is height.
- Cylinder: V = π × r² × H, where r is the radius. For a half-cylinder (common for “frag� tanks), multiply by 0.5.
- Irregular shapes: Use a bucket and a measuring cup: fill the tank with water, then measure how much you added. This is the most accurate method for any shape.
For the bucket method, fill the tank slowly and note the exact amount of water you pour in. This also gives you the true water volume, including any displacement from decor you already placed.
Safety and Accuracy Notes
When measuring a tank, be careful not to scratch the glass or damage the silicone seals. Use a cloth tape measure if possible. If the tank is full, never measure from the inside—you could disturb fish or cause a spill.
For medication dosing, always read the label and use the actual water volume, not the tank’s nominal size. When in doubt, use a slightly lower volume to avoid overdose.
For heater sizing, a heater that is too powerful can overheat the water; one that is too weak will never reach temperature. The 3–5 watts per gallon rule is a starting point, but consider the room’s ambient temperature and the desired water temperature (tropical tanks need more heat).
Finally, the volume calculation is for water, not for the total weight of the tank. A filled 55-gallon tank weighs over 450 pounds (including glass and gravel). Ensure your stand and floor can support the weight.
Frequently Asked Questions
What is the difference between US gallons and UK gallons?
A US gallon is 231 cubic inches (about 3.785 liters), while a UK (imperial) gallon is 277.42 cubic inches (about 4.546 liters). So a UK gallon is about 20% larger. Most aquarium products in the US use US gallons; in the UK and many other countries, liters are standard. The calculator gives both to avoid confusion.
Why do I need to subtract glass thickness?
The glass takes up space, so the inside of the tank is smaller than the outside. If you measure outside dimensions and don’t subtract the glass, you overestimate the water volume. For a typical 55-gallon tank, the overestimate is about 2–4 gallons. This matters for medication dosing and stocking decisions.
Does the volume include the water in the filter or sump?
No, the calculator only computes the volume of the main tank. If you have a sump, you need to add its water volume separately. For a canister filter, the water in the filter is usually small (1–2 gallons) but can be significant for large systems. Always include it for total system volume.
How accurate is the “one inch of fish per gallon� rule?
It is a rough guideline, not a scientific standard. It works for small, low-bioload fish like neon tetras, but fails for messy fish like goldfish or active swimmers like cichlids. It also ignores the adult size of the fish. Research each species’ minimum tank size and bioload.
Can I use this calculator for a cylindrical or bow-front tank?
No, this calculator is for rectangular tanks. For a cylinder, use V = π × r² × H. For a bow-front, multiply the rectangular volume by 0.85–0.9 to account for the curved front. For irregular shapes, the bucket method is most accurate.
Should I measure the water level from the top or the bottom?
Measure from the bottom of the tank (inside) to the water surface. The calculator subtracts 1 inch from the outside height to approximate the typical water level. If you fill to the very top, change the height subtraction to 0. If you have a thick substrate, the water depth is less—measure from the top of the substrate to the surface.
Related
Formula used
in l | Length | in | 48 | 0 in w | Width | in | 13 | 0 in h | Height | in | 20 | 0 in g | Glass thickness | in | 0.5 | 0 out vol_us | Water volume (US gallons) | gal | ((l - 2*g) * (w - 2*g) * (h - 1)) / 231 | 1 out vol_l | Water volume (liters) | L | ((l - 2*g) * (w - 2*g) * (h - 1)) * 0.0163871 | 1 out vol_imp | Water volume (UK gallons) | gal | ((l - 2*g) * (w - 2*g) * (h - 1)) / 277.42 | 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.