Pyramid volume calculator

Volume of a square pyramid, or of a triangular prism.

32 cm³
V = (1/3) a² h · a = 4, h = 6
in m³0.000032
in ft³0.0011300693
in in³1.9527598
in litres0.032
in US gallons0.0084535057

Formula and worked example

Square pyramid: V = (1/3) a² h

Triangular prism: V = ½ b h × l

Example: a square pyramid with a = 4 cm, h = 6 cm holds 32 cm³ = 0.032 litres.

Roofs, tents, packaging and architecture.

Other solids

Need the outside area for paint or material instead? Use the surface area calculator.

Questions people ask

What is the volume of a pyramid?

V = (1/3) × base area × height. For a square base of edge a, V = a²h/3.

How does a prism differ?

A prism keeps the same cross-section along its length, so V = base area × length, with no one-third factor.