Capsule Volume Calculator
This capsule volume calculator works out the volume of a cylinder with a half-sphere on each end, the shape of many propane and pressure tanks and of medicine capsules. Enter the radius and the length of the straight middle part. The answer updates as you type.
Capsule Volume Calculator
Capsule volume formula
V = πr²h + 4/3 πr³ = cylinder + one whole sphere (the two half-sphere ends) r = radius, h = length of the straight middle section Total length = h + 2r Surface area = 2πr(2r + h)A capsule is easiest to think of in pieces. Cut off the two rounded ends and you have a cylinder. Put the two ends together and they make a full sphere of the same radius. Add the two volumes and you have the capsule.
Worked example: a tank with rounded ends
A horizontal tank is 2 ft across (radius 1 ft), with a straight middle section 4 ft long, so it's 6 ft from end to end.
Cylinder = π × 1² × 4 = 12.57 ft³ Ends (one sphere) = 4/3 × π × 1³ = 4.19 ft³ V = 16.76 ft³ = 474.45 liters = 125.34 US gallonsFull, it holds 16.76 ft³, which is 474.45 liters or 125.34 US gallons. Its surface area is 2π × 1 × (2 + 4) = 37.7 ft².
When the ends aren't half-spheres
Many real tanks have shallower, dished ends (often called 2:1 elliptical heads). They hold less than half-spheres would, so this formula gives an upper limit. For those, an ellipsoid half on each end is a closer model, and the manufacturer's stated capacity is better still. Tanks are also usually filled to about 80% for safety, so usable volume is less than the full figure.
For other shapes, the volume calculator has a quick calculator for each one, and links to its own page.
Frequently asked questions
What is the volume of a capsule?
The cylinder in the middle plus the two half-spheres, which together make one whole sphere: V = πr²h + 4/3 πr³. With r = 1 ft and a 4 ft middle, V = 4π + 4/3π ≈ 16.76 cubic feet.
What length do I enter?
The length of the straight middle section only, h. The total length end to end is h + 2r, which the calculator shows too. If you only know the total length L, use h = L − 2r.
Is a propane tank a capsule?
Many horizontal tanks are close to one, but their ends are often flatter than a full half-sphere. For those, the capsule formula slightly overestimates. Use the tank's rated capacity when it's printed on the tank.
See also
- Cylinder Volume Calculator: Volume of a cylinder or round tank from radius and height.
- Sphere Volume Calculator: Volume of a sphere or ball from its radius.
- Tube Volume Calculator: Volume of a pipe's wall and how much the pipe holds.
- Ellipsoid Volume Calculator: Volume of an oval solid from its three semi-axes.
Last updated: November 28, 2026