ThisCalculator

Everyday

Tank Displacement Calculator: How It Works

Updated · Standard formula, shown below

Total volume 2,000.0 L
Liquid volume
1,000.0 L
Result
Fill percentage
50.0 %
Result
Length
2 m
You entered

A tank displacement calculator works out the volume of liquid a tank holds based on its shape and dimensions, and for partially filled tanks, the volume at a given fill height. You enter the tank’s geometry (length, width, height, or diameter) and, if needed, the liquid depth, and it returns the volume in liters, gallons, or cubic meters. This is the same math used for fuel tanks, water storage, aquariums, and industrial vessels.

Formula

For a rectangular tank (the most common shape for simple calculators), the total volume is:

V = L × W × H

where:

  • V = total volume (cubic meters, m³)
  • L = internal length (m)
  • W = internal width (m)
  • H = internal height (m)

To convert to liters, multiply cubic meters by 1000 (1 m³ = 1000 L). To convert to US gallons, multiply cubic meters by 264.172. For a partially filled rectangular tank, the liquid volume is simply V_liquid = L × W × h, where h is the fill height from the bottom.

For cylindrical tanks (horizontal or vertical), the formula changes. A vertical cylinder uses V = π × r² × H (r = radius). A horizontal cylinder is more complex; the filled volume depends on the segment area of a circle, which involves trigonometry (arccos). Most online calculators handle these cases separately.

Worked Example

Using the default values from the calculator above: a rectangular tank with length 2 m, width 1 m, height 1 m, and fill height 0.5 m.

  1. Total volume: V = 2 × 1 × 1 = 2 m³
  2. Convert to liters: 2 × 1000 = 2000 L
  3. Liquid volume: V_liquid = 2 × 1 × 0.5 = 1 m³ = 1000 L
  4. Fill percentage: (0.5 / 1) × 100 = 50%

The calculator returns 2000 L total, 1000 L liquid, and 50% fill—matching the steps above.

Why Tank Displacement Matters

Knowing a tank’s displacement is essential for several practical reasons:

  • Fuel management: In vehicles and boats, knowing how much fuel remains prevents running dry.
  • Water storage: For rain barrels, septic tanks, or irrigation systems, capacity determines usage planning.
  • Aquariums: Fish tank volume determines water treatment doses and fish stocking levels.
  • Industrial safety: Overfilling a tank can cause spills or pressure damage; accurate volume prevents that.
  • Shipping and buoyancy: For ships or barges, displacement (weight of water displaced) is directly related to cargo load.

The calculator gives the geometric volume—the actual usable capacity may be less due to internal fittings, baffles, or the need for an air gap (ullage) in closed tanks.

How to Choose the Right Tank Shape

Selecting the correct formula is the most common source of error. Here’s a quick guide:

  • Rectangular box: Use L×W×H. Suitable for aquariums, many water tanks, and fuel bladders.
  • Vertical cylinder: Use πr²H. Common for propane tanks, oil storage, and pressure vessels.
  • Horizontal cylinder: More complex; use the segment area formula. Often used for truck fuel tanks and bulk storage.
  • Sphere: V = (4/3)πr³. Rare for storage, but used for some pressure vessels.
  • Elliptical or custom: Requires integration or approximate methods; not covered by simple calculators.

If your tank has dished ends (like many pressure vessels), the volume is larger than a plain cylinder; you may need a specialized calculator or manufacturer data.

Common Mistakes and How to Avoid Them

Several errors can throw off your calculation:

  • Mixing units: Always convert all dimensions to the same unit before multiplying. If you enter meters and centimeters, the result is meaningless.
  • Using external dimensions: Tank walls take up space. Use internal dimensions (inside the walls) for liquid capacity. For a steel tank with 5 mm walls, the difference can be significant on small tanks.
  • Forgetting the fill height: For partial fills, the liquid height is measured from the bottom, not the top. A common mistake is entering the empty space instead.
  • Rounding too early: If you round π to 3.14, the error grows with tank size. Use enough decimal places or the calculator’s built-in π.
  • Assuming 1 m³ = 1000 L is the only conversion: It’s correct for metric, but for US gallons, 1 m³ = 264.172 gallons (not 220 or 260).

Always double-check your dimensions: a tank that is 2 m long, 1 m wide, and 1 m high holds 2000 L, but if you mistakenly use 2 cm instead of 2 m, you’d get 0.002 L—a huge error.

Limits of the Simple Formula

The rectangular formula assumes perfectly flat sides and right angles. Real tanks often have rounded corners, sloped bottoms, or internal baffles. For such tanks, the simple calculation overestimates the true volume. Also, for horizontal cylinders, the volume formula changes with fill height and requires the angle of the liquid segment—this is not a simple multiplication. If you need high accuracy for a non-standard tank, consult the manufacturer’s calibration table or use a dip chart.

Another limit: the calculator gives geometric volume, not usable volume. In closed tanks, you cannot fill to 100% because liquid expands with temperature. For fuel tanks, a 5% ullage (air space) is often recommended. For water tanks, leave room for expansion if they are in direct sunlight.

Frequently Asked Questions

How do I calculate tank displacement in gallons?

First calculate the volume in cubic meters (or cubic feet), then convert. For cubic meters, multiply by 264.172 to get US gallons. For cubic feet, multiply by 7.48052. For example, a 2 m³ tank holds 528.34 US gallons. If you need imperial gallons, multiply cubic meters by 219.969.

What’s the difference between tank volume and displacement?

Strictly, displacement refers to the weight of fluid pushed aside by a submerged object (like a ship). For tanks, people usually mean the internal volume. However, in engineering, tank displacement can also mean the volume of fluid the tank itself occupies when empty (its external volume). This calculator measures internal volume, which is what you need for capacity.

Can I use this for a horizontal cylindrical tank?

No, the rectangular formula does not apply. For a horizontal cylinder, the filled volume is calculated using the formula: V = L × [r² × arccos((r-h)/r) – (r-h) × sqrt(2rh – h²)], where r is the radius and h is the liquid height. Many online calculators have a separate option for this shape.

Why does my tank’s dip chart not match the calculator?

Dip charts (calibration tables) account for the actual internal geometry, including dished ends, sloped bottoms, and internal fittings. They are created by physical measurement or detailed CAD models. The simple calculator is an approximation. If you need exact readings for legal or safety purposes, rely on the manufacturer’s chart.

How do I measure the fill height accurately?

For a vented tank, use a dipstick or a sight glass. Insert a clean stick to the bottom, then measure the wet mark. For pressurized tanks, use a level sensor or a gauge. Always measure from the lowest point of the tank bottom, not from a raised outlet.

Does temperature affect tank volume?

Yes, liquids expand when heated. For water, expansion is about 4% from 4°C to 100°C. For hydrocarbons, it can be more. This calculator gives volume at the temperature you assume; for precise inventory, you need a temperature correction factor. Always leave ullage space for expansion in closed systems.

Related

Formula used
in l | Length | m | 2 | 0
in w | Width | m | 1 | 0
in h | Height | m | 1 | 0
in fill | Fill height | m | 0.5 | 0
out vol_total | Total volume | L | l * w * h * 1000 | 1
out vol_fill | Liquid volume | L | l * w * fill * 1000 | 1
out pct | Fill percentage | % | (fill / h) * 100 | 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.