COC

Pyramid Volume Calculator – Volume, Surface Area & Slant Height | Free Tool
Free Geometry Tool

Pyramid Volume Calculator

Instantly calculate the volume, surface area, lateral surface area, slant height, base perimeter and base diagonal of any pyramid — in Metric or Imperial units. Supports square, rectangular, triangular and custom base pyramids for students, engineers, architects and builders.

✓ 4 pyramid types   ✓ Metric & Imperial   ✓ Full geometry output

Pyramid Volume Calculator

What Is the Volume of a Pyramid?

From classroom geometry to ancient monuments — understanding how pyramid volume works at every scale.

The universal principle: a pyramid holds one-third of a prism

A pyramid is a three-dimensional solid with a flat polygonal base and triangular faces that converge to a single apex point directly above (or in the case of oblique pyramids, offset from) the centre of the base. The most important fact about any pyramid's volume — regardless of what shape its base is — is that it always equals exactly one-third of the volume of a prism with the same base area and the same height. This one-third relationship is not a coincidence or an approximation; it is a geometric truth that can be proven by showing that any triangular prism can be decomposed into exactly three pyramids of equal volume. This principle applies universally: whether you are calculating the volume of the Great Pyramid of Giza, a concrete footing, a roof structure, or a student's geometry homework problem, the formula is always Volume = (Base Area × Height) ÷ 3.

The four pyramid types this calculator handles

A square pyramid has a square base, four identical isosceles triangular faces and one apex. It is the most commonly discussed pyramid in geometry education and engineering practice, and it is the form used for most monument construction and decorative architectural elements. All four lateral faces are congruent, which simplifies slant height and surface area calculations. A rectangular pyramid has a rectangular base — which may be square or non-square — and four triangular faces, where the two pairs of opposite faces are congruent with each other but not necessarily identical across pairs. A rectangular pyramid requires separate slant height calculations for the faces rising from the length sides and those rising from the width sides. A triangular pyramid, also called a tetrahedron when all four faces are equilateral triangles, has a triangular base and three triangular lateral faces. When the base triangle's area is known, the volume calculation reduces to the same formula as any other pyramid. The custom base pyramid mode accepts any base area you supply, allowing calculations for irregular, hexagonal, octagonal or any other base shape, as long as you can determine the base area independently.

Height, slant height and edge length: three measurements that are not interchangeable

One of the most persistent sources of error in pyramid calculations is confusion between the vertical height, the slant height and the lateral edge length. The vertical height — also called the perpendicular height or simply the height — is the straight-line distance from the apex of the pyramid perpendicularly down to the base plane. This is the measurement that appears in the volume formula, and it must be a true perpendicular distance, not a length measured along any face or edge. The slant height is the distance measured from the apex down the centre of any triangular face to the midpoint of the corresponding base edge. It is longer than the vertical height, and it appears in the lateral surface area formula, not the volume formula. The lateral edge length is the distance along the corner edges that run from the apex to each corner of the base — the longest of the three measurements for any given pyramid, and the one most often accidentally substituted for height by students who mistake the edge for the height. None of these three quantities is interchangeable in the formulas.

Base area: the foundation of every pyramid calculation

The base area is the flat surface enclosed by the base polygon of the pyramid, calculated according to the geometry of that particular shape. For a square pyramid with side length s, the base area is simply s². For a rectangular pyramid with base dimensions l × w, the base area is l × w. For a triangular pyramid, the base area is the area of the triangular base, which depends on the triangle's specific dimensions — the most common formula is ½ × base × height of the triangle, though more complex triangles may require Heron's formula or another approach. Once the base area is known, the volume follows immediately from Volume = (Base Area × Height) ÷ 3, which is why this calculator accepts a custom base area for irregular pyramid shapes that do not fit the standard base geometries.

Surface area and lateral surface area: measuring the outer shell

