# Horizontal Cylinder Tank Partial Fill Volume Calculator

> How much liquid a horizontal cylindrical tank holds at a dipstick depth, with flat, dished or hemispherical ends, and the ullage left above it.

Page: https://craftquantities.com/calculators/materials-quantities/horizontal-cylinder-partial-fill-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.0, sources checked 2026-09-15, 4 published test vectors.

Liquid in the tank: 217 gal for Tank diameter 47 in, Barrel length 8 ft and Liquid depth 16 in, the page's opening figures; on the metric page, 1200 mm, 2.5 m and 400 mm give 825 L. Sources are cited below.

## Inputs

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Tank diameter | `tankDiameter` | 1200 mm | 47 in | mm, cm, m, in, ft, yd; range 0.1–6 m |
| Barrel length | `tankLength` | 2.5 m | 8 ft | mm, cm, m, in, ft, yd; range 0.1–30 m |
| Liquid depth | `liquidDepth` | 400 mm | 16 in | mm, cm, m, in, ft, yd; range 0–6 m |
| Tank ends | `endType` | Flat ends — a plain cylinder | Flat ends — a plain cylinder | `flat`, `elliptical`, `hemispherical` |

- **Tank diameter**: The internal diameter of the cylindrical barrel.
- **Barrel length**: The straight cylindrical part, not counting the ends.
- **Liquid depth**: The dipstick reading, measured from the lowest point inside the tank.
- **Tank ends**: Flat, dished, or fully hemispherical heads.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Liquid in the tank** | 825 L |
| Tank capacity when full | 2,827.43 L |
| Ullage — the empty space above | 2,002.41 L |
| Depth as a proportion of the diameter | 33.33 % |
| Volume as a proportion of capacity | 29.18 % |
| In the cylindrical barrel | 825.02 L |

### US customary

| Result | Value |
|---|---|
| **Liquid in the tank** | 217 gal |
| Tank capacity when full | 721.02 gal |
| Ullage — the empty space above | 504.48 gal |
| Depth as a proportion of the diameter | 34.04 % |
| Volume as a proportion of capacity | 30.03 % |
| In the cylindrical barrel | 216.54 gal |

## How it is worked out

The tank is 33% full BY DEPTH and 29% full BY VOLUME, with flat heads, so the barrel is the whole tank. Those two numbers only agree at the halfway mark — a horizontal tank is widest at the middle and narrows to nothing top and bottom, which is why a linearly marked dipstick is wrong everywhere else and why tanks come with a strapping table.

The working the page shows, in order: Tank capacity when full; Ullage — the empty space above; Depth as a proportion of the diameter; Volume as a proportion of capacity; In the cylindrical barrel; then liquid in the tank.

The method, derived in full:

