what is the formula for a triangular pyramid??

Are you asking for surface area or volume?

Volume = 1/3 area of base times height

Surface area = area of base + areas of sides.

Area of triangle = 1/2 base times height