Free Pyramid Volume Calculator

Enter the height and side length to calculate the pyramid volume

Pyramid Volume Formula

Any pyramid’s volume can be found by multiplying its base area by its perpendicular height and then taking one‑third of that product. This universal relation holds for every pyramid, regardless of whether the base is a triangle, square, pentagon, or any other polygon, and works for both right and oblique pyramids:

V=13BhV = \frac{1}{3} B h

where BB is the area of the base and hh is the height measured from the apex to the base plane.

When the base is a regular polygon (all sides equal, all interior angles equal), the base area can be expressed using only the side length ss and the number of sides nn. Substituting that expression into the general formula gives a compact form that covers all regular pyramids:

V=n12s2hcot⁡(πn)V = \frac{n}{12} s^{2} h \cot\left(\frac{\pi}{n}\right)

The following sections apply this general rule to the most common pyramid shapes, providing ready‑to‑use formulas for each.

Volume of a Square Pyramid (n = 4)

For a square base, cot⁡(π/4)=1\cot(\pi/4) = 1, so the volume simplifies to the well‑known relation:

Vsquare=13s2hV_{\text{square}} = \frac{1}{3} s^{2} h

A classic example is the Great Pyramid of Giza (Cheops). Its base side length is about 230.3 m. Originally it stood 146.6 m high, giving an original volume of roughly 2,591,795 m³. Erosion has reduced its height to 138.5 m, lowering the present‑day volume to approximately 2,448,592 m³.

Volume of a Triangular Pyramid (Tetrahedron, n = 3)

When the base is an equilateral triangle, cot⁡(π/3)=1/3\cot(\pi/3) = 1/\sqrt{3}, and the volume becomes:

Vtriangular=312s2hV_{\text{triangular}} = \frac{\sqrt{3}}{12} s^{2} h

A special case is the regular tetrahedron, where all four faces are equilateral triangles. Its height is linked to the edge length aa by h=a3/6h = a\sqrt{3}/6. Inserting this relation yields a formula that depends only on the edge:

Vtetrahedron=a362V_{\text{tetrahedron}} = \frac{a^{3}}{6\sqrt{2}}

For instance, a tea‑pyramid sachet with a height of 1.2 inches and a base side of 1.5 inches has a volume of about 0.39 cubic inches using the first triangular formula.

Volume of a Hexagonal Pyramid (n = 6)

A regular hexagonal pyramid has a base with six equal sides. Since cot⁡(π/6)=3\cot(\pi/6) = \sqrt{3}, the volume expression condenses to:

Vhexagonal=32s2hV_{\text{hexagonal}} = \frac{\sqrt{3}}{2} s^{2} h

This formula is directly usable for any regular hexagon‑based pyramid.

Volume of a Pentagonal Pyramid (n = 5)

For a regular pentagon base, cot⁡(π/5)=25+1055\cot(\pi/5) = \sqrt{\dfrac{25+10\sqrt{5}}{5}}. Substituting into the general equation gives:

Vpentagonal=25+10512s2hV_{\text{pentagonal}} = \frac{\sqrt{25+10\sqrt{5}}}{12} s^{2} h

Volume of an Octagonal Pyramid (n = 8)

With cot⁡(π/8)=1+2\cot(\pi/8) = 1+\sqrt{2}, the octagonal pyramid volume formula becomes:

Voctagonal=2(1+2)3s2hV_{\text{octagonal}} = \frac{2(1+\sqrt{2})}{3} s^{2} h

These shape‑specific forms allow rapid volume estimation without needing to compute the base area separately.

Pyramid Geometry & Naming

A pyramid with an n‑sided base always has n+1n+1 faces (n triangular side faces plus the base), 2n2n edges, and n+1n+1 vertices. The naming follows directly from the base’s shape, as summarised in the table below.

Base ShapeFacesEdgesVerticesPyramid Name
Triangle464Triangular pyramid (tetrahedron)
Square585Square pyramid
Pentagon6106Pentagonal pyramid
Hexagon7127Hexagonal pyramid
Heptagon8148Heptagonal pyramid
Octagon9169Octagonal pyramid

Using the calculator is straightforward: you may enter the base area and height directly, or specify the base shape, side length, and height when dealing with a regular pyramid. The tool then applies the appropriate formula and returns the volume instantly.

This guide covers the essential principles behind pyramid volume calculation – from the fundamental formula through the specific equations for square, triangular, hexagonal, pentagonal, and octagonal pyramids – enabling you to compute the volume of virtually any regular pyramid.

FAQ

1. How do I calculate the volume of a pyramid?

The volume of any pyramid is one-third of the product of its base area and height: V = (1/3) × base_area × height. If the pyramid has a regular polygon base, you can use the general formula V = (n/12) × height × side_length² × cot(π/n), where n is the number of sides.

2. What is the specific formula for the volume of a square pyramid?

For a square pyramid (n=4), the formula simplifies to V = (1/3) × s² × h, where s is the side length of the square base and h is the pyramid height. This is the same as the classic formula used for the Great Pyramid of Giza.

3. How can I find the volume of a triangular pyramid (tetrahedron)?

If the base is an equilateral triangle, use V = (√3/12) × s² × h. For a regular tetrahedron (all faces equilateral), you can use the edge-only formula V = a³ / (6√2), where a is the edge length.

4. What is the volume formula for a hexagonal pyramid?

For a regular hexagonal pyramid (n=6), the simplified formula is V = (√3/2) × s² × h, where s is the side length and h is the height. This comes from plugging n=6 into the general pyramid volume formula.

How to Use

  1. Select the shape of the pyramid base (triangle, square, pentagon, etc.) from the dropdown.
  2. Enter the height and side length of the pyramid in your preferred units.
  3. View the calculated volume instantly. Switch the volume unit to see the result in different measurements.