BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 4 primary sourcesLast updated

Volume of a Pyramid Calculator (Square, Rectangular and Triangular)

The Volume of a Pyramid Calculator finds the volume of a pyramid with a square, rectangular, triangular or any regular base, plus slant height and surface area. Shows the one-third formula.

Quick Answer: The volume of a pyramid is one third of its base area times its height. A square pyramid with a 6 cm base and a height of 4 cm holds 48 cm³: the base is 36 cm², and a third of 36 × 4 is 48.

Assumptions

Computed

Preset scenarios

Volume
48 cm³
Base area
36 cm²
Slant height
5 cm
Area of the sloping faces
60 cm²
Total surface area
96 cm²

Square pyramids by base side, height 10

Download CSV
Each row is this calculator run on a square-based pyramid with the base side shown and a height of 10. Volume, slant height and total surface are rounded to four decimal places.
Base sideVolume (unit cubed)Slant heightTotal surface (unit squared)
213.333310.049944.1995
453.333310.19897.5843
583.333310.3078128.0776
612010.4403161.2837
8213.333310.7703236.3253
10333.333311.1803323.6068
1248011.6619423.8857
1575012.5600
16853.333312.8062665.8
201,333.333314.1421965.6854
241,92015.62051,325.784
303,00018.02781,981.6654

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Volume of a Pyramid Calculator (Square, Rectangular and Triangular): Volume 48 cm³ (Shape of the base: Rectangle or square; Base length (rectangle): 6; Base width (rectangle): 6; Height: 4; Length unit: Centimetres (cm)).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of two sandstone pyramids rising from golden desert dunes with tiny camels in the distance
Quick Answer: The volume of a pyramid is one third of its base area times its height. A square pyramid with a 6 cm base and a height of 4 cm holds 48 cm³: the base is 36 cm², and a third of 36 × 4 is 48.

What does this calculator do?

This calculator finds the volume of a pyramid, and its surface area where the shape allows it. It handles a rectangular or square base, a regular polygon base from its number of sides and side length, and any other base whose area you already know.

A regular polygon base can be an equilateral triangle, a square, a pentagon, a hexagon and so on. Alongside the volume it gives the slant height, the edge from a base corner to the tip, the area of the sloping faces and the total surface area.

The one-third in the volume formula is the surprising part. A pyramid takes up exactly a third of the box, or prism, that would just enclose it: same base, same height. Euclid proved it for a triangular base by cutting a triangular prism into three pyramids of equal volume, and the result carries over to any base. The same rule makes a cone a third of a cylinder.

Lengths can be in any unit, all in the same one. Volume comes back in that unit cubed and surfaces in that unit squared. The calculator assumes a right pyramid, with its tip directly above the centre of the base, and rounds results to four decimal places for display.

Using the Volume of a Pyramid Calculator

  1. Choose the shape of the base.
  2. For a rectangle or square, enter its length and width. For a regular polygon, enter the number of sides (3 for a triangular pyramid, 4 for a square one) and the side length. For any other base, enter its area.
  3. Enter the height: the perpendicular distance from the base to the tip, not the length up a sloping face.
  4. Pick the unit.

The presets load a rectangular pyramid on an 8 by 6 base, a triangular pyramid on an equilateral base of side 6, and a pyramid with a known base area of 50 and a height of 12. The table below the calculator lists square pyramids of height 10 with bases from 2 to 30.

How is this calculated?

  1. Volume. In every mode the volume is the base area B times the height h, divided by 3.

V = 1/3Bh

  1. Rectangular base, l by w. The base area is l times w. Each triangular face has its own slant height, from the middle of its base edge up to the tip. Over a length edge that is the square root of h² plus half the width squared; over a width edge, h² plus half the length squared. The sloping faces add up to l times the first slant plus w times the second.

sₗ = √(h² + (w/2)²); s_w = √(h² + (l/2)²); A_faces = l sₗ + w s_w

  1. Regular polygon base, n sides of length a. The base area comes from its apothem, the distance from the centre to the middle of a side, which is a divided by twice the tangent of 180°/n. All the faces are identical, with slant height the square root of h² plus the apothem squared, so their total area is half the base perimeter times the slant height. The edge from a base corner to the tip uses the circumradius, the distance from the centre to a corner.

r_apothem = a/(2 tan(180^∘/n)); s = √(h² + r_apothem²); A_faces = nas/2

  1. Total surface adds the base to the sloping faces. In base-area mode only the volume is given, because the faces depend on the base's shape.
  1. Round for display to four decimal places, half up.

