What is a bipyramid?
A bipyramid (or dipyramid) is two congruent pyramids joined base to base. The two apexes lie on opposite sides of the common base, each at the height h above it, on the line through the centre of the base perpendicular to it. The base may be any polygon: with its area As the volume is fixed. With a regular n-gon of side a as the base every face is the same isosceles triangle, and the page gives all measures; the regular bipyramid calculator solves that case from more starting values (total height, slant height, lateral edge, volume, surface or face angle). The Johnson bipyramids are the triangular and pentagonal ones whose faces are all equilateral.
This calculator finds the volume and the total height for any base, and for a regular base also the total surface area, the surface-to-volume ratio, the lateral edge, the slant height of a face, the area of one face and the area of the common base.
How to use it
Choose the kind of base. For a regular base enter the number of sides n (a whole number from 3 to 1,000), the side a and the height h of each pyramid; for any base enter its area As and the height h. The height h is measured from one apex to the base, so the solid is 2h tall. 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
Each pyramid has the volume As·h/3, and the bipyramid is two of them:
$$V = \frac{2}{3} A_s h$$For a regular n-gon of side a, the circumradius is R = a / (2 sin(π/n)) and the inradius ρ = a / (2 tan(π/n)), and the base area is As = n a² / (4 tan(π/n)). The lateral edge runs from an apex to a corner, and the slant height of a face from an apex to the middle of a side:
$$e = \sqrt{R^2 + h^2}, \qquad s = \sqrt{\rho^2 + h^2}$$Each face is a triangle with the base a and the height s, and there are 2n faces:
$$A = 2n \cdot \frac{a s}{2} = n a s, \qquad \frac{A}{V} = \frac{3 \sqrt{a^2 + 4 h^2 \tan^2(\pi/n)} }{a h}$$The last form follows from ρ tan(π/n) = a/2. For n equal to 3, 4 or 6 the squares R², ρ² and tan²(π/n) are rational, so these lengths can come out as exact decimals.
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 4 and pyramids 3 high the volume is 55.055277 cubic units, the surface area 81.431465 square units, the lateral edge 4.536266 and the slant height of a face 4.071573.
FAQ
Which inputs are refused?
A number of sides that is not a whole number from 3 to 1,000, a side, height or base area that is 0 or negative, text that is not a number and values outside the range.
Why does the any-base mode give only the volume?
The volume depends only on the base area and the height. The surface depends on the shape of the base: a long thin base and a square base of the same area give different faces. Choose a regular base to get the surface.
When is a bipyramid an octahedron?
A square bipyramid with h = a / √2 is the regular octahedron: then every face is equilateral. That height is irrational for a decimal a, so the page shows it as a close square bipyramid.
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 volume with any base, the total height and, for a square base, the base area and the volume 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, a square root that terminates) 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 volume with any base, the total height and, for a square base, the base area and the volume 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, a square root that terminates) 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 an area from 0.000000000001 to 1,000,000,000,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)