# Tank Volume Calculator (Litres and Gallons at Any Depth)

> Capacity and contents of a cylinder, rectangular, oval or cone-bottom tank, full or at a measured depth, in litres, cubic metres, US and imperial gallons.

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

Version 1.1.0, sources checked 2026-10-31, 14 published test vectors.

Liquid in the tank: 423 gal for Inside Diameter 6 ft, Straight Side Height 6.5 ft and Liquid Depth 24 in, the page's opening figures; on the metric page, 1.8 m, 2 m and 600 mm give 1,527 L. Source: Neutrium, Volume and wetted area of partially filled horizontal vessels.

## 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 Shape | `tankShape` | Cylinder standing upright (water, rainwater and storage tanks) | Cylinder standing upright (water, rainwater and storage tanks) | `upright-cylinder`, `lying-cylinder`, `rectangular`, `lying-oval`, `upright-oval`, `obround`, `cone-bottom` |
| Inside Diameter | `ucDiameter` | 1.8 m | 6 ft | mm, cm, m, in, ft, yd; range 0.1–30 m |
| Straight Side Height | `ucHeight` | 2 m | 6.5 ft | mm, cm, m, in, ft, yd; range 0.05–40 m |
| Ends of the Cylinder | `ucEnds` | Flat | Flat | `flat`, `dished`, `hemispherical` |
| Inside Diameter | `lcDiameter` | 1.2 m | 4 ft | mm, cm, m, in, ft, yd; range 0.1–30 m |
| Straight Barrel Length | `lcLength` | 2.5 m | 8 ft | mm, cm, m, in, ft, yd; range 0.05–40 m |
| Ends of the Cylinder | `lcEnds` | Flat | Flat | `flat`, `dished`, `hemispherical` |
| Inside Length | `rectLength` | 1.2 m | 4 ft | mm, cm, m, in, ft, yd; range 0.05–50 m |
| Inside Width | `rectWidth` | 1 m | 3.5 ft | mm, cm, m, in, ft, yd; range 0.05–50 m |
| Inside Height | `rectHeight` | 1 m | 3.5 ft | mm, cm, m, in, ft, yd; range 0.05–50 m |
| Inside Width Across | `loWidth` | 1.6 m | 5 ft | mm, cm, m, in, ft, yd; range 0.05–30 m |
| Inside Height | `loHeight` | 1 m | 3.5 ft | mm, cm, m, in, ft, yd; range 0.05–30 m |
| Inside Length | `loLength` | 2 m | 6.5 ft | mm, cm, m, in, ft, yd; range 0.05–40 m |
| Inside Length of the Oval | `uoLength` | 1.6 m | 5 ft | mm, cm, m, in, ft, yd; range 0.05–30 m |
| Inside Width of the Oval | `uoWidth` | 1 m | 3.5 ft | mm, cm, m, in, ft, yd; range 0.05–30 m |
| Inside Height | `uoHeight` | 1.5 m | 5 ft | mm, cm, m, in, ft, yd; range 0.05–40 m |
| Inside Width (side to side) | `obWidth` | 690 mm | 27 in | mm, cm, m, in, ft, yd; range 0.1–5 m |
| Inside Height (bottom to top) | `obHeight` | 1120 mm | 44 in | mm, cm, m, in, ft, yd; range 0.1–5 m |
| Inside Length (end to end) | `obLength` | 1520 mm | 60 in | mm, cm, m, in, ft, yd; range 0.1–10 m |
| Inside Diameter of the Barrel | `cbDiameter` | 1.5 m | 5 ft | mm, cm, m, in, ft, yd; range 0.1–30 m |
| Straight Barrel Height | `cbHeight` | 1.5 m | 5 ft | mm, cm, m, in, ft, yd; range 0.01–40 m |
| Cone Height | `cbConeHeight` | 0.6 m | 2 ft | mm, cm, m, in, ft, yd; range 0.01–20 m |
| Outlet Diameter at the Bottom of the Cone | `cbOutlet` | 100 mm | 4 in | mm, cm, m, in, ft, yd; range 0–30 m |
| Liquid Depth | `liquidDepth` | 600 mm | 24 in | mm, cm, m, in, ft, yd; range 0–40 m |
| Lowest Draw-Off Height | `drawOffHeight` | 0 mm | 0 in | mm, cm, m, in, ft, yd; range 0–40 m |

