What is a hollow pyramid?
A hollow pyramid here is a right regular pyramid (base a regular polygon with n sides of length a, apex at the height h above the centre of the base) from which a second pyramid on the same base, with the smaller height j, is removed. What is left is a pyramid-shaped shell, open at the bottom, like a tent with a thick roof: it is i = h − j thick on the axis and thins to a sharp edge along the base polygon. The base polygon is not a face of the solid; the surface is the outer faces plus the inner faces.
This calculator finds the volume, the total surface area, the surface-to-volume ratio, the thickness on the axis and the inner height, the slant heights and lateral areas of the outer and inner faces, the outer and inner lateral edges and the area of the base polygon.
How to use it
Choose whether you know the height j of the removed inner pyramid or the thickness i on the axis, then enter the number of sides n (a whole number from 3 to 1,000), the side a and the outer height h. The inner height j may be 0 (nothing is removed) and must be less than h; the thickness i must be above 0 and at most h. 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
Both pyramids stand on the same base of area B = n a² / (4 tan(π/n)), so the volume is the difference of the two pyramid volumes:
$$V = \frac{B h}{3} - \frac{B j}{3} = \frac{B \, i}{3}$$A face of a pyramid of height x is a triangle with the base a and the slant height √(ρ² + x²), where ρ = a / (2 tan(π/n)) is the inradius of the base; its lateral edge is √(R² + x²) with the circumradius R = a / (2 sin(π/n)). The surface is the n outer and the n inner faces:
$$A = \frac{n a}{2} \left( \sqrt{\rho^2 + h^2} + \sqrt{\rho^2 + j^2} \right)$$With ρ tan(π/n) = a/2 the surface-to-volume ratio becomes
$$\frac{A}{V} = \frac{3 \left( \sqrt{a^2 + 4 h^2 \tan^2(\pi/n)} + \sqrt{a^2 + 4 j^2 \tan^2(\pi/n)} \right)}{a \, i}$$With j equal to 0 the inner faces lie flat in the base: their area is the base area B, and the solid is a plain pyramid.
These formulas were checked when the page was built against the solid built from its corner points: its volume by the divergence theorem and its surface as the sum of its face areas.
Worked example
With the default regular pentagon of side 6, outer height 5 and inner height 3 the shell is 2 thick on the axis, the volume is 41.291458 cubic units and the surface area 173.82735 square units (outer faces 97.268777, inner faces 76.558573).
FAQ
Which inputs are refused?
An inner height j equal to or greater than h, a thickness i greater than h, a number of sides that is not a whole number from 3 to 1,000, a side or height that is 0 or negative (j may be 0), a typed j above 0 but below 0.000001, text that is not a number and values outside the range.
Why is the base not in the surface area?
The removed pyramid stands on the same base, so the solid has no floor: along the base polygon the outer and inner faces meet in a sharp edge. The page shows the area of that polygon for reference only.
Is the wall equally thick everywhere?
No. Measured straight up, the shell is i thick on the axis and gets thinner towards the base polygon, where the outer and inner faces meet in an edge.
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?
Each value is rounded once to the digits shown, a value exactly halfway being rounded up, from a calculation carried well beyond those digits: 80 significant digits (π to 90 digits, the sine and cosine of π/n as series, square roots to that precision); the two heights and, for a square base, the volume and the base area are exact. When a value lies very close to the halfway point between two shown values, the page recalculates with 160 and then 320 digits, and a value that can come out rational (for a base with 3, 4 or 6 sides, square roots that terminate) is decided exactly if 320 digits still cannot tell its side. A value typed with hundreds of digits can still lie closer to a halfway point than that, and its last shown digit may then be off by one.
Accuracy and input range
Each value is rounded once to the digits shown, a value exactly halfway being rounded up, from a calculation carried well beyond those digits: 80 significant digits (π to 90 digits, the sine and cosine of π/n as series, square roots to that precision); the two heights and, for a square base, the volume and the base area are exact. When a value lies very close to the halfway point between two shown values, the page recalculates with 160 and then 320 digits, and a value that can come out rational (for a base with 3, 4 or 6 sides, square roots that terminate) is decided exactly if 320 digits still cannot tell its side. A value typed with hundreds of digits can still lie closer to a halfway point than that, and its last shown digit may then be off by one.
Enter each length from 0.000001 to 1,000,000,000 and for the boxes marked as allowing 0, either 0 or a length from 0.000001 to 1,000,000,000 and the number of sides n as a whole number from 3 to 1,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 (polyhedra, prisms, pyramids and frusta)