Home › Everyday Life › Aquarium Volume Calculator
Aquarium Volume Calculator
Computes the water volume of a rectangular fish tank from its internal length, width and height (cm or inches), the weight of that water (fresh or marine), a float-glass side-pane thickness estimate by Stilwell's method, and the '1 inch of fish per gallon' stocking heuristic.
When to use
You are planning or filling a rectangular aquarium and need its capacity, the load on a stand or floor, a glass-thickness ballpark or a rough stocking limit.
Do not use when: The tank is bow-front, cylindrical or hexagonal (compute the footprint area separately), or you need a swimming-pool volume (use pool-volume).
Formula
water_height = height × fill_percent / 100; V = length × width × water_height (cm³ / 1000 = L; in³ × 0.016387 = L); US gal = L / 3.785411784; UK gal = L / 4.54609; glass t_mm = √(β × H_mm³ × 0.00001 / 5.05), β by length/height ratio: 0.5 → 0.2419, 1 → 0.294, 1.5 → 0.325, 2 → 0.3415, 2.5 → 0.35, 3 → 0.37 (interpolated, clamped); stocking = US gallons × 1 inch
The glass formula is Warren Stilwell's method for a side pane supported on three edges: allowable stress 5.05 N/mm² (19.2 N/mm² tensile strength of annealed glass ÷ safety factor 3.8) under hydrostatic load. The 1-inch-per-gallon rule ignores fish body mass, activity and filtration and overstocks tanks with fish over about 3 inches; use it only as a first sanity check.
Inputs
| Parameter | Type | Unit | Required | Description |
|---|---|---|---|---|
length | number | yes | Internal length of the tank. Range: > 0, ≤ 2000 | |
width | number | yes | Internal width. Range: > 0, ≤ 2000 | |
height | number | yes | Internal height (water height when full). Range: > 0, ≤ 2000 | |
unit | enum: cm | in | default cm | Unit of the three dimensions. | |
fill_percent | number | % | default 100 | Water height as a percentage of the tank height (allow for the air gap and substrate). Range: ≥ 10, ≤ 100 |
Outputs
| Output | Type | Unit | Description |
|---|---|---|---|
volume_liters | number | L | length × width × water height. |
volume_gallons_us | number | US gal | Same volume in US gallons (3.7854 L). |
volume_gallons_uk | number | UK gal | Same volume in imperial gallons (4.5461 L). |
water_weight_kg | number | kg | Volume × 0.998 kg/L (fresh water at 20 °C), excluding glass, substrate and rock. |
seawater_weight_kg | number | kg | Volume × 1.025 kg/L for marine tanks. |
glass_thickness_estimate_mm | number | mm | Side-pane float glass thickness from t = √(β × H³ × 0.00001 / 5.05) with safety factor 3.8 (H = water height in mm). |
recommended_glass_mm | integer | mm | Next standard sheet thickness (4, 5, 6, 8, 10, 12, 15, 19 mm) at or above the estimate. |
stocking_inches_of_fish | number | inches of fish | Total adult length of small fish by the 1 inch per US gallon heuristic (rough guide only). |
Example
100 × 40 × 50 cm tank: {"length":100,"width":40,"height":50,"unit":"cm"} → {"volume_liters":200,"volume_gallons_us":52.8,"volume_gallons_uk":44,"water_weight_kg":199.6,"seawater_weight_kg":205,"glass_thickness_estimate_mm":9.2,"recommended_glass_mm":10,"stocking_inches_of_fish":52.8}
48 × 13 × 21 in ('55 gallon'): {"length":48,"width":13,"height":21,"unit":"in"} → {"volume_liters":214.7,"volume_gallons_us":56.7,"volume_gallons_uk":47.2,"water_weight_kg":214.3,"glass_thickness_estimate_mm":10.2,"recommended_glass_mm":12}
GET https://tttkmbb.com/api/v1/calculate/aquarium-volume?length=100&width=40&height=50&unit=cm
Machine access
- API:
GET https://tttkmbb.com/api/v1/calculate/aquarium-volume(query parameters) orPOSTwith a JSON body{"inputs": {...}} - Schema: https://tttkmbb.com/api/v1/calculators/aquarium-volume · Markdown: https://tttkmbb.com/everyday/aquarium-volume.md · JSON definition: https://tttkmbb.com/everyday/aquarium-volume.json
- MCP: server
https://tttkmbb.com/mcp, toolrun_calculator with calculator_id="aquarium-volume" - OpenAPI operationId:
calculate_aquarium_volume - Freshness:
static. Authentication: none. Rate limit: fair use (see rate limits).
Sources
FAQ
Why is my '55 gallon' tank only 52 gallons here?
Trade names use nominal external sizes; internal dimensions, the air gap and substrate reduce real water volume by 10–15%. Enter internal measurements and a fill_percent below 100 for the actual amount.
Can I rely on the glass thickness estimate?
It is a ballpark for annealed float glass panes with a rim and no bracing; manufacturers often use thinner glass with braces and thicker glass for tanks over 60 cm high. Check with the glass supplier or a dedicated calculator before building.
Related calculators
- Pool Volume Calculator — Volume and chlorine dose for swimming pools.
- Rectangular Prism Calculator — Plain box volume and surface area.
- Volume Converter — Convert litres, gallons and cubic metres.