Pyramid Volume Calculator

Find the volume of any pyramid from its base and perpendicular height. Choose the base shape - square, rectangle or triangle - enter the measurements, and get the volume in every common unit with the working shown.

Formula: V = ⅓ × base area × h

square base 6 × 6, h = 10rect 8 × 5, h = 12tri base b = 6, h_b = 4, h = 9

One formula for every pyramid

Regardless of what shape the base is - square, rectangle, triangle, hexagon, anything - a pyramid’s volume is one third of its base area multiplied by its perpendicular height: V = ⅓ × Abase × h. The apex must sit above the base plane; if it leans sideways, h is still the vertical drop from apex to base plane, not the length along a sloped edge.

The base area is where the base-shape choice matters. A square base of side s contributes s²; a rectangle l × w; a triangle ½ × b × hbase. A square pyramid with a 6 cm base and a 10 cm height therefore holds ⅓ × 36 × 10 = 120 cm³, while a rectangular pyramid 8 × 5 cm and 12 cm tall holds ⅓ × 40 × 12 = 160 cm³.

Why one third? It matches the cone. Picture a prism enclosing the pyramid: three identical pyramids can be assembled - after shear transformations that preserve volume - to fill that prism exactly. This is the same 3:1 ratio seen in cones and cylinders, and it is why pyramid-shaped hoppers and roof volumes come out so much smaller than the prism they sit in.

How to use this calculator

  1. Pick the base shape. Square and rectangular bases take one or two side lengths; a triangular base takes the base edge and the height of that triangle.
  2. Enter the base measurements. Each field carries its own unit selector.
  3. Enter the pyramid height. This is the perpendicular distance from the base plane to the apex, not the sloped edge length.
  4. Read the result. The headline shows litres; the table lists cm³, m³, ft³ and US gallons, and the formula bar shows the substitution.

Pyramid variants and related shapes

Square and rectangular pyramids

The most familiar case. For a square base, V = s²h ÷ 3; for a rectangle, V = lwh ÷ 3. The Great Pyramid of Giza, roughly 230.4 m square and 146.5 m tall originally, contains about 2.6 million m³ of masonry - a number this formula yields in one line.

Triangular pyramids (tetrahedra)

A pyramid over a triangular base is a tetrahedron. With base edge b and base-triangle height hb, V = b × hb × h ÷ 6 - the extra factor of ½ comes from the triangular base area. The dedicated triangular-pyramid calculator works through this form if that is your only case.

Truncated pyramids (frustums)

Slice the top off a pyramid parallel to the base and you get a frustum, like a lampshade with a square profile. Its volume is h(R + r + √(Rr)) ÷ 3 using the two parallel base areas. Buckets, hoppers and tapered planters are frustums, and the truncated-pyramid calculator handles them directly.

Pyramids with any polygonal base

The one-third rule never changes - only the base area does. For a regular hexagonal base, A = (3√3 ÷ 2)s²; for an octagon, A = 2(1 + √2)s². Compute the base area from the polygon’s own formula, then multiply by h and divide by three.

Square pyramid volume quick reference

Volumes for square-base pyramids at two heights.

Base sideBase areaVolume at h = 5 cmVolume at h = 15 cm
2 cm4 cm²6.7 cm³20.0 cm³
5 cm25 cm²41.7 cm³125.0 cm³
10 cm100 cm²166.7 cm³500.0 cm³
20 cm400 cm²666.7 cm³2,000.0 cm³
50 cm2,500 cm²4,166.7 cm³12,500.0 cm³

The one-third rule makes pyramids surprisingly compact: a pyramid holds exactly half of the prism that shares its base and has half again the height, and a third of the equal-base equal-height prism. Roof voids and hopper bottoms are consequently far smaller than their bounding boxes suggest.

Where pyramid volume shows up

Roof and attic space

A hip roof over a rectangular building is a rectangular pyramid (often split into two halves). Knowing the volume tells you how much air - and insulation or spray foam - the attic contains: a roof 10 m × 7 m rising 3 m to a ridge encloses about 70 m³ of space per half, using the one-third rule.

Hoppers and storage bottoms

Square-pyramid hoppers funnel grain, sand and gravel toward outlets. A hopper bottom 2 m square with a 1 m tall taper holds ⅓ × 4 × 1 ≈ 1.33 m³ of material. Fabricators quote these figures when sizing discharge equipment and estimating retained product.

Packing, casting and concrete

Pyramid-shaped molds and concrete tops (spiked fence posts, monument bases) are ordered by volume: a casting 30 cm square and 20 cm tall needs ⅓ × 900 × 20 = 6,000 cm³, or 6 litres of resin or concrete. Under-ordering means a short pour, so the margin is added on top of this figure.

Common mistakes & pro tips

  • Using the sloped edge as the height. The height in the formula is the perpendicular drop from apex to base plane. A slanted edge is always longer and inflates the result.
  • Forgetting the one third. Computing base × h gives the enclosing prism’s volume - three times too large.
  • Wrong base area for the shape. A triangular base needs the ½bh formula; using b × h doubles it. Match the base formula to the base shape.
  • Confusing the base-triangle height with the pyramid height. A triangular-base pyramid has two different heights; the calculator labels them separately for exactly this reason.
  • Mixed units across fields. Convert everything to one unit first, or rely on the per-field selectors, which handle conversion consistently.

Frequently asked questions

What is the formula for the volume of a pyramid?
V = ⅓ × base area × h. The base area depends on the base shape: s² for a square, l × w for a rectangle, ½bh for a triangle. The height h is always the perpendicular distance from base to apex.
How do I find the volume of a rectangular pyramid?
Multiply length by width to get the base area, multiply by the height, and divide by 3: V = lwh ÷ 3. A 8 × 5 cm base with a 12 cm height gives 160 cm³.
Why is a pyramid one third of a prism?
Three identical pyramids can be rearranged (by shearing, which preserves volume) to fill the prism that shares their base and height exactly. The same 1:3 ratio links cones and cylinders.
How do I calculate a triangular pyramid volume?
Base area = ½ × b × hbase, then V = base area × height ÷ 3, i.e. V = b × hbase × h ÷ 6. A 6 cm base, 4 cm triangle height and 9 cm pyramid height gives 108 cm³.
What if the pyramid is cut off at the top?
That is a frustum. Use V = h(A₁ + A₂ + √(A₁A₂)) ÷ 3 with the areas of the two parallel faces, or the dedicated truncated-pyramid calculator.
Does the formula work for a hexagonal or octagonal base?
Yes - only the base area changes. Compute it with the polygon’s own area formula, then apply base × h ÷ 3 as usual.
How tall is a pyramid if I know its volume?
Rearrange to h = 3V ÷ base area. Keep V and the base dimensions in compatible units before dividing.

Related calculators

Educational use only. Results are provided for planning and study purposes. Storm Lane is not liable for decisions made solely on these figures - double-check critical measurements with a qualified professional.