Rectangular Tank Volume Formula
Total capacity = L × W × HLiquid volume = L × W × liquid levelA rectangular tank has straight walls, so every centimetre of liquid adds the same volume. Half the height means half the capacity.
Enter your tank's internal dimensions to get its total capacity and the volume of liquid at any fill level, instantly converted to litres and US gallons.
Real-time calculation for cylinders and rectangles
Leave at 0 to calculate total capacity only.
This Tank Volume Calculator works out how much a tank holds and how much liquid is in it right now. Pick the tank shape, type in the dimensions and the liquid level, and you get total tank capacity, liquid volume and percent full, in litres and US gallons.
There are 3 tank shapes in the calculator:
A round tank lying on its side, such as a diesel tank, heating oil tank or water trailer.
A round tank standing upright, such as a rainwater tank, plastic water tank or silo.
A box-shaped tank, such as a rooftop water tank, aquarium, sump or IBC-style cube.
That makes it a water tank volume calculator, a fuel tank capacity calculator and an aquarium volume calculator in one. The numbers update as you type. Nothing needs submitting, and every field has its own unit selector, so you can enter the length in metres and the liquid level in centimetres without converting anything first.
Most people reach for a tank capacity calculator for one of 5 jobs:
Check how many litres fit before the delivery truck arrives.
Compare the real capacity of 2 or 3 tank sizes before you buy.
Turn a measured liquid level into litres or gallons.
Find the water volume of a tank, pool sump or aquarium before adding treatment.
Work out how many days of water a household or farm tank holds.
To calculate tank volume, choose a shape, fill in 2 or 3 dimensions and add the liquid level. The whole process takes 5 steps.
Open the Shape menu and select Horizontal cylinder, Vertical cylinder or Rectangular tank. The input fields change to match the shape.
Type each measurement and pick its unit: cm, m, in or ft.
Type the depth of liquid in the Liquid level (fill height) field. Leave it at 0 to calculate total capacity only.
The Calculated volume panel shows the total tank capacity, the liquid volume and the percent full.
The results refresh straight away, so you can compare sizes in seconds.
| Shape | Field 1 | Field 2 | Field 3 | Liquid level measured |
|---|---|---|---|---|
| Horizontal cylinder | Length (L) | Diameter (D) | — | From the bottom of the tank up, across the diameter |
| Vertical cylinder | Height (H) | Diameter (D) | — | From the tank floor up |
| Rectangular tank | Length (L) | Width (W) | Height (H) | From the tank floor up |
The first field changes its label with the shape. For a horizontal cylinder it reads Length (L), and for a vertical cylinder it reads Height (H). Enter the straight side of the tank in that field either way.
The results panel gives 3 numbers:
Litres and gallons show up to 2 decimal places. Percent full shows 1 decimal place. A liquid level higher than the tank is capped at the tank's height or diameter, so the result tops out at 100% full.
| Result | What it means | Units shown |
|---|---|---|
| Total tank capacity | How much the tank holds when completely full | Litres and gallons (US) |
| Liquid volume | How much liquid sits in the tank at the level you entered | Litres and gallons (US) |
| Percent full | Liquid volume as a share of total capacity | % full |
The calculator uses the standard geometric formula for each shape. It converts every dimension to centimetres first, works out the volume in cubic centimetres, then divides by 1,000 to get litres. US gallons equal litres × 0.264172.
Total capacity = L × W × HLiquid volume = L × W × liquid levelA rectangular tank has straight walls, so every centimetre of liquid adds the same volume. Half the height means half the capacity.
Total capacity = π × r² × HLiquid volume = π × r² × liquid levelr is the radius, which is half the diameter. Like a rectangular tank, a vertical cylinder fills in a straight line: 60% of the height holds 60% of the capacity.
Total capacity = π × r² × LLiquid volume = L × [ r² × acos((r − h) ÷ r) − (r − h) × √(2rh − h²) ]h is the liquid level measured from the bottom of the tank. The part in square brackets is the area of the circular segment the liquid fills. Multiplying it by the tank length gives the liquid volume.
A horizontal tank doesn't fill evenly. The tank is narrow at the bottom, widest at the middle and narrow again at the top. A quarter of the diameter holds only 19.6% of the capacity, not 25%.
| From | To | Multiply by |
|---|---|---|
| Cubic centimetres (cm³) | Litres (L) | 0.001 |
| Cubic metres (m³) | Litres | 1,000 |
| Cubic inches (in³) | Litres | 0.016387 |
| Cubic feet (ft³) | Litres | 28.3168 |
| Litres | US gallons | 0.264172 |
| US gallons | Litres | 3.785412 |
| Litres | Imperial (UK) gallons | 0.219969 |
Each of the 6 examples below uses inputs you can type straight into the calculator to check the result.
A round rainwater tank stands 150 cm tall with a 120 cm diameter. The water level is 110 cm.
| Input | Value |
|---|---|
| Shape | Vertical cylinder |
| Height (H) | 150 cm (59.1 in) |
| Diameter (D) | 120 cm (47.2 in) |
| Liquid level | 110 cm (43.3 in) |
This is how to calculate water tank capacity in litres for any round upright tank: radius squared, times π, times height, then divide the cubic centimetres by 1,000.
A horizontal diesel tank measures 72 in long with a 48 in diameter. A dipstick reads 18 in of fuel.
| Input | Value |
|---|---|
| Shape | Horizontal cylinder |
| Length (L) | 72 in (182.88 cm) |
| Diameter (D) | 48 in (121.92 cm) |
| Liquid level | 18 in (45.72 cm) |
Results:
The fuel sits at 37.5% of the diameter (18 ÷ 48) but fills only 34.3% of the tank. That gap is the curved bottom at work, and it's the reason a simple "depth ÷ diameter" estimate gets horizontal tanks wrong.
A rectangular water tank measures 2 m long, 1.5 m wide and 1.2 m high. The water is 0.9 m deep.
A horizontal tank has a 180 cm diameter and a 300 cm length. The liquid level is 45 cm, a quarter of the diameter.
Raise the liquid level to 90 cm, the centre line, and the liquid volume becomes 3,817.04 litres, exactly half the tank.
A tank measures 32 × 16 × 16 inches (81.28 × 40.64 × 40.64 cm).
Select Rectangular tank, set all 3 units to in, and enter 32, 16 and 16 to get the same answer.
A stock-water trough measures 8 ft long, 4 ft wide and 3 ft deep (243.84 × 121.92 × 91.44 cm).
Every cubic foot holds about 7.48 US gallons, so a quick check in your head is cubic feet × 7.5.
Want to sanity-check a result without the calculator? Multiply the 3 inside dimensions for a box, or π × r² × height for a cylinder, then convert with the factor that matches your tape:
| Dimensions measured in | Volume unit you get | Litres = |
|---|---|---|
| Centimetres | cm³ | volume ÷ 1,000 |
| Metres | m³ | volume × 1,000 |
| Inches | in³ | volume ÷ 61.024 |
| Feet | ft³ | volume × 28.317 |
A box 50 × 40 × 30 cm gives 60,000 cm³, so 60 litres. The same box in inches (19.69 × 15.75 × 11.81) gives 3,662 in³, and 3,662 ÷ 61.024 is 60 litres again. Both routes land on the same number, which is a handy way to catch a typo.
Use this chart to estimate the contents of any horizontal cylinder tank from a dipstick reading. The percentages hold for every size of flat-ended horizontal cylinder.
| Liquid level (% of diameter) | Liquid volume (% of capacity) |
|---|---|
| 10% | 5.2% |
| 20% | 14.2% |
| 25% | 19.6% |
| 30% | 25.2% |
| 40% | 37.4% |
| 50% | 50.0% |
| 60% | 62.6% |
| 70% | 74.8% |
| 75% | 80.4% |
| 80% | 85.8% |
| 90% | 94.8% |
The bottom and top 10% of the diameter hold only about 5% of the volume each. For an exact figure, enter your tank's length, diameter and dipstick reading in the calculator.
These capacities assume inside dimensions and flat ends. Litres are rounded to 2 decimals.
| Shape | Dimensions | Capacity (litres) | Capacity (US gallons) |
|---|---|---|---|
| Rectangular | 1.0 × 1.0 × 1.0 m | 1,000 | 264.17 |
| Rectangular | 2.5 × 2.0 × 1.0 m | 5,000 | 1,320.86 |
| Rectangular | 2.5 × 2.0 × 2.0 m | 10,000 | 2,641.72 |
| Vertical cylinder | Ø 1.2 m × 1.5 m high | 1,696.46 | 448.16 |
| Vertical cylinder | Ø 2.0 m × 2.0 m high | 6,283.19 | 1,659.84 |
| Vertical cylinder | Ø 3.0 m × 3.0 m high | 21,205.75 | 5,601.97 |
| Horizontal cylinder | Ø 1.0 m × 2.0 m long | 1,570.80 | 414.96 |
| Horizontal cylinder | Ø 1.8 m × 3.0 m long | 7,634.07 | 2,016.71 |
A tank's rated capacity and its brim-full volume aren't always the same. Many manufacturers quote a nominal figure that leaves room for the inlet, overflow and an air gap at the top.
Sometimes you know the litres you need and want the dimensions. Rearrange the formulas to solve for the missing measurement:
| Shape | Known | Missing dimension |
|---|---|---|
| Rectangular | Volume, length, width | Height = volume ÷ (length × width) |
| Vertical cylinder | Volume, diameter | Height = volume ÷ (π × r²) |
| Horizontal cylinder | Volume, diameter | Length = volume ÷ (π × r²) |
Work in metres and cubic metres, where 1 m³ equals 1,000 litres. A 5,000 litre target is 5 m³. With a 1.8 m diameter (r = 0.9 m), the height is 5 ÷ (π × 0.81) = 1.96 m.
This table gives the inside height of a vertical cylinder tank for 5 common capacities:
| Capacity | Diameter | Height needed |
|---|---|---|
| 1,000 litres (264 US gal) | 1.1 m | 1.05 m |
| 2,000 litres (528 US gal) | 1.4 m | 1.30 m |
| 5,000 litres (1,321 US gal) | 1.8 m | 1.96 m |
| 10,000 litres (2,642 US gal) | 2.4 m | 2.21 m |
| 20,000 litres (5,283 US gal) | 3.0 m | 2.83 m |
Enter the diameter and height in the calculator to confirm a size before ordering. Add space above the liquid for the inlet and overflow.
One litre of water weighs about 1 kg (2.2 lb). Multiply the liquid volume by the liquid's weight per litre to get the load on the stand, roof or floor:
| Liquid | Weight per litre | 3,600 litre tank, full |
|---|---|---|
| Water | About 1.0 kg (2.2 lb) | About 3,600 kg (7,940 lb) |
| Diesel | About 0.83–0.85 kg (1.8–1.9 lb) | About 2,990–3,060 kg (6,590–6,750 lb) |
Add the empty tank's own weight on top. Check the load rating of a roof, platform or stand with a structural engineer before installing a large tank up high.
Divide the liquid volume by the daily use to get the number of days of supply:
Days of supply = Liquid volume ÷ Daily use
The tank in Example 1 holds 1,244.07 litres. At 400 litres a day, it lasts about 3.1 days. Swap in your own daily figure for a household, farm or generator to plan refills.
| Tank type | Shape to choose | What to measure | Watch out for |
|---|---|---|---|
| Diesel or heating oil tank | Horizontal cylinder | Inside length, diameter, dipstick depth | Dished ends add volume the formula leaves out |
| Round plastic water tank | Vertical cylinder | Inside diameter, height to the overflow | Tapered walls change the diameter from top to bottom |
| Rainwater tank | Vertical cylinder | Inside diameter, water depth | Sediment on the floor reduces usable water |
| Rooftop or loft tank | Rectangular tank | Inside length, width, height | Measure to the overflow, not the rim |
| Aquarium | Rectangular tank | Inside length, width, water depth | Glass thickness and substrate cut real capacity |
| Septic or sump tank | Rectangular tank | Inside length, width, liquid depth | Thick concrete walls shrink the inside volume |
Enter the depth to the overflow pipe as the liquid level, and the percent full tells you how much of the tank is usable.
Good results start with good measurements. Here are 5 measuring tips:
The calculator assumes the measurements describe the space inside the tank. Measure the outside and subtract the wall thickness twice from each dimension.
Wrap a tape around a round tank, then divide the circumference by π (3.1416). A 377 cm circumference gives a 120 cm diameter.
Drop a dipstick to the lowest point of the tank and read the wet mark. On a horizontal tank, measure at the centre of the length.
Every field has its own unit menu. Check each one before reading the result.
For a tank with rounded or dished ends, measure the straight cylinder length. The calculator treats the ends as flat.
There are 6 mistakes that throw tank volume results off:
The calculator asks for the full diameter. A radius typed into the Diameter field gives one-quarter of the real volume.
A concrete tank with 15 cm walls loses a lot of capacity on the inside. Subtract the walls first.
Length in metres and liquid level in inches works fine, but only when each unit menu matches the number typed beside it.
Liquid at half the height of a vertical tank is 50%. Liquid at a quarter of a horizontal tank's diameter is only 19.6%.
A horizontal tank's "height" is its diameter. Enter it in the Diameter (D) field and the long side in Length (L).
A tank's brim-full volume and its rated working capacity differ. Plan deliveries around the working capacity, not the calculated maximum.
The calculator gives exact geometric volumes for perfect shapes. Real tanks differ in 5 ways:
3 shapes are covered. Oval, capsule, cone-bottom, dished-end and elliptical tanks need a different formula. Measure the main section as a cylinder or rectangle for a rough estimate only.
Ends are flat. Dished, domed or rounded ends add volume the cylinder formula doesn't count.
Walls are straight. Tapered plastic tanks, sloped floors and internal baffles change the real capacity.
Liquid expands with temperature. Fuel volume rises and falls with temperature, so a delivery measured at one temperature reads differently later.
Tanks tilt. A horizontal tank that isn't level gives a different dipstick reading at each end.
For a shape the calculator doesn't cover, or a tank that needs certified calibration, send the details through the Contact page.
Multiply the tank's base area by its height or length. A rectangular tank uses length × width × height. A cylinder uses π × radius² × height (vertical) or × length (horizontal). Divide cubic centimetres by 1,000 to get litres.
Measure the inside dimensions in centimetres, calculate the volume in cubic centimetres, and divide by 1,000. A tank 100 cm × 50 cm × 60 cm holds 300,000 cm³, which is 300 litres. With measurements in metres, multiply the cubic metres by 1,000 instead.
Calculate the volume in cubic inches and divide by 231 for US gallons. A tank measuring 24 × 12 × 16 inches holds 4,608 cubic inches, which is 19.95 US gallons. From litres, multiply by 0.264172.
A 32 × 16 × 16 inch tank holds 35.46 US gallons (134.24 litres) when filled to the brim. The water capacity of an aquarium is lower once gravel, decorations and the gap below the rim take up space.
It depends on the unit: a 10 × 10 × 10 inch tank holds 4.33 US gallons, and a 10 × 10 × 10 foot tank holds 7,480.52 US gallons. In centimetres, a 10 cm cube holds exactly 1 litre (0.26 US gallons). Always set the unit menus before reading a result.
A 60 × 30 × 30 cm tank holds 54 litres (14.27 US gallons). The calculation is 60 × 30 × 30 = 54,000 cm³, divided by 1,000.
A 5,000 litre water tank needs 5 cubic metres of inside space. Two common shapes reach that figure: a rectangular tank of 2.5 × 2.0 × 1.0 m, or a vertical cylinder 1.8 m across and about 1.96 m high. Check any candidate size by entering it in the calculator.
A 10,000 litre tank holds 10 cubic metres. As a vertical cylinder, that's about 2.4 m across and 2.21 m high, or 2.5 m across and 2.04 m high. As a rectangle, it's 2.5 × 2.0 × 2.0 m.
Measure the tank's length and diameter, then use π × radius² × length for a horizontal cylinder. A 72 × 48 inch horizontal tank holds 2,135.04 litres (564.02 US gallons). To find fuel on board, add the dipstick reading as the liquid level. Car fuel tanks have irregular shapes, so use the manufacturer's figure for vehicles.
No, the calculator covers horizontal cylinder, vertical cylinder and rectangular tanks only. An oval or cone-bottom tank needs extra formula terms for its curved sections. A cylinder or rectangle estimate gives a rough figure only, so treat it as approximate.
Scroll back up to the calculator, pick your tank shape and enter the dimensions. You'll see the total capacity, the liquid volume and the percent full in litres and US gallons straight away. Try a few sizes side by side before you buy a tank, book a delivery or dose a treatment.