The total surface area of a pyramid is the sum of the base area and the lateral surface area — the total area of all flat surfaces that make up the pyramid's exterior. The lateral surface area covers only the triangular faces, not the base. For a square pyramid, the lateral surface area equals 4 × (½ × base side × slant height), which simplifies to 2 × base side × slant height. For a rectangular pyramid, the lateral surface area must account for two pairs of differently-shaped triangular faces. Total surface area and lateral surface area answer different practical questions: lateral surface area tells you how much material is needed to clad the sloped faces of a structure (roofing tiles, glass panels, stone cladding), while total surface area tells you the total material needed including the floor or ceiling if it is also a physical surface.

Engineering and architectural applications of pyramid calculations

Pyramid geometry appears throughout construction and engineering. Hip roofs — the most common roof form in residential construction — are geometric pyramids or partial pyramids, and calculating their surface area tells the roofer exactly how many tiles, sheets or rolls of membrane are needed. The volume under a hip roof determines whether attic insulation calculations are based on the full enclosed space or just the roof structure itself. In civil engineering, earthworks such as spoil heaps, embankment ends and road fill sections often approximate pyramidal shapes, and their volumes are calculated to estimate truck movements, disposal costs and compaction requirements. Concrete footings for individual columns may be truncated pyramid shapes (frustums) requiring similar geometry. Archaeological and heritage structures including the Egyptian pyramids, Mesoamerican step pyramids and memorial monuments use pyramid geometry, and historians and archaeologists calculate their volumes for comparative and quantitative analysis.

The mathematical derivation: why the one-third factor is exact

The factor of one-third in the pyramid volume formula can be understood intuitively by considering that a cube can be divided into exactly three equal square pyramids, each with the same base as one face of the cube and a height equal to the cube's side length. More rigorously, the formula is derived using integral calculus: summing an infinite series of infinitesimally thin horizontal cross-sections of the pyramid from base to apex, each of which is a scaled-down version of the base shape. Because the linear dimensions of each cross-section decrease linearly from base to apex while the area decreases as the square of the linear scale, integration gives a factor of exactly one-third. This is why the one-third factor is not an approximation — it is the exact result of the integral, regardless of what base shape the pyramid has.

How This Calculator Works

Four pyramid types, six units, instant complete geometry output.

1

Choose Pyramid Type

Select from square, rectangular, triangular or custom base pyramid. Different types require different dimension inputs — only the relevant fields are shown for your selection.

2

Enter Dimensions

Type the base dimensions (side length, length and width, or base area) and the perpendicular height. Select your preferred unit from mm, cm, m, in, ft or yd.

3

Automatic Geometry Calculations

Volume, base area, slant height, lateral surface area and total surface area are all calculated simultaneously using standard geometric formulas the moment you click Calculate.

4

Interactive Pyramid Diagram

A live SVG diagram of the pyramid updates with labelled height, slant height and base dimensions so you can visually confirm the geometry before using the results.

Pyramid Volume Formulas

Every geometric equation behind the results, with a practical example for each.

Volume = (Base Area × Height) ÷ 3  |  Slant Height = √(h² + (a/2)²)

Volume (All Types)

V = (B × h) ÷ 3

Square pyramid, side 8 m, height 12 m: B = 64 m², V = (64 × 12) ÷ 3 = 256 m³.

Square Base Area

B = a²

Side a = 8 m → Base Area = 8² = 64 m². All four lateral faces are congruent triangles.

Rectangular Base Area

B = l × w

L = 10 m, W = 8 m → Base Area = 10 × 8 = 80 m². Each pair of opposite faces is congruent.

Slant Height (Square)

s = √(h² + (a/2)²)

h = 12 m, a = 8 m: s = √(144 + 16) = √160 ≈ 12.65 m. Used in lateral area, not volume.

Lateral Surface Area

LSA = ½ × Perimeter × slant height

Square pyramid, perimeter 32 m, slant 12.65 m: LSA = ½ × 32 × 12.65 ≈ 202.4 m².

