Mathematics · Geometry · Solid Geometry
Pyramid Volume Calculator
Calculates the volume of any pyramid given its base area and perpendicular height using the standard one-third formula.
Calculator
Formula
V is the volume of the pyramid (cubic units). B is the area of the base (square units). h is the perpendicular height from the base to the apex (same linear units as the base dimensions). For a square base: B = a^2. For a rectangular base: B = l \times w. For a triangular base: B = \frac{1}{2} b t.
Source: Euclid, Elements Book XII; confirmed in any standard solid geometry textbook (e.g., Stewart, Calculus, Appendix G).
How it works
A pyramid is a three-dimensional solid with a polygonal base and triangular faces that converge at a single point called the apex. The defining property of any pyramid — regardless of the shape or size of its base — is that its volume is always exactly one-third of the volume of a prism with the same base and height. This elegant relationship, proven rigorously by Euclid in Book XII of the Elements, holds for right pyramids and oblique pyramids alike, provided h is measured as the true perpendicular distance from the base plane to the apex.
The volume formula is V = (1/3) × B × h, where B is the area of the base and h is the perpendicular height. The base area depends on the base polygon: for a square base with side a, B = a²; for a rectangular base with length l and width w, B = l × w; for a triangular base with base b and triangle height t, B = ½bt. Any other regular or irregular polygon area can be entered directly as a custom value. The factor of one-third arises because a cube can be exactly dissected into three congruent square pyramids, a classical result confirmed by Cavalieri's principle in integral calculus.
Practical applications are extensive. Architects use pyramid volumes when calculating material quantities for pyramidal roofs, skylights, and ornamental spires. Civil engineers apply the formula when estimating earthwork volumes for embankments and spoil heaps with tapered profiles. In packaging and manufacturing, pyramidal hoppers and funnels are sized using this calculation. Geologists compute the volume of volcanic cones and sediment deposits. Students in secondary school through university encounter pyramid volume in standardized tests, three-dimensional geometry units, and calculus courses where the formula is re-derived via integration.
Worked example
Problem: Find the volume of a square pyramid with a base side length of 6 m and a perpendicular height of 10 m.
Step 1 — Calculate the base area:
B = a² = 6² = 36 m²
Step 2 — Apply the pyramid volume formula:
V = (1/3) × B × h
V = (1/3) × 36 × 10
V = (1/3) × 360
V = 120 m³
Verification with a rectangular base: A rectangular pyramid with length 8 m, width 4.5 m, and height 10 m gives B = 8 × 4.5 = 36 m² — the same base area — and therefore the same volume of 120 m³. This confirms that volume depends only on base area and height, not base shape.
Triangular base example: A tetrahedron-style pyramid with a triangular base of base 5 m and triangle height 4 m, plus a pyramid height of 9 m:
B = 0.5 × 5 × 4 = 10 m²
V = (1/3) × 10 × 9 = 30 m³
Limitations & notes
The formula V = (1/3)Bh applies strictly to true pyramids where all lateral faces are flat triangles meeting at a single apex. It does not apply to frustums (truncated pyramids), which require the separate frustum volume formula. The height h must be the perpendicular height — the straight-line distance from the apex to the base plane measured at a right angle — not the slant height along a face or edge. Using slant height instead of perpendicular height is the most common calculation error and will overestimate volume. For oblique pyramids (where the apex is not directly above the centroid of the base), Cavalieri's principle guarantees the same formula still holds as long as the true perpendicular height is used. Very large-scale applications such as natural geological formations may involve curved surfaces or irregular density distributions not captured by simple volume alone. Unit consistency is essential: if base dimensions are in centimetres and height is in metres, convert to a single unit before calculating to avoid orders-of-magnitude errors.
Frequently asked questions
What is the formula for the volume of a pyramid?
The volume of any pyramid is V = (1/3) × B × h, where B is the area of the base and h is the perpendicular height from the base to the apex. This formula applies to square, rectangular, triangular, and all other polygonal base pyramids regardless of the base shape.
Why is pyramid volume one-third of a prism's volume?
A rectangular prism (box) with the same base and height as a square pyramid can be dissected into exactly three congruent pyramids. This classical result, proved by Euclid, shows that the pyramid occupies precisely one-third of the prism's volume. The relationship is also confirmed rigorously via Cavalieri's principle and integration, giving (1/3)Bh for any pyramid.
What is the difference between slant height and perpendicular height?
Perpendicular height (h) is the vertical distance from the base plane directly up to the apex, measured at a right angle to the base. Slant height is the distance along the sloped face from the midpoint of a base edge to the apex. Only perpendicular height should be used in the volume formula; using slant height will give an incorrect, larger result.
Does the pyramid volume formula work for oblique pyramids?
Yes. The formula V = (1/3)Bh holds for oblique pyramids — those where the apex is not directly above the center of the base — as well as right pyramids. The key requirement is that h is the true perpendicular height, not a lateral edge length. This is guaranteed by Cavalieri's principle, which states that two solids with equal cross-sectional areas at every height have equal volumes.
How do I calculate the volume of the Great Pyramid of Giza?
The Great Pyramid has a square base with an original side length of approximately 230.4 m and an original height of approximately 146.5 m. Base area B = 230.4² ≈ 53,084 m². Volume = (1/3) × 53,084 × 146.5 ≈ 2,592,000 m³, or about 2.59 million cubic metres. This matches widely published estimates of roughly 2.6 million cubic metres.
Last updated: 2025-01-15 · Formula verified against primary sources.