InputsLive
Tank shape

The standard glass box. Volume = length × width × height ÷ 231.

Length
in
Width (front to back)
in
Height
in
Displacement allowancesubstrate + decor
%
Result
Net water volume
16.8 US gal
About 16.8 gallons (63.7 L) of actual water, from a 18.7-gallon full capacity once 10% is set aside for substrate and decor. Dose treatments to this figure.
Gross (full) volume18.7 gal
Gross (litres)70.8 L
Net water (gal)16.8 gal
Net water (litres)63.7 L

Estimates only, from the dimensions you enter — not a substitute for professional fishkeeping or veterinary advice. Confirm your true water volume before dosing. How accurate is this?

Results are estimates. Consult a professional.

How it's calculated

How the aquarium volume calculator works

An aquarium holds water by volume, so the only thing that matters is the three-dimensional space inside the glass. This calculator multiplies your tank's measurements to get cubic inches, divides by 231 — the number of cubic inches in one US gallon — and converts the same figure to litres. It then estimates the true water volume, which is always a little less than the full capacity once gravel, rocks and decorations take their share.

gallons (US) = length × width × height (inches) ÷ 231
litres = gallons × 3.785411784
The volume geometry is standard, and the 231-cubic-inches-per-gallon conversion is exact. Inch Calculator's aquarium guide sets out the same length × width × height ÷ 231 method.

Gross capacity versus true water volume

Two numbers do the work here. Gross capacity is the geometry — the water the empty tank would hold filled to the brim. Net, or true, water volume is what is left once substrate, hardscape and the inch or two of freeboard below the rim are subtracted. The calculator shows both, because the net figure is the one that matters for dosing and day-to-day care.

The number that matters

Gross capacity vs. true water volume

Most volume calculators stop at the gross figure. That is the trap. Your "20-gallon" tank rarely holds 20 gallons of water — once gravel, rocks, driftwood and the unfilled top are in place, the real volume is closer to 16 or 17 gallons.

The gap is not small. Industry calculators and tank sellers note that actual water volume usually runs about 85–90% of the calculated figure for a planted community tank, and lower still for a reef or heavily aquascaped setup where rock can take a fifth of the space. This calculator makes that adjustment visible with a displacement allowance you can dial from 0 to 30%.

Use the net figure for anything dose-sensitive
Water conditioners, medications and fertilisers are dosed per gallon of water — not per gallon of glass. Reach for the net (true) water volume whenever the amount you add depends on how much water is really in the tank.
Omni Calculator's aquarium tool notes the same point: the calculated volume does not account for glass thickness, substrate, decor or the fact that tanks are not filled to the very top, so real volume is lower.
Example

A worked example using the aquarium volume calculator

Example: a 30 × 12 × 12 inch rectangular tank

Priya has a standard 30 × 12 × 12 inch rectangular tank — the classic "20-gallon long" footprint. She wants to know how much water it really holds so she can dose a water conditioner correctly after a change.

Step 1 — Find the cubic inches

Multiply the three dimensions: 30 × 12 × 12 = 4,320 cubic inches.

Step 2 — Convert to gallons and litres

Divide by 231: 4,320 ÷ 231 = 18.7 US gallons. Multiply by 3.785411784 for litres: 18.7 × 3.785 ≈ 70.8 litres. That is the gross capacity, full to the brim.

Step 3 — Subtract the displacement

Priya keeps a 2-inch gravel bed and a few rocks, so she sets the displacement allowance to 10%. True water volume = 18.7 × 0.90 = 16.8 gallons (about 63.7 litres). That is the figure she doses to.

18.7 gal full — about 16.8 gal of real water
The two-gallon gap looks minor, but a conditioner dosed "1 mL per 10 gallons" is the difference between treating 18.7 gallons and 16.8. Dosing to the net figure keeps treatments on target and your fish safe.
By tank shape

How to calculate volume for each tank shape

The conversion to gallons is identical for every tank — cubic inches divided by 231. Only the way you find those cubic inches changes with the shape. The calculator handles the three most common designs.

Rectangular tanks

The simplest case, and the most common. Multiply length by width by height, all in inches, then divide by 231. A 24 × 12 × 16 inch tank is 4,608 cubic inches, or about 19.9 gallons.

