A pyramid calculator finds the volume, the surface area, the height and the slant height of a regular pyramid. Enter the number of sides of the base, the length of a side and the height, and you get everything, for a square pyramid, a hexagonal pyramid or any other regular base. A rectangular base is available too. You can also enter the volume to find the height. It uses the volume formula on Wikipedia's page on pyramids, and it runs in your browser. It covers the height of a square pyramid, the hexagonal pyramid and its surface area.
How to use the pyramid calculator
- Choose a regular base and enter the number of sides: 4 for a square base, 6 for a hexagon, 3 for a triangle. Or choose a rectangular base and enter its two sides.
- Enter the base side length.
- Choose whether you know the height or the volume, and enter it.
- Press Work out the pyramid.
Volume
The Wikipedia page on pyramids gives the volume as one third of the base area times the height [1]. For a square base of 6 and a height of 4, the base area is 36, so the volume is 48. For a hexagon, the base area of a regular hexagon with a side a is 3 times the square root of 3 divided by 2, times a squared. With a side of 2 and a height of 3, the base area is about 10.392 and the volume is about 10.392, since a third of the height of 3 is 1. The calculator finds the base area of any regular polygon with n sides as n times a squared divided by four times the tangent of pi over n.
The height from the volume
If you know the volume, the height is three times the volume divided by the base area. A square pyramid with a base side of 6 and a volume of 48 has a height of 4. This is the case that people ask about as the height of a square pyramid, and it is the reason why the calculator has the volume option. Remember to use the same unit for the side and for the volume.
Slant height and apothem
The slant height is the height of one of the triangular side faces, measured from the base edge up to the apex. It is the hypotenuse of a right triangle with the height of the pyramid and the apothem of the base as the two legs. The apothem is the distance from the center of the base to the middle of an edge, which is half the side for a square and a times the square root of 3 over 2 for a hexagon. In the square example, the apothem is 3, the height is 4 and the slant height is 5. The Wikipedia page gives only the volume, so the relations in this paragraph are standard geometry.
Surface area
The lateral area is the area of the side faces, which is half the base perimeter times the slant height. The total surface area adds the base. In the square example the perimeter is 24, so the lateral area is 12 times 5, which is 60, and the total area is 60 plus 36, which is 96, in line with the square pyramid formula 2ls + l² [2]. For a hexagonal pyramid the same formulas apply, with six side faces. This is the answer to the questions about the surface area of a hexagonal pyramid, and the calculator gives the lateral area and the total area, with the base area.
The edge to a corner
The calculator also shows the length of the edges that run from the apex to the corners of the base. It is the square root of the height squared plus the distance from the center to a corner squared, and you need it for the framing of a roof or a tent in the shape of a pyramid. For the square example it is the square root of 16 plus 18, which is about 5.83.
A rectangular base
Choose the rectangular base to enter two sides, a and b. The volume is still one third of the base area times the height [1]. The Wikipedia pages give the slant height and surface area only for a square base [2], so the rest is our own Pythagoras working for a right pyramid. The face on a side of length a has slant height equal to the square root of h² + (b/2)², the face on a side of length b has the square root of h² + (a/2)², the edge to a corner is the square root of h² + (a² + b²)/4, and the total area is ab plus a times the first slant height plus b times the second. For a 6 by 4 base and a height of 3, the volume is 24, the slant heights are 3.606 and 4.243, the edge is 4.690 and the total area is 62.60.
Uses
Pyramids appear in architecture, in the roofs of towers and gazebos, in packaging, in tents and in many school exercises. A builder can use the calculator to find the amount of material for the faces, and a student can check an answer. For a cone, a cylinder or a box, use the other solid calculators on this site.
A roof example
A square tower roof has a base of 4 meters by 4 meters and a height of 3 meters. The base apothem is 2 meters, so the slant height is the square root of 9 plus 4, which is about 3.606 meters. The four triangular faces cover about 28.84 square meters, which is the area of roofing that is needed, and the volume of the space under the roof is 16 cubic meters.
Common mistakes
- Mixing up the height and the slant height. The height is vertical, the slant is along a face.
- Forgetting the third in the volume. A pyramid is a third of the prism.
- Using an irregular base. This calculator needs equal sides.
- Leaving out the base in the total area. Add it to the lateral area.
What next
Use this often? Add Height of a to your Home screen.
Frequently asked questions
What is a pyramid calculator?
A tool that finds the volume, areas, height and slant height of a regular pyramid from the base and the height or volume.
What is the volume of a pyramid?
V = ⅓ × base area × height. For a square base of 6 and a height of 4, V = 48.
How do you find the height of a square pyramid?
h = 3 × V ÷ base area. A volume of 48 with a base side of 6 gives a height of 4.
How do you find the surface area of a pyramid?
Lateral area = ½ × base perimeter × slant height. Add the base area for the total.
Does it work for a hexagonal pyramid?
Yes. Enter 6 as the number of base sides. Any regular base from 3 sides up is accepted.
Does it work for a rectangular base?
Yes. Choose the rectangular base and enter both sides. V = ⅓ × a × b × h, and the two slant heights follow from Pythagoras.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.