Square Pyramid Calculator - Side, Height, Slant & Area

Use this square pyramid calculator to find volume, slant height, lateral surface area, and total surface area from a base side length and perpendicular height.

Updated: June 16, 2026 • Free Tool

Square Pyramid Calculator

Length of one side of the square base. The base is a regular square, so all four base edges use the same value, in any consistent linear unit such as inches, feet, centimeters, or meters.

Vertical perpendicular distance from the square base to the apex, not the slant height of a triangular face.

Results

Volume
0cubic units
Base Area 0square units
Slant Height 0linear units
Lateral Surface Area 0square units
Total Surface Area 0square units

What Is Square Pyramid Calculator?

A square pyramid calculator finds the cubic inside space, slant height, lateral surface area, and total surface area of a right square pyramid from a base side length and a perpendicular height in one pass.

  • Classroom geometry: Check homework and lesson problems on the V = (1/3) s^2 h rule and the slant height of a regular square pyramid.
  • Roof and canopy framing: Estimate the area of a square hip roof that tapers to a central peak, the most common building shape that uses the square pyramid formula.
  • Stockpile and hopper takeoffs: Estimate the volume of a square base pile of sand, salt, gravel, or grain when you know the base footprint and the apex drop.
  • Model and 3D printing: Size a square pyramid model, paper weight, or print job from a known base and apex height.

A square pyramid has a flat square base and four congruent triangular faces that meet at a single apex. The height h is the perpendicular distance from the base to the apex, and s controls B = s^2 and the slant height l.

The four triangular faces share the same slant height because the base is a regular square, which makes the square pyramid the cleanest member of the pyramid family. The square pyramid has one slant and a single lateral surface area L = 2 s l.

For a base area method that takes any footprint, the Pyramid Volume Calculator runs the same (1/3) B h step on a different base shape.

How Square Pyramid Calculator Works

The calculator runs the square pyramid volume formula V = (1/3) s^2 h, derives the slant height of the four triangular faces, then builds the lateral and total surface area from the same dimensions.

V = (1/3) * s^2 * h, with base area B = s^2, slant height l = sqrt(h^2 + (s/2)^2), lateral surface area L = 2 s l, and total surface area SA = s^2 + 2 s l
  • s (base side length): Length of one side of the square base. The same value applies to all four base edges.
  • h (perpendicular height): Vertical perpendicular distance from the base plane to the apex, not the slant height of a face.
  • B, l, L, V, SA: B is the base area s^2. l is the slant height. L is the lateral surface area. V is the cubic volume. SA is the total surface area.

The factor 1/3 comes from three congruent right pyramids of equal base and height fitting exactly into a right prism of the same base and height, the classic proof that the pyramid volume is one third of the prism volume.

The slant height l is the line from the apex to the midpoint of a base edge, so l depends on the perpendicular height h and half of the base side s. The slant height is the same for all four faces.

Square pyramid with base side 6 and height 9

Side length 6, height 9.

B = 6^2 = 36.00. V = (1/3) * 36.00 * 9 = 108.00. l = sqrt(9^2 + 3^2) = 9.49. L = 2 * 6 * 9.49 = 113.84. SA = 36.00 + 113.84 = 149.84.

Volume 108.00 cubic units, base area 36.00 square units, total surface area 149.84 square units.

The four triangular faces share the same slant height because the base is square, so the lateral surface area is just four identical triangles. The volume is one third of a 6 by 6 by 9 box.

According to Wolfram MathWorld, the volume of a pyramid is one third of the base area times the perpendicular height, V = (1/3) B h, regardless of base shape.

The closest solid that uses a circular base and the same (1/3) base area times height step is a cone, and the Cone Volume Calculator runs that pi r^2 h version.

Key Concepts Explained

Four ideas decide whether the result from this square pyramid calculator matches the shape you are measuring.

Square base area B = s^2

The square base area is the base side length squared, B = s^2. It is the multiplier in the (1/3) B h step and the first term in the total surface area.

Perpendicular height h

The perpendicular height is the straight line from the base plane to the apex, measured at a right angle to the base. It is not the slant height of a triangular face.

Slant height l = sqrt(h^2 + (s/2)^2)

The slant height runs from the apex to the midpoint of a base edge, and it is the height of each triangular face. The (s/2) term is half of the base side, so l grows with both the apex height and the base size.

Right and oblique square pyramids

The (1/3) B h rule works for any square pyramid with a known perpendicular height, right or oblique. The slant heights and face areas shift when the apex moves off the centroid, but the cubic volume is unchanged.

A common mistake is to use the slant height of a triangular face in place of the perpendicular height. The slant is always longer, so using it where the formula needs h overstates the volume. Measure the perpendicular height with a plumb line.

The square pyramid is the special case of a rectangular pyramid where length and width collapse to the same value, so the two slants of a rectangular pyramid reduce to one here. The square case makes the lateral surface area a clean four-triangles sum.

When the base is a true rectangle rather than a square, the Rectangular Pyramid Volume Calculator shows the two distinct slant heights and the four different face areas.

How to Use This Calculator

Enter the base side length and the perpendicular height, then read the result rows in order so the formula step stays auditable.

  1. 1 Measure the base side length: Pick the side of the square base and enter it as s in the same linear unit that you will use for the height. All four base edges of a square pyramid share this value.
  2. 2 Measure the perpendicular height: Use a level, plumb bob, or laser to find the perpendicular distance from the base plane to the apex, and enter it as h.
  3. 3 Read the base area and volume: Use the Base Area row to confirm the footprint (s^2) and the Volume row for cubic inside space in material counts, fill estimates, or geometry problem answers.
  4. 4 Read the slant height and surface area: Use the Slant Height row for framing, sheathing, or roof slope work, and the Lateral and Total Surface Area rows for skin, paint, or label coverage.