- **Tank Shape**: The shape of the vessel holding the liquid, and which way up it stands.
- **Inside Diameter**: Across the inside of the barrel, at its widest.
- **Straight Side Height**: The height of the straight barrel, not counting any dished or domed ends.
- **Ends of the Cylinder**: Flat ends, shallow dished heads, or full half-spheres.
- **Inside Diameter**: Across the inside of the barrel; it is also the tank's full depth.
- **Straight Barrel Length**: Seam to seam along the straight part, without the ends.
- **Ends of the Cylinder**: Flat ends, shallow dished heads, or full half-spheres.
- **Inside Length**: The longer inside dimension of the tank's plan.
- **Inside Width**: The shorter inside dimension of the plan.
- **Inside Height**: From the inside floor to the top of the space the liquid can fill.
- **Inside Width Across**: The widest horizontal dimension of the oval section.
- **Inside Height**: Bottom to top of the oval section; the depth at which it is full.
- **Inside Length**: End to end along the tank, which has flat ends.
- **Inside Length of the Oval**: The long axis of the oval plan.
- **Inside Width of the Oval**: The short axis of the oval plan, at right angles to the length.
- **Inside Height**: Floor to the top of the fillable space.
- **Inside Width (side to side)**: The horizontal dimension of the section, as the tank stands.
- **Inside Height (bottom to top)**: The vertical dimension of the section, as the tank stands; the depth at which it is full.
- **Inside Length (end to end)**: Between the two flat end plates.
- **Inside Diameter of the Barrel**: Across the inside of the straight part, where the cone meets it.
- **Straight Barrel Height**: From the top of the cone to the top of the straight sides.
- **Cone Height**: Vertically from the outlet up to where the cone meets the barrel.
- **Outlet Diameter at the Bottom of the Cone**: Across the bottom of the cone where it meets the outlet; zero for a cone to a point.
- **Liquid Depth**: The dipstick reading, from the lowest point inside the tank up to the surface.
- **Lowest Draw-Off Height**: How far above the inside bottom the lowest outlet or suction sits; zero if it drains from the very bottom.

`ucDiameter` applies only when `tankShape` is `upright-cylinder`.
`ucHeight` applies only when `tankShape` is `upright-cylinder`.
`ucEnds` applies only when `tankShape` is `upright-cylinder`.
`lcDiameter` applies only when `tankShape` is `lying-cylinder`.
`lcLength` applies only when `tankShape` is `lying-cylinder`.
`lcEnds` applies only when `tankShape` is `lying-cylinder`.
`rectLength` applies only when `tankShape` is `rectangular`.
`rectWidth` applies only when `tankShape` is `rectangular`.
`rectHeight` applies only when `tankShape` is `rectangular`.
`loWidth` applies only when `tankShape` is `lying-oval`.
`loHeight` applies only when `tankShape` is `lying-oval`.
`loLength` applies only when `tankShape` is `lying-oval`.
`uoLength` applies only when `tankShape` is `upright-oval`.
`uoWidth` applies only when `tankShape` is `upright-oval`.
`uoHeight` applies only when `tankShape` is `upright-oval`.
`obWidth` applies only when `tankShape` is `obround`.
`obHeight` applies only when `tankShape` is `obround`.
`obLength` applies only when `tankShape` is `obround`.
`cbDiameter` applies only when `tankShape` is `cone-bottom`.
`cbHeight` applies only when `tankShape` is `cone-bottom`.
`cbConeHeight` applies only when `tankShape` is `cone-bottom`.
`cbOutlet` applies only when `tankShape` is `cone-bottom`.

## 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** | 1,527 L |
| Capacity when full | 5,089.38 L |
| Space left above the liquid | 3,562.57 L |
| Liquid above the lowest draw-off | 1,526.81 L |
| Depth as a share of the inside height | 30 % |
| Contents as a share of capacity | 30 % |
| Inside height, bottom to top | 2 m |
| Contents in litres (L) | 1,526.81 L |
| Contents in cubic metres (m³) | 1.53 m³ |
| Contents in US gallons (gal) | 403.34 gal |
| Contents in imperial gallons (imp gal) | 335.85 imp gal |
| Capacity in litres (L) | 5,089.38 L |
| Capacity in cubic metres (m³) | 5.09 m³ |
| Capacity in US gallons (gal) | 1,344.47 gal |
| Capacity in imperial gallons (imp gal) | 1,119.51 imp gal |

### US customary

