Octagonal Pyramid Volume Calculator
An octagonal pyramid rises from an eight-sided base to a point - think gazebo roofs, stop-sign tapers and some tower spires. Enter the base size and height to get the volume with the exact octagon area.
Formula: V = (2(1 + √2) / 3) s² h
The octagon base, then the rule of thirds
Every pyramid’s volume is base area times height divided by three. For an octagonal pyramid the only new geometry is the regular octagon’s area: with side s it is A = 2(1 + √2)s² ≈ 4.828 s². Multiply by the perpendicular height and divide by three: V = (2(1 + √2)/3)s²h ≈ 1.609 s²h.
A worked example: a gazebo roof pyramid with 1 m base sides rising 1.2 m. The base area is 4.828 × 1 = 4.828 m², so the enclosed volume is 4.828 × 1.2 ÷ 3 ≈ 1.93 m³. The matching prism would enclose 5.79 m³ - the pyramid keeps a third, as always.
Octagons are usually specified by their width across flats - the distance between two parallel sides - because that is what a drawing dimsions or what you can measure on an existing stop-sign-shaped base. For a regular octagon the across-flats width is s(1 + √2) ≈ 2.414 s, so s = flats ÷ 2.414 and the volume becomes V = (2 − √2) f²h/6 ≈ 0.276 f²h. A base 3 m across flats rising 1.2 m holds 0.276 × 9 × 1.2 ≈ 2.98 m³.
As with any pyramid, the height is the perpendicular drop from apex to base plane, never the sloping edge. The calculator also returns the face slant height - the distance from the apex to the midpoint of a base side, built from the octagon’s apothem (the centre-to-edge distance) - because roofers and fabricators need it for the eight identical triangular face patterns, while volume work does not.
How to use this calculator
- Pick the base measurement mode. Side length from drawings, width across flats from tape measurements between parallel sides.
- Enter the base size and perpendicular height. Each field keeps its own unit selector.
- Read the volume in litres with m³, ft³ and gallons in the table, plus the base area and slant height for template work.
- Verify with the third rule: the result should be one third of the octagonal prism on the same base and height.
Octagonal pyramid problems beyond the volume
Octagonal pyramids appear mostly as roofs, tapers and architectural caps - and the follow-on questions are usually about sheet area or water shed.
Gazebo and turret roofs
Each of the eight faces is an identical isosceles triangle of area ½ × s × slant height. The 1 m-side, 1.2 m-rise gazebo above has an apothem of 1/(2 tan 22.5°) ≈ 1.207 m, a slant height of √(1.44 + 1.457) ≈ 1.70 m, so each face is about 0.85 m² and the whole roof needs 6.8 m² of sheeting plus waste allowance - a number that matters far more to the quote than the 1.93 m³ volume.
Truncated octagonal tapers
Real roofs stop at a flat top or a lantern light, making them frustums. Compute the two octagon areas (4.828 s² each) and use the truncated pyramid formula V = (h/3)(A₁ + √(A₁A₂) + A₂). The full pyramid formula applies only when the eight faces converge to a single point.
Comparing tapers and sections
When choosing between an octagonal and a square pyramid of the same across-flats width, the octagon holds more: its base fills about 94.7% of the enclosing square against the square’s 100% at the same flats but a much larger perimeter. Octagonal sections also shed wind more symmetrically, which is why they appear on spires and pylons where the extra base-area constant (4.828 vs 2 per s² at equal side) is the whole point.
Octagonal pyramid volumes by size
Right pyramids on regular octagonal bases, rounded to sensible figures.
| Side s | Across flats | Height | Volume | Litres |
|---|---|---|---|---|
| 5 cm | 12.07 cm | 10 cm | 120.7 cm³ | 0.12 L |
| 10 cm | 24.1 cm | 20 cm | 965.7 cm³ | 0.97 L |
| 0.5 m | 1.21 m | 1 m | 0.402 m³ | 402 L |
| 1 m | 2.41 m | 1.2 m | 1.93 m³ | 1,931 L |
| 1.24 m (flats 3 m) | 3 m | 1.2 m | 2.98 m³ | 2,982 L |
| 2 m | 4.83 m | 3 m | 19.3 m³ | 19,314 L |
Note how the constant stacks up: the octagon’s 4.828 s² base beats a square’s s² at equal side length, and the pyramid keeps exactly one third - so 4.828/3 ≈ 1.609 s² per unit height is the number to remember.
Where octagonal pyramids show up
Gazebo and pavilion roofs
Classic eight-sided gazebos carry pyramidal or near-pyramidal roofs. Volume feeds the ventilation estimate; face area drives the shingle or metal-sheet order; and the across-flats measurement is how the frame layout is set out on site.
Stop-sign and sign tapers
Octagonal plate blanks are cut from square sheet, and the waste fraction is exactly one minus the octagon-to-square area ratio. The same 4.828 s² constant that gives pyramid volume tells the fabricator how much sheet each sign consumes.
Tower spires and monuments
Church spires and monument caps frequently taper octagonally above a square tower. Masons estimate the stone or render volume by treating the cap as an octagonal pyramid or frustum, with the across-flats width taken at the tower’s top course.
Common mistakes & pro tips
- Dropping the divide-by-three. Multiplying base area by height alone gives the prism - three times too much. Every pyramid, any base shape, carries the factor of 1/3.
- Across-flats used as the side length. The flats width is 2.414 times the side; using it raw inflates the base area by a factor of about 5.8. Use the flats mode.
- Sloping edge as the height. The perpendicular apex height is what multiplies the base area; edges and face slants are always longer.
- Wrong apothem for face areas. Face slant height uses the octagon’s apothem s/(2 tan 22.5°), not the circumradius - mixing them skews the surface estimate.
- Applying it to truncated roofs. If the faces stop at a flat top or lantern, that solid is a frustum and needs the two end areas in the truncated pyramid formula.