Height of a Square Pyramid Calculator

Enter the base side length plus a known volume, slant height, or lateral edge to solve for the height of a right square pyramid, using h = 3V/a², h = √(l² − (a/2)²), or h = √(e² − a²/2).

Quick Facts

From volume
h = 3V / a²
Rearranged from V = (1/3)a²h.
From slant height
h = √(l² − (a/2)²)
l runs from the apex to the midpoint of a base edge.
From lateral edge
h = √(e² − a²/2)
e runs from the apex to a base corner.

Your Results

Calculated
Height
-
Perpendicular distance, apex to base plane
Volume
-
V = (1/3) × a² × h
Slant Height
-
l = √(h² + (a/2)²)
Lateral Edge
-
e = √(h² + a²/2)

Ready

Enter the base side length, choose what you know, then press Calculate.

Formula and Method for the Height of a Square Pyramid

A right square pyramid has a square base with side length a and an apex centered directly above the middle of that base. Its height h is the perpendicular distance from the apex straight down to the base plane. Because h often can't be measured directly, this calculator derives it from a quantity you're more likely to know: the pyramid's volume, its slant height, or the length of a lateral edge.

Formula and method

Three standard right-triangle relationships connect h to the base side a. From volume V: h = 3V / a², rearranged from V = (1/3)a²h. From slant height l (apex to the midpoint of a base edge): h = √(l² − (a/2)²), since h, a/2, and l form a right triangle through the center of one triangular face. From lateral edge e (apex to a base corner): h = √(e² − a²/2), since h, half the base diagonal (a/√2), and e form a right triangle. Enter the base side length, pick which quantity you know, and enter its value — the calculator solves for h and also reports the matching volume, slant height, and lateral edge.

Common sources of error

  • Slant height vs. lateral edge: the slant height runs to the midpoint of a base edge; the lateral edge runs to a base corner. They are different lengths with different formulas — swapping them gives a wrong height.
  • Unit mismatch: enter the base side and the known value in the same length unit (or the same unit cubed, for volume) before calculating.
  • Impossible geometry: a slant height must exceed a/2, and a lateral edge must exceed a/√2 ≈ 0.707a; smaller values describe a flat or self-intersecting shape, not a real pyramid.

Checking your result

Once you have h, cross-check it two ways: recompute the volume with V = (1/3)a²h and confirm it matches your input (if volume was the known quantity, it should return exactly). Also recompute the slant height with l = √(h² + (a/2)²) — it should always come out a bit longer than half the base side. If a check fails or the result is negative, revisit whether the measured value was really to a base corner (lateral edge) or an edge midpoint (slant height).

Applications

Solving for pyramid height from a measured slant height or edge comes up in architecture and monument design (obelisks, roof pyramids, tensioned tent structures), in packaging and container engineering when a target volume is fixed and the base footprint is known, and in geometry coursework when a diagram gives only the lateral edge or slant height. Once height is known, it feeds directly into volume, surface area, and center-of-mass calculations for the same solid.

Frequently Asked Questions

What is the formula for the height of a square pyramid?
It depends on what you know. From the volume V and base side a: h = 3V / a². From the slant height l (apex to the midpoint of a base edge): h = √(l² − (a/2)²). From the lateral edge e (apex to a base corner): h = √(e² − a²/2).
How do I find the height from the slant height?
Use h = √(l² − (a/2)²), where l is the slant height and a is the base side length. This comes from the right triangle formed by the height, half the base side, and the slant height. The slant height must be greater than a/2 for a valid pyramid.
How do I find the height from the lateral edge?
Use h = √(e² − a²/2), where e is the lateral edge length and a is the base side length. This comes from the right triangle formed by the height, half the base diagonal (a/√2), and the lateral edge. The lateral edge must be greater than a/√2 for a valid pyramid.
What is the difference between slant height and lateral edge?
The slant height runs from the apex straight down the middle of one triangular face to the midpoint of a base edge. The lateral edge runs from the apex to a base corner (vertex). Since a corner is farther from the base center than an edge midpoint is, the lateral edge is always longer than the slant height for the same pyramid.