Calculate the Volume and Surface Area of a Square Pyramid
A regular square pyramid — its apex centered directly above the base, like the pyramids of Egypt — is determined by the side length of the base and the height. The height of each triangular face (the slant height) follows from the Pythagorean theorem.
Enter the side length and height: the calculator gives the volume, the lateral surface area (the 4 triangles) and the total surface area (base included).
Base Side Length and Height
Words followed by an asterisk are spelled out in the glossary.
One-third of the enclosing prism: why V = a²h/3
One line of algebra, and a slightly stubborn factor of one third.
A cube of side a splits into three square pyramids of equal volume. Each takes a face of the cube as its base and uses the cube’s own side as height. The cube is a³, so each pyramid is a³/3. Swap that height for any perpendicular height h and the result is V = (1/3) × (base area) × h. The same third turns up for a cone — circular base, same idea — and drops out again for a cube or cuboid, which is the prism, not the pyramid.
Height here means the perpendicular drop from the apex to the base plane. Not an edge. Cavalieri’s principle* is the grown-up version of the same fact: solids of equal height whose cross-sections parallel to the base have equal area have equal volume. Slide the apex sideways and the volume does not budge, provided the base and that perpendicular height stay put. A triangle is half a parallelogram; a pyramid is a third of a prism. One dimension up, one extra fraction. This page treats the regular square pyramid* — apex above the centre of a square — because that is the solid people actually size. The one-third is more general than that.
Height of the solid, slant height of a face, and the corner edge
Three lengths, three jobs. Mix two of them and the surface goes wrong. The volume does not care: it never sees either slant.
The slant height* of a face is the altitude of one triangular face, measured on the face, from the midpoint of a base edge up to the apex. That is the length the lateral area uses. The lateral edge* runs from a base corner to the apex. Longer, because it starts at a corner, not halfway along a side. The solid’s height h is the perpendicular inside.
slant height ℓ = √(h² + (a/2)²)
lateral edge = √(h² + a²/2)
First Pythagoras: height of the solid, half a base side (the run from the centre to the middle of an edge), and the slant height as hypotenuse. Second Pythagoras: height again, but now the run is half the base diagonal, a√2/2. Volume can ignore both. Sheet metal, canvas, paint on the faces — slant height. Timber for the corners, or a check that a card model will actually stand — the lateral edge. GCSE papers love the distinction. So do roofers: the rafter that runs to the middle of an eave is not the hip that runs to a corner.
Square, rectangle, triangle: what stays and what changes
The one-third stays. The base area changes, and so do the faces. A rectangular base a by b gives V = (1/3) a b h. The four faces are no longer four copies of the same isosceles triangle. Opposite faces share a slant height; adjacent faces do not, because a/2 and b/2 differ. Two Pythagoras steps, not one.
A triangular base — a tetrahedron if every face is a triangle — takes the area of that triangle (Heron, or half base times triangle-height) and multiplies by h/3. A regular triangular pyramid has three matching lateral faces. A regular tetrahedron* has four equilateral faces, and its height is a different expression in the edge length. This page is built for the search people actually type: square base, apex above the centre. A rectangle or a triangle still uses the same volume recipe on paper. Surface area does not: each face is its own triangle. The square’s slant height does not borrow to a base that is not a square.
Truncated pyramid: hopper, flower-pot, clipped roof
Slice the pyramid with a plane parallel to the base and throw the small top away. What remains is a frustum*: two squares, one large, one small, and four trapeziums round the sides. (US texts say trapezoids; same four faces.)
Volume is no longer (1/3) B h. Subtract the little pyramid that was cut off, or use the frustum formula directly. With B and b the two base areas (a² and a′²) and H the height of the stump:
Vfrustum = (H/3) (B + b + √(B·b))
That square-root term is doing real work. Drop it and the two bases are being averaged as if this were a prism with a linearly changing side. It is not. The pyramid shrinks in both directions, so area shrinks with the square of the scale. √(B·b) is the geometric mean that puts that back. Surface area is the two squares plus the four trapeziums — not the original four triangles.
This calculator is a complete pyramid, apex and all. A flower-pot, a tapered hopper, a roof whose peak has been clipped: use the frustum formula, or two pyramids and a subtraction. The stump does not belong in this form.
Giza as a regular square pyramid, with numbers that survive
Khufu (Cheops), Khafre (Chephren), Menkaure (Mycerinus), on the Giza plateau. Four triangular faces, a square base, the original apex more or less above the centre. That is this solid, built at the scale of a reign.
The Great Pyramid of Khufu is the one with decent numbers attached. Base side of about 230 m. Original height somewhere near 146–147 m; what stands now is a little under 139 m, the capstone and the smooth limestone casing long gone. Orders of magnitude, not a surveyor’s millimetre. Plug V = a²h/3 and the envelope lands around 2.5 million cubic metres — the envelope, not the volume of stone (there are chambers and passages). The faces are not 45°. Khufu sits nearer 52° to the horizontal, which is also the ratio of height to half-base. The builders recorded that slope as a seked (horizontal run per cubit of rise). Modern talk is slant height and angle. Same geometry, different vocabulary. What matters on this page: they are regular square pyramids. Not obelisks, not cones, not spoil heaps.
Inverting V = a²h/3 for a missing edge
The formula reads both ways. Known V and h, want a? Known V and a, want h?
h = 3V / a² ; a = √(3V / h)
Three times the volume, divided by the base area, is the height. The base area is 3V / h, and the side is the square root of that. Watch the cubic unit: litres do not drop into a formula whose a and h are in metres (1 m³ = 1,000 L). Surface area does not invert as cleanly. ℓ depends on both a and h, so a single total area does not pin down the pair (a, h) on its own.
A pyramidal bin of 2 m³ with height fixed at 1.5 m: a = √(3 × 2 / 1.5) = √4 = 2 m. This calculator runs forwards. A scrap of paper runs backwards. The 3 is doing the same job it does on the cone: forget it, and the result is a prism three times too large.
Worked case: base 6, height 8
Same unit throughout. Side a = 6, height h = 8.
- Base area: 6 × 6 = 36.
- Volume: 36 × 8 / 3 = 96.
- Slant height: √(8² + 3²) = √(64 + 9) = √73 ≈ 8.544.
- Lateral edge: √(8² + 6²/2) = √(64 + 18) = √82 ≈ 9.055.
- Lateral area: 2 × 6 × √73 = 12√73 ≈ 102.53.
- Total surface: 36 + 12√73 ≈ 138.53.
The 6-8-10 right triangle does not land in anyone’s lap here. The horizontal leg is 3, half the side, not 6. Hence √73, not 10. A quick volume check: the cuboid 6 × 6 × 8 would be 288; a third of that is 96. A result of 288 dropped the one-third. A result of 144 used a half, as if this were a triangle — the usual slip, one dimension too many.
Unfolding the net without mixing the two heights
Unfold the solid and the result is a square with an isosceles triangle on each side. That net is how card, sheet steel or fabric is cut. The four triangles have altitude equal to the slant height ℓ, not the solid’s height h, and not the lateral edge.
GCSE nets questions live on this distinction. Draw h on the net and the triangles come out too short. Draw the lateral edge as if it were the face-height and they come out too skinny at the base. The square in the middle is a × a; each triangular flap has base a and height ℓ = √(h² + (a/2)²). Tape the four seams and the apex should meet. If it does not, the two lengths were mixed. The same net, scaled, is a roof plan: four hips, four eaves, no ridge if the apex is a point.
Square pyramid is not a tetrahedron
Both are “pyramids” in loose talk. They are not the same solid. A square pyramid has five faces (four triangles and a square). A regular tetrahedron has four faces, all equilateral triangles. Five vertices against four. The volume formula V = (1/3) × base area × height still holds for the tetrahedron, but the base is a triangle and the height is a different expression in the edge length: h = (√6 / 3) a for a regular tetrahedron of edge a, so V = a³ √2 / 12.
School questions sometimes say “pyramid” and mean the square one, sometimes they mean any apex-and-base solid. If the paper gives a square, this page applies. If it gives four equilateral triangles, it does not. A cone is the round cousin, not a tetrahedron either: circular base, one curved face instead of four planes.
Paint, tiles, and whether the base is in the job
Lateral area is the four triangles. Total surface adds the square base. Which one is wanted depends on what is being covered. A roof: the faces are tiled, not the floor of the loft — lateral. A closed wooden model, all sides varnished: total. A stone monument sitting on the ground: the base is not painted; the faces are. The calculator reports both, on purpose.
Keep the units squared (m², cm²) consistent with the lengths that were typed. A 6 m base and an 8 m height give about 103 m² of faces; the same numbers in centimetres give 103 cm², a postcard. Other solids in the geometry section make the same split between wall and total — the cylinder most clearly, lids on or lids off.
Glossary
- Cavalieri’s principle
- Solids of equal height whose cross-sections parallel to the base have equal area have equal volume. It is why a pyramid is one-third of the prism on the same base, even if the apex is not centred.
- Regular square pyramid
- A pyramid whose base is a square and whose apex sits vertically above the centre of that square. All four lateral faces are congruent isosceles triangles. The formulae on this page assume that case.
- Slant height
- The altitude of a triangular face, from the midpoint of a base edge up to the apex, measured on the face. ℓ = √(h² + (a/2)²). Lateral area uses this length, not h and not the corner edge.
- Lateral edge
- The segment from a base corner to the apex, √(h² + a²/2). Longer than the slant height, because it starts at a corner rather than halfway along a side.
- Regular tetrahedron
- Four equilateral triangular faces, four vertices. A pyramid, but not a square pyramid. Volume a³√2 / 12 for edge a. This calculator does not treat it.
- Frustum
- A truncated pyramid: the solid left after a cut parallel to the base removes the apex. Two square faces and four trapeziums (US: trapezoids). Volume (H/3)(B + b + √(Bb)), not a²h/3.