How it works
A rectangular pyramid (Pyramid) has a rectangle for a base and four triangular faces that meet at one point, the apex. Its volume is one third of the base area times the height. The calculator assumes the apex sits straight above the center of the base. Each pair of triangular faces has its own slant height, found with the Pythagorean theorem, and these give the lateral area. Adding the base gives the total surface area. A square base is the case where length and width are equal.
Formula
Base area = length × width.
Lateral area = length × sqrt(height² + (width ÷ 2)²) + width × sqrt(height² + (length ÷ 2)²).
Total = base area + lateral area.
Example
Example in plain words. Base 6 by 4, height 9.
Volume = 6 × 4 × 9 ÷ 3 = 72.
Base area = 6 × 4 = 24.
Lateral area = 6 × sqrt(9² + 2²) + 4 × sqrt(9² + 3²) = 55.32 + 37.95 = 93.26.
Total = 24 + 93.26 = 117.26.
Frequently asked questions
Why divide by 3?
A pyramid fills exactly one third of the prism with the same base and height.
What if the apex is not above the center?
Then the pyramid is oblique. The volume formula still holds, but the surface area here does not.