Total Surface Area

TSA = Base Area + LSA

TSA = 64 + 202.4 = 266.4 m² — the complete outer surface including the base.

B (Base Area) — The flat area of the base polygon. Units are always square units (m², ft²).
h (Height) — The perpendicular vertical distance from base to apex. Must NOT be confused with slant height or edge length.
a (Side / Half-base) — For square pyramids, the base side length. Half of a (a/2) is used in the slant height formula.
s (Slant Height) — Distance from apex to midpoint of a base edge, measured along the face. Used in surface area, not volume.
÷ 3 — The exact one-third factor, valid for all pyramid types regardless of base shape.
Perimeter — Sum of all base edge lengths. For a square: 4a. For a rectangle: 2(l+w).

Worked Examples

Five complete pyramid geometry calculations with every step shown.

Example 1 — Square Pyramid: Side 8 m, Height 12 m

Base Area = 8² = 64 m² Volume = (64 × 12) ÷ 3 = 256 m³ Base Perimeter = 4 × 8 = 32 m Base Diagonal = 8√2 ≈ 11.31 m Slant Height = √(12² + 4²) = √(144+16) = √160 ≈ 12.65 m Lateral Area = ½ × 32 × 12.65 ≈ 202.40 m² Total Surf Area = 64 + 202.40 = 266.40 m²

A 256 m³ volume gives concrete quantity for a solid monument; the 266.40 m² surface area gives the cladding material quantity for a glass or stone-faced pyramid structure.

Example 2 — Rectangular Pyramid: L 10 m, W 8 m, Height 15 m

Base Area = 10 × 8 = 80 m² Volume = (80 × 15) ÷ 3 = 400 m³ Slant Ht (L) = √(15² + 4²) = √(225+16) = √241 ≈ 15.52 m Slant Ht (W) = √(15² + 5²) = √(225+25) = √250 ≈ 15.81 m Lateral Area = (2 × ½ × 10 × 15.52) + (2 × ½ × 8 × 15.81) = 155.2 + 126.5 = 281.7 m² Total Surf Area = 80 + 281.7 = 361.7 m²

The two different slant heights reflect the fact that the length faces and width faces of a non-square rectangular pyramid have different slopes — a detail that matters when calculating roofing material because the two pairs of roof planes have different pitches.

Example 3 — Triangular Pyramid: Base Area 40 m², Height 9 m

Volume = (40 × 9) ÷ 3 = 120 m³

A triangular pyramid (tetrahedron) with a known base triangle area is the simplest application of the volume formula, as no additional base geometry calculation is needed. This form appears in excavation corner cuts, temporary spoil heaps and certain concrete pour shapes.

Example 4 — Custom Base Pyramid: Base Area 250 m², Height 18 m

Volume = (250 × 18) ÷ 3 = 1 500 m³

A 1 500 m³ volume might represent the fill material within a large earthwork pyramid, the enclosed volume under a pavilion roof with a hexagonal base, or the material content of a large industrial stockpile. The custom mode allows engineers to apply the formula to any base shape once they have independently determined the base area.

Example 5 — Architectural Hip Roof: 12 m × 8 m Base, Ridge Height 4 m

Base Area = 12 × 8 = 96 m² Volume (full) = (96 × 4) ÷ 3 = 128 m³ (equivalent full pyramid volume) Slant Ht (12 m) = √(4² + 4²) = √32 ≈ 5.66 m Slant Ht (8 m) = √(4² + 6²) = √52 ≈ 7.21 m Roofing Area (L) = 2 × ½ × 12 × 5.66 ≈ 67.9 m² Roofing Area (W) = 2 × ½ × 8 × 7.21 ≈ 57.7 m² Total Roof Area ≈ 125.6 m²

A roofer needs the total lateral surface area (125.6 m²) to order tiles or membrane, the slant heights to cut rafters to the correct length, and the volume to size the attic ventilation system. All three outputs come from the same pyramid geometry calculation.

