Capsule Segment Calculator

Capsule Segment Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

V=h(r2θ−(r−f)ρ)+πf2(3r−f)3,A=2rθh+2πrf+2ρh+πρ2V = h \left(r^2 \theta - (r - f) \rho\right) + \frac{\pi f^2 (3r - f)}{3}, \quad A = 2 r \theta h + 2 \pi r f + 2 \rho h + \pi \rho^2
Show calculation steps (1)
  1. Volume

    V=h(r2θ−(r−f)ρ)+πf2(3r−f)3V = h \left(r^2 \theta - (r - f) \rho\right) + \frac{\pi f^2 (3r - f)}{3}

    Segment of the cylinder plus a spherical cap.

Usage stats

Advertisement

Results

Volume V
4.075472
cubic units
Surface area A 23.015206 square units
Surface-to-volume ratio A/V 5.647249 per unit
Length of the flat cut face 5.83303 units
Width of the flat cut face 1.83303 units
Area of the flat cut face 9.971059 square units
Curved surface below the cut 13.044147 square units
Volume of the whole capsule 16.755161 cubic units

Report an error on this page

What is a capsule segment?

A capsule segment is the part of a horizontal capsule that lies below a horizontal plane. The capsule is a cylinder of radius r and length h with a half ball of radius r on each end, lying on its side; the plane is at the height f above its lowest line, with f between 0 and the diameter 2r. It is the shape of the liquid in a capsule tank filled to the depth f. For tank capacities in litres and gallons by filling depth, use the tank volume and fill calculator; this page is the geometry of the solid. The tank calculator asks for the diameter and the cylinder length: enter half that diameter as r here and that length as h.

This calculator finds the volume, the surface area, the surface-to-volume ratio, the length, width and area of the flat cut face, the curved surface below the cut and the volume of the whole capsule.

How to use it

Enter the radius r, the length h of the cylinder part (0 for a ball) and the filling height f, measured up from the lowest line; f must be less than 2r. Every measure is solved from the values you enter. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.

Derivation of the formulas

Seen end on, the plane cuts the circle of radius r at the distance d = r − f from the centre. The wetted arc spans the angle 2θ with cos θ = (r − f)/r, that is θ = 2·arctan(√(f/(2r − f))), between 90° and 180° when f is more than r, and the half-width of the cut is ρ = √(f(2r − f)). The cylinder part holds a circular segment times its length; the two half balls together make a ball cut at the height f, a spherical cap (Archimedes):

$$V = h \left(r^2 \theta - (r - f) \rho\right) + \frac{\pi f^2 (3r - f)}{3}$$

The curved surface below the plane is the wetted strip of the cylinder side, 2rθ long around and h along, plus the spherical zone of height f, which has the area 2πrf. The flat cut face is a rectangle h × 2ρ with a half disc of radius ρ at each end:

$$A = 2 r \theta h + 2 \pi r f + 2 \rho h + \pi \rho^2$$

The page computes θ as an arc tangent rather than as arccos((r − f)/r), which would lose digits for a nearly empty capsule, and it decides the condition f less than 2r on the typed digits.

Worked example

With the default radius 1, cylinder length 4 and filling height 0.6 the segment holds about 4.075472 cubic units of the 16.755161 of the whole capsule, and its surface area is about 23.015206 square units.

Advertisement
Cutaway of a horizontal capsule showing the radius, cylinder length, and filling height in the worked example.
The worked example uses radius 1, cylinder length 4, and filling height 0.6.

FAQ

Which inputs are refused?

A filling height that is not less than 2r (the plane would not cut the capsule), a radius or filling height that is 0 or negative, a negative cylinder length, text that is not a number and values outside the range.

Does it match the tank calculator?

Yes for the volume: a capsule tank of diameter 6 m and cylinder length 10 m filled to 3 m holds 197.920337 m³ on this page, the 197,920.34 litres the tank calculator shows.

Does the unit change the numbers?

No. Geometry does not depend on the unit, so the unit only labels the results.

How accurate are the results?

Every digit shown is correct: the page computes each result with 80 significant digits (π to 90 digits, square roots and the arc tangent to that precision, differences of the values you enter exactly) and rounds it once to the digits shown.

Advertisement
The worked example's inputs lead to filled volume, whole capsule volume, and segment surface area.
The segment holds about 4.075472 cubic units out of the whole capsule’s 16.755161 cubic units. Its surface area is about 23.015206 square units.

Accuracy and input range

Every digit shown is correct: the page computes each result with 80 significant digits (π to 90 digits, square roots and the arc tangent to that precision, differences of the values you enter exactly) and rounds it once to the digits shown.

Enter each length from 0.000001 to 1,000,000,000 and the boxes marked as allowing 0 from 0 to 1,000,000,000. Anything outside is refused with a message naming the range.

References

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (solids of revolution, spherical and conical solids)

Archimedes, On the Sphere and Cylinder, Book I (the zone of a sphere has the area 2πRh); T. L. Heath (ed.), The Works of Archimedes, Cambridge University Press, 1897

Last updated:

Most popular in Geometry

View all Geometry calculators