| Result | Value |
|---|---|
| **Liquid in the tank** | 423 gal |
| Capacity when full | 1,374.79 gal |
| Space left above the liquid | 951.78 gal |
| Liquid above the lowest draw-off | 423.01 gal |
| Depth as a share of the inside height | 30.77 % |
| Contents as a share of capacity | 30.77 % |
| Inside height, bottom to top | 6.5 ft |
| Contents in litres (L) | 1,601.28 L |
| Contents in cubic metres (m³) | 1.6 m³ |
| Contents in US gallons (gal) | 423.01 gal |
| Contents in imperial gallons (imp gal) | 352.23 imp gal |
| Capacity in litres (L) | 5,204.16 L |
| Capacity in cubic metres (m³) | 5.2 m³ |
| Capacity in US gallons (gal) | 1,374.79 gal |
| Capacity in imperial gallons (imp gal) | 1,144.76 imp gal |

## How it is worked out

Standing upright on a flat bottom, the tank has the same cross-section at every level, so depth and contents rise together and a dipstick marked in equal steps reads true from bottom to top.

The working the page shows, in order: Capacity when full; Space left above the liquid; Liquid above the lowest draw-off; Depth as a share of the inside height; Contents as a share of capacity; Inside height, bottom to top; Contents in litres (L); Contents in cubic metres (m³); Contents in US gallons (gal); Contents in imperial gallons (imp gal); Capacity in litres (L); Capacity in cubic metres (m³); Capacity in US gallons (gal); Capacity in imperial gallons (imp gal); 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 bulges, dents, sits out of level, carries sludge and has fittings inside it, and none of that is in the arithmetic. For fuel accounting, custody transfer or anything a regulator reads, the governing figure is the tank's own calibrated strapping table or the maker's capacity chart.
- Every dimension wanted is an INSIDE one. A plastic, bunded or insulated tank's walls are thick enough that outside measurements overstate the capacity, and a double-skinned tank's outer shell can be a good deal larger than the vessel holding the liquid.
- Depth is measured from the lowest point inside. A tank out of level has a different depth at each end, and a reading taken from the ground, a plinth or the outside of a cradle is not the inside depth; measure at the middle, or at both ends and compare.
- Dished ends are taken as the 2:1 ellipsoidal head, a quarter of the diameter deep, and both ends of a cylinder as the same kind. A DIN 28013 head is about as deep and holds almost as much. Most torispherical (flanged-and-dished) heads, the ASME and DIN 28011 kinds among them, are shallower and hold less — by Neutrium's coefficients for a thin wall, roughly 62% and 76% of a 2:1 head of the same diameter — and their exact volume needs the wall thickness and the knuckle radius, which this page does not ask for. A tank with a flat bottom and a domed top is outside the model too; a maker's drawing governs.
- The two ovals are different shapes. An elliptical tank is a true ellipse in section; a flat-sided oval has straight sides between round ends and holds more for the same width and height. Tanks sold as oval can be either, so check which you have before trusting either figure.
- Nothing here is converted to mass. Oils, fuels and chemicals differ in density, and density moves with temperature, so the same depth can be a different weight on a hot afternoon than on a cold morning.
- Capacity is the volume the shell encloses, not a fill target. Tanks are filled short of it to leave room for expansion and for the overflow and vent to work, and the working volume of a rainwater or process tank sits between its overflow and its lowest draw-off.

## Sources

As the calculator cites them (sources checked 2026-10-31):

