Tank Volume Calculator
Find the volume of a horizontal cylinder, vertical cylinder, rectangular or spherical tank, and how much liquid it holds at a given fill depth.
How it works
A tank volume follows from its shape and size. The partial fill of a horizontal cylinder is the awkward case, because the liquid surface width changes with depth: the calculator uses the exact circular-segment formula, so you can turn a dipstick reading into liters or gallons.
Horizontal cylinder: V = L × [ r² × arccos((r − h) ÷ r) − (r − h) × √(2 r h − h²) ]
Vertical cylinder: V = π r² h
Sphere: V = π h² (3 r − h) ÷ 3
| Symbol | Meaning | Unit |
|---|---|---|
| V | Volume of liquid | m³ |
| r | Tank radius (diameter ÷ 2) | m |
| L | Length of the horizontal cylinder or the tank | m |
| h | Liquid depth measured from the bottom | m |
| H, W | Height and width of a rectangular tank | m |
For a horizontal tank half full (h = r) the volume is exactly half the total; at one quarter of the diameter it holds only 19.6 percent, and at three quarters 80.4 percent, so the gauge reading is not proportional to the volume. Dished and elliptical heads add volume: for a head of depth d on a cylinder of radius r add roughly π r² d ÷ 3 (ellipsoidal) per head, or use the manufacturer’s chart. One US gallon is 3.785 liters; one cubic meter is 1,000 liters.
Related: Fluid Mechanics and Pipe Flow guide, Pipe Volume Calculator.
Worked example
A horizontal tank 1.5 m in diameter and 3 m long holds 5,301 liters when full. With the liquid 0.6 m deep (40 percent of the diameter) it holds 1,980 liters (523 US gallons), which is only 37.4 percent of the capacity.
The volume was checked by numerical integration of the liquid surface width, which agrees with the formula to better than 0.01 percent.
Things to know
Measure the depth from the lowest inside point, not from the outside of the shell. Flat, dished and conical bottoms change the result at low levels.
The shape of a horizontal tank makes the gauge nonlinear: the last 10 percent of the depth near the bottom or top holds only about 5 percent of the volume.
For a tank with domed heads add the head volume; this calculator treats the ends as flat.
Allow for thermal expansion: most liquids expand 0.05 to 0.1 percent per kelvin, so never fill a closed tank completely.
Another worked example: a dipstick reading and a vertical tank
Horizontal tank: the tank in the first example (1.5 m diameter, 3 m long, 5,301 liters full) is dipped and shows 0.375 m of liquid, a quarter of the diameter. The filled fraction of a horizontal cylinder at 25 percent depth is 19.6 percent (from the table below), so the tank holds 0.1955 × 5,301 = 1,036 liters. Reading the dipstick as “a quarter full” would overstate the contents by 289 liters.
Vertical tank in US units: a vertical cylinder 4 ft across and 6 ft tall has V = π × 2² × 6 = 75.4 ft³. At 7.4805 US gallons per cubic foot that is 564 gallons. A vertical tank is linear: each foot of depth holds the same 94 gallons.
Fill level of a horizontal cylinder
Volume as a percentage of capacity for a liquid depth given as a percentage of the diameter. Flat ends assumed.
| Depth (percent of diameter) | Volume (percent 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 table works for any horizontal cylinder with flat ends, whatever its size: multiply the percentage by the full capacity. It is symmetrical about half full.
Common mistakes
- Treating a horizontal tank as linear. A depth of 25 percent is under 20 percent of the volume. Use the segment formula or the table.
- Using the diameter as the radius. The formulas use the radius, half the inside diameter.
- Measuring the outside. Wall thickness, insulation and jackets are not part of the liquid volume. Use inside dimensions.
- Confusing US and imperial gallons. A US gallon is 3.785 liters; an imperial (UK) gallon is 4.546 liters.
Common questions
How do you calculate the volume of a horizontal cylindrical tank?
Total volume is π r² L. For a partial fill use V = L [r² arccos((r − h) ÷ r) − (r − h) √(2 r h − h²)], where h is the liquid depth and r the radius.
How many gallons are in my tank?
Enter the dimensions and the liquid depth; the result is shown in liters, gallons and cubic meters. One US gallon is 3.785 liters.
How do you find the volume of a rectangular tank?
Length × width × liquid depth. In US units divide the volume in cubic feet by 0.1337 to get gallons (1 ft³ = 7.48 gallons).
Why is a half-full horizontal tank exactly half full?
By symmetry: the liquid surface passes through the center when the depth equals the radius.
How do I convert liters to gallons?
Divide liters by 3.785 for US gallons, or by 4.546 for imperial gallons. A cubic meter is 1 000 liters or 264.2 US gallons; a cubic foot is 7.48 US gallons.
How much does the liquid in my tank weigh?
Volume times density. Water is 1.00 kg per liter (8.34 lb per US gallon); diesel is about 0.85 kg/L and gasoline about 0.74 kg/L. A 5 000 liter water tank holds 5 tonnes of water, which the base and supports must carry.
Do dished ends change the volume?
Yes. Dished or domed heads add volume beyond the straight cylinder, typically a few percent on a long tank and more on a short one, and they change the shape of the dipstick curve near the bottom and top. Use the maker’s strapping table where accuracy matters.
Sources
- Beyer, W. H., CRC Standard Mathematical Tables: circular segment.
- Perry’s Chemical Engineers’ Handbook: tank volume formulas.
Last reviewed: November 10, 2026
