# Sphere and Capsule Tank Volume Calculator

> Contents of a spherical or vertical capsule tank at a measured depth, and why a dipstick only tells the truth through the straight middle.

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

Contents at this depth: 493 gal for Tank diameter 63 in, Straight barrel length 6.5 ft and Liquid depth 47 in, the page's opening figures; on the metric page, 1600 mm, 2 m and 1200 mm give 1,877 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` | 1600 mm | 63 in | mm, cm, m, in, ft, yd; range 0.1–30 m |
| Tank shape | `tankShape` | Vertical capsule — a straight barrel with hemispherical heads | Vertical capsule — a straight barrel with hemispherical heads | `capsule`, `sphere` |
| Straight barrel length | `barrelLength` | 2 m | 6.5 ft | mm, cm, m, in, ft, yd; range 0–40 m |
| Liquid depth | `liquidDepth` | 1200 mm | 47 in | mm, cm, m, in, ft, yd; range 0–40 m |

- **Tank diameter**: The internal diameter at the widest point.
- **Tank shape**: A plain sphere, or a straight barrel capped at both ends.
- **Straight barrel length**: The straight cylindrical section between the two heads.
- **Liquid depth**: Measured from the lowest point inside the tank.

## The answer on the opening values

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

### Metric

| Result | Value |
|---|---|
| **Contents at this depth** | 1,877 L |
| Capacity when full | 6,165.9 L |
| Ullage — the empty space above | 4,289.32 L |
| Depth as a proportion of the height | 33.33 % |
| Volume as a proportion of capacity | 30.43 % |
| Height of the band a dipstick reads honestly | 55.56 % |

### US customary

| Result | Value |
|---|---|
| **Contents at this depth** | 493 gal |
| Capacity when full | 1,619.35 gal |
| Ullage — the empty space above | 1,126.8 gal |
| Depth as a proportion of the height | 33.33 % |
| Volume as a proportion of capacity | 30.42 % |
| Height of the band a dipstick reads honestly | 55.32 % |

## How it is worked out

33% full BY DEPTH, 30% BY VOLUME. This reading is inside the straight barrel, where depth and volume ARE proportional and a dipstick is exact. The barrel is 56% of the tank's height, and it is the only part of it a linearly marked stick describes honestly.

The working the page shows, in order: Capacity when full; Ullage — the empty space above; Depth as a proportion of the height; Volume as a proportion of capacity; Height of the band a dipstick reads honestly; then contents at this depth.

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. For fuel inventory, custody transfer or any regulated measurement the governing figure is the vessel's own calibrated strapping table, produced by measuring that individual tank.
- The heads are taken as true hemispheres. Most pressure vessels use torispherical or 2:1 elliptical heads instead, which are shallower and hold LESS — so a real vessel of the same diameter and barrel length holds less than this page says, and the shortfall is entirely in the ends.
- A sphere's supports sit below its lowest internal point, and a vertical vessel's skirt or legs sit below its lower head. Depth measured from the ground rather than from the inside bottom overstates the contents by that whole height.
- Nothing here converts volume to mass, and for LPG that gap matters more than usual: the liquid's density changes substantially with temperature, so the same depth is a different weight on a hot afternoon than on a cold morning.
- Pressurised vessels are never filled to their geometric capacity. A fill limit — commonly a fixed percentage — leaves vapour space for expansion, and that limit rather than this figure is the number a filler works to.
- The result is the liquid present, not the usable liquid. A draw-off above the very bottom leaves a heel that cannot be taken out, and on a sphere that heel is a surprisingly small volume for its depth.

## Sources

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

- A sphere of radius r filled to depth h contains πh²(3r − h)/3 — the standard spherical cap, which returns a hemisphere at h = r and a whole sphere at h = 2r. Both boundaries are checked rather than assumed
- Above the equator the filled region is a spherical zone, πt(r² − t²/3) for a height t above the widest point, which returns the upper hemisphere exactly at t = r. A vertical capsule is that pair of heads with a straight cylinder between them, so one expression family covers both shapes and a sphere is simply a capsule with no barrel
- For fuel inventory, custody transfer or any regulated measurement, the governing figure is the vessel's own calibrated strapping table. A pressure vessel's heads are frequently torispherical rather than hemispherical, which holds less

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 sphere's gauge worse than a cylinder's?**