Quick Reference Tables

Pyramid formulas, geometry properties and applications at a glance.

Pyramid TypeVolume Formula
Square PyramidSide² × Height ÷ 3
Rectangular PyramidLength × Width × Height ÷ 3
Triangular PyramidBase Area × Height ÷ 3
Custom PyramidBase Area × Height ÷ 3
PropertyFormula
Base Area (Square)
Base Area (Rectangle)l × w
VolumeBase Area × h ÷ 3
Slant Height√(h² + (a/2)²)
Lateral Surface Area½ × Perimeter × Slant Height
Total Surface AreaBase Area + Lateral Surface Area
IndustryUse Case
ConstructionRoofs & Foundations
ArchitectureBuilding Design
SurveyingLand Modeling
EngineeringMaterial Estimation
EducationGeometry Problems

Benefits of Using This Calculator

Why students, engineers and architects choose this tool over manual calculation.

Instant Volume Calculations

Get volume, surface area, slant height and base dimensions simultaneously with a single button press.

📐

Multiple Pyramid Types

Square, rectangular, triangular and custom base modes cover every standard and non-standard pyramid shape encountered in practice.

🏗️

Surface Area Estimation

Both lateral and total surface area results support material quantity takeoffs for roofing, cladding and monument construction.

🌐

Metric & Imperial Support

Six unit options from millimetres to yards cover every project specification standard used globally.

📊

Interactive Geometry Diagram

A live SVG pyramid diagram with labelled dimensions helps you verify the geometry visually before using the numbers.

📱

Mobile-Friendly Design

Fully responsive layout works on any phone, tablet or desktop at a construction site or in a classroom.

Real-World Applications

Where pyramid volume and surface area calculations drive real engineering and design decisions.

Height h Hip Roof Monument

Construction

Pyramid-shaped roofs, concrete footings and earthwork fills all require precise volume calculations for material ordering and cost estimation.

Civil Engineering

Spoil heap volumes, embankment end sections and cut-and-fill earthworks are approximated as pyramids for haulage and disposal cost calculations.

Architecture

Glass pyramid structures, decorative pavilion roofs and atrium skylights use pyramid geometry for structural load and cladding area calculations.

Concrete Estimation

Isolated pad footings and column caps with tapered profiles require pyramid volume calculations to determine concrete pour quantities.

Excavation Planning

Corner cuts and end sections of excavations frequently approximate pyramidal shapes whose volumes must be quantified for machine time scheduling.

Earthworks

The volume of material removed or placed in road, railway and canal earthworks is calculated using prismoidal and pyramidal approximations.

Monument Construction

Commemorative and artistic pyramid structures require volume calculations for foundation load design and material quantity estimation.

Roof Design

Hip roof geometry is directly analogous to a rectangular pyramid — slant height determines rafter length and lateral area determines tile or sheet coverage.

Structural Engineering

Tapered structural members and pyramidal load distribution zones in geotechnical engineering require pyramid geometry to size correctly.

Mathematics Education

Pyramid volume is a standard geometry topic from middle school through university engineering, making this a reliable homework and exam verification tool.

Surveying

Terrain features, stockpile volumes and cut-and-fill surveys frequently use pyramidal approximation formulas for rapid volume estimation in the field.

Industrial Design

Hopper and bin shapes in food processing, mining and manufacturing often use pyramid or frustum geometry, requiring exact volume and surface area for material specification.

Common Mistakes to Avoid

The errors that consistently produce wrong pyramid volume and surface area results.

Confusing slant height with vertical height

The volume formula requires the vertical (perpendicular) height. Using the slant height instead overstates the volume, sometimes by more than 30% for low-pitched pyramids.

Using incorrect base dimensions

For a rectangular pyramid, using the diagonal of the base instead of the side lengths, or confusing which measurement is length and which is width, changes all surface area results.

