What is a flat end cylinder?
A flat end cylinder is a right circular cylinder (radius r, height h) whose bottom end is pressed flat into a straight edge, like the end of a squeezed tube. Two plane cuts run from the bottom diameter up to the two opposite points of the top rim and remove two equal cylindrical hoofs (ungulas). The solid keeps the top disc, two flat half ellipses that meet along the straight edge at the bottom and the rest of the curved side. The side length l, from the middle of the edge to the top rim, is the long half axis of each half ellipse.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the radius, height and side length you did not enter, the length of the straight edge, the angle between the two flat faces at the edge and the areas of the half ellipses, the curved side and the top disc.
How to use it
Enter two of the radius r, the height h and the side length l. Because l² = r² + h², the side length must be longer than the radius and longer than the height. The values you enter are shown back rounded like the results, to at most 6 decimal places (their full digits are used in the calculation), and every other measure is solved from them. 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
Put the bottom diameter on the y axis. The two cuts are the planes z = h x / r and z = −h x / r, so the solid keeps the points of the cylinder with z at least h|x|/r. Each removed hoof (a classical ungula) stands on a half disc. Cut it across the edge at the distance y from the middle of the edge: the slice is a right triangle with the legs √(r² − y²) along the bottom and h√(r² − y²)/r upright, of area h(r² − y²)/(2r). Adding these slices from y = −r to y = r gives (h/(2r))·(2r³ − 2r³/3) = 2r²h/3 for each hoof, so
$$V = \pi r^2 h - \frac{4 r^2 h}{3} = r^2 h \left(\pi - \frac{4}{3}\right)$$Each flat face is the half disc x ≥ 0 lifted onto a plane of slope h/r, so it is a half ellipse with the half axes r and l = √(r² + h²), of area πrl/2. The curved side at the angle φ runs from h|cos φ| to h; the mean of |cos φ| over a full turn is 2/π, so
$$A = \pi r^2 + \pi r l + 2 r h (\pi - 2)$$The two faces meet along the edge of length 2r at the angle 2·arctan(r/h). From r and l (or h and l) the page finds the third length as √((l − r)(l + r)), with l − r taken exactly from the typed digits.
Worked example
The default cylinder has r = 3 and h = 4, so l = 5. The volume is about 65.097336 cubic units and the surface area about 102.796447 square units; the straight edge is 6 long.
FAQ
Why is the volume not a simple fraction of the cylinder?
The two hoofs together take 4r²h/3, a fixed share 4/(3π), about 42.4 percent, of the cylinder; what is left is r²h(π − 4/3), about 57.6 percent.
What is the side length l?
It is the distance from the middle of the straight edge to the top rim along a flat face, the long half axis of the half ellipse. Its square is r² + h².
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?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
W. Gellert, S. Gottwald, M. Hellwich, H. Kästner, H. Küstner (eds.), The VNR Concise Encyclopedia of Mathematics, 2nd ed., Van Nostrand Reinhold, 1989, ch. 11 (cylindrical hoof (ungula), spherical segment and zone, truncated solids)
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (solids of revolution, spherical and conical solids)