- [Volume from Geometry, and the Order That Follows](https://craftquantities.com/methodology/volume-from-geometry/): Why the depth carries almost all the risk in a volume, why an excavation holds far more than its plan area suggests, and why a bag's yield is not its weight divided by a density.

What this calculation does not cover:

- This is geometry, not gauging. A real tank is dented, out of round, sitting out of level or carrying sludge in the bottom, and none of that is in the arithmetic — for fuel inventory, custody transfer or any regulated measurement the governing figure is the tank's own calibrated strapping table.
- A tank out of level is the commonest error and the hardest to see. Tilt moves the depth at one end relative to the other, and a dipstick at one end of a long tank then reports a depth the rest of the tank does not have. Measure at the middle, or measure both ends and check they agree.
- The diameter wanted is the INTERNAL one. On a double-skinned or bunded tank the outer shell can be substantially larger than the vessel holding the liquid, and using it overstates every figure here.
- Dished heads are treated as 2:1 elliptical, which is the common pressure-vessel proportion. Torispherical, flanged-and-dished and other profiles hold different amounts, and a manufacturer's drawing governs over this assumption.
- Nothing here converts volume to mass. Fuel, oil and chemicals differ in density, and density itself moves with temperature — which is why a tank gauged warm and a tank gauged cold can hold the same volume and weigh differently.
- The result is the liquid present, not the usable liquid. Most tanks draw from an outlet above the very bottom, so the last portion is unreachable, and a heating oil tank in particular should never be run down to what this figure says is left.

## Sources

As the calculator cites them (sources checked 2026-09-15):

- The wetted cross-section of a horizontal cylinder is a circular segment, area r²·acos((r−h)/r) − (r−h)·√(2rh − h²). This is exact geometry rather than an approximation: it returns half the circle at half the diameter and the whole circle at full depth
- Two hemispherical heads together form one sphere, and a sphere filled to depth h contains πh²(3r − h)/3. A 2:1 elliptical dished head is half the depth of a hemisphere and contributes half the volume, which is the standard treatment for the common pressure-vessel head
- For fuel inventory, custody transfer or any regulated measurement, the governing figure comes from the tank's own calibrated STRAPPING TABLE rather than from geometry — a real tank is never exactly its drawing

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**Why is a dipstick reading not proportional to the contents?**

Because a tank on its side is not the same width all the way up. At the halfway line it is at its widest — the full diameter — and it narrows to nothing at the very top and the very bottom. So the first inch of depth covers only a narrow strip along the bottom of the tank, while an inch either side of the centreline covers the full width. The consequence is easy to state and easy to get wrong in practice: a stick reading a QUARTER of the diameter is holding about a fifth of the contents, and a stick reading a TENTH is holding about a twentieth. The error runs the wrong way for anyone watching a heating oil tank get low, because it over-reports what is left just when the remaining amount matters most. The one place the intuition works is dead centre: half the depth really is half the volume, because the top half of a circle is the mirror image of the bottom half.

**How much do the ends actually matter?**

On a tank whose barrel is twice its diameter, two hemispherical heads hold about a quarter of the whole capacity, and the shorter the tank the more they matter. That is more than most people expect: two hemispherical heads are not two curved caps — put together they are one complete sphere of extra capacity. The common 2:1 elliptical dished head is half as deep as a hemisphere and contributes half as much, which is still not a rounding error. Ignoring the ends does not just make the capacity figure wrong; it makes it wrong in a way that varies with fill level, because the ends are also widest at the middle. If you are working from a manufacturer's capacity figure and your own barrel-only arithmetic disagrees with it, the heads are the first place to look.

**What is ullage, and why is it the number some people want?**

Ullage is the empty space above the liquid — capacity minus contents. It is the figure a delivery driver works to, because what matters at the filling point is how much more will fit, not how much is already there. It is also the safety number: many liquids need headspace for thermal expansion, and a tank filled to the brim on a cold morning can vent or deform by the afternoon. Some gauges are marked in ullage rather than contents for exactly this reason, measuring down from the top rather than up from the bottom, which is a real source of confusion when two people compare readings from the same tank. If your stick is measuring down from a fill point, the number you have is ullage and this page's depth input wants the other one.

**When should I stop trusting this and use the tank's own table?**

Whenever the number has consequences beyond planning. This page computes an ideal cylinder, and a real tank is not one: it may be dented, slightly out of round, resting out of level in its cradle, carrying years of sludge and water in the bottom, or fitted with internal baffles that displace liquid. Any of those makes the true contents differ from the geometry, and the difference is largest near the bottom — exactly where a low-level reading is being taken. For fuel inventory reconciliation, for custody transfer, or for anything a regulator will look at, the governing figure comes from the tank's calibrated strapping table, produced by measuring that individual vessel. Use this for checking a delivery looks sane, for planning, and for understanding why the stick is behaving as it is.

## Related calculators

- [Tank Volume Calculator (Litres and Gallons at Any Depth)](https://craftquantities.com/calculators/materials-quantities/tank-volume-calculator/)
- [Cone Frustum Volume Calculator — Hoppers and Tapered Piers](https://craftquantities.com/calculators/materials-quantities/cone-frustum-volume-calculator/)
- [Aquarium Display Tank Water Weight Calculator](https://craftquantities.com/calculators/materials-quantities/aquarium-water-weight-calculator/)
- [Material Volume to Weight Calculator](https://craftquantities.com/calculators/measurements-conversions/material-volume-to-weight-calculator/)
- [Circular Pier / Cylinder Concrete Calculator](https://craftquantities.com/calculators/materials-quantities/circular-pier-concrete-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/horizontal-cylinder-partial-fill-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/horizontal-cylinder-partial-fill-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `horizontal-cylinder-partial-fill-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/horizontal-cylinder-partial-fill-calculator.json

---
Source: https://craftquantities.com/calculators/materials-quantities/horizontal-cylinder-partial-fill-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
