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

s = 5 cm, h = 10 cmgazebo flats = 3 m, rise = 1.2 ms = 1 m, h = 2 m

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

  1. Pick the base measurement mode. Side length from drawings, width across flats from tape measurements between parallel sides.
  2. Enter the base size and perpendicular height. Each field keeps its own unit selector.
  3. Read the volume in litres with m³, ft³ and gallons in the table, plus the base area and slant height for template work.
  4. 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 sAcross flatsHeightVolumeLitres
5 cm12.07 cm10 cm120.7 cm³0.12 L
10 cm24.1 cm20 cm965.7 cm³0.97 L
0.5 m1.21 m1 m0.402 m³402 L
1 m2.41 m1.2 m1.93 m³1,931 L
1.24 m (flats 3 m)3 m1.2 m2.98 m³2,982 L
2 m4.83 m3 m19.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.

Frequently asked questions

What is the volume formula for an octagonal pyramid?
V = (2(1 + √2)/3)s²h ≈ 1.609 s²h, where s is the base side length and h the perpendicular height - the regular octagon area 4.828 s² times h, divided by 3.
How do I use the width across flats?
For a regular octagon, across flats = s(1 + √2) ≈ 2.414 s, so s = flats ÷ 2.414 and V ≈ 0.276 f²h in terms of the flats width f. The calculator’s flats mode handles the conversion.
What is the area of a regular octagon?
A = 2(1 + √2)s² ≈ 4.828 s² by side length, or A = 2(1 + √2)f²/(1 + √2)² ≈ 0.828 f² by across-flats width.
Why divide by three?
A pyramid fills exactly one third of the prism on the same base and height - provable by slicing into equal-volume pieces or by integrating the linearly shrinking cross-section from base to apex.
How do I find the surface area?
Add the octagon base (4.828 s²) to eight identical isosceles faces of ½ × s × slant height, where the slant height is measured from the apex to the midpoint of a base side.
Does an oblique octagonal pyramid change the volume?
No. As long as the base and perpendicular height are unchanged, leaning the apex sideways does not alter the volume (Cavalieri’s principle).
What if my pyramid has a flat top?
It is a frustum, not a pyramid. Compute the octagon areas at both ends and use V = (h/3)(A₁ + √(A₁A₂) + A₂) - the truncated pyramid calculator handles it.

Related calculators

Educational use only. Results are provided for planning and study purposes. Storm Lane is not liable for decisions made solely on these figures - double-check critical measurements with a qualified professional.