- Neutrium, Volume and wetted area of partially filled horizontal vessels: the barrel as a circular segment, L(R² cos⁻¹((R − h)/R) − (R − h)√(2Rh − h²)); a hemispherical head πh²(3R − h)/6; a semi-ellipsoidal head D³C(π/12)(3(h/D)² − 2(h/D)³) with C = 1/2 for the ASME 2:1 head, whose depth is a quarter of the diameter, and C = 0.49951 + 0.10462 t/Do + 2.3227 (t/Do)² for a DIN 28013 head; torispherical heads, shallower than semi-ellipsoidal ones, with C = 0.30939 + 1.7197 (Rk − 0.06 Do)/Di − 0.16116 t/Do + 0.98997 (t/Do)² (ASME) and C = 0.37802 + 0.05073 t/Do + 1.3762 (t/Do)² (DIN 28011), where t is the wall thickness and Rk the knuckle radius (after Wiencke 2009, Doane 2007, Ludwig 1997) <https://neutrium.net/articles/equipment/volume-and-wetted-area-of-partially-filled-horizontal-vessels/>
- Neutrium, Volume and wetted area of partially filled vertical vessels: the cylindrical body (π/4)D²h; a semi-ellipsoidal bottom head D³C(π/24)(3(h/z)² − (h/z)³) with z the dish depth and C = 0.5 for the ASME 2:1 head; a hemispherical head (πh²/3)(3R − h) <https://neutrium.net/articles/equipment/volume-and-wetted-area-of-partially-filled-vertical-vessels/>
- Wolfram MathWorld, Conical Frustum: V = πh(R₁² + R₁R₂ + R₂²)/3, applied from the outlet up to the level reached in a cone-bottom tank <https://mathworld.wolfram.com/ConicalFrustum.html>
- Wolfram MathWorld, Ellipse: the area of an ellipse with semi-axes a and b is πab, and the change of coordinates x′ = (b/a)x turns the ellipse into a circle of radius b — so every slice across an elliptical section is the circle's slice stretched by a/b, and a part-filled ellipse holds the circle's segment times width over height <https://mathworld.wolfram.com/Ellipse.html>
- NIST Special Publication 811, Appendix B.8: gallon (U.S.) = 3.785 412 E−03 m³, and gallon \[Canadian and U.K. (Imperial)\] = 4.546 09 E−03 m³ — the two gallons the rows below state together with litres and cubic metres <https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b8>
- Derived on this page: a tank with straight vertical sides holds its plan area times the depth (the box, and the upright ellipse at πab), and a flat-sided oval is a rectangle between two half-circles of the smaller dimension, filled piece by piece with the circular segment above; the tests check both by integrating the width of each horizontal slice

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 does a dipstick read true in some tanks and not in others?**

Because depth only tracks contents where the tank is the same width at every level. An upright cylinder, a box or an upright oval with a flat bottom is: each step of depth holds the same volume, so equal marks on a stick are equal amounts. A cylinder or an oval on its side is narrow at the bottom, widest at the middle and narrow again at the top, so the same step of depth holds very little near the floor and a great deal across the middle. A cone-bottom tank starts narrow and widens into its barrel. Wherever the width changes with height, the stick needs a chart, and this page is that chart worked out for the shape.

**My tank is sold as oval. Which of the two ovals is it?**

Look at the sides. If a straightedge lies flat against them, it is the flat-sided oval — straight sides joined by half-round ends, standing on a rounded edge or lying on a flat side. If the straightedge rocks on a curve that runs all the way round, it is elliptical. The difference matters: an ellipse holds noticeably less than a flat-sided oval of the same width and height — about nine tenths as much for a section half again as tall as it is wide — so choosing the wrong one under- or over-states the contents by that much at every depth.

**How do I find a tank's capacity rather than what is in it now?**

Enter a depth equal to or greater than the inside height; the page treats anything above the top as full and the headline becomes the capacity. The capacity rows are shown at every depth anyway, in litres, cubic metres, US gallons and imperial gallons, alongside the contents.

**What does the draw-off height change?**

It separates what is in the tank from what can be taken out of it. Most tanks draw from an outlet, a suction pipe or a pump intake set above the floor so that sediment stays behind, and everything below that level is dead volume. Enter the outlet's height above the inside bottom and the row for liquid above the draw-off gives what a pump or a tap can actually deliver; at zero it equals the contents.

**Litres, US gallons or imperial gallons?**

All three, and cubic metres. A US gallon is 3.785 litres and an imperial gallon 4.546, so an older British or Canadian tank rated in gallons holds about a fifth more than the same number of US gallons. The headline follows the page's units — litres in metric, US gallons in imperial — and the rows give every unit together, so a tank rated in one can be checked against a reading in another.

## Related calculators

- [Horizontal Cylinder Tank Partial Fill Volume Calculator](https://craftquantities.com/calculators/materials-quantities/horizontal-cylinder-partial-fill-calculator/)
- [Sphere and Capsule Tank Volume Calculator](https://craftquantities.com/calculators/materials-quantities/sphere-capsule-tank-volume-calculator/)
- [Cone Frustum Volume Calculator — Hoppers and Tapered Piers](https://craftquantities.com/calculators/materials-quantities/cone-frustum-volume-calculator/)
- [Rain Barrel and Rainwater Collection Calculator](https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-calculator/)

## Run it from a program

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

---
Source: https://craftquantities.com/calculators/materials-quantities/tank-volume-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.
