Pyramid Volume Calculator
Use this free online Pyramid Volume Calculator to find the exact cubic volume, slant height, and surface area of a square-based, rectangular, triangular, hexagonal, octagonal, regular n-gon, or truncated pyramid (frustum). Enter base dimensions with vertical height or slant height in metric or Imperial units for instant gallon, liter, and cubic conversions.
Step-by-Step Formula & Substitution
What Is Pyramid Volume? (Right vs. Oblique Pyramids)
The volume of a pyramid is the total three-dimensional space enclosed inside a polyhedron formed by connecting a flat polygonal base (such as a square, rectangle, triangle, hexagon, or octagon) to a single top point called the apex. Every lateral face of a pyramid is a triangle meeting at the apex.
Regardless of whether the base has 3, 4, 5, 6, or 8 sides—and regardless of whether the pyramid is a right pyramid (where the apex stands directly above the geometric center of the base) or an oblique pyramid (where the apex leans off-center)—the universal pyramid volume calculation formula is always one-third of the base area multiplied by the perpendicular vertical height: V = (1/3) × B × h. As standardized by the National Institute of Standards and Technology (NIST) SI Volume Units Guide, 1,000 cm³ equals exactly 1 liter (1 L), allowing any solid pyramid measurement to convert directly into liquid or air capacity.
- Base Area (B): The two-dimensional area of the flat bottom polygon (in cm², m², in², or ft²).
- Vertical Height / Altitude (h): The perpendicular distance from the base plane straight up to the apex at a 90° angle.
- Face Slant Height (s): The altitude of one triangular side face measured along the sloped surface from the midpoint of a base edge to the apex.
- Base Apothem (rin): The distance from the center of a regular polygon base to the midpoint of any side (for a square of side a, the apothem is a ÷ 2).
Pyramid Volume Formulas for All Base Shapes
Starting from the universal formula V = (1/3) × B × h, substituting the base area formula (B) for each polygon produces specialized equations for square, rectangular, triangular, hexagonal, and octagonal pyramids:
| Pyramid Base Shape | Base Area Formula (B) | Right Pyramid Volume Formula | Common Applications |
|---|---|---|---|
| Any General Polygon (Known Area B) | B (given base area) |
V = (1/3) × B × h |
Irregular floor plans, custom polygons, oblique pyramids |
| Square Base (4-Sided Pyramid) | B = a² |
V = (1/3) × a² × h |
Egyptian pyramids, glass skylights, square hip roofs |
| Rectangular Base (4-Sided Pyramid) | B = l × w |
V = (1/3) × l × w × h |
Rectangular hoppers, bins, rectangular hip roofs |
| Triangular Base (Base b & Height h_b) | B = 0.5 × b × h_b |
V = (1/6) × b × h_b × h |
Tetrahedra, structural corner gussets, crystal models |
| Equilateral Triangle Base (Side a) | B = (√3 ÷ 4) × a² ≈ 0.43301 × a² |
V = (√3 ÷ 12) × a² × h ≈ 0.14434 × a² × h |
Triangular prisms/pyramids, regular tetrahedron (V = a³ ÷ (6√2)) |
| Regular Pentagon Base (5 Sides, Edge a) | B ≈ 1.72048 × a² |
V ≈ 0.57349 × a² × h |
Pentagonal cupolas, decorative architectural finials |
| Regular Hexagon Base (6 Sides, Edge a) | B = (3√3 ÷ 2) × a² ≈ 2.59808 × a² |
V = (√3 ÷ 2) × a² × h ≈ 0.86603 × a² × h |
Hexagonal gazebo roofs, bolt heads, pavilion canopies |
| Regular Octagon Base (8 Sides, Edge a) | B = 2(1 + √2)a² ≈ 4.82843 × a² |
V ≈ 1.60948 × a² × h |
Octagonal gazebo roofs, Victorian turrets, church spires |
| General Regular n-Gon (Edge a) | B = (n × a²) ÷ (4 × tan(π ÷ n)) |
V = (n × a² × h) ÷ (12 × tan(π ÷ n)) |
Any regular multi-sided pyramid (as n → ∞, approaches a cone) |
Oblique Pyramid Volume Formula
In an oblique pyramid, the apex is shifted sideways rather than centered over the base, giving the triangular side faces unequal slant lengths. By Cavalieri’s principle, because horizontal cross-sections at any height y have the exact same area as in a right pyramid of equal height, the oblique pyramid volume formula remains V = (1/3) × B × h—provided h is measured strictly perpendicular to the base plane.
How to Calculate the Volume of a Pyramid Step by Step
Follow these four steps whenever you need to calculate the volume of a pyramid manually:
- Compute the Base Area (B): Multiply length × width (l × w) for a rectangular base, square the edge (a²) for a square base, or compute 0.5 × base × triangle height for a triangular base.
- Verify the Perpendicular Vertical Height (h): Measure straight from the base plane to the apex at a 90° angle. If you only know the face slant height (s) on a right square pyramid, compute h = √(s² − (a ÷ 2)²) first.
- Multiply Base Area by Height (B × h): Ensure both B and h use matching units (e.g., ft² and ft, or cm² and cm).
- Divide by 3: Divide the product by 3 (or multiply by 1/3) to obtain the exact cubic volume of the pyramid.
Why Is Pyramid Volume 1/3 of a Prism?
Every pyramid occupies exactly one-third (1/3 or 33.33%) of the volume of a prism with the exact same base shape, base area (B), and vertical height (h):
You can visualize this directly with a cube of edge length a (volume a³): drawing lines from the center of the cube to all 8 corners partitions the cube into 6 identical square-based pyramids, each having base area a² and vertical height h = a ÷ 2. Because 6 pyramids fill volume a³, each pyramid has volume a³ ÷ 6 = (1/3) × a² × (a ÷ 2) = (1/3)Bh. The same 1/3 factor applies to cones, which are simply pyramids with an infinite-sided circular base.
Slant Height & Pyramid Surface Area Formulas
For a right square pyramid of base edge a and vertical height h, the vertical altitude, base apothem (a ÷ 2), and face slant height (s) form a right triangle:
- Face Slant Height (s): s = √(h² + (a ÷ 2)²) — and inversely, h = √(s² − (a ÷ 2)²)
- Lateral (Sloped Sides) Surface Area: Alateral = 0.5 × Perimeter × s = 2 × a × s (for a 4-sided square pyramid)
- Total Closed Surface Area: SA = Base Area + Lateral Area = a² + 2as
For a right rectangular pyramid (base l × w, height h), the two pairs of opposite triangular faces have distinct slant heights: sl = √(h² + (w ÷ 2)²) and sw = √(h² + (l ÷ 2)²), giving Total Surface Area SA = lw + l·sl + w·sw.
Truncated Pyramid (Frustum) Volume Formula
When the top of a pyramid is sliced off parallel to its base—forming an industrial hopper, tapered planter, concrete footing, or pyramid frustum—the resulting solid is a truncated pyramid (frustum). Its exact volume is:
Where B₁ is the bottom base area, B₂ is the top base area, and h is the perpendicular height between the two parallel bases. For a square frustum with bottom edge A and top edge a, this simplifies to V = (1/3) × h × (A² + A·a + a²).
5 Practical Worked Pyramid Volume Examples
Example 1: Square Pyramid (a = 4 cm, h = 12 cm)
Step 1: Find square base area: B = a² = 4² = 16 cm².
Step 2: Apply V = (1/3) × B × h = (1/3) × 16 × 12 = 64 cm³ (64 mL).
Example 2: Square Pyramid with Slant Height (s = 13 cm, a = 10 cm)
Step 1: Find apothem: a ÷ 2 = 10 ÷ 2 = 5 cm.
Step 2: Find vertical height: h = √(13² − 5²) = √144 = 12 cm.
Step 3: Compute volume: V = (1/3) × 10² × 12 = 400 cm³.
Example 3: Rectangular Pyramid Hopper (8 × 6 × 9 ft)
Step 1: Find rectangular base area: B = l × w = 8 × 6 = 48 ft².
Step 2: Compute volume: V = (1/3) × 48 × 9 = 144 ft³ (5.33 yd³ or 1,077.2 US gal).
Example 4: Triangular Pyramid (Base 6 in, Tri-Height 4 in, Height 9 in)
Step 1: Find triangular base area: B = 0.5 × 6 × 4 = 12 in².
Step 2: Compute volume: V = (1/3) × 12 × 9 = 36 in³ (589.93 cm³).
Example 5: Truncated Square Pyramid (A = 6 ft, a = 3 ft, h = 4 ft)
Step 1: Substitute into frustum equation: V = (1/3) × 4 × (6² + 6×3 + 3²).
Step 2: Simplify: (4 ÷ 3) × (36 + 18 + 9) = (4 ÷ 3) × 63 = 84 ft³ (3.11 yd³).
Famous Pyramids & Architectural Roof Volumes
From monumental stone landmarks to modern glass atriums and residential hip roofs, pyramid geometry appears across civil engineering and architecture:
| Pyramid / Structure | Base Dimensions | Vertical Height (h) | Calculated Volume | Equivalent Scale |
|---|---|---|---|---|
| Great Pyramid of Giza (Original) | 756 ft × 756 ft square (230.4 m) | 481 ft (146.6 m) | 91,636,272 ft³ | 2,594,850 m³ (3,393,936 yd³) |
| Pyramid of Khafre (Giza) | 706 ft × 706 ft square (215.2 m) | 471 ft (143.5 m) | 78,254,492 ft³ | 2,215,920 m³ (2,898,315 yd³) |
| Louvre Glass Pyramid (Paris) | 116.1 ft × 116.1 ft square (35.4 m) | 70.9 ft (21.6 m) | 318,763 ft³ | 9,026 m³ (11,806 yd³) |
| Luxor Hotel Pyramid (Las Vegas) | 646 ft × 646 ft square (196.9 m) | 350 ft (106.7 m) | 48,686,867 ft³ | 1,378,659 m³ (1,803,217 yd³) |
| 30 × 30 ft Square Hip Attic Roof | 30 ft × 30 ft square (900 ft²) | 8 ft peak height | 2,400 ft³ | 67.96 m³ (88.89 yd³) |
How to Calculate Pyramid Volume in Excel & Google Sheets
You can automate pyramid volume, slant height, and frustum calculations in Microsoft Excel or Google Sheets using standard worksheet formulas (assuming matching units):
- Square Pyramid Volume (Side
A2, HeightB2):=(1/3)*(A2^2)*B2 - Rectangular Pyramid Volume (Length
A2, WidthB2, HeightC2):=(1/3)*A2*B2*C2 - Triangular Pyramid Volume (Triangle Base
A2, Triangle HeightB2, Pyramid HeightC2):=(1/6)*A2*B2*C2 - Regular n-Sided Pyramid Volume (Sides
N2, EdgeA2, HeightB2):=(N2*(A2^2)*B2)/(12*TAN(PI()/N2)) - Truncated Square Pyramid Volume (Bottom Edge
A2, Top EdgeB2, HeightC2):=(1/3)*C2*((A2^2)+(A2*B2)+(B2^2))
6 Common Pyramid Measurement Mistakes to Avoid
- Using Slant Height Instead of Vertical Height: The sloped face altitude (s) is always longer than the perpendicular vertical height (h). Plugging s directly into (1/3)Bh overestimates the pyramid’s volume. Always toggle our calculator to Face Slant Height (s) when measuring along the sloped side.
- Forgetting to Divide by 3: Multiplying Base Area × Height without dividing by 3 calculates the volume of a rectangular or square prism—which is 3 times too large.
- Using Base Perimeter Instead of Base Area: A 10 ft × 10 ft square base has an area of 100 ft², not a perimeter of 40 ft.
- Forgetting the 1/2 Factor on Triangular Bases: A triangle’s area is 0.5 × b × h_b, so a triangular pyramid’s total volume is (1/3) × (0.5 × b × h_b) × h = (1/6) × b × h_b × h.
- Mixing Units Across Measurements: Always normalize inches and feet (or centimeters and meters) to a single unit before calculating, or use the per-field unit selectors in our calculator.
- Using Linear Conversion Factors on Cubic Outputs: Remember that 1 ft³ = 1,728 in³ (12³) and 1 yd³ = 27 ft³ (3³), not 12 or 3.
Calculation Methodology, Precision & Limitations
Every calculator on Volume Calcs adheres to transparent mathematical and engineering standards:
- Unit Normalization & Constants: All entered dimensions are parsed into IEEE 754 double-precision floating-point values and normalized to base meters (m) using exact international definitions (1 in = 0.0254 m, 1 ft = 0.3048 m, 1 yd = 0.9144 m) before evaluating geometric area and volume formulas. Full internal precision is preserved across all multi-unit conversions, and rounding is applied only to displayed outputs.
- Client-Side Execution & Privacy: All mathematical processing runs 100% locally in your web browser via vanilla JavaScript. No entered values or results are transmitted to external servers.
- Geometric Assumptions & Limitations: Volume equations (V = (1/3)Bh) apply to both right and oblique pyramids with flat planar bases and straight lateral edges. Slant height and surface area derivations assume symmetric right pyramids whose apex lies directly above the base centroid.
Frequently Asked Questions About Pyramid Volume Calculator
How to calculate the volume of a pyramid?
To calculate the volume of a pyramid, find the area of its flat base (B), multiply by its perpendicular vertical height (h), and divide by 3 using the universal formula V = (1/3) × B × h. For a square pyramid of side a, this equals V = (1/3)a²h; for a rectangular pyramid, V = (1/3)lwh.
Which formula is l * b * h?
l * b * h (Length × Breadth × Height) is the volume formula for a rectangular prism (cuboid or box), not a pyramid. Because a rectangular pyramid tapers to a single apex, its volume is exactly one-third of that cuboid: Vpyramid = (1/3) × l × b × h.
Why is pyramid volume 1/3?
A pyramid’s volume is 1/3 of a matching prism because its horizontal cross-sectional area shrinks with the square of the distance from the apex (A(y) = B × (y ÷ h)²), and integrating y² from 0 to h produces h³ ÷ 3. Visually, a cube can be divided into 6 identical square pyramids meeting at its center, proving each pyramid holds exactly 1/3 of its enclosing prism.
How is the volume of a pyramid calculator?
A volume of a pyramid calculator works by converting your base dimensions and height into a common base unit (meters), computing the two-dimensional base area (B) for your chosen polygon (square, rectangle, triangle, pentagon, hexagon, or octagon), applying V = (1/3) × B × h, and converting the cubic result into ft³, m³, in³, cm³, liters, and gallons simultaneously.
What are the formulas for a pyramid?
The core geometric formulas for a right pyramid are: Universal Volume: V = (1/3)Bh; Square Pyramid Volume: V = (1/3)a²h; Rectangular Pyramid Volume: V = (1/3)lwh; Triangular Pyramid Volume: V = (1/6)b·h_b·h; Square Pyramid Slant Height: s = √(h² + (a/2)²); and Total Surface Area: SA = Base Area + 0.5 × Perimeter × s.
How do you calculate the volume of a 4-sided pyramid?
A 4-sided (quadrilateral-base) pyramid has either a square base or a rectangular base: if all four base edges are equal (side a), multiply V = (1/3) × a² × h; if the base is a rectangle of length l and width w, multiply V = (1/3) × l × w × h.
How to find the height of a pyramid using volume?
Rearrange V = (1/3)Bh by multiplying the known volume (V) by 3 and dividing by the base area (B): h = (3 × V) ÷ B (or h = (3 × V) ÷ a² for a square pyramid of side a). You can solve this directly using our calculator’s Find Height or Base Side tab.
How do I calculate the surface area of a pyramid?
Add the area of the base (B) to the combined area of the triangular side faces (Lateral Area = 0.5 × Base Perimeter × Slant Height): SA = B + (0.5 × P × s). For a right square pyramid with edge a and vertical height h, first find s = √(h² + (a/2)²), then compute SA = a² + 2as.
How do you find the volume of a pyramid with slant height?
For a right square pyramid with base edge a and face slant height s, use the Pythagorean theorem to find vertical height first: h = √(s² − (a ÷ 2)²), then substitute h into V = (1/3)a²h. Select Face Slant Height (s) in our calculator to run this automatically.
How do you calculate the volume of a triangular pyramid (tetrahedron)?
Find the triangular base area (B = 0.5 × triangle base × triangle height), multiply by the pyramid’s vertical height (h), and divide by 3: V = (1/6) × b × h_b × h. For a regular tetrahedron where all 6 edges equal a, the volume simplifies to V = a³ ÷ (6√2) ≈ 0.11785 × a³.
How do you calculate the volume of a hexagonal or octagonal pyramid?
For a regular hexagonal pyramid (6 sides of length a), the base area is B ≈ 2.59808a² and volume is V = (√3 ÷ 2)a²h ≈ 0.86603a²h. For a regular octagonal pyramid (8 sides of length a), the base area is B ≈ 4.82843a² and volume is V ≈ 1.60948a²h.
How do you calculate the volume of a truncated pyramid (frustum)?
Use the frustum formula V = (1/3) × h × (B₁ + √(B₁ × B₂) + B₂), where B₁ is the larger bottom base area, B₂ is the smaller top base area, and h is the vertical height between them. Switch to our Truncated Pyramid / Frustum tab for instant square, rectangular, or custom-area frustum calculations.
Does an oblique (tilted) pyramid have the same volume formula as a right pyramid?
Yes. By Cavalieri’s principle, an oblique pyramid has the exact same volume formula V = (1/3) × B × h as a right pyramid, provided h is the perpendicular vertical height measured straight from the base plane to the apex.
What is the volume of the Great Pyramid of Giza?
With its original square base of 756 ft (230.4 m) per side and original height of 481 ft (146.6 m), the Great Pyramid of Giza had a volume of (1/3) × 756² × 481 = 91,636,272 cubic feet (approximately 2.595 million cubic meters or 3.394 million cubic yards).
How are pyramids and cones related in volume?
Both pyramids and cones follow the exact same volume rule—V = (1/3) × Base Area × Height. Mathematically, a circular cone is the limiting case of a regular n-sided pyramid as the number of base sides (n) approaches infinity and the polygonal base becomes a circle of area πr².
How do you convert pyramid volume into cubic yards or gallons?
Calculate the pyramid’s volume in cubic feet first (Vft³): divide cubic feet by 27 to get cubic yards (yd³), multiply cubic feet by 7.48052 to get US liquid gallons, or multiply cubic feet by 28.31685 to get liters (L).
Check Other Volume Calculators:
