Online Calculators

Square Pyramid Calculator

Pyramid Calculator
h =
slant height
s =
side length
a =
perimeter of base
P =
lateral edge length
e =
1/2 side length
r =
V =
lateral surface area
L =
base surface area
B =
total surface area
A =
side face slope
m =
side face angle
θ =

Square Pyramid Shape

Pyramid Diagram with h = height, l = length and w = width and s = slant height

h = height
s = slant height
a = side length
P = perimeter of base
e = lateral edge length
r = a/2
V = volume
L = lateral surface area
B = base surface area
A = total surface area
m = h/r = rise/run = side face slope
θ = tan-1(h/r) × 180/π = side face angle

Calculator Use

This online calculator will calculate the various properties of a square pyramid given 2 known variables. The square pyramid is a special case of a pyramid where the base is square. It is a regular pyramid since it has a square base which is a regular polygon. This is also a right square pyramid where "right" refers to the fact that the apex lies directly above the centroid of the base. In other words the point at the top of the pyramid is directly above the center point of the square base.

Units: Note that units are shown for convenience but do not affect the calculations. The units are in place to give an indication of the order of the results such as ft, ft2 or ft3. For example, if you are starting with mm and you know r and h in mm, your calculations will result with s in mm, V in mm3, L in mm2, B in mm2 and A in mm2.

NAN: means not a number. This will show as a result if you are using values that just do not make sense as reasonable values for a pyramid.

Below are the standard formulas for a pyramid. Calculations are based on algebraic manipulation of these standard formulas.

Square Pyramid Formulas derived in terms of side length = a and height = h:

Volume of a Square Pyramid

  • V = (1/3)a2h

Slant Height of a square pyramid

  • By the pythagorean theorem we know that
  • s2 = r2 + h2
  • since r = a/2
  • s2 = (1/4)a2 + h2, and
  • s = √(h2 + (1/4)a2)
  • This is also the height of a triangle side

Lateral Surface Area of a square pyramid (× 4 isosceles triangles)

  • For the isosceles triangle Area = (1/2)Base x Height. Our base is side length a and for this calculation our height for the triangle is slant height s. With 4 sides we need to multiply by 4.
  • L = 4 x (1/2)as = 2as = 2a√(h2 + (1/4)a2)
  • Squaring the 2 to get it back inside the radical,
  • L = a√(a2 + 4h2)

Base Surface Area of a square pyramid (square)

  • B = a2

Total Surface Area of a square pyramid

  • A = L + B = a2 + a√(a2 + 4h2))
  • A = a(a + √(a2 + 4h2))

Slope of Pyramid Side Face

  • To find the pyramid slope of the side face we want to calculate the slope of the line s = slant height
  • We know that the slope of a line is m = rise/run
  • For the line s the rise is h = height of the pyramid
  • r = a/2 and this is the run as it forms a right angle where r meets h at the center of the base
  • m = h/(a/2) - in terms of h and a
  • m = h/r - in terms of h and r

Angle of Pyramid Side Face

  • The angle of the pyramid side face is the angle formed between the side face and the base
  • Let's name theta θ = Side Face Angle and alpha α = the right angle (90°) formed by h and r
  • Using the Law of Sines we can say that s/sin(α) = h/sin(θ)
  • Solving for the unknown θ we have
  • θ = sin-1[ (h × sin(α)) / s ]
  • We have another formula for θ in terms of the tangent from trigonometric ratios
  • Since tan(θ) = side opposite θ / side adjacent θ we can say
  • tan(θ) = h/r
  • Solving for the unknown θ
  • θ = tan-1(h/r)
  • θ in both calculations is in radians. Convert radians to degrees by multiplying θ by 180/π

Square Pyramid Calculations:

Other formulas for calculations are derived from the formulas above.


Weisstein, Eric W. "Square Pyramid." From MathWorld--A Wolfram Web Resource. Square Pyramid.


Cite this content, page or calculator as:

Furey, Edward "Square Pyramid Calculator" at https://www.calculatorsoup.com/calculators/geometry-solids/pyramid.php from CalculatorSoup, https://www.calculatorsoup.com - Online Calculators

Last updated: October 4, 2023

Follow CalculatorSoup: