Try it with your numbers
Show every step
That single formula covers every base shape, from squares to hexagons. The real skill is finding and the true height , and the sections below show how, including slant height, working backward and frustums.
Volume of a Pyramid Formula: What B and h Mean
is an area, not a side length. For a square base of side , (see the area of a square), and for a rectangle, (see the area of a rectangle). Any polygon works, as long as you can find its area. The answer is in cubic units, so a base in square metres and a height in metres give cubic metres.
Both measurements must use the same unit before you multiply. A base in square centimetres with a height in metres gives a number that means nothing. Convert first, then calculate.
The height is the straight-down distance from the apex to the base plane, meeting the base at a right angle. The slant height runs along a triangular face and is always longer, so using it makes the volume too big.
Diagrams usually show as a dashed vertical line inside the pyramid, often marked with a small right-angle square. If a problem gives only a sloping length, the true height has to be built from it. That is covered in the slant height section below.
Quick check
Answer:
Why Is the Volume of a Pyramid One Third of a Prism?
Picture a cube with side . Choose one corner and join it to every corner of the three faces that do not touch it. The cube splits into three identical pyramids with no gaps and no overlaps. Each has a base of area and a height of , so each holds one third of the cube’s volume:
This works for one special pyramid. To reach every pyramid, slice it parallel to the base. At distance from the apex, the slice is a scaled copy of the base with area . Adding up the slices gives:
The is the same one that appears when you integrate . It exists because the slices shrink with the square of the distance to the tip, not because someone picked it. Cavalieri’s principle adds a useful consequence: the apex can sit anywhere above the base plane, and the volume stays the same as long as the perpendicular height does.
How to Find the Volume of a Pyramid Step by Step
The method is the same every time, whatever the base:
- Identify the base shape and find its area .
- Find the perpendicular height , using the same length unit as the base.
- Multiply by , then divide by .
- Write the answer in cubic units.
Example 1. A square pyramid has a base edge of and a height of .
A faster route is to divide whichever number is a multiple of first. Here , so the work becomes , with no fraction to carry. As a check, the matching prism holds , and .
Volume of a Pyramid When You Only Know the Slant Height
Problems often give the slant height , the distance from the apex down the middle of a triangular face to the midpoint of a base edge. Inside a regular square pyramid there is a right triangle: the height is one leg, half the base edge is the other leg, and is the hypotenuse. The Pythagorean theorem then gives:
Example 2. A regular square pyramid has base edge and slant height .
Half the base edge is , so . This is a triangle, one of the common Pythagorean triples, so it is worth spotting on sight. The base area is , so:
Be careful about which length you are given. If the problem gives the lateral edge (the slanted edge from a base corner to the apex), the right triangle changes. The horizontal leg becomes half the base diagonal, , not half the edge. With and a lateral edge of , you get , so , which is not a whole number.
Try this: A regular square pyramid has base edge and slant height . Find first, then . (Look for a triangle.)
Volume of Triangular and Hexagonal Pyramids
Only the base area changes. For a triangular base, (see the area of a triangle), where is the triangle’s own height, not the pyramid’s. Putting that into the formula gives . For a regular hexagon with side , the base area is , as in the area of a regular hexagon.
| Base | Base area | Pyramid volume |
|---|---|---|
| Square, side | ||
| Rectangle, by | ||
| Triangle, base , height | ||
| Regular hexagon, side |
Example 3. A pyramid has a regular hexagonal base with side and height .
Keep exact until the last step. Rounding to early shifts the answer by almost a whole unit here.
How to Find the Height or Base Edge From the Volume
When the volume is given and a dimension is missing, undo the by multiplying by on both sides:
A square pyramid has volume and height . Then . Since , the edge is . The step students skip is the square root: the formula returns an area, and the edge is its positive root. A negative length has no meaning, so only is kept.
Fractions and decimals follow the same pattern. If and , then . Cancel the into the first, and the into what remains, instead of working with a decimal like .
Volume of Oblique Pyramids and Frustums
An oblique pyramid leans: its apex is not above the centre of the base. The formula does not change, because every horizontal slice has the same area as in an upright pyramid of the same base and height. What you need is the perpendicular height, measured straight down to the base plane. A slanted edge length is a distractor.
A frustum is a pyramid with the top sliced off parallel to the base. It has two bases, a large and a small , a distance apart.
. Averaging the two base areas and multiplying by overshoots, because the solid narrows faster than a straight average assumes.
Take a square frustum with bottom edge , top edge and height . The formula gives . Subtraction confirms it. The top is a half-size copy of the bottom (see similar triangles for why the heights scale the same way), so the full pyramid is tall and the removed tip is tall. Then . The averaging mistake would give , which is wrong.
Quick check
Answer:
Pyramid Volume vs Cone, Prism and Tetrahedron Formulas
A cone is a pyramid with a round base, so it uses the same rule: (see the volume of a cone). A prism or cylinder has constant cross-section, so its volume is with no third. For a box, that is length times width times height. The pyramid’s third is the price of tapering to a point.
Volume and surface area are often confused. Volume uses the perpendicular height . Surface area of a regular pyramid uses the slant height: , where is the base perimeter. Asking which of the two lengths a formula needs is the quickest way to avoid the height trap.
There is also a link to linear algebra. A tetrahedron (a triangular pyramid) with one vertex at the origin and the other three at the tips of vectors , , has volume , using the determinant of a 3×3 matrix. For vertices , and :
This matches .
How to Check Your Pyramid Volume Answer
Three quick checks catch most errors:
- The pyramid must be exactly one third of its matching prism, so compute and confirm your answer is a third of it.
- The pyramid must fit inside its bounding box, so the answer can never exceed .
- The unit must be cubic. Square units mean the height was dropped, and plain units mean the base area was mistaken for a length.
Scale makes a good sanity test too. The Great Pyramid of Giza was originally about along each base edge and about tall. The formula gives million cubic metres, which agrees with the figure usually quoted. The same calculation sizes a roof hip, a tent, a hopper or a pile of gravel that settles into a pyramid.
When a result looks off, compare it with the box around it. A pyramid that fills more than a third of its box has a mistake somewhere, and it is usually the missing division by .
Quick check
Answer: Three times too big;
Practice problems
0 of 5 solved
- A pyramid has a rectangular base by and a height of . Find its volume.
Answer:
Base area: . Volume: . - A square pyramid has volume and height . Find the base edge.
Answer:
Write . Then . Take the positive root: . - A regular square pyramid has base edge and slant height . Find its volume.
Answer: cubic units
Half the base edge is , so . Base area: . Volume: . - A pyramid has a regular hexagonal base with side and a height of . Find its exact volume.
Answer: cubic units
Hexagon area: . Volume: . - A square frustum has bottom edge , top edge and height . Find its volume.
Answer: cubic units
The bases have areas and , and . Then . Check: the full pyramid has height and volume . The removed tip has height and volume . The difference is .
Common questions
What is the formula for the volume of a pyramid?
, where is the area of the base and is the perpendicular height from the base to the apex. It works for every base shape, because only the base area and the height matter.
Why is the volume of a pyramid divided by 3?
A pyramid fills exactly one third of the prism that has the same base and height. A cube splits into three identical pyramids that meet at one corner, which shows the factor directly.
How do you find the volume of a pyramid with the slant height?
Use the Pythagorean theorem to turn the slant height into the true height. For a regular square pyramid with base edge and slant height , . Then apply .
What is the volume of a square pyramid?
, where is the side of the square base and is the perpendicular height. A base of side and height gives .
Does the formula change for a triangular or hexagonal pyramid?
No. Only the base area changes. A triangular base gives , and a regular hexagon of side gives . The and the height stay the same.
How do you find the volume of a frustum of a pyramid?
Use , where and are the two base areas. You can also subtract the small removed pyramid from the full pyramid.