⛱️

Gazebo Rafter Calculator

Hexagon, octagon, or any 5-to-16-side roof — enter the width and face pitch and get hip and common rafter lengths, the cheek-cut miter, hip pitch conversion, and a full rafter count.

⬡ 5–16 sides📐 Hip pitch conversion✂️ Cheek cut angles📋 Copy layout list

Gazebo Rafter Calculator

Measure your gazebo across the flats (wall to wall) or across the corners, pick the side count, and set the pitch you want the roof face to carry — the calculator handles the polygon math, including the hip-line conversion and every jack on the layout.

🎛️ Roof Inputs

5 – 16 (6 = hexagon, 8 = octagon)
ft

Wall-to-wall across the flat sides — the common builder's dimension.

/12

The hip line runs at 7.39/12 — the calculator converts for you.

in o.c.
in

📊 Plan View & Rafter Results

huba = 6'side 4' 11-5/8"

Common rafter

7' 2-9/16"

+ 1' tail · 33.69° face pitch

Hip rafter

7' 7-1/2"

+ 11-3/4" tail · 7.39/12 hip pitch

Apothem (common run)6'
Circumradius (hip run)6' 5-15/16"
Side length4' 11-5/8"
Rise at center4'
Plan angle, hip to wall67.5°
Jack cheek-cut miter19.02°
Jacks per half-face1 (longest 3' 4-1/8", shortest 3' 4-1/8")
Rafter count8 hips + 8 commons + 16 jacks = 32

Gazebo Roof Problem Finder

Polygon roofs fail in predictable ways. Pick the symptom you are staring at and the finder jumps straight to the diagnosis and fix — each card is a decision knot on the path from symptom to cut.

What readers ask about most (share of the 12 FAQs)

42%
25%
17%
16%
Geometry & layoutCuts & jointsPitch & materialsCounts & lumber

Polygon Roof Geometry: Hips, Commons, and the Apothem

Every gazebo rafter calculator — this one included — runs on two lengths hidden inside the polygon. The apothem is the perpendicular distance from the center to the middle of any wall; it is the common rafter's horizontal run. The circumradius is the center-to-corner distance; it is the hip rafter's run. Both rise to the same ridge point, so both triangles share one rise, and everything else follows: the common rafter is the apothem hypotenuse at the face pitch, the hip is the circumradius hypotenuse at the converted hip pitch, and the jacks are shortened commons that die into the hips.

The two triangles, drawn to scale

The elevation below is the worked 12' octagon at 8/12 from the FAQ: the common rafter triangle stands on the 6' apothem and tops out at a 4' rise, while the hip triangle stands on the 6'-5-15/16" circumradius with the same 4' rise — same height, longer base, so the hip line comes out shallower. That single picture explains most gazebo confusion: the hip does not drop because someone cut it wrong, it drops because its run grew while its rise did not.

common run (apothem) 6'-0"rise 4'-0"common 7'-2 9/16" · 8/12hip run (circumradius) 6'-5 15/16"same risehip 7'-7 1/2" · 7.39/12

Run ratios you can memorize

The hip-to-common run ratio never changes for a given shape: 1.1547 for a hexagon, 1.0824 for an octagon, 1.0353 for a 12-side roof — one divided by the cosine of half the corner angle. The length ratio runs smaller because the hip pitch is shallower (1.125 and 1.058 respectively at a 6/12 face pitch). A hexagon rafter calculator therefore shows the biggest gap between hip and common of any common gazebo shape, and a 12-side roof the smallest — the more sides, the more the polygon approximates a circle and the closer hips and commons become.

Where the polygon rafter calculator idea comes from

Any regular polygon works the same way, which is why a general polygon rafter calculator covers yurt rafters (12 to 30 sides running to a compression ring), turret and bay-window cones (5 to 8 sides), and bell-cast belvedere roofs. Set the side count, enter the width the way your plan dimensions it, and the apothem-plus-circumradius pair does the rest — the calculator on this page accepts 5 to 16 sides for exactly that reason.

How to Calculate Gazebo Roof Rafter Length

Whether you searched for a gazebo roof rafter calculator, an octagon rafter calculator, or even the frequent typo octogon roof rafter calculator — the method below is the same five steps, shown by hand for a 12' octagon measured across flats at an 8/12 face pitch with a 10" eave overhang.

1

Find the apothem

Width across flats ÷ 2 = 6'-0". This is the common rafter's run. (If your width is across corners, multiply half the width by cos(22.5°) = 0.9239 for an octagon, 0.866 for a hexagon.)

2

Compute the rise

Rise = apothem × pitch ÷ 12 = 6' × 8 ÷ 12 = 4'-0". Every rafter on the roof — common, hip, and jack — rises exactly 4' by the time it reaches the center.

3

Common rafter length

Length = apothem ÷ cos(face pitch angle) = 6 ÷ 0.8321 = 7.211' = 7' 2-9/16". Add the eave tail: 10" of horizontal overhang ÷ cos(33.69°) = 12" along the slope — so order 8'-2 9/16" stock.

4

Hip run and hip pitch

Hip run = apothem ÷ cos(22.5°) = 6' 5-15/16". Hip pitch = 8 × cos(22.5°) = 7.39/12 (31.62°). Hip length = 6.494 ÷ cos(31.62°) = 7' 7-1/2", plus a 13-1/16" tail.

5

Jacks and the cheek cut

Side length = 2 × apothem × tan(22.5°) = 4'-11 3/4". At 16" o.c. that is 1 jack per half-face: 16 jacks, each a common-pitch rafter, cheek-cut at arctan(cos 33.69° × tan 22.5°) = 20.32°.

6

Count and order

8 hips + 8 commons + 16 jacks = 32 rafters; order 10% extra stock. Hips go one size deeper than jacks — 2x8 hips over 2x6 jacks is the standard pairing.

💡 Tip — the hub ring: rafters rarely meet at a mathematical point. Cut a hub block or steel ring (6" radius is typical), and subtract the hub radius from every rafter's run before computing its length: a 6" hub shortens the 12' octagon common run to 5'-6" and the hip run to 5'-11-15/16". Every plumb cut then lands on the ring's circle instead of fighting seventeen boards for one point of wood.

Center Pitch vs Face Pitch: the Conversion Table

The pitch you set with a string from hub to corner — the center pitch, measured along the hip line — is always shallower than the pitch the roofing actually experiences on the face. The multiplier is cos(180° ÷ sides): 0.86603 for a hexagon, 0.92388 for an octagon, 0.96593 for a 12-side roof. This is the number the octagon hip rafter calculator applies automatically, and the table makes it visible.

Face pitchHexagon hip (×0.866)Octagon hip (×0.924)12-side hip (×0.966)
6/125.20/125.54/125.80/12
8/126.93/127.39/127.73/12
10/128.66/129.24/129.66/12
12/1210.39/1211.09/1211.59/12

⚠️ Warning — the measurement mix-up: a "12 foot octagon" measured across corners is 11'-1-1/8" across flats, and the apothem is 5'-6-9/16" — not 6'. Entering a corner-to-corner width in the flats field inflates every rafter by 8.24% on an octagon and 15.47% on a hexagon, which is exactly one misplaced plate line at installation. Read the plan symbol: a dimension across parallel walls is flats; one through the center touching corners is corners.

Read the table left to right when you know the face pitch (most plans dimension the roof surface) and right to left when you set the hub height with a string: a 6/12 center pitch produces a 6.93/12 face on a hexagon, a 6.49/12 face on an octagon, and a 6.21/12 face on a 12-side roof. The steeper the face, the wider the absolute gap between the two pitches — at 12/12 the hexagon's hip line runs 1.61/12 shallower than its faces, enough to mis-eye the whole roof if you square-check the hip against the face pitch.

Cheek Cuts, Birdsmouths, and the Dropped Hip

Three joints make or break a gazebo frame, and all three differ from square-roof habits. The cheek cut is the compound miter where a jack dies into the hip; the birdsmouth is the seat that hooks each rafter over the plate; and the hip drop is the deliberate lowering of the hip's seat so its edges land on the sheathing plane instead of riding above it.

Jack cheek-cut angles by shape and pitch

The miter formula is arctan(cos(face pitch) × tan(half the corner angle)), and the table gives the saw settings for the three classic shapes. Note how much smaller these are than the 35.3° cheek of a square hip roof — polygon hips meet their jacks at a shallower plan angle, so the cut flattens out.

Face pitchHexagon (plan 30°)Octagon (plan 22.5°)12-side (plan 15°)
6/1227.30°20.32°13.48°
8/1225.65°19.02°12.56°
10/1223.92°17.65°11.63°
12/1222.21°16.33°10.73°
hip rafter (plan)jack / common (plan)plate22.5°cheek miter 20.32°at 6/12 face pitch, octagon

Birdsmouths on a polygon plate

The plate runs straight along every face, so commons and jacks get textbook birdsmouths laid out with the face pitch: seat cut level, plumb shoulder vertical, seat depth kept within about a third of the rafter depth. Jacks use the identical cut — they are just shorter commons. Mark the plumb line first, hook your square on the pitch, and keep every birdsmouth on the same layout line or the roof plane will wander from face to face.

❌ Don't — cut hips like commons: a hip birdsmouthed at the face pitch and seated at full depth leaves the hip crowned above every jack it carries and structurally notched at its most loaded point. Drop the seat by (hip thickness ÷ 2) × tan(hip pitch) — 7/16" for a 2x hip at the 31.62° hip pitch of the 12' octagon example — or back the top edges instead, and never notch a hip deeper than the drop plus a paper-thin seat.

💡 Tip — scribe, don't calculate, the first jack: cut one jack long at the table's miter, hold it against the installed hip, and scribe the cheek bevel off the hip's actual face. Lumber is never perfectly milled and hips are never perfectly straight; that one scribed pattern piece, reused for all the other jacks on the same roof, beats a pocketful of compound-angle decimals every time.

Rafter Counts for 6-, 8-, and 12-Side Gazebos

Three families, three counting rules. Hips: one per corner — always. Commons: one per face, dead center — always. Jacks: the only variable — two per spacing bay per face, where the bay count is the half-side length divided by your o.c. spacing, rounded down. The calculator outputs the live count for your width and spacing; the table shows the three standard builds.

GazeboSide lengthHipsCommonsJacks @16"Total
12' hexagon, across flats6'-11 1/8"662436
12' octagon, across flats4'-11 3/4"881632
14' 12-side, across flats3'-9"12122448

Watch the side length, not the overall width: a 14' 12-side roof has shorter sides than a 12' hexagon (3'-9" versus 6'-11"), so it takes fewer jacks per face even though it has twice as many faces. Jacks also vary in length — the first one off the common is the longest, each next one is shorter by 2 × spacing × tan(half corner angle) in run, and the calculator reports the longest and shortest so you can cut from the appropriate stock lengths with the offcuts feeding the next-shorter jack.

Frequently Asked Questions

TOP QUESTIONHow does the gazebo rafter calculator work?▼

The gazebo rafter calculator models the roof as a regular polygon: it converts your width into the apothem (center-to-wall distance, the common rafter's run) and the circumradius (center-to-corner distance, the hip rafter's run), applies your face pitch to both runs, and returns two right triangles. Example — a 10' hexagon measured across corners at 6/12: apothem 4' 3-15/16", rise 2' 2", common rafter 4' 10-1/8", hip run the full 5', hip pitch 5.2/12, hip rafter 5' 5-3/8". It also outputs the hip pitch conversion, the jack cheek-cut miter, and a rafter count for your spacing.

TOP QUESTIONHow do I calculate gazebo roof rafter length?▼

Work two triangles from one rise. Step 1: apothem = (width across flats ÷ 2). Step 2: rise = apothem × (face pitch ÷ 12). Step 3: common rafter = apothem ÷ cos(face pitch angle). Step 4: hip run = apothem ÷ cos(180° ÷ sides). Step 5: hip pitch in X/12 = face pitch × cos(180° ÷ sides), and hip rafter = hip run ÷ cos(hip pitch angle). Worked on a 12' octagon across flats at 8/12: apothem 6', rise 4', common rafter 7' 2-9/16", hip run 6' 5-15/16", hip pitch 7.39/12 (31.62°), hip rafter 7' 7-1/2". The gazebo roof rafter calculator above runs all five steps at once and adds the overhang tails.

What is the hip-to-common ratio on a hexagon rafter calculator layout?▼

In plan view it is exact: the hip run is 1 ÷ cos(30°) = 1.1547 times the common run — 15.47% longer, every hexagon, every pitch. Along the slope the length ratio is smaller because the hip pitch is shallower: at a 6/12 face pitch the hexagon hip is 1.125× the common length, and at 12/12 it is 1.080×. Octagons: the plan ratio is 1.0824 and the 6/12 length ratio is 1.058. Use the plan ratio for layout marks on the plate and the length ratio when ordering stock.

How is an octagon rafter different from a square hip roof rafter?▼

Three numbers change. The plan angle from hip to wall is 67.5° on an octagon instead of 45° on a square, so the hip is only 8.24% longer in run than the commons (1 ÷ cos 22.5° = 1.0824) rather than 41.4% longer. The hip pitch multiplier is cos(22.5°) = 0.9239 instead of cos(45°) = 0.7071, so an octagon hip stays much closer to the face pitch — an 8/12 face pitch gives a 7.39/12 octagon hip versus 5.66/12 on a square roof. And jacks land on the hip from only one side at a shallower plan angle, which shrinks their cheek-cut miter (20.3° at 6/12 versus 35.3° on a square roof). An octagon hip rafter calculator bakes those three substitutions in automatically.

TOP QUESTIONWhat is the cheek cut angle on gazebo jack rafters?▼

The jack cheek-cut miter = arctan(cos(face pitch angle) × tan(180° ÷ sides)). At a 6/12 face pitch: 27.3° on a hexagon, 20.3° on an octagon, 13.5° on a 12-side roof. At 12/12: 22.2° hexagon, 16.3° octagon, 10.7° 12-side. Pair the miter with a bevel equal to arctan(sin(face pitch angle) × sin(180° ÷ sides)) on a compound saw — or do what most gazebo crews do: cut the first jack long at the miter-only setting, hold it against the hip, scribe the bevel by eye, and use that test piece as the pattern for the rest.

How do I convert center pitch to face pitch on a polygon roof?▼

The pitch measured along the hip line at the center (the 'center pitch' you set with a string line from hub to corner) is always shallower than the pitch of the roof face. Conversion: hip pitch X/12 = face pitch X/12 × cos(180° ÷ sides), and back the other way: face pitch = center pitch ÷ cos(180° ÷ sides). A 6/12 center pitch means a 6.93/12 face pitch on a hexagon, 6.49/12 on an octagon, and 6.21/12 on a 12-side roof. This is the trap the octagon hip rafter calculator exists to catch: setting the face pitch on the hip line makes the faces come out too steep and the hip rafter too long.

How many rafters does a gazebo roof need?▼

Count three families. Hips: one per corner (6, 8, or 12). Commons: one per face, centered (6, 8, or 12). Jacks: two per spacing bay per face — jacks per face = 2 × floor(half-side ÷ spacing). A 12' octagon across flats has a 4'-11 3/4" side (half-side 29.8"), so at 16" o.c. it takes 1 jack per half-face: 8 hips + 8 commons + 16 jacks = 32 rafters. A 12' hexagon across flats has an 83-1/8" side: 2 jacks per half-face at 16" — 6 + 6 + 24 = 36 rafters. A 14' 12-side roof: 12 + 12 + 24 = 48 rafters. Add 10% stock for test cuts and mis-scribes.

Why do gazebo hip rafters get dropped or backed?▼

A hip rafter runs taller than the jack planes it carries, so its top edges would stand above the sheathing and telegraph through the roofing. On the 12' octagon example, a 1.5"-thick hip at the 31.62° hip pitch needs a drop of (1.5 ÷ 2) × tan(31.62°) = 7/16" — the seat cut sits that much deeper than a jack's birdsmouth so the hip's top corners land on the sheathing plane. The alternative is backing: beveling the hip's top edges down to a knife edge at the pitch-line plane. Drop the seat for exposed rafter tails; back the hip where the look of a flat-topped ridge line matters.

What pitch should a gazebo roof be?▼

Match the pitch to the roofing. Asphalt shingles: 3/12 minimum for standard laminates, and 2/12 to 4/12 requires double underlayment. Exposed-fastener metal panels: 3/12 minimum. Standing-seam metal: down to 1/4:12 to 3/12 depending on the seam type. Cedar shakes: 4/12 minimum. Most gazebo builders run a 6/12 to 10/12 face pitch — steep enough to shed under trees, shallow enough to stand on for staining. On polygons, remember the face pitch is what the material sees; the hip pitch runs one multiplier shallower (×0.866 hexagon, ×0.924 octagon, ×0.966 12-side).

Do gazebo rafters get birdsmouth cuts?▼

Commons and jacks do: a standard seat cut on the level plate with a plumb shoulder, laid out with the face pitch on your square. Keep the seat depth within about one-third of the rafter depth so the remaining web carries the load, and verify against your local code. The hips are the exception — their seat is rotated to the hip pitch and dropped (see the hip-drop answer) so the corners of the hip, not its crown, bear on the plate. Skipping the drop leaves every hip floating 3/8" to 1/2" above its seat with a visible shadow line under the eave.

Can a polygon rafter calculator be used for yurts and turrets?▼

Yes — the geometry is identical. A yurt roof is a 12-to-30-side polygon whose rafters run from a compression ring instead of a point: subtract the ring's radius from both the apothem and the circumradius runs, then run the same two triangles. A bay-window or turret cone is a 5-to-8-side polygon sitting on curved or segmental walls — mark hips to the corners and treat each wall segment as a face. Treehouse crowns and belvedere roofs are the same math at small radius. Any of these the calculator handles by setting the side count from 5 to 16 and entering the width the same way.

What size lumber should gazebo rafters be?▼

Commons and jacks sized like house rafters for the same snow and dead loads — a 2x6 carries most gazebo common runs under 10', with 2x8 for longer runs or heavy snow country; run your load and span through a rafter load calculator and span table rather than guessing. Hips: one size deeper than the jacks they carry (2x8 hips over 2x6 jacks is the classic pairing) because the hip collects jack loads along its whole length. The center hub: a fabricated steel hub or a built-up 2x ring block; never rely on fasteners alone in a single-point connection. Use pressure-treated lumber anywhere the wood meets posts or concrete.

Building a flat-shade structure instead?

The Pergola Rafter Calculator handles rectangular, gently pitched lattice roofs — the flat-plan counterpart to this page's polygon cone math.

🌿 Open the Pergola Rafter Calculator

Related Calculators

🪵

Floor Joist Span Calculator

Interactive floor joist span lookup with reference span char...

📐

Roof Pitch Calculator

Interactive roof pitch calculator: convert X/12 to degrees, ...

🔺

Roof Truss Calculator

Roof truss span estimator and selection guide comparing King...

🪚

Rafter Lumber Size Calculator

Free rafter lumber size calculator for rafters, joists & bea...

🏠

Roofing Calculator

Free roofing calculator to estimate roof materials, pitch, r...

🏔️

Roof Height Calculator

Free roof height calculator: enter span and pitch to get rid...

✂️

Rafter Angle Calculator

Free rafter angle calculator: get plumb cut, seat cut, and b...

⛰️

Roof Ridge Height Calculator

Roof ridge height calculator compares Gable, Hip, and Shed r...

🪜

I-Joist Span Calculator

I-joist span calculator with TJI span tables by series, spac...

💲

Roof Truss Cost Calculator

Roof truss cost calculator estimates truss prices per type. ...

📐

Lean-to Roof Calculator

Lean-to roof calculator finds rafter length, pitch, and slop...

🔺

Gable Roof Calculator

Gable roof calculator computes rafter length, plumb cut, roo...

📏

Roof Overhang Calculator

Roof overhang calculator finds eave length, fascia height, a...

🌿

Pergola Rafter Calculator

Pergola rafter calculator finds rafter count, spacing, span,...

🔩

Metal Roof Calculator

Metal roof calculator estimates panel count, panel length, a...

❄️

Rafter Load Calculator

Rafter load calculator converts snow, dead, and live loads i...

🔗

Rafter Tie Calculator

Rafter tie calculator finds horizontal thrust, tie tension, ...

🏚️

Gambrel Rafter Calculator

Gambrel rafter calculator computes upper and lower rafter le...

🏗️

Ridge Beam Calculator

Ridge beam calculator compares ridge board vs structural rid...

📋

Rafter Tables

Rafter table calculator: length factors for 1/12 to 24/12 pi...

🧊

Rafter Insulation Calculator

Calculate insulation R-value, batt depth, and vent baffle ga...

🪵

Board Feet Calculator

Board feet calculator with the bd ft = (T×W×L)/12 formula, n...

📐

Linear to Square Feet Calculator

Convert linear feet to square feet and back with material wi...

🪜

Stair Calculator

Stair calculator finds riser height, tread depth, stringer l...

🏢

Flat Roof Rafter Calculator

Flat roof rafter calculator for low-slope roofs: reference 2...

🪟

Dormer Rafter Calculator

Dormer rafter calculator for shed and gable dormers: rafter ...

🏗️

LVL Beam Span Calculator

LVL beam span calculator with reference span charts by depth...

🚪

Header Size Calculator

Size a door or window header with our free calculator. Door ...

🧱

Wall Stud Calculator

Free wall stud calculator and estimator: stud count with ope...

Educational planning estimates — verify all polygon geometry, member sizes, and connection detailing against your local building code and a licensed builder before construction.