Forgetting to divide by three

The one-third factor is not optional or approximate — it is an exact mathematical requirement. Omitting it produces the prism volume, not the pyramid volume.

Mixing measurement units

Entering height in metres and base dimensions in centimetres produces a volume in non-standard mixed units. Always confirm all dimensions use the same unit before calculating.

Incorrect surface area calculation

Using vertical height instead of slant height in the lateral surface area formula produces an understatement of the actual face area, which can result in significantly under-ordering cladding or roofing materials.

Using edge length instead of perpendicular height

The corner edges of a pyramid are always longer than the vertical height. Substituting an edge length into the volume formula overstates the volume and produces incorrect material estimates.

Rounding intermediate results too early

Rounding slant height before using it in the surface area formula compounds the rounding error. Keep full decimal precision until the final result and round only once at the end.

Frequently Asked Questions

Everything students, engineers and architects ask about pyramid volume calculations.

What is the formula for pyramid volume?

Volume = (Base Area × Height) ÷ 3. For a square pyramid with side a: V = (a² × h) ÷ 3. For a rectangular pyramid: V = (l × w × h) ÷ 3. The one-third factor applies to all pyramid types.

Why is pyramid volume divided by three?

A rectangular prism can be decomposed into exactly three pyramids of equal volume with the same base and height. More rigorously, integrating horizontal cross-sections from base to apex gives a factor of exactly one-third for any base shape.

What is the difference between slant height and height?

Height is the perpendicular vertical distance from base to apex, used in the volume formula. Slant height is the distance from the apex to the midpoint of a base edge, measured along the triangular face, and is used in the surface area formula.

Can I calculate rectangular pyramid volume?

Yes. Select Rectangular Pyramid mode, enter the base length, base width and height. The calculator returns volume, slant heights for both pairs of faces, lateral surface area and total surface area.

Can I calculate triangular pyramid volume?

Yes. Select Triangular Pyramid mode and enter the triangular base area and the pyramid height. The volume is (base area × height) ÷ 3, calculated instantly.

What is lateral surface area?

Lateral surface area is the total area of all triangular faces of the pyramid, excluding the base. It determines the amount of roofing, cladding or facing material needed for the sloped surfaces.

Does this calculator support metric units?

Yes. You can select millimetres, centimetres or metres. Areas are returned in square units and volumes in cubic units of the selected measurement.

Can engineers use this calculator?

Yes. All four modes and all geometry outputs are appropriate for engineering estimation, including concrete volumes, earthwork quantities, roof areas and structural geometry.

Is this suitable for students?

Yes. The calculator is designed to help students verify geometry homework and exam answers, with the SVG diagram providing a visual check of the input dimensions.

How accurate are the calculations?

This calculator uses JavaScript's exact arithmetic and the Math.sqrt() function at full floating-point precision. Accuracy is limited only by the precision of your input measurements.

Can I calculate roof volume?

Yes. A hip roof is geometrically equivalent to a rectangular pyramid. Enter the base dimensions and ridge height in Rectangular Pyramid mode to get the enclosed volume and the sloped surface areas for roofing material estimation.

What is a custom base pyramid?

A custom base pyramid is any pyramid whose base is not a standard rectangle or triangle. If you can calculate the base area independently, enter it in Custom Base mode to find the volume as (base area × height) ÷ 3.

Does it calculate surface area?

Yes. For square and rectangular pyramids, the calculator returns both lateral surface area (triangular faces only) and total surface area (all faces including base).

Can I use feet instead of meters?

Yes. Select feet (ft) from the unit dropdown. All results are returned in the corresponding imperial square and cubic feet units.

Is this calculator free?

Yes, this Pyramid Volume Calculator is completely free to use with no registration, subscription or payment required.

Ready to Calculate Pyramid Volume?

Instantly calculate pyramid volume, surface area, slant height and base dimensions for education, engineering, architecture, construction and surveying projects.