A capsule volume calculator works out how much a capsule-shaped object holds: a cylinder with a half-sphere on each end, like a pill, a propane tank or a rounded storage vessel. Enter the radius or diameter and the length, either of the straight part or end to end, and this capsule volume calculator gives the volume in cubic units, the capacity in gallons and liters, and the surface area. US units are the default, with metric a click away.
How to use the capsule volume calculator
- Choose US or Metric units.
- Say whether you know the radius or the diameter, and enter it.
- Say how the length was measured: the straight, cylindrical part only, or the whole capsule from end to end.
- Enter the length and choose the unit used for both measurements.
- Press Calculate.
What a capsule is
In geometry, a capsule, also called a stadium of revolution or a spherocylinder, is a basic three-dimensional shape made of a cylinder with hemispherical ends. The name comes from the Latin capsula, a small box or chest. The shape is used for containers of pressurized gas, some building domes and pharmaceutical capsules, and in chemistry and physics as a simple model of rod-shaped particles. It's the shape you get by spinning a two-dimensional stadium, a rectangle with semicircular ends, around its long axis.
Capsule volume formula
The two hemispheres together make one whole sphere of radius r, so the volume is a sphere plus a cylinder of the same radius and height h:
V = (4/3)πr³ + πr²h = πr²((4/3)r + h)
The surface area is 2πr(2r + h): the surface of the sphere, 4πr², plus the curved side of the cylinder, 2πrh. Here h is the length of the straight part only. If you measured end to end, subtract the diameter first: h = overall length − 2r.
Worked examples
- Straight length given: a capsule with a radius of 3 inches and a straight part 10 inches long has a volume of π × 3² × (4 + 10) = 126π ≈ 395.84 cubic inches, about 1.714 US gallons or 6.487 liters. Its surface area is 2π × 3 × (6 + 10) = 96π ≈ 301.59 square inches, and it's 16 inches long overall.
- Overall length given: a tank 1 meter in diameter and 3 meters long from end to end has r = 0.5 m and a straight part of 3 − 1 = 2 m. Its volume is π × 0.25 × (0.667 + 2) ≈ 2.094 cubic meters, or about 2,094 liters.
Where capsule shapes appear
- Propane and other gas tanks: rounded ends handle pressure better than flat ones.
- Medicine capsules and some vitamins.
- Storage and water tanks with rounded ends.
- Engineering and science: models of rod-like molecules, particles in granular materials and collision shapes in games and simulations.
Tips for measuring
Measure the diameter across the widest part of the cylinder; it's usually easier than finding the radius, and the calculator halves it for you. For the length, it's often simplest to measure the whole object end to end and choose End to end. For a tank, use the inside measurements if you want how much it holds, because the walls take up space. Real tanks often have ends that are flatter than a true half-sphere, so treat the result as an estimate for those.
Units and capacity
The volume is shown in cubic versions of the unit you entered, such as cubic inches or cubic centimeters. The capacity rows convert it to US gallons and liters: one US gallon is exactly 3.785411784 liters, and one liter is 1,000 cubic centimeters. When the straight part is zero, the capsule is simply a sphere, and the calculator gives the sphere's volume.
How the parts add up
The results table splits the volume into the straight, cylindrical part and the two rounded ends. This is useful when a tank is only partly made of a cylinder, or when you want to see how much difference the rounded ends make: for a long, thin capsule most of the volume is in the cylinder, while for a short, wide one the ends hold the most.
Capsule, cylinder and sphere
A capsule sits between two simpler shapes. With no straight part it's a sphere, so the volume is (4/3)πr³. As the straight part grows, the capsule behaves more and more like a plain cylinder, and the rounded ends matter less. Compared with a flat-ended cylinder of the same overall length, a capsule holds less, because the rounded ends cut off the corners. Compared with a cylinder of the same straight length, it holds more, because the ends add a whole sphere's worth of volume. The table of results shows both parts separately, so you can see which one dominates for your shape.
Filling a capsule tank
Tanks are rarely filled to the very top, because gases and liquids need room to expand. If a supplier quotes a maximum fill percentage, multiply the capacity by it: for example, a tank that holds 100 gallons filled to 80% holds 80 gallons. Check the label or manual for the figure that applies to your tank.
Common mistakes
- Using the overall length as the straight length. That counts the ends twice.
- Mixing up the radius and the diameter.
- Mixing units, such as a radius in inches and a length in feet.
- Forgetting the wall thickness when you need the inside capacity.
What next
Use this often? Add Capsule Volu to your Home screen.
Frequently asked questions
How does the capsule volume calculator work?
It uses V = πr²((4/3)r + h), where r is the radius and h is the straight length, then converts the volume to gallons and liters.
What is the formula for the volume of a capsule?
V = (4/3)πr³ + πr²h: a sphere for the two ends plus a cylinder for the middle.
What if I only know the overall length?
Choose End to end. The calculator subtracts the diameter to find the straight part.
What is the surface area of a capsule?
2πr(2r + h). A capsule with r = 3 in and h = 10 in has about 301.59 square inches.
Can I use metric units?
Yes. US units are the default; switch to Metric for millimeters, centimeters and meters.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.