Tank Volume Calculations: Formulas & Examples
- Volume (litres)
- L
- Result
- Volume (US gallons)
- gal
- Result
- Length
- 2 m
- You entered
This calculator works out the volume of a tank from its shape and dimensions. You enter the length, width, and height (or diameter and length for a cylinder), and it returns the volume in litres, cubic metres, and US gallons. The formulas below show exactly how each calculation is done, so you can verify the result by hand.
Formula
For a rectangular tank, the volume is simply:
V = L × W × H
- V = volume in cubic metres (m³)
- L = internal length in metres (m)
- W = internal width in metres (m)
- H = internal height (or depth) in metres (m)
For a cylindrical tank, the volume is:
V = π × r² × L
- V = volume in cubic metres (m³)
- π ≈ 3.14159
- r = radius (half the diameter) in metres (m)
- L = length of the cylinder in metres (m)
To convert cubic metres to litres, multiply by 1000 (since 1 m³ = 1000 L). To convert to US gallons, multiply by 264.172 (since 1 m³ ≈ 264.172 US gal). For imperial gallons, use 219.969 instead.
Worked Example
Using the default values from the calculator above: a rectangular tank with length 2 m, width 1 m, and height 0.5 m.
- Calculate the volume in cubic metres: 2 × 1 × 0.5 = 1.0 m³
- Convert to litres: 1.0 × 1000 = 1000 L
- Convert to US gallons: 1.0 × 264.172 = 264.17 gal (rounded to 2 decimals)
The calculator shows 1.000 m³, 1000 L, and 264.17 gal, matching the hand calculation.
Why Tank Volume Matters
Knowing the exact volume of a tank is essential for many practical tasks:
- Choosing the right pump or filter for an aquarium or pond
- Calculating the amount of water needed to fill a pool or cistern
- Determining the capacity of a fuel or chemical storage tank
- Estimating the weight of a full tank (water ≈ 1000 kg per m³)
- Planning the correct dose of water treatment chemicals
Even a small error in volume can lead to overfilling, underdosing, or choosing equipment that is too small. That is why using the correct formula and accurate measurements matters.
Common Mistakes and How to Avoid Them
The most frequent error is mixing up units. For example, if you measure the length in centimetres but the width in metres, your volume will be off by a factor of 100. Always measure all dimensions in the same unit before calculating.
Another common mistake is using the outside dimensions instead of the inside dimensions of a tank. The wall thickness reduces the internal volume, which is what actually holds the liquid. For a steel tank with 5 mm walls, the difference can be significant for small tanks.
Rounding too early can also cause errors. If you round the volume in cubic metres to 2 decimals before converting to litres, you might lose accuracy. Keep at least 3 decimals during intermediate steps.
Different Tank Shapes
Not all tanks are rectangular or cylindrical. Here are formulas for other common shapes:
- Spherical tank: V = (4/3) × π × r³
- Horizontal cylindrical tank (partially filled): V = L × (r² × arccos((r – h)/r) – (r – h) × sqrt(2rh – h²)), where h is the liquid depth
- Elliptical tank: V = π × a × b × L, where a and b are the semi-axes of the ellipse
- Cone-bottom tank: V = (1/3) × π × r² × h (for the conical part) plus the cylindrical part
For irregular shapes, you can often approximate by breaking the tank into simpler geometric sections and adding their volumes.
When to Use the Calculator vs. Manual Calculation
This calculator is ideal for quick, accurate results without the risk of arithmetic errors. It is especially useful when you need to convert between units (m³, litres, gallons) or when you are working with a standard rectangular or cylindrical tank.
However, for tanks with complex shapes or when you need to account for wall thickness, a manual calculation with a spreadsheet might be more flexible. The formulas are simple enough to type into any spreadsheet program, and you can easily adjust for partial fills or multiple compartments.
Safety and Accuracy Considerations
Always measure the inside dimensions of the tank, not the outside. For a tank with walls, the internal volume is what matters. Use a tape measure or laser measure and take readings at several points to ensure the tank is truly rectangular or cylindrical.
If you are calculating the volume of a tank that will hold hazardous materials, double-check your numbers and consider adding a safety margin. For potable water tanks, make sure your materials and coatings are food-safe. For pressure vessels, volume is only one factor; you also need to consider pressure ratings and safety valves.
When filling a tank, never fill it to the absolute brim if it will expand when heated (e.g., water). Leave some headspace as recommended by the manufacturer.
Frequently Asked Questions
How do I calculate the volume of a cylindrical tank?
Use V = π × r² × L, where r is the radius (half the diameter) and L is the length. For example, a cylinder with a diameter of 1 m (radius 0.5 m) and length 2 m has a volume of π × 0.25 × 2 ≈ 1.57 m³, which is 1570 litres.
What is the difference between US gallons and imperial gallons?
US gallons are smaller than imperial gallons. 1 US gallon ≈ 3.785 litres, while 1 imperial gallon ≈ 4.546 litres. So a tank that holds 100 US gallons holds about 83 imperial gallons. Always check which gallon your pump or chemical dose rate uses.
How do I find the volume of a partially filled horizontal cylinder?
Use the formula V = L × (r² × arccos((r – h)/r) – (r – h) × sqrt(2rh – h²)), where h is the liquid depth. This is more complex, but many online calculators and spreadsheets can handle it. If you only need an estimate, you can approximate the filled fraction by the depth ratio.
Do I measure the inside or outside of the tank?
Measure the inside dimensions for the actual capacity. The outside dimensions include the wall thickness, which reduces the volume. For thin-walled plastic tanks the difference is small, but for thick steel or concrete tanks it can be significant.
How accurate is the tank volume calculation?
It is as accurate as your measurements. If you measure to the nearest centimetre on a 2 m tank, the error is about ±1%. For more precision, measure to the nearest millimetre and use the exact formula. Also, tanks are not perfectly uniform, so real capacity may vary slightly.
Can I use this calculator for an aquarium?
Yes, for a rectangular aquarium, enter the internal length, width, and height in metres. The calculator will give you the volume in litres and gallons. This is useful for choosing a filter or heater and for dosing water treatments.
Related
Formula used
in l | Length | m | 2 | 0 in w | Width | m | 1 | 0 in h | Height | m | 0.5 | 0 out vol_m3 | Volume (cubic m) | m³ | l * w * h | 3 out vol_l | Volume (litres) | L | l * w * h * 1000 | 0 out vol_gal | Volume (US gallons) | gal | l * w * h * 264.172 | 2
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.