Height Of A Square Pyramid Calculator - Solve For H

Use this height of a square pyramid calculator to recover the perpendicular height H from the base edge a and one of volume V, slant height s, lateral edge d, or total surface area A.

Updated: June 18, 2026 • Free Tool

Height Of A Square Pyramid Calculator

Choose which pair of measurements you will use. The label on the second number field changes to match the selected mode.

Length of any edge of the square base, in any consistent linear unit such as inches, feet, centimeters, or meters. All four base edges are equal on a right square pyramid.

Value of the second measurement selected by the input mode. Cubic units for volume, linear units for slant height or lateral edge, square units for total surface area.

Results

Pyramid Height (H)
0linear units
Base Area (B) 0square units
Slant Height (s) 0linear units
Lateral Edge (d) 0linear units
Recovered Volume (V) 0cubic units

What Is Height Of A Square Pyramid Calculator?

A height of a square pyramid calculator recovers the perpendicular distance H from the base plane to the apex of a right square pyramid when you know the base edge a and one other measurement such as the volume V, the slant height s, the lateral edge d, or the total surface area A.

  • Reverse-engineer a stockpile or bin: Measure the square base of a real pile of sand, gravel, salt, or grain, read its volume from a survey, then recover the apex drop.
  • Check homework and lesson problems: Confirm that the textbook h = 3 V / a^2 step and the slant-height Pythagorean step both produce the same height.
  • Solve field measurements of a roof or canopy: Measure a square hip roof or tent peak from the outside and recover the height for material estimates.
  • Recover H from a CAD or drawing dimension: Pull the total surface area or the volume from a CAD model and back out the height for a sketch.

A right square pyramid has a flat square base and four triangular faces that meet at a single apex directly above the center of the base. The perpendicular distance from the base plane to that apex is the height H, and the four base edges are equal in length.

In the field the apex drop is often the unknown. A square bin might have its base measured and its volume read off a delivery ticket, a survey crew might measure the slant or lateral edge from outside, and a CAD model might export the total surface area before the height. The inverse formulas below turn those measurements back into H.

When the height H is already known and you want the volume, slant height, lateral edge, and total surface area instead, the Right Square Pyramid Calculator runs the forward (1/3) a^2 h step on the same a and h.

How Height Of A Square Pyramid Calculator Works

The calculator picks one of four inverse formulas depending on the selected mode, then derives the base area, slant height, lateral edge, and recovered volume from the recovered height and the base edge.

H = 3 * V / a^2, H = sqrt(s^2 - (a/2)^2), H = sqrt(d^2 - a^2/2), H = sqrt(((A - a^2) / (2a))^2 - (a/2)^2)
  • a: Length of one base edge, in any consistent linear unit.
  • V: Pyramid volume V = (1/3) a^2 H, in cubic units of a.
  • s: Distance from apex to midpoint of a base edge, same unit as a.
  • d: Distance from apex to a base corner, same unit as a.
  • A: Total surface area A = a^2 + 2 a s, in square units of a.
  • H: Perpendicular height from base plane to apex, same unit as a.

The factor 1/3 in the volume formula comes from three congruent right square pyramids fitting exactly into a right prism of the same base and height. Rearranging V = (1/3) a^2 H gives the volume mode, and the slant and lateral edge modes are Pythagorean steps with half the base edge or the half-diagonal as the horizontal leg.

The total-surface-area mode needs an extra step. The total surface area equals the base area plus the four equal triangular faces, so A = a^2 + 2 a s, which solves for s = (A - a^2) / (2a). The slant-height Pythagorean step then returns H.

Base edge 6 and volume 108 recover H = 9

Base edge a = 6, volume V = 108.

h = 3 * 108 / 6^2 = 9.00. Base area B = 36.00. Slant height s = sqrt(81 + 9) = 9.49. Lateral edge d = sqrt(81 + 18) = 9.95. Recovered volume V = (1/3) * 36 * 9 = 108.00.

Pyramid height 9.00 linear units.

The recovered volume matches the input volume, so the volume mode round-trip is consistent.

Base edge 6 and slant height 9.49 recover H = 9

