What is an elliptic cylinder?
An elliptic cylinder (here: a right elliptic cylinder) is the solid swept by an ellipse with the semi-axes a and b when it is moved straight up by the height h. Its two ends are equal ellipses and its side is perpendicular to them. With a equal to b it is the ordinary circular cylinder.
This calculator finds the volume, the total surface area, the surface-to-volume ratio, the lateral (side) area, the perimeter of the base ellipse and the area of one base.
How to use it
Enter the two semi-axes a and b of the base ellipse and the height h. The semi-axes may be entered in either order: the page uses the longer one as the major semi-axis, so a 5 by 3 base and a 3 by 5 base give the same numbers. 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
Every cut parallel to the base is the same ellipse, whose area is πab, so the volume is the base area times the height. Unrolled, the side is a rectangle whose width is the perimeter P of the ellipse and whose height is h:
$$V = \pi a b h, \qquad A_{side} = P h, \qquad A = P h + 2 \pi a b$$The perimeter is the length of the curve (a cos t, b sin t) for t from 0 to 2π, a complete elliptic integral of the second kind, which has no closed form in elementary functions unless a equals b (then P = 2πa):
$$P = \int_0^{2\pi} \sqrt{a^2 \sin^2 t + b^2 \cos^2 t} \, dt$$The page evaluates this integral with the arithmetic-geometric mean of Gauss. Start from a₀ = a, b₀ = b (a the longer semi-axis) and c₀² = a² − b², and repeat an+1 = (an + bn)/2, bn+1 = √(anbn), cn+1 = cn²/(4an+1). The two means meet at M(a, b) and the cn shrink so fast that each step roughly doubles the number of correct digits (even a base a thousand million times longer than wide needs only about a dozen steps); then
$$P = \frac{2\pi}{M(a, b)} \left( a^2 - \sum_{n \ge 0} 2^{n-1} c_n^2 \right)$$No approximation formula (such as Ramanujan's) is used. When the page was built, this sum was compared on eighteen ellipses, from a circle to a base a thousand million times longer than wide, with Carlson's symmetric elliptic integrals and with a direct numerical integration, and the three agreed to more than 80 significant digits.
With a equal to b the surface-to-volume ratio is 2/a + 2/h, which the page gives as an exact quotient of the values you enter.
Worked example
With the default semi-axes 5 and 3 and height 8 the base ellipse has the perimeter 25.526999 and the area 47.12389, so the volume is about 376.991118 cubic units, the side area about 204.215991 and the total surface area about 298.463771 square units.
FAQ
Which inputs are refused?
A semi-axis or height that is 0 or negative, text that is not a number and values outside the range. Every pair of semi-axes in the range is answered, in either order.
Why is the perimeter not just π(a + b)?
π(a + b) is the perimeter only of a circle. For an ellipse the perimeter is an elliptic integral; the page computes it to all the digits it shows instead of using an approximation formula.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
Accuracy and input range
The page computes every result from the values you enter: the surface-to-volume ratio exactly when a equals b; the other results with π and the values you enter to at least 80 significant digits, the ellipse perimeter by the arithmetic-geometric mean iteration with 20 extra digits, stopped once its next correction is smaller than 10⁻¹⁰⁰ of the result. Each value is rounded once, half up, to the digits shown; when a value lies within 10⁻⁷⁵ of a rounding boundary (relative to its size) the page repeats the calculation with 160 and then 320 digits first, so every digit shown is correct unless a result lies within about 10⁻³¹⁵ of such a boundary.
Enter each length from 0.000001 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)
P. F. Byrd, M. D. Friedman, Handbook of Elliptic Integrals for Engineers and Scientists, 2nd ed., Springer, 1971 (the complete elliptic integral of the second kind)