Pyramid Surface Area Calculator – All Base Types
A pyramid is a three-dimensional solid with a polygonal base and triangular faces that meet at a single point called the apex. The total surface area of a pyramid equals the area of its base plus the combined area of all its lateral (triangular) faces. This calculator supports four common base shapes — square, rectangle, triangle, and regular polygon — and accepts either the slant height or the vertical apex height as input.
Key Measurements
Understanding the terminology helps you enter the right values:
- Base area (B) — the area of the polygon forming the bottom of the pyramid, calculated from the base dimensions you provide.
- Lateral surface area — the combined area of all triangular faces connecting the base edges to the apex.
- Total surface area — the sum of the base area and the lateral surface area:
SA = B + Lateral SA. - Slant height (hs) — the distance from the apex to the midpoint of a base edge, measured along a triangular face. This is the height used in lateral area formulas.
- Apex height (H) — the perpendicular distance from the apex straight down to the centre of the base. If you know H instead of hs, the calculator derives hs automatically using:
hs = √(H² + apothem²). - Apothem — the perpendicular distance from the centre of the base to the midpoint of a base edge. For a square with side a, the apothem is
a / 2; for a regular n-gon, it isa / (2 × tan(π/n)).
Formulas by Base Shape
Square Pyramid
With base side length a and slant height hs:
Base Area = a²Lateral SA = 2 × a × hsTotal SA = a² + 2 × a × hs
Example: a = 6 m, hs = 10 m → Total SA = 36 + 120 = 156 m².
Rectangular Pyramid
With base length l, base width w, and slant height hs (a single value applied to all four triangular faces using a conservative approximation):
Base Area = l × wLateral SA = (l + w) × hsTotal SA = l × w + (l + w) × hs
Example: l = 8 m, w = 5 m, hs = 9 m → Total SA = 40 + 117 = 157 m².
Triangular Pyramid
With a triangular base having sides b, s₁, and s₂:
- Base Area is computed using Heron's formula:
s = (b + s₁ + s₂) / 2; B = √(s(s−b)(s−s₁)(s−s₂)) Lateral SA = (1/2) × (b + s₁ + s₂) × hsTotal SA = B + Lateral SA
The three sides must satisfy the triangle inequality: the sum of any two sides must be greater than the third side. The apothem used for deriving slant height from apex height is the inradius of the triangular base: r_in = Base Area / semi-perimeter.
Regular Polygon Pyramid
With a regular n-sided polygon base of side length a and slant height hs:
Base Area = (n × a²) / (4 × tan(π/n))Lateral SA = (1/2) × n × a × hsTotal SA = Base Area + Lateral SA
Example: hexagonal pyramid (n = 6), a = 5 m, hs = 11 m → Total SA ≈ 229.9 m². A square pyramid is the special case n = 4.
Slant Height vs Apex Height
In practice, you may measure or be given either the slant height or the vertical apex height. Toggle the Height Input selector to switch between them. When you enter the apex height H, the calculator computes the apothem of the chosen base and derives the slant height automatically using hs = √(H² + apothem²). The derived value is shown alongside the results so you can verify the intermediate step.
Unit Support and Conversions
All length inputs share the same unit selector (mm, cm, m, km, in, ft, yd). Area results are expressed in the corresponding squared unit (e.g., m²). The results section also shows the total surface area converted to all other units, making it straightforward to cross-check values or use results in different systems.
Practical Applications
Pyramid surface area calculations arise in several fields:
- Architecture and construction — estimating material quantities for pyramid-shaped roofs, decorative finials, or structural elements.
- Packaging and manufacturing — computing surface area for pyramid-shaped cartons or containers to determine material costs.
- Geometry education — verifying manual calculations and developing intuition for how base shape and slant height affect total surface area.
- 3D printing and modelling — calculating surface area for rendering, material estimation, or structural analysis of pyramid-shaped objects.