A contractor has a 6 ft square hip roof that rises 9 ft to the peak. The inputs give 108.00 cubic feet of roof space, a slant of 9.49 ft, a lateral area of 113.84 square feet, and a total surface area of 149.84 square feet.

Once the volume is in cubic feet or cubic meters, the Volume Converter moves the result into the unit the material list or invoice uses.

Benefits of Using This Calculator

A dedicated square pyramid calculator gives the volume, the slant height, the lateral surface area, and the total surface area in one step.

  • Volume, base area, and surface area in one pass: Enter the two dimensions once and get cubic inside space, the square base area, the slant height, the lateral surface area, and the total surface area.
  • Single slant height for all four faces: The square base means the four triangular faces share one slant height, so the result is the clean four-triangles lateral area L = 2 s l that geometry textbooks use.
  • Step-by-step audit trail: The result rows show B, l, L, V, and SA in the same order as the formula, so a teacher, student, or contractor can follow the (1/3) B h step and the (s/2) slant step without backtracking.
  • Decimal friendly: Decimal side and height values work for measured drawings, scaled plans, and metric or imperial units, so the same form works for school problems and field measurements.

A real object is often measured by base side and apex drop, and the surface area or slope of the triangular faces matters as much as the cubic inside space. The calculator gives both, so the same form is useful for school, shop, and field use.

For framing or sheathing, the slant height is the line that the carpenter or sheet-metal worker measures along the roof face, and the lateral surface area is the four panels that need to be cut and joined at the apex.

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

Factors That Affect Your Results

The result is a small piece of math, but a few measurement choices decide whether the answer matches the real pyramid.

Perpendicular height vs slant height

The formula needs the perpendicular distance from base plane to apex. Using the slant height of a triangular face, which is always longer, overstates the volume and changes the slant height result.

Right and oblique square pyramids

The (1/3) B h rule works for any square pyramid with a known perpendicular height. For an oblique square pyramid, h is still the perpendicular drop from the apex to the base plane, and the volume is unchanged from a right pyramid of the same base and h.

Unit consistency

Both length inputs must use the same linear unit. Mixing inches and feet, or feet and meters, gives an answer off by a power of 12 or 3.281.

  • The calculator does not solve for a missing dimension when only the volume is known, because the same volume can come from many different side and height combinations.
  • Real roof sections, stockpiles, and bins are rarely perfect right square pyramids, so the result is a geometric estimate rather than a survey-grade measurement of a real pile or roof.

When the apex is offset from the centroid, the four triangular faces are no longer congruent, and the single slant height l is no longer a single value. The (1/3) B h volume is still correct, but the face areas need a separate calculation.

Use the (1/3) B h volume for stockpile, fill, and material takeoffs, and use the slant height and lateral surface area for sheathing, framing, or roof skin.

According to Wikipedia, the lateral surface area of a right square pyramid is 2 s l where s is the base side length and l is the slant height, and the total surface area is s^2 + 2 s l.

According to Cuemath, the volume of a square pyramid equals one third times the base side length squared times the perpendicular height, V = (1/3) s^2 h.

When the question is how the surface area compares to the cubic inside space, the Surface Area to Volume Ratio Calculator divides the total surface area by the volume to give that ratio.

square pyramid calculator showing base side length and perpendicular height inputs with the (1/3) s^2 h volume step and slant height sqrt(h^2 + (s/2)^2) result
square pyramid calculator showing base side length and perpendicular height inputs with the (1/3) s^2 h volume step and slant height sqrt(h^2 + (s/2)^2) result

Frequently Asked Questions

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

A: The volume of a square pyramid is V = (1/3) * s^2 * h, where s is the base side length and h is the perpendicular height from the base plane to the apex. The same rule also reads V = (1/3) * B * h with B = s^2, and works for any pyramid that has a known perpendicular height, right or oblique.

Q: How do you find the volume of a square pyramid step by step?

A: Measure the base side length and the perpendicular height in the same linear unit. Square the side length to get the base area, then multiply the base area by the height and divide by three. For side length 6 and height 9 the base area is 36 and the volume is (1/3) * 36 * 9 = 108 cubic units.

Q: What is the slant height of a square pyramid?

A: The slant height of a square pyramid is the line from the apex to the midpoint of a base edge, and it is the height of each triangular face. It is l = sqrt(h^2 + (s/2)^2), where h is the perpendicular height and s is the base side length. Because the base is a regular square, all four faces share the same slant height.

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

A: Use one linear unit for the base side length and the perpendicular height, such as inches, feet, centimeters, or meters. The base area row shows the footprint in square units of that length, the slant height row shows the slant in linear units, and the volume row shows the inside space in cubic units. Mixing feet and inches, or feet and meters, gives an answer off by a power of 12 or 3.281.

Q: What is the difference between a square pyramid and a square prism?

A: A square prism is a box with two parallel square faces and four rectangular side faces; its volume is V = s^2 * h. A square pyramid has one square base and four triangular faces that meet at the apex, and its volume is one third of the same product, V = (1/3) * s^2 * h. Three congruent right square pyramids of equal base and height fit exactly into the matching prism, which is the geometric proof of the one-third factor.

Q: How do you find the surface area of a square pyramid?

A: Add the square base area to the lateral surface area of the four triangular faces. Each triangular face has a base of length s and a height equal to the slant height l, so the four faces together cover an area of 2 s l. The total surface area is s^2 + 2 s l, in square units of the chosen length.