What are you working on?

Find a calculator, explore a formula, or learn the method.

THE ENGINEERING REFERENCE / GUIDE

Horizontal Cylindrical Tank Volume from Liquid Level: A Geometry Worked Example

Short Answer

The liquid volume of a partly filled horizontal cylindrical tank equals the circular segment area at its end times the tank length: V = L × [r²·arccos((r−h)/r) − (r−h)·√(2rh − h²)]. Depth fraction is not volume fraction: a 48 × 96 in tank holding 12 in of liquid contains 147.0 US gal of 752.0 gal capacity.

The volume of liquid in a partly filled horizontal cylindrical tank cannot be read off the liquid level directly: depth fraction and volume fraction are not the same number. Because a horizontal cylinder’s circular end is widest at its middle, each additional increment of depth occupies a differently shaped slice of the circle. The standard method is geometric. At each flat end of the tank, the liquid occupies a circular segment — the region bounded by a horizontal chord and the arc of the circle beneath it. Compute that segment’s area A from the radius r and the liquid depth h, then multiply by the tank length L:

V = L × [ r² · arccos((r − h)/r) − (r − h) · √(2rh − h²) ]

This article explains where that formula comes from, works through it step by step, and verifies it against three published worked examples — one in inches and US gallons, one in centimeters, and one used as a benchmark in feet. The companion case, a vertical cylinder, is simpler because its liquid volume grows linearly with depth; it is covered separately.

Why a horizontal tank does not fill linearly

In a vertical cylinder the liquid cross-section is always the full circle of area πr², so V = πr²h and every increment of added depth contributes equal volume. In a horizontal cylinder the liquid’s cross-section is a circular segment whose width changes with depth. Near the empty bottom of the tank the circle curves inward quickly, so rising liquid adds little area; around the centerline the circle is at its widest, so the same rise adds the most area; near the top the pattern reverses. The result is an S-shaped relationship between depth and volume.

The practical consequence is easy to underestimate. In a 48-inch-diameter tank, 12 inches of liquid — one quarter of the diameter — is only about 19.5 percent of capacity, as the first worked example shows. By symmetry, a tank at 75 percent of diameter is about 80.4 percent full.

The circular segment area formula

A = r² arccos((r − h)/r) − (r − h) √(2rh − h²)

  • r is the tank’s internal radius (half the internal diameter);
  • h is the liquid depth measured vertically from the inside bottom;
  • arccos is the inverse cosine, which must be evaluated in radians when it multiplies r² — a caution both the MathIsFun explanation and the calculator sources emphasize;
  • √(2rh − h²) is half the chord: the width of the liquid surface at depth h.

Where the formula comes from

Following the classic sector-minus-triangle argument used by MathIsFun and by the 1728.org worked problem: draw the end circle, mark the liquid surface as a chord, and connect the chord’s endpoints to the circle’s center. The two radii trap a circular sector (a pie-slice shape) whose central angle is 2·arccos((r − h)/r). The sector’s area is ½r²θ = r²·arccos((r − h)/r), with θ in radians. Subtract the triangle formed by the two radii and the chord, whose base is 2√(2rh − h²) and whose height is r − h; its area is (r − h)√(2rh − h²). The difference — the circular segment — is exactly the formula above. The 1728.org example follows the same construction in degrees, producing a sector angle of 106.26° in the metric problem below.

Sanity checks worth doing

Because the formula combines an inverse trig function and a square root, MathIsFun recommends checking a computed area against trivial limits before trusting it:

  • h = 0 gives A = 0 (an empty end holds no area);
  • h = 2r gives A = πr², the full circular end;
  • h = r — liquid exactly at the centerline — gives A = πr²/2, so the tank is precisely half full by volume.

Step-by-step calculation

  1. Measure the internal diameter D, internal length L, and liquid depth h; set r = D/2.
  2. Compute the ratio (r − h)/r.
  3. Take arccos of that ratio in radians (if a tool returns degrees, multiply by π/180 before using the value in the r² term).
  4. Compute the segment area A = r²·arccos((r − h)/r) − (r − h)√(2rh − h²).
  5. Multiply by the length: V = A × L.
  6. Convert to reporting units: 1 US gallon = 231 in³, 1 ft³ ≈ 7.4805 US gal, 1,000 cm³ = 1 L.
  7. Verify against the sanity checks above and against the full capacity πr²L.

Worked example in inches and US gallons

The horizontal tank volume calculator at cylindervolumeformula.com works a tank 48 in across and 96 in long, holding 12 in of liquid. Here r = 24 in, h = 12 in, and L = 96 in:

A = 24² · arccos(12/24) − 12 · √(2 × 24 × 12 − 12²) = 576 × arccos(0.5) − 12√432

Since arccos(0.5) = π/3 ≈ 1.0472 radians, the first term is 576 × 1.0472 = 603.19 in²; √432 ≈ 20.785, so the triangle term is 12 × 20.785 = 249.42 in². The segment area is A = 353.77 in², and multiplying by the length gives V = 353.77 × 96 = 33,962 in³, which divides by 231 in³ per US gallon into 147.0 US gal.

The same tank full holds π × 576 × 96 = 173,718 in³ ≈ 752.0 US gal, matching the source’s figures. One quarter of the diameter in liquid depth therefore corresponds to 147.0/752.0 ≈ 19.5 percent of capacity — the nonlinearity in action.

Worked example in centimeters, via sector minus triangle