Cylinder tanks

Round column tanks use the circle area times height: π × (diameter ÷ 2)² × height ÷ 231. A 20-inch-diameter, 24-inch-tall cylinder works out to about 32.6 gallons. Measure the diameter across the inside of the tank, not the outer rim.

Bow-front tanks

A bow-front has a flat back and a curved front that bulges outward. The calculator treats it as a rectangular body plus a half-ellipse bow section running the length of the tank, so you enter the flat-panel length, width and height plus the bow depth — how far the curve bulges past the sides at its deepest point. The curved front typically adds 10–15% over the plain rectangular figure.

Bulk Reef Supply's water volume calculator covers rectangular, cylinder and bow-front shapes and likewise flags that real water volume is reduced by sand, rock, equipment and the inhabitants themselves.
Quick reference

Common aquarium sizes and their water volume

If you want a ballpark before you measure, this table lists the gross and net volumes for common rectangular tank footprints. Net figures assume a 10% displacement allowance for substrate and decor — set yours higher for a reef or planted tank with heavy hardscape.

Tank (L × W × H, in)Gross (gal)Gross (L)Net @ 10% (gal)
20 × 10 × 12 (10-gal)10.439.39.4
30 × 12 × 12 (20-long)18.770.816.8
24 × 12 × 16 (20-high)19.975.518.0
36 × 18 × 18 (40-breeder)50.5191.145.4
48 × 13 × 21 (55-gal)56.7214.751.1
48 × 18 × 21 (75-gal)78.5297.370.7

Gross volume = length × width × height ÷ 231; net = gross × 0.90. Nominal names (10-gal, 55-gal) are rounded marketing labels; the calculated capacity is the precise geometry.

Why it matters

Why true water volume matters for dosing treatments

Get the volume wrong and every treatment is wrong with it. Water conditioners, medications, fertilisers and pH adjusters are all measured per gallon of water, so an over-stated volume leads to an over-dose that can stress or kill fish — and an under-stated one to an under-dose that does nothing.

A common dechlorinator instructs 1 mL per 10 US gallons. Dose our 16.8-gallon example tank by its 20-gallon label and you add 2.0 mL where about 1.7 mL is needed — roughly 19% too much. The same trap hits a reef tank dosed by its glass capacity when rock fills a fifth of it: you over-treat the real water by that margin. The fix is to dose to the net figure from this calculator. For a water change, dose only the new water you are adding, not the whole tank.

Per-gallon dosing is standard across aquarium products — API's Tap Water Conditioner, for example, directs 1 mL per 10 US gallons of water being treated, which depends on actual water volume.
Stocking

The 1 inch of fish per gallon guide, and its limits

You will hear that a tank holds "one inch of fish per gallon." It is a handy first sniff-test for a beginner, but it is a rough rule of thumb, not a stocking law — and leaning on it too hard is how tanks get overcrowded.

  • It ignores adult size. A one-inch juvenile can mature into a 12-inch fish. Stock to the adult length, never the size at the shop.
  • It ignores body shape. A slim neon tetra and a chunky goldfish of the same length produce wildly different waste and need different space.
  • It ignores bioload. A fish twice as long can have several times the body mass and waste output, which the filter has to keep up with.
  • It only loosely fits small fish. The guide is least misleading for small, slim, schooling species in tanks of roughly 15 gallons or more.

Use the net water volume here as your starting denominator, then research each species' adult size, temperament and filtration needs. For stocking plans and any fish-health question, ask an aquatic veterinarian or an experienced fishkeeper. You can also size feeding and care for other pets with our dog food calculator and cat calorie calculator.

Aquarium Science details why the inch-per-gallon rule breaks down — body shape, adult size and waste production matter more than length — and proposes surface area and filtration as better stocking guides.
Displacement

How much volume do gravel and rocks take up?

Substrate and hardscape are the main reason the tank holds less water than the glass suggests. The deeper the bed and the more rock you add, the larger the gap between gross and net volume.

