Capsule Volume Calculator
- Cylinder section: pi × 2.00^2 × 5.00 = 62.83.
- The two hemispherical caps make one sphere: (4/3) × pi × 2.00^3 = 33.51.
- Total volume: 62.83 + 33.51 = 96.34 cubic units; surface area 113.10 square units; total length 9.00 units.
A capsule is a cylinder of length h capped by two hemispheres of radius r, which together make one full sphere. This capsule volume calculator uses the formula volume = pi·r²·h + (4/3)·pi·r³ to return the total volume of that shape. It also provides the surface area, calculated as 2·pi·r·h + 4·pi·r², which represents the cylinder wall plus the sphere's surface, and the total length of h + 2r. A key detail to keep in mind is that the straight-section length h excludes the caps. A common mistake is to enter the total length, which double-counts the ends and throws off the result. Capsule shapes appear in pharmaceutical capsules, propane-style tanks and pressure vessels because the rounded ends handle pressure evenly, making accurate volume figures important for real-world use.
The method behind this calculator is the accepted standard for capsule volume because it treats the shape as exactly what it is geometrically: a cylinder plus a full sphere. Rather than relying on approximations, the formula adds the cylinder volume pi·r²·h to the sphere volume (4/3)·pi·r³, giving a precise result for any valid radius and straight-section length. This page shows the formula, step-by-step workings, worked examples and sources so you can verify every figure. For instance, with r = 2 and h = 5, the volume is 96.34 (cylinder 62.83 + caps 33.51), surface area is 113.10, and total length is 9.00. With r = 1.5 and h = 4, the volume is 42.41 and surface area is 65.97. With r = 3 and h = 10, the volume is 395.84 and surface area is 301.59.
Worked examples
A medium capsule
Primary result: 96.34 — 62.83 from the cylinder plus 33.51 from the two end caps; surface area 113.10. (2 · 5)
| Volume | 96.34 |
| Surface area | 113.10 |
| Cylinder section volume | 62.83 |
| Two end caps (sphere) volume | 33.51 |
| Total length | 9.00 |
A smaller capsule
Primary result: 42.41 — total length 7.00 units including both caps. (1.5 · 4)
| Volume | 42.41 |
| Surface area | 65.97 |
| Cylinder section volume | 28.27 |
| Two end caps (sphere) volume | 14.14 |
| Total length | 7.00 |
A tank-sized capsule
Primary result: 395.84 — surface area 301.59 square units. (3 · 10)
| Volume | 395.84 |
| Surface area | 301.59 |
| Cylinder section volume | 282.74 |
| Two end caps (sphere) volume | 113.10 |
| Total length | 16.00 |
Anatomy of a capsule
A capsule is a cylinder of length h capped by two hemispheres of radius r, which together make one full sphere. The straight-section length h excludes the caps — a common mistake is to enter the total length, which double-counts the ends. When you use a capsule volume calculator, labeling the three key measurements correctly is essential for accurate results.
The radius r is the distance from the centerline of the cylinder to its wall, and it is also the radius of both hemispherical caps. The straight length h is the length of the cylindrical section alone, measured from the point where one cap meets the cylinder to the point where the other cap meets the cylinder. The total length is h + 2r, which accounts for the full span of the capsule from one rounded end to the other. These three values — radius, straight length, and total length — keep the inputs unambiguous and prevent the most frequent calculation errors.
With those measurements defined, the volume formula is pi·r²·h + (4/3)·pi·r³. The first term, pi·r²·h, is the volume of the cylindrical section. The second term, (4/3)·pi·r³, is the combined volume of the two hemispherical caps, which equals the volume of one full sphere of the same radius. The surface area follows the same logic: 2·pi·r·h + 4·pi·r², where the first term is the cylinder wall and the second term is the sphere's surface. Total length equals h + 2r in every case.
To verify the formulas with real numbers, consider a capsule where r = 2 and h = 5. The volume is 96.34, which breaks down as 62.83 for the cylinder and 33.51 for the two caps. The surface area is 113.10, and the total length is 9.00. A second example with r = 1.5 and h = 4 gives a volume of 42.41 and a surface area of 65.97. A third example with r = 3 and h = 10 gives a volume of 395.84 and a surface area of 301.59. Each of these examples confirms that entering the straight-section length, not the total length, produces the correct result.
Capsule shapes appear in pharmaceutical capsules, propane-style tanks, and pressure vessels because the rounded ends handle pressure evenly. The geometry is the same whether the application is a medication measured in millimeters or an industrial tank measured in feet — identify the radius, confirm the straight-section length, and let the formulas do the rest.
Worked examples
The following worked examples show how a capsule volume calculator breaks down the total volume into its two parts: the cylindrical section and the hemispherical caps. Each capsule is a cylinder of length h capped by two hemispheres of radius r, which together make one full sphere. The formula for volume is pi·r²·h + (4/3)·pi·r³, where the first term is the cylinder and the second is the combined caps. The surface area formula is 2·pi·r·h + 4·pi·r², and the total length equals h + 2r.
In the first example, a capsule with radius 2 and straight-section length 5 produces a total volume of 96.34. The cylinder contributes 62.83, while the two hemispherical caps contribute 33.51. The surface area is 113.10, and the total length is 9.00. This example illustrates how the cap volume can account for roughly a third of the total when the radius is large relative to the cylinder length.
The second and third examples demonstrate capsules of different proportions. A capsule with radius 1.5 and length 4 has a volume of 42.41 and a surface area of 65.97. A larger capsule with radius 3 and length 10 has a volume of 395.84 and a surface area of 301.59. In all cases, the straight-section length h excludes the caps — a common mistake is to enter the total length, which double-counts the ends. Capsule shapes appear in pharmaceutical capsules, propane-style tanks and pressure vessels because the rounded ends handle pressure evenly.
| Radius r | Cylinder length h | Cylinder volume | Cap volume | Total volume | Surface area | Total length |
|---|---|---|---|---|---|---|
| 2 | 5 | 62.83 | 33.51 | 96.34 | 113.10 | 9.00 |
| 1.5 | 4 | — | — | 42.41 | 65.97 | — |
| 3 | 10 | — | — | 395.84 | 301.59 | — |
Capsule vs cylinder vs spherinder
A capsule is a cylinder of length h capped by two hemispheres of radius r, which together make one full sphere. The full volume formula is pi·r²·h + (4/3)·pi·r³, and the surface area is 2·pi·r·h + 4·pi·r², which is the cylinder wall plus the sphere's surface. The total length is h + 2r. This matters because the straight-section length h excludes the caps, yet people often measure the total length of the tank and enter that as h. That double-counts the ends and inflates every result. When you use a capsule volume calculator, enter the length of the straight cylindrical section only, not end to end.
A capsule holds less than the bounding cylinder that would enclose it, because the rounded ends cut inward from the flat caps a plain cylinder would have. Take a capsule with radius 2 and straight-section length 5. Its total length is 9.00. The volume is 96.34, split between the cylinder at 62.83 and the two caps at 33.51. The surface area is 113.10. A flat-ended cylinder with the same radius and total length of 9 would have a larger volume, because flat ends cover more area than hemispheres that curve inward. The tradeoff is that flat ends handle pressure poorly, which is why capsule shapes appear in pharmaceutical capsules, propane-style tanks and pressure vessels: the rounded ends handle pressure evenly.
A second verified example shows the same pattern. With radius 1.5 and straight-section length 4, the volume is 42.41 and the surface area is 65.97. With radius 3 and straight-section length 10, the volume is 395.84 and the surface area is 301.59. In each case the total length is longer than h by exactly 2r, and that distinction is what separates a capsule from a sphere-ended tank measured by total length.
Some tanks are specified by total length, with the end caps already included in that figure. If you have a total-length measurement, subtract 2r first to recover the straight-section length h, then run the calculation. If you instead have the straight-section length, use it directly. Mixing the two is the most common source of error, and it can throw off volume and surface area by a wide margin.
Real capsules: tanks and pills
A capsule is a cylinder of length h capped by two hemispheres of radius r, which together make one full sphere. The capsule volume calculator uses the formula volume = pi·r²·h + (4/3)·pi·r³, where the first term is the cylindrical section and the second is the combined end caps. Surface area works the same way: 2·pi·r·h for the cylinder wall plus 4·pi·r² for the sphere's surface, giving a total of 2·pi·r·h + 4·pi·r². The total length of the shape is h + 2r.
Capsule shapes appear in pharmaceutical capsules, propane-style tanks and pressure vessels because the rounded ends handle pressure evenly. In pressure service, the end caps are hemispheres rather than flat or elliptical for a straightforward mechanical reason: a hemisphere spreads internal pressure uniformly in all directions, so the material carries stress evenly across its surface. Flat ends would bend under pressure, concentrating stress at the seam where the flat plate meets the cylinder wall. Elliptical heads are used in some vessels, but they introduce stress variations between the crown and the rim. A true hemisphere avoids both problems, which is why storage tanks and similar pressure vessels favor the capsule form.
Pharmaceutical capsules use the same geometry on a much smaller scale. The two halves of a pill capsule overlap to form a cylindrical body with rounded ends, and the same volume formula applies whether the radius is measured in meters or millimeters. Dosage fill volume depends on the internal radius and the straight-section length, so manufacturers specify capsule sizes by these dimensions. The math does not change between a propane tank and an oral medication — only the units do.
One common mistake when using a capsule volume calculator is entering the total length as h. The straight-section length h excludes the caps, so using the overall dimension double-counts the ends and inflates the result. The correct approach is to subtract the two radii from the total length first, then enter that smaller value as h. For example, a capsule with radius 3 and total length 16 has h = 10, giving volume 395.84 and surface area 301.59. A radius of 2 with h = 5 gives volume 96.34 (cylinder 62.83 plus caps 33.51), surface area 113.10, and total length 9.00. At radius 1.5 and h = 4, the volume is 42.41 and the surface area is 65.97.
FAQs
How do you calculate the volume of a capsule?
Add the cylinder and the two caps (one sphere): pi·r²·h + (4/3)·pi·r³. For r = 2, h = 5: 62.83 + 33.51 = 96.34. This gives the total volume of the capsule shape.
Is the length the total length or the straight section?
This calculator takes the straight (cylindrical) section; the caps add another 2r, so total length = h + 2r (9.00 in the first example). Enter the length of the cylindrical portion only.
What is the surface area of a capsule?
2·pi·r·h for the wall plus 4·pi·r² for the sphere the caps form: 113.10 square units for r = 2, h = 5. This accounts for both the curved side and the two hemispherical end caps.
What if the straight section is zero?
The capsule becomes a sphere: volume (4/3)·pi·r³ and surface area 4·pi·r², which the same formulas return. With no cylindrical middle, you simply have a ball with radius r.
What units does the calculator use?
Any consistent unit — enter the radius and length in cm and the volume is in cm³ (millilitres); in metres it is m³. Just keep the units the same for both inputs.
Why are tanks capsule-shaped?
Hemispherical ends distribute internal pressure without the stress concentrations of flat ends or sharp corners. This makes the shape safer and more durable for holding pressurized liquids or gases.