Because it narrows in two directions at once. A horizontal cylinder is the full length of the tank at every depth — only its width changes as you go up. A sphere has no such constant dimension: near the bottom it is narrow both across and along, so the same increment of depth covers a far smaller slice of liquid. The numbers make the point better than the description. A horizontal cylinder at a tenth of its diameter holds about five per cent of its contents; a sphere at a tenth of its diameter holds under three. At a quarter of the diameter the cylinder is near a fifth full and the sphere is not yet a sixth. Both then catch up and overshoot in the middle, and both are exactly half full at half the depth, because every shape symmetric about its equator is. The practical consequence is that a sphere's low-level reading is the least trustworthy number on any tank on a site.

**Where can I actually trust a dipstick?**

Through the straight barrel of a capsule, and nowhere else. In the cylindrical middle section the cross-section is a constant circle, so depth and volume are exactly proportional and a linearly marked stick is not an approximation — it is correct. The moment the liquid level drops into the lower head or rises into the upper one, the cross-section starts changing and the stick starts lying. That is why this page reports the barrel as a percentage of the tank's total height: it is the size of the band in which the simple reading works. On a vessel that is mostly heads, that band is small, and on a sphere it does not exist at all. It is also why serious installations gauge by pressure or by weight rather than by depth — both of those stay proportional to contents regardless of the shape the contents are sitting in.

**Why does the page say a real vessel holds less than this?**

Because it assumes true hemispherical heads and most pressure vessels do not have them. A hemisphere is the deepest possible head — its depth equals the radius — and it is also the most expensive to form, so it is used mainly where pressure is high or the vessel is large. Far more common are 2:1 elliptical heads, which are half as deep, and torispherical heads, which are shallower still. Both hold less than a hemisphere of the same diameter, so a real tank of the same stated diameter and barrel length has less capacity than this page computes, and the entire shortfall sits in the ends. If the manufacturer's capacity figure is lower than the number here and you cannot see why, the head profile is almost always the reason. The same caution applies to the partial-fill figures: near the top and bottom, where the heads are all there is, the error is proportionally at its largest.

**Should I fill a tank to the capacity this gives?**

No, and for a pressurised vessel that is a safety matter rather than a preference. LPG and similar liquids expand substantially with temperature, and a vessel filled liquid-full on a cold morning has nowhere for that expansion to go by the afternoon; the pressure relief valve is the last line of defence, not a design feature to be relied on. So filling is limited to a fixed proportion of capacity, with the remainder left as vapour space, and that limit — not the geometry — is the figure a filler works to. The same reasoning applies less dramatically to non-pressurised storage, where headspace absorbs thermal expansion and stops a tank venting or overflowing. Treat the capacity here as the volume the shell encloses, which is the starting point for a fill limit rather than a target.

## Related calculators

- [Tank Volume Calculator (Litres and Gallons at Any Depth)](https://craftquantities.com/calculators/materials-quantities/tank-volume-calculator/)
- [Horizontal Cylinder Tank Partial Fill Volume Calculator](https://craftquantities.com/calculators/materials-quantities/horizontal-cylinder-partial-fill-calculator/)
- [Propane Tank Sizing Calculator](https://craftquantities.com/calculators/plumbing-hvac/propane-tank-sizing-calculator/)
- [Material Volume to Weight Calculator](https://craftquantities.com/calculators/measurements-conversions/material-volume-to-weight-calculator/)
- [Cone Frustum Volume Calculator — Hoppers and Tapered Piers](https://craftquantities.com/calculators/materials-quantities/cone-frustum-volume-calculator/)

## Run it from a program

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

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