Cylinder + two domes · Radius or diameter · Exact formula

Capsule Volume Calculator

A capsule is a cylinder with hemispherical ends. Enter the radius and the straight middle length to get its total volume, with the two terms shown separately.

  • ✓ Radius or diameter input
  • ✓ Two-term exact formula
  • ✓ Cubic and liquid units
Formula with your numbers V = πr²L + (4/3)πr³
Volume

— cm³

Enter the values above — the volume updates instantly.

Quick answer: V = πr²L + (4/3)πr³ — the cylinder plus a complete sphere made from the two end caps. With r = 3 cm and L = 10 cm: 90π + 36π = 395.8 cm³.

Why the two hemispheres make a sphere

The end caps are identical half-spheres, so together they have the volume of one full sphere: (4/3)πr³. The central barrel contributes πr²L. Adding them gives the exact capsule volume. Note that L is the length of the straight section only — not the overall tip-to-tip length, which is L + 2r.

Worked example: a pill-shaped tank

A horizontal capsule tank is 1 m in diameter (r = 0.5 m) with a 3 m straight section.

  1. Barrel: π × 0.5² × 3 = 2.356 m³
  2. Ends: (4/3)π × 0.5³ = 0.524 m³
  3. Total: 2.880 m³ ≈ 2,880 litres

Enter the overall length instead? Subtract the diameter first: overall 4 m gives L = 3 m.

Where capsule volume is useful

Capsule geometry appears in pharmaceutical capsules, horizontal storage tanks, inflatable structures, and food portioning. For partially filled horizontal tanks, the liquid surface cuts both the cylinder and the end caps, so a simple fraction of the total is not accurate — that calculation is covered by dedicated tank tools.

Why this calculation matters in practice

Questions about capsule volume calculator tend to arrive with a decision attached: how much material to order, whether a container will hold a batch, what a space will cost to heat, or whether a shipment will be charged by size rather than weight. The calculation is the small, controllable part of that decision. Getting it right prevents the expensive part — buying too much, discovering too late that something does not fit, or quoting a job below its real cost.

Professionals use these formulas in two distinct ways. The first is estimation at the planning stage, where a quick answer within a few percent is enough to compare options and set a budget. The second is verification at the end, where a measured result has to be checked before it becomes an invoice or an order. The same formula serves both, but the required precision differs: be generous with rounding in a budget, and rigorous with units and dimensions in a final quantity.

The related calculators linked below cover the common special cases — a different shape, a partial fill, or a conversion into the units your supplier uses. Using the dedicated tool for the exact case removes the need to remember which correction factor applies, leaving you to focus on the measurement that actually varies from job to job.

Small errors compound across a project. An under-estimate of a few percent on each of ten repeated items becomes a noticeable shortfall in the order as a whole, which is why professionals add a wastage allowance rather than relying on exact arithmetic. The calculator gives the theoretical figure for one item; planning adds the practical margin for all of them. Keeping those two numbers separate in your records makes it easy to see where the material actually went.

A useful discipline is to keep a single "home" unit for all your records and convert only when a result is consumed. Store every measurement in one consistent system so two jobs can be compared directly and summed without conversion arithmetic at the comparison stage. Note the home unit in your notes: a spreadsheet column labelled only with a number is a liability, while one labelled with its unit is an asset that survives handover.

Small errors compound across a project. An under-estimate of a few percent on each of ten repeated items becomes a noticeable shortfall in the order as a whole, which is why professionals add a wastage allowance rather than relying on exact arithmetic. The calculator gives the theoretical figure for one item; planning adds the practical margin for all of them. Keeping those two numbers separate makes it easy to see where the material actually went.

When a result contradicts your expectation, resist the urge to average it with a guess. Re-enter the inputs from scratch, confirm each unit selector, and compare against a bounding shape. Nine times out of ten the discrepancy is a diameter entered as a radius, a slant height used as a vertical height, or two systems of units mixed in one calculation. Finding the cause teaches you more than adjusting the answer to look right.

Precision and accuracy are different. A tool that prints eight decimal places is precise but not necessarily accurate if the inputs were rounded. Report the final figure with no more significant figures than the least certain measurement justifies; a tape read to the nearest centimetre does not support a result quoted to the nearest cubic millimetre. Where stakes are high, state the assumption and the tolerance together.

Common mistakes & practical tips

Frequently asked questions

What is the formula for capsule volume?

V = πr²L + (4/3)πr³, where r is the radius and L the length of the straight central section.

What is the difference between overall length and L?

Overall length = L + 2r. Subtract one full diameter from the tip-to-tip measurement to get L.

What if L is zero?

The capsule becomes a sphere and the formula reduces to (4/3)πr³.

How many litres is a capsule with r = 5 cm, L = 20 cm?

π×25×20 + (4/3)π×125 ≈ 1,571 + 524 = 2,095 cm³ ≈ 2.09 litres.

Can I use this for a rounded rectangle in 2D?

No — this is a three-dimensional solid of revolution. The 2D analogue is a stadium shape with area 2rL + πr².