Horizontal Tank Volume Calculator
Tank & fill
- The liquid cross-section is a circular segment of a 48 in diameter tank filled to 20.0 in.
- Segment area = r^2 x acos((r - h) / r) - (r - h) x sqrt(2rh - h^2) = 713.7 in2.
- Volume = 713.7 in2 x 120 in = 85,640.6 in3; at 231 cubic inches per gallon that is 370.7 gal.
- Percent full = 713.7 / 1,809.6 of the cross-section = 39.4%, against a total capacity of 940.0 gal.
This horizontal tank volume calculator finds how much liquid a cylindrical tank holds at any depth, so you can read a level gauge and get gallons rather than guesswork. Enter the tank's diameter and length and the depth of the liquid, and it returns the volume in gallons. The key point is that depth is not volume: the liquid cross-section is a circular segment, narrow at the bottom, so the first inches of depth add volume slowly. A 48 in diameter, 120 in long tank holds 940.0 gal in total; filled to 20.0 in it holds 370.7 gal, which is 39.4% of capacity. The calculator handles that curve for you at any fill level, including a tank filled to the top, where the 36 in by 96 in example holds its full 423.0 gal, and ullage is whatever capacity remains above the liquid.
The method behind the result is the circular segment formula: r^2 x acos((r - h) / r) - (r - h) x sqrt(2rh - h^2), where r is the tank radius and h is the liquid depth. Multiplying that cross-section by the tank length gives cubic inches, and gallons are cubic inches divided by 231; the part-full example is 85,640.6 in3 of liquid. Because the formula describes the actual geometry of a horizontal cylinder rather than an approximation, it is the accepted standard for this kind of calculation. This page shows the formula, step-by-step workings, worked examples and sources so you can check every number yourself.
Worked examples
275 gal oil tank, part full
(48 in · 120 in · 20 in)
| Liquid in the tank | 370.7 gal |
| Percent full | 39.4% |
| Total capacity | 940.0 gal |
| Ullage (space left) | 569.3 gal |
36 in tank filled to the top
(36 in · 96 in · 36 in)
| Liquid in the tank | 423.0 gal |
| Percent full | 100.0% |
| Total capacity | 423.0 gal |
| Ullage (space left) | 0.0 gal |
Large tank, low fill
(60 in · 180 in · 12 in)
| Liquid in the tank | 313.7 gal |
| Percent full | 14.2% |
| Total capacity | 2,203.2 gal |
| Ullage (space left) | 1,889.5 gal |
The circular segment
A horizontal tank lying on its side does not fill like a box. When liquid sits in the bottom of the cylinder, its cross-section is a circular segment — the region cut off by a straight horizontal chord across the circle. The area of that segment is r^2 × acos((r − h) / r) − (r − h) × sqrt(2rh − h^2), where r is the tank radius and h is the liquid depth. A horizontal tank volume calculator uses this expression, multiplied by the tank's length, to turn a depth reading into a volume.
The formula is easier to trust when you see where it comes from. Start with the pie-slice sector of the circle that spans the liquid surface, then subtract the triangle formed by the two radii and the chord. What remains is the segment. The acos term supplies the sector's angle — the inverse cosine of (r − h) / r — and the square-root term, sqrt(2rh − h^2), is the triangle's height contribution. Sector minus triangle, in plain geometry.
This is why a dipstick reading needs geometry rather than a proportion. Depth is not volume: the segment is narrow at the bottom, so the first inches of depth add volume slowly. Take a 48 in diameter, 120 in long tank. It holds 940.0 gal in total, but filled to 20.0 in it holds 370.7 gal. That fill is 39.4% of capacity, even though 20 in is well under half the 48 in diameter. A simple depth-to-capacity ratio would badly overstate the liquid at low levels.
The arithmetic stays consistent across sizes. Gallons are cubic inches divided by 231; in that part-full example the liquid measures 85,640.6 in3. Filled to the top, a 36 in by 96 in example holds its full 423.0 gal. Any capacity remaining above the liquid is ullage — the empty headspace you can still fill. Reading the dipstick, applying the segment formula, and dividing by 231 gives a part-full volume you can rely on at any depth, not just near the top.
Depth is not volume
A common mistake is to read a depth gauge as if it were a fuel gauge. On a horizontal tank, inches of depth and percent of volume are not the same thing, and the gap between them is largest near the bottom. The reason is the shape of the liquid cross-section: it is a circular segment, not a rectangle. The area of that segment is given by r^2 x acos((r - h) / r) - (r - h) x sqrt(2rh - h^2), where r is the tank radius and h is the liquid depth. Because the segment is narrow at the bottom, the first inches of depth add volume slowly, then the rate picks up through the middle of the tank.
Take the 48 in diameter, 120 in long tank, which holds 940.0 gal in total. Fill it to 20.0 in. That is 20.0 in of 48 in of depth, and you might expect roughly 41.7% of capacity. The actual liquid volume is 370.7 gal, which is 39.4% of capacity. The difference is the point: depth is not volume. A horizontal tank volume calculator applies the circular segment formula at the measured depth, so you get the real gallons rather than a proportional guess. The part-full example works out to 85,640.6 in3 of liquid, and gallons are cubic inches divided by 231.
The table below makes the non-linearity concrete for the same 48 in by 120 in tank. Read down the depth column and compare it with the percent full column: the two move together, but not in step.
The same logic runs in reverse when you measure what is left rather than what is in. Filled to the top, the 36 in by 96 in example holds its full 423.0 gal; ullage is whatever capacity remains above the liquid. If you know the ullage, subtract it from the full capacity to find the liquid, or measure depth and let the segment formula do the work. Either way, the number you want is a volume, and the number on the stick is a depth. Keeping those two separate is what makes a horizontal tank volume calculator trustworthy for inventory, transfers and refill planning.
| Liquid depth (in) | Volume (gal) | Percent full |
|---|---|---|
| 20.0 | 370.7 | 39.4% |
| 48 (full) | 940.0 | 100% |
From area to gallons
Once you have the area of the liquid cross-section, turning it into gallons is the easy part. Multiply that segment area by the tank's length to get a volume in cubic inches, then divide by 231, the number of cubic inches in one US gallon. That single conversion is the whole bridge from geometry to a fill reading, and it is what a horizontal tank volume calculator does under the hood when you enter a depth. The math is consistent for any depth, so the same formula handles a nearly empty tank and one filled close to the top.
A worked example makes the chain concrete. Take a tank 48 inches in diameter and 120 inches long, which holds 940.0 gallons in total. Filled to 20.0 inches of depth, the circular segment formula — r^2 × acos((r − h) / r) − (r − h) × sqrt(2rh − h^2) — gives the liquid cross-section, and multiplying by the 120-inch length yields 85,640.6 cubic inches of liquid. Divide that by 231 and you get 370.7 gallons. That fill is 39.4% of capacity, even though the depth is a smaller fraction of the diameter than that. Depth is not volume: the segment is narrow at the bottom, so the first inches of depth add volume slowly, and the tank gains gallons fastest near its middle.
The same arithmetic works in metric if you keep units consistent. Enter diameter and length in the same unit — say centimeters — and the segment area times length comes out in cubic centimeters. Divide by 1,000 to get liters, since a liter is 1,000 cubic centimeters. Nothing about the shape changes; only the final divisor does. If you mix units, convert first so diameter, depth and length all speak the same language before you multiply.
The full-tank check is just as useful. A 36-inch by 96-inch example holds its full 423.0 gallons when filled to the top. Whatever capacity remains above the liquid is the ullage — the empty headspace you need to leave for expansion, for a fill line, or for vapor. Running the horizontal tank volume calculator at the top depth should return the stated capacity, which is a good way to confirm your inputs before trusting a part-full reading. If the full-depth result does not match the tank's rated gallons, check the diameter and length first.
Keep the order of operations straight: segment area, times length, divided by 231 for gallons (or by 1,000 for liters from cubic centimeters). That is the entire conversion, and it applies at every depth from the first inch to the last.
- Cubic inches to gallons: divide by 231.
- Cubic centimeters to liters: divide by 1,000.
- 48 in × 120 in tank at 20.0 in depth: 85,640.6 in³ = 370.7 gal, or 39.4% of its 940.0 gal capacity.
- 36 in × 96 in tank filled to the top: 423.0 gal, with ullage as the remaining capacity above the liquid.
Ullage and ordering fuel
Ullage is the space left in a tank above the liquid — the room a tank still has before it is full. When a horizontal tank is partly filled, the volume of fuel on board plus the ullage equals the tank's total capacity. In the 36 in by 96 in example, filled to the top, the tank holds its full 423.0 gal; any liquid level below that leaves ullage equal to whatever capacity remains above the surface. Delivery drivers care about ullage because it tells them how much a tank can safely accept. Before a drop, they compare the ullage to the load on the truck, so a delivery does not overfill the tank or spill fuel.
The reason a horizontal tank volume calculator matters here is that ullage is not simply the empty height multiplied by the tank's width and length. The liquid cross-section in a horizontal cylinder is a circular segment, given by r^2 x acos((r - h) / r) - (r - h) x sqrt(2rh - h^2). The curved walls mean the volume changes at a different rate near the bottom, the middle, and the top of the tank. A driver or dispatcher who guesses from depth alone can badly misjudge how much room is actually left.
The 48 in diameter, 120 in long tank shows the effect. It holds 940.0 gal in total. Filled to 20.0 in, it holds 370.7 gal — 39.4% of capacity. Depth is not volume: the segment is narrow at the bottom, so the first inches of depth add volume slowly. The part-full example is 85,640.6 in3 of liquid, and gallons are cubic inches divided by 231. A driver reading 20 in of depth sees a tank less than 40% full, and the ullage is the remaining 60% or so of the 940.0 gal capacity, not the roughly 58% of the height that looks empty.
This is why horizontal tanks are gauged with strapping charts built from this exact formula. A strapping chart pairs each measured depth with the volume the circular segment formula gives for that depth, so a dip reading converts directly into gallons and ullage. Because the chart follows the tank's real geometry rather than a straight-line estimate, it stays accurate at low fills, mid-fills, and near the top — the range where a delivery decision is made.
FAQs
How much is in a 48 in tank at 20 in depth?
At 20 in of depth in a 48 in tank, the liquid comes to 370.7 gal of its 940.0 gal capacity. That makes the tank 39.4% full, leaving 569.3 gal of ullage (the empty space above the liquid). These figures come from the worked example on this page.
Why is half depth not exactly half volume?
It is exactly half at exactly half depth, but away from the middle the circular segment widens and narrows unevenly as the level rises. So 20 in of a 48 in tank gives 39.4% full, not the share a straight proportion of depth would suggest.
What is ullage?
Ullage is the empty space above the liquid: the tank's total capacity minus its current contents. In the part-full example on this page, a 48 in tank holding 370.7 gal of its 940.0 gal capacity has 569.3 gal of ullage. Knowing ullage helps you see how much room remains before the tank is full.
Does tank length matter?
Yes, it matters linearly. Double the length and every volume doubles, because the cross-section stays the same and only the length changes. The 60 in by 180 in example holds 2,203.2 gal in total. So once you know the volume per unit of length, scaling to another length is a simple multiplication.
Can I use this for a vertical tank?
No. A vertical cylinder fills proportionally to depth, so half the depth means half the volume. This calculator's geometry is specifically for horizontal cylinders with flat ends, where the circular cross-section makes the volume curve non-linear with depth. Use a separate vertical tank calculation instead.
What about dished ends?
Dished or hemispherical heads add a small extra volume that this flat-end model ignores. For farm and fuel tanks, that difference is usually within gauging error, so the flat-end result is close enough for most practical readings. If you need exact figures for a dished tank, account for the head volume separately.