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
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.
- Enter the base side and the perpendicular height — the vertical drop from apex to base centre, not the sloped edge or face length.
- Read the volume (s²h/3), base area (s²), and face slant height ℓ.
- 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).
- Given a slant measurement instead of height — common when only the outside is accessible — recover h = √(ℓ² − (s/2)²) first, then enter it.
- 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.
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.
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.
Frequently asked questions.
Why is a pyramid's volume exactly one-third of the box around it?
What is the difference between the height, the slant height, and the edge length?
How do I get the surface area from these outputs?
How does volume respond if I scale the base or the height?
Can this page handle a truncated pyramid (frustum) or an off-centre apex?
References& sources.
- [1]OpenStax, Rice University. Precalculus 2e, 2021. Trigonometry and analytic geometry chapters. Retrieved 2026-08-06. independence: primary; access: open.
- [2]OpenStax, Rice University. College Algebra 2e, 2021. Algebra and function chapters. Retrieved 2026-08-06. independence: secondary-check; access: open.
- [3]NIST/SEMATECH. e-Handbook of Statistical Methods, 2012. Chapter 1.3 and Chapter 4. Retrieved 2026-08-06. independence: primary; access: open.
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