Horizontal Cylinder Volume Calculator
Liquid fill preview
Diagram is a visual guide, not to scale. It fills as your numbers change.
Why depth percent is not volume percent
A horizontal tank is wide in the middle and narrow at the top and bottom, so depth and volume do not move together. At 25 percent of the diameter, the tank holds only about 19.6 percent of its volume. At 50 percent depth it is exactly half full. At 75 percent depth it already holds about 80.4 percent.
A real r/askmath question came from a 100 gallon fuel tank owner stuck on exactly this maths, dipstick in hand. The generated depth chart under the calculator gives you the full table for your own tank, and the horizontal tank volume chart explains the pattern.
How to measure the depth
Measure from the inside bottom of the tank straight up to the liquid surface, with a clean dipstick or tape. Use the inside diameter, not the outside, and measure the straight cylinder length, not counting curved end caps. If your tank has dished ends, this calculator covers the cylinder part; the caps add a small extra amount.
How to use the horizontal tank calculator
- Enter the tank diameter, measured inside, across the round end.
- Enter the tank length, the straight barrel section, end to end.
- Enter the liquid depth, measured from the very bottom of the tank up to the surface, with a dipstick or ruler.
- Press Calculate to get the liquid volume, the full capacity and the percent full.
Depth is the input everything hangs on, and it must be measured from the bottom of the barrel, not from the top down. If you can only measure the empty space at the top (the ullage), subtract it from the diameter first: depth = diameter - ullage.
A depth error of one inch near the middle of the tank changes the answer far more than the same inch near the top or bottom, because the tank is widest in the middle.
The formula, with every symbol explained
V = L x [ r² cos-1((r - d) / r) - (r - d) √(2rd - d²) ]
- V
- volume of liquid in the tank
- L
- length of the barrel
- r
- radius: half the diameter
- d
- depth of liquid, from the bottom
- cos-1
- inverse cosine, giving the angle of the liquid segment
The part in brackets is the area of the circular segment: the slice of the round end that sits below the liquid surface. Multiply that area by the length and you have the liquid volume. It is the same segment geometry behind the horizontal tank chart, worked out exactly instead of read off a table.
Worked example: a 48 inch tank, 120 inches long, filled 12 inches deep
A horizontal tank is 48 inches in diameter and 120 inches long. The dipstick reads 12 inches of fuel. How much is in the tank?
- Radius r = 48 / 2 = 24 inches. The depth is 12 inches, exactly a quarter of the diameter.
- Segment area: 24² x cos-1((24 - 12) / 24) - (24 - 12) x √(2 x 24 x 12 - 12²) = 353.77 square inches.
- Liquid volume: 353.77 x 120 = 42,452.457 cubic inches.
- Convert: 42,452.457 / 231 = 183.777 US gallons.
Answer: about 184 US gallons, which is only 19.6 percent of the 940 gallon full capacity, even though the tank looks a quarter full by depth.
Units and conversions
Diameter, length and depth must all be in the same unit; inches are usual for site tanks, centimeters for smaller vessels. The result converts into US gallons, Imperial gallons and liters.
If your gauge reads in percent of depth, multiply the diameter by that percent first: 25 percent of a 48 inch tank is a 12 inch depth, exactly the example above.
Common mistakes
- Assuming depth percent equals volume percent. At a quarter of the depth the tank holds only about a fifth of its volume; at half depth it holds exactly half, and the top quarter makes up the difference.
- Measuring depth from the top. That gives the empty space. Subtract it from the diameter before entering anything.
- Including dished ends in the length. The formula prices the straight barrel. Rounded end caps add a little extra that this calculation does not count.
Frequently asked questions
How do I calculate the volume of a horizontal tank that is only partly full?
Work out the circular segment area from the radius and the liquid depth, then multiply by the length. This calculator does the segment maths for you.
Is a horizontal tank half full at half the diameter?
Yes, exactly at 50 percent of the diameter the tank is 50 percent full. Below that it holds less than the depth suggests, above that it holds more.
How do I turn a dipstick reading into gallons?
Measure the depth, enter it here with the tank diameter and length, and read the gallons. Or generate the depth chart and keep it by the tank.
Does this work for a fuel or oil tank on its side?
Yes, it is the standard shape for heating oil, diesel and water tanks. Use inside measurements for the best accuracy.
What if I can only measure the empty space at the top?
Subtract it from the diameter. If a 48 inch tank has 9 inches of empty space above the liquid, the depth to enter is 48 - 9 = 39 inches.
Does the calculator work in percent instead of inches?
Convert first: depth = diameter x percent. A tank filled to 30 percent of its depth with a 60 inch diameter has a liquid depth of 18 inches.