Surface Area of a Pyramid
The surface area of a pyramid consists of the lateral surface, which is the area of the number of triangles which form the sides (or faces) of the figure along with area of the base, which may be any polygon.
The lateral area of a right pyramid is the sum of the areas of the triangles forming the faces of the pyramid. In a right pyramid, by definition, these are congruent triangles. Also by definition, the base of a right pyramid is a regular polygon. Therefore, the base of the triangular faces is equal and their altitudes are also equal, and they are equal to the slant height of the pyramid.
Rules:

The lateral area of a right pyramid is equal to the perimeter of the base times onehalf the slant height.

Total surface area = lateral surface area + area of the base

Slant height
Example:
A pyramid on a square base has four equilateral triangles. For its other faces each edge is cm. Find the whole surface.
Solution:
Let be the pyramid on the square base . As the side faces are equilateral triangles with each side being cm, therefore the side of the square base is cm.
The area of the base square cm
The area of one side face
The area of all four side faces square cm
The area of the whole surface square cm.