What is a frustum-pyramid?
A frustum-pyramid is a regular n-gonal frustum with a matching regular pyramid on one of its faces: the frustum has the edge a on the face under the pyramid, the edge b on the free face and the height i, and the pyramid of height j stands on the face a. The total height is h = i + j. Faces: the free n-gon, n isosceles trapezoids and n isosceles triangles; 2n + 1 faces, 4n edges, 2n + 1 vertices. When b is shorter than a the pyramid stands on the wide face, as in a crystal; when b is longer it stands on the narrow face, as in an obelisk. With a = b the frustum is a prism and the solid is an elongated pyramid. For the frustum alone see the pyramid frustum calculator.
This calculator finds the volume, the surface area, the surface-to-volume ratio and the three heights.
How to use it
Enter the number of sides n, the edges a and b and two of the three heights: frustum height i, pyramid height j or total height h. The values you enter are shown back unchanged 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 very large and very small values out in full.
Derivation of the formulas
A regular n-gon with edge s has the inradius \(r = s/(2\tan(\pi/n))\) and the area \(P(s) = ns^2/(4\tan(\pi/n))\). The frustum between the faces P(a) and P(b) and the pyramid on P(a) give
$$V = \frac{i}{3}\left(P_a + P_b + \sqrt{P_a P_b}\right) + \frac{j}{3}P_a$$Each trapezoid has the parallel sides a and b and the slant height \(\sqrt{i^2 + (r_a - r_b)^2}\); each triangle has the base a and the slant height \(\sqrt{j^2 + r_a^2}\):
$$A = P_b + \frac{n(a + b)}{2}\sqrt{i^2 + (r_a - r_b)^2} + \frac{na}{2}\sqrt{j^2 + r_a^2}$$The face P(a) lies inside the solid and does not count. From the total height, j = h − i or i = h − j, so h must be greater than the other height. Euler's formula holds: (2n + 1) − 4n + (2n + 1) = 2.
Worked example
The default frustum-pyramid has n = 6, a = 4, b = 2, i = 3 and j = 2, so the total height is 5. Its volume is about 100.458947 cubic units and its surface about 120.746134 square units.
FAQ
May b be longer than a?
Yes. The pyramid then stands on the narrow face, and the solid looks like an obelisk; the result note says which case you have.
Is the face between the frustum and the pyramid part of the surface?
No. It lies inside the solid, so only the free face b, the trapezoids and the triangles count.
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 n as a whole number from 3 to 100 and 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 and polyhedra)