Enter the number of base sides, the base side length and either the slant height or the vertical height, and the calculator returns the total, lateral and base area of a regular pyramid. It works for a triangular, square, pentagonal, hexagonal or any other regular base.
Pyramid Surface Area Calculator
Surface area of a regular pyramid with any number of base sides, from the slant height or the vertical height.
Pyramid surface area formulas
A regular pyramid has a regular polygon as its base and triangular faces that meet at a point above the center. Its surface area is the base plus the faces.
Base area B = n × s² ÷ (4 × tan(π ÷ n))
Lateral area L = n × s × l ÷ 2
Total surface area A = B + L
Apothem a = s ÷ (2 × tan(π ÷ n))
Slant height l = √(h² + a²)
Where:
- n = number of base sides (3 for a triangle, 4 for a square, 6 for a hexagon).
- s = length of one base side.
- l = slant height, the height of one triangular face measured from the base edge to the tip.
- h = vertical height from the center of the base to the tip.
- a = apothem, the distance from the base center to the middle of a side.
Two input modes
Use the slant height mode if you can measure along a face. Use the vertical height mode if you know how high the tip is above the base, and the tool finds the slant height from the apothem. The slant height must be longer than the apothem, and the number of sides must be a whole number of 3 or more.
Worked examples
Example 1: a square pyramid, base side 6, slant height 5
Base = 4 × 36 ÷ (4 × tan 45°) = 36
Lateral = 4 × 6 × 5 ÷ 2 = 60
Total = 36 + 60 = 96
With a vertical height of 4 instead, the apothem is 3, so l = √(16 + 9) = 5 and the result is the same.
Example 2: a triangular pyramid, base side 6, slant height 5
Base = 3 × 36 ÷ (4 × tan 60°) = 108 ÷ 6.9282 = 15.5885
Lateral = 3 × 6 × 5 ÷ 2 = 45
Total = 15.5885 + 45 = 60.5885
The apothem is 6 ÷ (2 × 1.7321) = 1.7321, so the slant height of 5 is valid.
Example 3: a hexagonal pyramid, base side 4, vertical height 10
Apothem = 4 ÷ (2 × tan 30°) = 3.4641
Slant height = √(100 + 12) = 10.583
Base = 6 × 16 ÷ (4 × 0.57735) = 41.569
Lateral = 6 × 4 × 10.583 ÷ 2 = 126.996
Total = 168.565
A pyramid roof
A square pyramid roof with a base side of 8 m and a height of 3 m has an apothem of 4 m, so its slant height is 5 m. The roof surface is the lateral area, 4 × 8 × 5 ÷ 2 = 80 m². This is the area of the sloping faces only, so overhang, overlap and waste depend on the roofing material and need an allowance.
Slant height, vertical height and edge length
Do not mix them up
Vertical height runs straight up from the center of the base. Slant height runs up the middle of a face. The lateral edge, from a base corner to the tip, is longer than both and is not used here. Putting the vertical height into the slant height box understates the lateral area.
Limits of the tool
It handles regular pyramids, with equal base sides and the tip directly above the center. A pyramid with an irregular base, a tilted tip or a cut-off top (a frustum) needs different formulas.
Frequently asked questions
How do I find the surface area of a regular pyramid?
Add the base area to the lateral area. The lateral area is the perimeter of the base times the slant height divided by 2, and the base area depends on the number of sides.
What is the slant height of a pyramid?
It is the height of one triangular face, measured from the middle of a base edge to the tip. It is longer than the vertical height.
How do I find the slant height from the vertical height?
Use l = √(h² + a²), where a is the apothem of the base. For a square base of side 6 and a height of 4, a = 3 and l = 5.
Does the calculator work for a square pyramid?
Yes. Enter 4 as the number of sides. A base side of 6 and a slant height of 5 give a total area of 96.
What is the lateral area of a pyramid?
It is the combined area of the triangular faces, without the base: n × s × l ÷ 2. A triangular pyramid with a base side of 6 and a slant height of 5 has a lateral area of 45.
Why does the tool reject some slant heights?
The slant height must be longer than the base apothem, because the apothem and the vertical height are the two shorter sides of the right triangle that gives the slant height.