Worked Example

The default is a square pyramid with a 6 cm base and a height of 4 cm.

  1. Base area: 6 × 6 = 36 cm².
  2. Volume: 36 × 4 ÷ 3 = 48 cm³.
  3. Slant height: the square root of 4² + 3², which is 5 cm.
  4. Sloping faces: four triangles, each 6 wide and 5 tall, so 4 × 6 × 5 ÷ 2 = 60 cm². Adding the base gives a total surface of 96 cm².

A rectangular pyramid on an 8 by 6 base, 4 high has a volume of 48 × 4 ÷ 3 = 64. Its faces lean differently: the slant height is 5 on the long faces and 5.6569 on the short ones, and the sloping area comes to 73.9411.

A triangular pyramid on an equilateral base with sides of 6 and a height of 4 has a base area of 15.5885 and a volume of 20.7846. The slant height of each face is 4.3589, and each edge from a base corner to the tip is 5.2915 long.

What Is the Volume Formula for a Pyramid?

V = ⅓Bh, where B is the area of the base and h is the perpendicular height. It works for any base shape: square, rectangular, triangular, hexagonal or irregular. Only the base area changes.

For a square pyramid the formula becomes V = ⅓a²h, for a rectangular pyramid V = ⅓lwh, and for a triangular pyramid it is a third of the triangle's area times the height.

How Do You Find the Volume of a Triangular Pyramid?

Find the area of the triangular base, multiply by the height of the pyramid and divide by 3. If the base is an equilateral triangle, choose a regular polygon base with 3 sides and the calculator works out its area for you.

If it is some other triangle, find its area first (the triangle area calculator does this from the three sides) and enter it in base-area mode.

How Do You Find the Surface Area of a Regular Pyramid?

Add the base area to the area of the sloping faces. For a regular pyramid all the faces are identical triangles, so their combined area is half the base's perimeter times the slant height. The slant height is not the pyramid's height: it runs up the middle of a face and is always longer.

Get it from the height and the apothem with the Pythagorean theorem.

What does this calculator not account for?

  • Oblique pyramids. If the tip is not above the centre of the base, the volume formula still holds, but the faces are no longer congruent and the surface figures here do not apply.
  • Frustums. A pyramid with its top cut off is a frustum. Its volume is the full pyramid's minus the small one removed from the top; run the calculator twice and subtract.
  • Surface area in base-area mode. With only the base area known, the shape of the faces is unknown.
  • Irregular polygon bases. The regular-polygon mode assumes equal sides and angles.
  • Unit conversion. All lengths must be in one unit.

What mistakes do people make with this?

  • Forgetting the third. Base area times height is the prism's volume, three times the pyramid's.
  • Using the slant height as the height. The volume needs the vertical height. Using the slant height overstates it.
  • Using the height for the face area. The faces need the slant height, not the vertical height.
  • Using a base edge instead of the base area. For a square base 6 on a side, B is 36, not 6.
  • Assuming all faces are the same on a rectangular pyramid. They come in two pairs with different slant heights.

Frequently Asked Questions

What is the volume of a square pyramid formula?

V = ⅓a²h, the side of the base squared, times the height, divided by 3. With a base of 6 and a height of 4 that is 48.

How do you find the volume of a rectangular pyramid?

Multiply the base length, base width and height, then divide by 3: V = ⅓lwh. A base of 8 by 6 with a height of 4 gives 64.

Why is a pyramid one third of a prism?

A triangular prism can be cut into three pyramids that all have the same volume, so each is a third. Euclid gives this in Book XII of the Elements, and calculus confirms it for any base by adding up thin slices that shrink toward the tip.

What is the slant height of a pyramid?

The height of one of its triangular faces, measured from the middle of a base edge up to the tip. For the default square pyramid it is 5, while the vertical height is 4.

What is a tetrahedron?

A pyramid with a triangular base, so four triangular faces in all. A regular tetrahedron has four equilateral faces, which happens when the height is the side times the square root of two thirds.

Is a cone a pyramid?

Not strictly, but it follows the same rule: a third of the base area times the height. The cone volume calculator works it out from the radius.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 7 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: a square pyramid, base 6, height 4, is 48 cm³
  • a rectangular base 8 by 6 has two slant heights
  • a triangular pyramid on an equilateral base of side 6, height 4
  • a regular square base matches the rectangular square base
  • any base area: 50 with height 12 is 200
  • refuses a zero height and a two-sided polygon
  • builds the reference table from compute()

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews