Audited 05 Aug 2026·Last updated 15 Sept 2026·3 citations·Tier 2·0 uses

Square Pyramid Calculator

Square pyramid calculator: volume = base² × height ÷ 3, base area, and face slant height from side and height — with the one-third rule explained.

Square Pyramid Calculator

Pyramid volume
48
Primary result from the named standard variant.
Base area
36
Face slant height
5

Background.

A square pyramid — four triangular faces meeting at an apex over a square base — is governed by one ancient and initially surprising rule: its volume is exactly one-third of the box that would enclose it. Base side s and perpendicular height h give V = s²h/3, and this page returns that volume together with the base area and the faces' slant height.

The one-third is not an approximation. Three identical oblique pyramids assemble exactly into a cube — a dissection the ancient Egyptians' successors and Euclid both knew — and calculus confirms it in a line: stacking square cross-sections that shrink quadratically toward the apex integrates to a third of base times height. It is the same one-third that appears in cones (circular pyramids) and every other apex-over-a-base solid.

The slant height is the practical second output. The height h runs invisibly up the middle; what a roof panel, a face of sheet metal, or a coat of paint follows is the slant height ℓ up the centre of each triangular face, and the two are related through the base's half-side: ℓ = √(h² + (s/2)²). Confusing the two is the classic pyramid error — slant is always the longer — and lateral surface area hangs off the slant, not the height: each face has area sℓ/2, four faces total 2sℓ.

Pyramid arithmetic is far from ornamental: pyramidal hoppers and roof sections, concrete footings poured as truncated pyramids, and the eternal comparison of monument volumes (the Great Pyramid's ≈230 m base and 147 m original height compute to ≈2.6 million m³ by exactly this formula) all run through V = s²h/3. The model here is the right, regular case — apex over the base's centre — as the scope note records.

What is square pyramid calculator?

A square pyramid is the solid with a square base of side s and four triangular faces rising to a single apex; this page treats the right, regular case with the apex directly above the base's centre at perpendicular height h. Its three standard quantities: volume V = s²h/3 (one-third of the enclosing box — the universal pyramid rule), base area s², and face slant height ℓ = √(h² + (s/2)²), the distance from a base edge's midpoint up the face to the apex — the length that governs roofing, cladding, and lateral surface area (2sℓ).

How to use this calculator.

  1. Enter the base side and the perpendicular height — the vertical drop from apex to base centre, not the sloped edge or face length.
  2. Read the volume (s²h/3), base area (s²), and face slant height ℓ.
  3. For material take-offs, build lateral surface from the slant: each triangular face is s×ℓ/2, so four faces total 2sℓ — add the base s² only if that surface is real (a roof has no floor).
  4. Given a slant measurement instead of height — common when only the outside is accessible — recover h = √(ℓ² − (s/2)²) first, then enter it.
  5. For hoppers and truncated shapes, compute as the big pyramid minus the small one cut off — both by this page's formula — rather than reaching for a slab approximation.

The formula.

V=base area×height/3; slant=√(height²+base apothem²)

Volume: slice the pyramid horizontally at fraction t of the way down from the apex and the cross-section is a square of side t·s — linear shrinkage — so its area is t²s², and integrating t² from 0 to 1 yields the 1/3: V = s²h/3. The dissection proof says the same without calculus: three congruent pyramids, apexes at one corner, tile a cube exactly. Consequences follow from the squared term — doubling the base side quadruples volume while doubling height merely doubles it, and half the pyramid's volume lies in the bottom 20.6% of its height, which is why hoppers drain slowly at the end. Slant height: drop the apex to the base centre (length h), walk half a side (s/2) to a base edge's midpoint, and rise up the face; the first two are the legs of a right triangle whose hypotenuse is ℓ = √(h² + (s/2)²). A third length — the lateral edge from apex to a base corner — uses the half-diagonal instead: √(h² + s²/2), longer again; keeping the three straight is most of pyramid competence. The engine evaluates all three outputs in Decimal arithmetic, rounding once to twelve significant digits.

A worked example.

Example

A pyramid has a 6-unit square base and rises 4 units straight up from the base's centre. Volume by the one-third rule: base area is 6² = 36, the enclosing 6×6×4 box holds 144, and the pyramid claims a third of it — V = 36 × 4 / 3 = 48 cubic units. Slant height by Pythagoras: from the apex, drop 4 to the base's centre, then walk half a side — 3 — to the midpoint of an edge. The face's centre-line is the hypotenuse over those legs: ℓ = √(4² + 3²) = √25 = 5. A 3-4-5 triangle hides in the pyramid's flank. The 5 is what the outside world touches: each triangular face has area 6×5/2 = 15, so cladding all four costs 60 square units — against a 36-unit floor. And the distinction the example is built to teach: the height (4) is unmeasurable from outside, the slant (5) is what a tape laid up the face reads, and using 4 where 5 belongs shorts every roofing order by 20%. Third length for completeness: the corner edges run √(16 + 18) ≈ 5.83 — longest of the three, as the corner path must be.

base Side6
height4

Frequently asked questions.

Why is a pyramid's volume exactly one-third of the box around it?
Because square cross-sections shrink with the square of the distance from the base as you approach the apex, and the average of t² over the height is 1/3 — the integral ∫t²dt from 0 to 1. The pre-calculus proof is prettier: three identical pyramids, each with its apex pulled to one corner of a cube, fill that cube with no gaps. The rule is universal for apex solids — cones obey πr²h/3 for exactly the same reason — and no pyramid, squat or spindly, deviates from it.
What is the difference between the height, the slant height, and the edge length?
Three different journeys from the apex. Height h (4 in the example): straight down to the base's centre — the shortest, hidden inside. Slant height ℓ (5): down the middle of a triangular face to a base edge's midpoint — what roofing panels, ladders laid on the face, and lateral-area formulas follow. Lateral edge (≈5.83): down a corner seam to a base vertex — the longest. Each pair is a Pythagorean triangle: ℓ² = h² + (s/2)² and edge² = h² + (s√2/2)². Order never changes: h < ℓ < edge.
How do I get the surface area from these outputs?
Assemble it from faces. Each of the four triangles has base s and height ℓ (the slant), so lateral area = 4 × sℓ/2 = 2sℓ — in the example 2×6×5 = 60. Add the base s² = 36 only when that face physically exists: total 96 for a solid ornament, 60 for a roof or hopper open at the bottom. The perennial mistake is computing faces with the height h instead of ℓ — always an underestimate, by 20% in this example's 3-4-5 geometry.
How does volume respond if I scale the base or the height?
Asymmetrically, through the s²h structure: doubling the height doubles volume, but doubling the base side quadruples it — and doubling both multiplies by 8, the cube-law of similar solids. A related surprise governs filling and draining: cross-section area grows with the square of distance from the apex, so the top half of a pyramid's height holds only 1/8 of its volume, and a hopper that took an hour to empty its first half will spend the last portion in a long dribble — geometry, not friction.
Can this page handle a truncated pyramid (frustum) or an off-centre apex?
By decomposition, yes; directly, no. A truncated pyramid is the big pyramid minus the small similar one removed from the top — run both through V = s²h/3 and subtract (heights measured from the shared, extrapolated apex; similar-triangle ratios recover them from the two base sides). An oblique pyramid — apex not over the centre — keeps the same volume formula (Cavalieri's principle: slant shearing never changes cross-section areas) but breaks the slant-height formula, since each face then slopes differently; this page's ℓ assumes the right, regular case its scope note states.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
V=base area×height/3; slant=√(height²+base apothem²)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon