Aquarium calculator

Enter your tank’s shape and measurements once and TankMath carries the numbers through everything else: the real water volume after substrate and decor, the size of a water change, the dose of water conditioner, the salt for a marine mix or a freshwater treatment, and a maintenance routine sized to your tank.

1. Tank volume

Real water (substrate, decor)
0US gallons
0litres
0UK gallons

2. Water change

3. Water conditioner

Doses are typical label rates. Always check your bottle.

4. Salt

Mix brands vary; confirm with a refractometer before adding water to the tank.

5. Maintenance schedule

TaskHow oftenNextNotes

Saved you some time? Leave a tip, entirely optional.

It handles rectangular, bow front, cylinder, hexagon and corner tanks, in inches or centimetres, and remembers your tank on this device.

How tank volume is worked out

Every shape comes down to base area × height. For a rectangular tank the base is length × width. A cylinder uses π × radius², a regular hexagon uses 2.598 × side², and a quarter-circle corner tank uses a quarter of π × radius². A bow front is treated as a rectangle plus a curved segment whose area is two thirds of the length times the extra depth at the centre of the bow, which matches most commercial bow fronts closely. In inches the result is divided by 231 to give US gallons; in centimetres it is divided by 1,000 to give litres.

The nominal size of a tank is rarely the water it holds. TankMath subtracts the substrate depth and the gap you leave below the rim, then a percentage for rock and decor, to estimate the real water volume. That figure drives the water change, dosing and schedule, because medicine, conditioner and salt should be measured against the water actually in the tank. The filled weight adds water at about one kilogram per litre and substrate at about one and a half.

Water changes, conditioner and salt

Regular partial changes keep nitrate low and water chemistry steady. With a 25% weekly change, only about a third of today’s water is still in the tank four weeks later. Water conditioner doses scale directly with volume, so the calculator multiplies the label rate by the gallons you are treating. For marine mixes, specific gravity is converted to salinity in parts per thousand and multiplied by the litres you are making; because brands differ, always confirm with a refractometer or hydrometer before the new water goes in.

A schedule that fits your tank

The maintenance plan scales with stocking: heavier stocking means larger, more frequent water changes and more frequent filter rinses. Planted tanks get trimming and fertiliser reminders and gentler substrate cleaning, and saltwater tanks get daily top-offs with fresh RO water and weekly tests. Everything is calculated in your browser and saved only on this device.

Frequently asked questions

How do I measure my tank?

Measure the inside of the glass if you can, or subtract the glass thickness from outside measurements. Height is the water depth you fill to, or the full inside height.

Why is the real water volume lower?

Substrate, rock, decor and the gap below the rim all take up space. A tank sold as 20 gallons often holds 16–18.

Does it work for ponds?

For rectangular or round ponds with straight sides, yes. Sloped ponds need an average depth.

Is TankMath free?

Yes. Every calculator is free with no account.

Is my tank information saved?

Only in this browser, so the calculator remembers your tank next time. Nothing is uploaded.

More tools