Capsule Volume Calculator
A capsule is a cylinder capped by two hemispheres - the shape of pills, horizontal pressure tanks and cylindrical silos with rounded ends. Enter the radius and the length of the straight section to get the total volume.
Formula: V = πr²h + (4/3)πr³
A cylinder plus a sphere
A capsule is built from two pieces: a straight cylindrical section of length h and radius r, and two hemispherical caps that together make one full sphere of radius r. So the volume is simply V = πr²h + (4/3)πr³. Compute the cylinder part, add the sphere part, and you are done - no new formula to memorise, just two familiar ones added together.
A worked example: a capsule with a 5 cm radius and a 20 cm straight section. The cylinder contributes π × 25 × 20 ≈ 1,571 cm³; the two hemispheres contribute (4/3)π × 125 ≈ 524 cm³. The total is 2,095 cm³, about 2.1 litres. Note that the ends add a quarter again on top of the cylinder alone - rounded ends are not cosmetic detail when a tank is being rated.
Two input conventions cause confusion. Some specifications give the length of the cylindrical section only (what this calculator takes); others give the overall tip-to-tip length L, in which case the straight section is h = L − 2r. A tank quoted as 8 m long overall and 2 m across has h = 8 − 2 = 6 m of straight section. Getting this wrong inflates the cylinder part by two full diameters - a big error on short, stubby tanks.
When h = 0 the shape collapses to a pure sphere, and the formula reduces to (4/3)πr³ - another useful sanity check. The capsule shape is popular for tanks because the smooth caps eliminate stress concentrations at corners, letting thin walls hold pressure safely; the cost is that the caps consume capacity relative to a flat-ended cylinder of the same overall length.
How to use this calculator
- Identify the cylindrical section length. If your spec gives overall length, subtract two radii (one full diameter) first.
- Enter the radius and section length. Each field has its own unit selector, so mixed units are handled automatically.
- Read the split results. The table shows how much of the volume sits in the straight section versus the rounded ends - useful when judging how much a shorter tank would hold.
- Use the substitution bar to quote the worked formula in a spec sheet or homework answer.
Capsule problems beyond total volume
The two-part structure of the formula makes capsules easy to decompose when a real question is not about the whole solid.
Comparing flat vs rounded ends
For a fixed overall length and diameter, a flat-ended cylinder holds more: the caps “waste” the space difference between a hemisphere and the flat slice it replaces. A tank 2 m across and 6 m overall holds π×1×6 ≈ 18.85 m³ flat-ended, versus π×1×4 + (4/3)π ≈ 16.76 m³ as a capsule - about 11% less. The capsule wins on pressure rating, not on capacity.
Partial fills of a horizontal capsule tank
When liquid sits below the top of the straight section, the fill volume is a circular segment times the length, plus no sphere contribution. Only when the level reaches the caps does sphere geometry enter. The dedicated tank volume calculator handles the full fill-level curve for capsule and other tank shapes.
Pill and dosing calculations
A standard size-0 gelatin capsule is about 7.6 mm across and 21.6 mm long overall, giving a 14 mm straight section and a 3.8 mm radius: fill capacity ≈ π×0.38²×1.4 + (4/3)π×0.38³ ≈ 0.68 cm³ (680 µL). Powder bulk density around 0.6 g/cm³ then implies roughly 400 mg of fill, which is exactly how supplement manufacturers size their capsules.
Capsule volumes by size
Rounded figures for capsules with the listed radius and straight-section length.
| Radius | Section h | Overall length | Volume | Litres |
|---|---|---|---|---|
| 3.8 mm | 14 mm | 21.6 mm | 0.68 cm³ | 0.00068 L |
| 5 cm | 20 cm | 30 cm | 2,094 cm³ | 2.09 L |
| 10 cm | 40 cm | 60 cm | 16.76 L | 16.8 L |
| 0.5 m | 4 m | 5 m | 4.71 m³ | 4,712 L |
| 1 m | 6 m | 8 m | 16.76 m³ | 16,760 L |
| 1.5 m | 8 m | 11 m | 36.1 m³ | 36,100 L |
The share held by the rounded ends falls as tanks get longer relative to their diameter: for the pill it is over half the volume, for the 8 m tank only about a quarter of the difference from a plain cylinder, so end effects matter most for short, fat vessels.
Where capsule volume shows up
Horizontal pressure tanks
Compressed-air receivers and propane tanks are capsules lying on their side. A 2 m diameter receiver with a 5 m straight section holds π×1×5 + (4/3)π ≈ 19.9 m³. Manufacturers then rate usable capacity below the safe-fill pressure, but the geometric volume is the starting figure on the nameplate.
Pharmaceutical capsules
Capsule sizes 000 through 5 map to fixed fill volumes from about 1.37 cm³ down to 0.11 cm³. Formulators divide the dose in milligrams by the powder density to pick a size - a 500 mg dose of a 0.75 g/cm³ blend needs 0.67 cm³, landing squarely in a size 0.
Cylindrical silos with dished bottoms
Farm silos often have hemispherical bottom floors to aid discharge. Total capacity is the cylinder wall section plus the hemisphere below it - the same two-part sum, read upside down. A 6 m diameter silo with 15 m walls and a full hemisphere base holds π×9×15 + (2/3)π×27 ≈ 477 m³.
Common mistakes & pro tips
- Overall length entered as the section length. Subtract two radii first - the two caps already contribute (4/3)πr³, not πr²·2r.
- Adding a full sphere on top of the cylinder. The two caps are hemispheres; together they make exactly one sphere, no more. Counting them twice roughly doubles the end volume.
- Using the tank width as the radius. Halve diameters before entering. This one slips in when spec sheets quote "2 m capsule" meaning across, not to the centre.
- Mixed units between radius and length. A radius in inches with a length in metres silently scales the answer wrong. Use the per-field unit selectors.
- Assuming fills behave like the whole capsule. Partial fills depend on orientation; a horizontal capsule fills by circular segments, not proportional slices of the total volume.