The quick formula for a rectangular fish tank
To calculate a rectangular fish tank's volume in liters, multiply its inside length, inside width, and vertical water depth in centimeters, then divide by 1,000. Written as an equation, V = L × W × H / 1,000. For measurements in inches, multiply the three dimensions and divide by 231 to obtain US liquid gallons. These formulas describe a rectangular space, not every container sold as an aquarium.
First decide which question you are answering. Capacity to the top describes the enclosure's geometry. Waterline volume stops at the operating surface. Actual net water also allows for submerged solids. A seller's nominal gallon size may not equal any of your measurements exactly. Choose the quantity needed for your next calculation rather than treating all three labels as interchangeable or assuming a rounded model name measures the water currently present.
Measure the inside, and choose the correct height
Measure between the inner faces of the walls. External measurements include glass or acrylic thickness and sometimes trim, so they can exaggerate the usable space. Keep the measuring direction consistent: length along the front, width from front to back, and height vertically. A label such as 100 by 40 centimeters gives a base, not a volume; a third dimension is still necessary before calculating liters or gallons.
For an operating tank, measure water height from the bare inside bottom, not from the top of the gravel. That establishes the complete geometric space below the surface. Submerged solid displacement is handled afterward. Measuring only above the substrate and then subtracting all the gravel again understates water volume, while using the full tank height ignores headspace. Do not move animals, disturb the bed, or dismantle a filled aquarium just to improve an estimate.
Worked example: capacity, waterline, and net water
Consider a hypothetical rectangular tank with inside dimensions of 100 × 40 × 50 cm. Its top capacity is 100 × 40 × 50 / 1,000 = 200 L. If the water surface is 45 cm above the bare bottom, the waterline volume is 100 × 40 × 45 / 1,000 = 180 L. The empty five-centimeter space explains the 20 L difference; it is not an additional displacement allowance.
Suppose a separately justified estimate puts submerged solid displacement at 10 L. Net water is then 180 − 10 = 170 L. Enter these measurements in the Aquarium Volume Calculator and read the three answers separately. The capacity result is not a safe-fill instruction. The 170 L estimate, with its stated uncertainty, is the relevant starting point when calculating the quantity involved in a chosen percentage water change.
Convert gallons without changing the underlying quantity
One US liquid gallon is exactly 3.785411784 L; one imperial gallon is exactly 4.54609 L. Divide liters by the appropriate factor. The example's 170 L is approximately 44.909 US gallons or 37.395 imperial gallons. Both represent the same water quantity. Never substitute the larger imperial unit into a US gallon label, or assume an unlabeled bucket and an aquarium specification use the same convention.
An independent inch-based check is useful when comparing equipment labels. An empty rectangular space measuring 36 × 12 × 18 inches contains 7,776 cubic inches. Dividing by 231 gives approximately 33.662 US gallons before headspace or displacement. Convert dimensions first or convert the completed volume, but do not mix inches and centimeters within one product. Retain extra digits during calculation and round only the final display.
Why substrate liters are not solid displacement
A loose gravel bed contains both grains and spaces between them. After filling, some of those spaces hold water. Therefore, a 14 L bulk substrate purchase does not automatically exclude 14 L of water. A substrate calculator estimates the space a bed occupies for purchasing; it does not measure how much of that space consists of solid material. The difference matters when a large bed makes up a noticeable share of the enclosure.
Record how a displacement estimate was obtained instead of inventing a universal correction percentage. Where practical during an appropriate empty-tank setup, a known-volume fill record can provide a useful check on operating water content. Container calibration and spills still introduce uncertainty. Do not use a live aquarium as a displacement experiment or drain it merely to test arithmetic. A documented approximation is more honest than unsupported three-decimal precision.
Cylinders, triangular tanks, and unsupported shapes
For a vertical cylinder with a flat bottom, calculate liters as π × (inside diameter / 2)² × water height / 1,000 when measurements are in centimeters. A 30 cm diameter cylinder with 40 cm of water encloses approximately 28.274 L before solids. The diameter must be halved before squaring. Doubling diameter at the same height produces four times the volume, not twice the volume.
The calculator's triangular model is a right-triangular prism: its two base measurements meet at a right angle, and liters equal their product times height divided by 2,000. A 60 by 40 cm right-triangular base with 35 cm of water encloses 42 L. A curved bow-front, tapered vessel, or spherical bowl is neither this prism nor a flat-based cylinder. Use a matching geometric model or reliable measured capacity for those shapes.
Include connected water only when the question requires it
Display-tank water and total circulating-system water are different boundaries. If a sump normally contains 25 L and connecting plumbing contains another 3 L, a 170 L display becomes a 198 L connected inventory, assuming those amounts are separate and operating normally. Do not add a sump's empty enclosure capacity when it usually runs partly filled, or count canister water twice if it is already included in your measured total.
A water-change or circulation comparison should say which inventory it uses. For example, a filter flow divided by display volume is not directly comparable with another flow divided by display-plus-sump volume. Write down the boundary beside the measurement so later calculations remain reproducible. The Aquarium Volume Calculator models one selected enclosure at a time; connected equipment quantities must be established separately rather than silently inferred from the tank's dimensions.
Check precision and keep animal-care decisions separate
Dimension errors accumulate. In the 100 × 40 cm example, a one-centimeter error in water depth changes the geometric result by 4 L. That is more significant than the last few displayed conversion digits. Recheck dimensions after a major change in layout or waterline. If displacement is uncertain, compare plausible inputs explicitly; for example, 8–12 L of displacement would imply 168–172 L of net water in the same enclosure.
Water volume does not establish a safe number of fish. Swimming space, adult size, behavior, compatibility, filtration, and water quality require their own assessment. Nor does a geometric estimate authorize a medication dose or certify structural support. Use the volume guide to establish a transparent measurement basis, then use the water-change, substrate, or weight method for the next defined question. Keep each result's assumptions attached rather than turning one useful number into a universal answer.