What's in the tankRough volume lost
Gravel, 1 inch deepabout 3–5%
Gravel, 2 inches deepabout 6–10%
Sand, 1 inch deepabout 4–6%
Rock / hardscape (planted)5–10% on top of substrate
Live rock (reef tank)10–20% or more

Typical ranges; exact loss depends on tank footprint and how much hardscape you use. Add the freeboard you leave below the rim — usually an inch or two — for the full picture.

For most community tanks, a 10–15% displacement allowance is realistic. A bare tank with a thin substrate can sit at 5%. A reef or heavily aquascaped tank stacked with rock can lose 20–25% or more, so set the slider to match what you keep.

Bulk Reef Supply and other aquarium references put displacement from substrate, rock and decor at roughly 10–25% of calculated volume, with reef tanks at the high end.
Definitions

Aquarium volume definitions

The water a tank would hold filled to the very top with nothing inside it — pure geometry. A 30 × 12 × 12 inch tank has a gross capacity of about 18.7 US gallons (70.8 litres).
The water truly in the tank once substrate, rocks, decor and the unfilled top are subtracted. Usually 85–90% of gross for a community tank, and the figure to use for dosing.
The volume taken up by anything that is not water — gravel, sand, rock, driftwood, equipment and the inhabitants. Expressed here as a percentage of gross capacity.
The rounded marketing label, such as "55-gallon." It describes the model, not the exact water it holds, which the measured geometry gives more precisely.
The gap of air left between the water line and the rim, usually an inch or two, so the tank does not overflow. It is part of why a full tank still holds less than its gross capacity.
The total waste the tank's inhabitants produce, which the filter and water volume must handle. Larger or heavier-bodied fish add more bioload than their length alone suggests.
Accuracy

How accurate is this aquarium volume calculator?

The volume math is exact. Length times width times height divided by 231 is the precise gallon capacity of a rectangular tank, the cylinder uses π and the bow-front adds a standard half-ellipse approximation for the curve. If your measurements are right, the gross figures are right to the decimal.

The net water volume is an estimate, and on purpose. How much your gravel, rock and decor displace depends on your specific setup, so the displacement allowance is a planning figure rather than a measured one — adjust it to match your tank. For the most accurate net volume, measure to the real water line rather than the rim, and treat the net result as a close working estimate. This tool helps you plan water changes, dosing and stocking; it is not a substitute for professional fishkeeping or veterinary advice. For any fish-health concern, consult an aquatic veterinarian.

Questions

Frequently asked questions about the free Aquarium Volume calculator

An aquarium Volume calculator is a free online tool that helps you find how many gallons or litres your fish tank holds — and the true water volume after gravel, rocks and decor. Tank volume is its interior geometry converted to gallons, then reduced for the substrate, rocks and decor that displace water. It runs entirely in your browser with instant results and no sign-up.
Multiply the tank's length, width and height in inches, then divide by 231 (the cubic inches in one US gallon). A 30 × 12 × 12 inch tank is 4,320 cubic inches, or about 18.7 gallons. Divide cubic centimetres by 1,000 for litres.
Gravel, rocks, decorations, equipment and the inch or two of air left below the rim all take up space. Real water volume is usually about 85–90% of the calculated capacity, and lower in reef or heavily aquascaped tanks.
Use the net (true) water volume. Conditioners and medications are measured per gallon of water, so dosing to the tank's advertised size over-doses a tank full of substrate and rock. For a water change, dose only the new water you add.
A cylinder is π × (diameter ÷ 2)² × height ÷ 231. A bow-front is the flat rectangular body plus a curved bow section, which typically adds 10–15% over the plain rectangle. This calculator handles all three shapes.
It is a rough starting point, not a rule. It ignores adult size, body shape and waste output, and fits only small, slim, schooling fish. Research each species' adult needs and ask an aquatic vet or specialist for stocking decisions.
About

About this Aquarium Volume calculator

This aquarium volume calculator runs entirely in your browser. Nothing you type is sent anywhere — the gross capacity and the true water volume are worked out on your device the moment you change a dimension, so you get an instant, private estimate for any tank shape.

It is one of our pet calculators, alongside the rest of our free calculators. Results are planning estimates for water changes, dosing and stocking — not a substitute for professional fishkeeping or veterinary advice.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.