The 1728.org worked problem uses a horizontal cylinder 200 cm long and 100 cm in diameter, filled to a depth of 20 cm. The full cylinder holds π · 50² · 200 = 1,570,796 cm³, and each end has area π · 50² = 7,853.98 cm². To find the segment, the construction runs:

  • The line from the center to the chord (radius minus depth) is 50 − 20 = 30 cm.
  • arccos(30/50) = arccos(0.6) ≈ 53.13°, so the sector’s central angle is 106.26°.
  • Completing the arithmetic, the sector area is (106.26/360) × π × 50² ≈ 2,318 cm².
  • The chord is 2√(50² − 30²) = 80 cm, so the triangle is ½ × 80 × 30 = 1,200 cm².
  • The segment area is therefore ≈ 2,318 − 1,200 = 1,118 cm².

Liquid volume is about 1,118 × 200 ≈ 223,600 cm³ ≈ 223.6 liters, or roughly 14.2 percent of the tank’s 1,570,796 cm³ capacity — even though 20 cm is one fifth of the diameter. The algebraic formula yields the identical segment area in one line: A = 2,500 × arccos(0.6) − 30 × √(1,600) = 2,318.24 − 1,200 = 1,118.24 cm², confirming the geometric construction.

Benchmark example in feet, converted to gallons

A published benchmark from the Frictionless Calc worked-example page uses an internal diameter of 6 ft, an internal length of 12 ft, and a liquid depth of 2 ft. With r = 3 ft:

A = 9 · arccos(1/3) − 1 · √(2 × 3 × 2 − 2²) = 9 × 1.23096 − √8 = 8.2502 ft²

Then V = 8.2502 × 12 = 99.0025 ft³; converting at 7.4805 US gal per ft³ gives 740.59 US gal, matching the benchmark’s expected 740.590067 US gal. The full tank is π × 9 × 12 = 339.29 ft³ ≈ 2,538 US gal, and the benchmark reports the tank as 29.179141 percent full. The depth-versus-volume gap appears again: 2 ft of 6 ft is 33.3 percent of the diameter, but only about 29.2 percent of the volume.

Depth fraction versus volume fraction

Applying the segment formula across the fill range shows how strongly the mapping bends (fractions of internal diameter and of total capacity, for a level tank with flat ends):

Liquid depth (share of diameter)Liquid volume (share of capacity)
10%5.2%
25%19.5%
50%50.0%
75%80.4%
90%94.8%

The table is symmetric about the halfway point: the empty headspace above 75 percent depth equals the liquid below 25 percent depth, so the 75 percent row is 100 minus the 25 percent row. Repeating the calculation at many depths and tabulating depth against volume produces a strapping table (or dip chart) of the kind shipped with tanks and offered by the chart tabs of the calculator sources.

Common mistakes

  • Treating depth percent as volume percent. Depth and volume agree only when the tank is empty, exactly half full, or full; below the halfway depth, depth overstates volume, and above it, depth understates volume.
  • Using degrees in the r²·arccos term. The angle must be in radians; if a calculator returns degrees, convert with × π/180 first.
  • Substituting diameter for radius. A 100 cm tank has r = 50 cm; mixing them up inflates the r² term by a factor of four.
  • Measuring outside the shell. Wall thickness and fittings make external dimensions differ from the internal ones the formula requires.
  • Rounding too early. Keep arccos and square roots at full precision until the final conversion, as the benchmark’s seven-decimal expected values illustrate.

Limits and real-tank caveats

The formula assumes a level, straight cylinder with flat ends and an internal liquid depth measured vertically. Real vessels often have dished, elliptical, or hemispherical heads; liquid in those ends is not part of the straight-shell computation, so multiplying segment area by cylinder length will understate total capacity unless the end volumes are handled separately. A tank that is not level also distorts readings, because the depth at a single point no longer represents a horizontal liquid surface spanning the vessel. The published examples above all restrict themselves to the flat-end, level case.

For a vertical cylindrical tank the problem collapses to the linear case V = πr²h, which is why a vertical-tank calculator branch needs no trigonometry at all.

Practical takeaways

  • Measure internal diameter, internal length, and liquid depth; halve the diameter to get r.
  • Convert depth into a circular segment area with A = r²·arccos((r − h)/r) − (r − h)√(2rh − h²), using radians.
  • Multiply by length, convert units, and check that h = r gives half the tank and h = 2r gives full capacity.
  • For routine gauging, compute once per depth and reuse a strapping table rather than deriving the number each time.

FAQ

Why doesn't liquid height directly tell me the volume of a horizontal tank?

Because the circular cross-section narrows toward the top and bottom, equal rises in level correspond to unequal volume increments; depth and volume fractions agree only when the tank is empty, exactly half full, or full. The circular segment area formula correctly converts depth into volume.

Should arccos be computed in radians or degrees?

In radians when it multiplies r². If a tool returns degrees, multiply by π/180 first; equivalently, the 1728.org method uses degrees in the sector form (angle/360) × πr², which gives the same result.

Does the formula work when the tank is more than half full?

Yes. It is valid for every depth from h = 0 to h = 2r; past half depth the arccos argument becomes negative and the (r − h) factor turns negative, which is the correct algebra for a segment larger than a half-circle.

What changes with dished or hemispherical tank ends?

The worked formula covers the straight shell with flat ends only. Headed ends add volume beyond length × segment area, so flat-end calculations understate total capacity unless the end volumes are computed and added separately.

References

  1. Horizontal Tank Volume Calculator: Partly Filled Cylinders — cylindervolumeformula.com. https://cylindervolumeformula.com/horizontal-cylinder-volume/
  2. Volume of Horizontal Cylinder — MathIsFun. https://www.mathsisfun.com/geometry/cylinder-horizontal-volume.html
  3. Horizontal Cylinder Formula — 1728.org. https://www.1728.org/cyltank2.htm
  4. Horizontal Tank Volume: Worked Example — Frictionless Calc. https://frictionlesscalc.com/tank-volume-worked-example

Related Terms

Leave a Reply

Your email address will not be published. Required fields are marked *