Base edge a = 6, slant height s = 9.49.

h = sqrt(9.49^2 - 3^2) = sqrt(81.06) = 9.00. Recovered volume V = (1/3) * 36 * 9 = 108.00.

Pyramid height 9.00 linear units.

The slant-height Pythagorean step agrees with the volume mode within rounding.

According to Omni Calculator, the height of a right square pyramid can be found from the base edge a and volume V with h = 3 V / a^2, from the slant height s with h = sqrt(s^2 - (a/2)^2), or from the lateral edge d with h = sqrt(d^2 - a^2/2).

When the goal is the volume of a square pyramid rather than the recovered height, the Square Pyramid Volume Calculator takes the same base edge and perpendicular height and returns the forward V = (1/3) a^2 h result.

Key Concepts Explained

Four ideas decide which inverse formula matches the measurements you have on hand.

H = 3 V / a^2 from the volume

Rearranging the (1/3) a^2 h volume step for h gives H = 3 V / a^2, so a single division by the square of the base edge recovers the height from the volume.

H = sqrt(s^2 - (a/2)^2) from the slant height

The slant height s and the perpendicular height H form a right triangle with half of the base edge a/2 as the horizontal leg, so H = sqrt(s^2 - (a/2)^2).

H = sqrt(d^2 - a^2/2) from the lateral edge

The lateral edge d and the perpendicular height H form a right triangle with the diagonal half-distance a * sqrt(2) / 2 as the horizontal leg, so H = sqrt(d^2 - a^2/2).

Recovering s before H from total surface area

When only the total surface area A is known, first extract s = (A - a^2) / (2a) from A = a^2 + 2 a s, then apply the slant-height Pythagorean step.

A common mistake is to use the slant height where the formula needs the perpendicular height. The slant height runs from the apex to the midpoint of a base edge and is always longer than H, so plugging s into a downstream volume step would overstate the height.

Once the perpendicular height H and the slant height s are known, the Pyramid Angle Calculator turns the same H and a into the face angle, the edge angle, and the apex angle of the right square pyramid.

How to Use This Calculator

Pick the input mode that matches the two measurements you already have, enter them in the same linear unit, and read the height row first.

  1. 1 Pick the input mode: Choose base edge and volume, slant height, lateral edge, or total surface area.
  2. 2 Enter the base edge: Measure one edge of the square base and enter it as a in the chosen unit.
  3. 3 Enter the second measurement: Enter V in cubic units, s in linear units, d in linear units, or A in square units.
  4. 4 Read the pyramid height: Use the Pyramid Height row for the recovered H in the chosen unit.
  5. 5 Read the derived dimensions: Use the Base Area row for the footprint, the Slant Height and Lateral Edge rows for the slant and edge, and the Recovered Volume row to cross-check the mode.
  6. 6 Switch modes for a sanity check: Run the calculator in two modes and confirm both return the same height to two decimal places.

A surveyor has a square salt bin with a 6 ft base edge and a measured volume of 108 cubic feet. The default mode returns a height of 9.00 ft and a recovered volume of 108.00 ft^3.

When the base shape is unknown or already reduced to a base area B, the Pyramid Volume Calculator applies the same (1/3) B H step so the H = 3 V / a^2 step does not have to be re-derived.

Benefits of Using This Calculator

A dedicated height of a square pyramid calculator lets you pick the measurement you already have and skip the manual algebra for every input mode.

  • Four inverse modes in one form: Switch between volume, slant height, lateral edge, and total surface area.
  • Single primary answer plus cross-check rows: The pyramid height sits in the primary row, with the base area, slant height, lateral edge, and recovered volume below.
  • Auto-derived slant and lateral edge: After H is recovered, the calculator back-fills s = sqrt(h^2 + (a/2)^2) and d = sqrt(h^2 + a^2/2).
  • Decimal friendly for any linear unit: Decimal inputs work for measured drawings, scaled plans, and metric or imperial units.
  • Built-in mode-range validation: Each mode rejects impossible inputs such as a slant height shorter than half the base edge or a total surface area smaller than the base area.

