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³

r = 5 cm, h = 20 cmtank 2 m across, 6 m straightpill 8 mm wide, 20 mm long

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

  1. Identify the cylindrical section length. If your spec gives overall length, subtract two radii (one full diameter) first.
  2. Enter the radius and section length. Each field has its own unit selector, so mixed units are handled automatically.
  3. 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.
  4. 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.

RadiusSection hOverall lengthVolumeLitres
3.8 mm14 mm21.6 mm0.68 cm³0.00068 L
5 cm20 cm30 cm2,094 cm³2.09 L
10 cm40 cm60 cm16.76 L16.8 L
0.5 m4 m5 m4.71 m³4,712 L
1 m6 m8 m16.76 m³16,760 L
1.5 m8 m11 m36.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.

Frequently asked questions

What is the formula for the volume of a capsule?
V = πr²h + (4/3)πr³, where r is the radius and h the length of the cylindrical straight section. The first term is the cylinder, the second is the two hemispherical ends combined into one sphere.
My spec gives the overall length - what do I enter?
Subtract one full diameter (2r) from the overall tip-to-tip length to get h, the straight section. Then enter that h here along with the radius.
What happens if the length is zero?
The shape becomes a sphere and the formula reduces to (4/3)πr³. This calculator accepts h = 0 and returns exactly the sphere volume.
How much volume do the rounded ends hold?
(4/3)πr³. For a pill of radius 3.8 mm that is 0.023 cm³; for a 2 m radius tank it is 33.5 m³. The result table splits the total so you can see the proportion.
Is a capsule the same as a spherocylinder?
Yes - both names describe a cylinder with hemispherical ends. In engineering contexts you will see spherocylinder or "2:1 capsule" (meaning the caps are elliptical rather than hemispherical, a slightly different volume).
How do I calculate how many capsules fill a jar?
Divide the jar volume by the capsule volume and derate by about 25-35% for packing inefficiency - random packing of capsules never reaches the theoretical maximum.
Does a capsule hold less than a cylinder of the same length?
Of the same overall length, yes - the caps replace straight section. Of the same cylindrical section length, a capsule holds more, because it adds the sphere on top.

Related calculators

Educational use only. Results are provided for planning and study purposes. Storm Lane is not liable for decisions made solely on these figures - double-check critical measurements with a qualified professional.