For a mixed collection of three-dimensional solids such as a square pyramid next to a cylinder, cone, or sphere, the Volume Calculator keeps the (1/3) a^2 H, pi r^2 H, and (4/3) pi r^3 rules in one place.

Factors That Affect Your Results

Three measurement choices decide whether the height from this calculator matches the real pyramid.

Perpendicular height vs slant height vs lateral edge

The formulas return H, not s or d. Using s or d in a downstream volume step would overstate H.

Right vs oblique square pyramid

The inverse formulas assume the apex sits directly above the center of the base. For an oblique square pyramid, the slant and lateral edge formulas change because the four triangular faces are no longer congruent.

Unit consistency between base edge and second value

The base edge a and the second value must use the same base unit. Mixing feet and inches or feet and meters changes a by 12 or 3.281 and silently breaks the recovered height.

  • The calculator does not solve for a missing base edge when only the height and one other measurement are known.
  • Real stockpiles and bins are rarely perfect right square pyramids, so the recovered height is a geometric estimate.

According to Wolfram MathWorld, the volume of a right square pyramid with base edge a and height h is V = (1/3) a^2 h, which rearranges to h = 3 V / a^2 for the inverse problem.

According to Wikipedia, the slant height of a right square pyramid is sqrt(h^2 + (a/2)^2) and the lateral edge is sqrt(h^2 + a^2/2), so the inverse forms are h = sqrt(s^2 - (a/2)^2) and h = sqrt(d^2 - a^2/2).

When the base is a true rectangle rather than a square, the Right Rectangular Pyramid Calculator splits the answer into two distinct slant heights and a separate lateral edge, because the square case is the special case where the two slant heights collapse to one.

height of a square pyramid calculator showing base edge a, the perpendicular height H from base plane to apex, the slant height of one face, and the lateral edge from a base corner to the apex
height of a square pyramid calculator showing base edge a, the perpendicular height H from base plane to apex, the slant height of one face, and the lateral edge from a base corner to the apex

Frequently Asked Questions

Q: What is the formula for the height of a square pyramid?

A: The most common formula is H = 3 V / a^2, where V is the volume and a is the base edge length. From the slant height s the height is H = sqrt(s^2 - (a/2)^2), and from the lateral edge d it is H = sqrt(d^2 - a^2/2). The total surface area mode first solves s = (A - a^2) / (2a) and then applies the slant-height step.

Q: How do you find the height of a square pyramid from the volume and base edge?

A: Square the base edge a to get the base area, divide three times the known volume V by the base area, and the result is the perpendicular height H. For a = 6 and V = 108, H = 3 * 108 / 36 = 9 linear units, and the recovered volume of 108 cubic units matches the input volume.

Q: How do you find the height of a square pyramid from the slant height and base edge?

A: Apply the Pythagorean theorem. The slant height s, the perpendicular height H, and half the base edge a/2 form a right triangle, so H = sqrt(s^2 - (a/2)^2). For a = 6 and s = 9.49 the height is sqrt(90.06 - 9) = 9 linear units.

Q: What is the height of a square pyramid from the base area and volume?

A: Divide three times the volume by the base area, H = 3 V / A_b. Since A_b = a^2 this collapses to the same H = 3 V / a^2 form, and the calculator shows the recovered a alongside the height so the footprint stays auditable across modes.

Q: Can you find the height of a square pyramid from the lateral edge and base edge?

A: Yes. The lateral edge d and the perpendicular height H form a right triangle with the diagonal half-distance a * sqrt(2) / 2 from the center of the base to a corner, so H = sqrt(d^2 - a^2/2). For a = 6 and d = 9.95 the height is sqrt(99 - 18) = 9 linear units.

Q: What units should I use for the height of a square pyramid result?

A: Use one linear unit for the base edge and the slant or lateral edge, such as inches, feet, centimeters, or meters. The pyramid height row shows the recovered H in that same linear unit, the slant and lateral edge rows show linear units, the base area row shows square units, and the recovered volume row shows cubic units. Mixing feet and inches, or feet and meters, gives an answer off by a power of 12 or 3.281.