TryBuildCalc

Gable Roof Rafter Calculator (Length, Birdsmouth & Rafter Count)

Size gable roof rafters instantly.

Inputs

ℹ️Gable: two equal slopes meeting at a center ridge. Shed/Lean-To: one continuous slope from a low wall to a high wall. Hip and valley roofs aren't modeled.

ℹ️Outside wall to outside wall, perpendicular to the ridge — each rafter's run is half this span.

ℹ️The length running along the ridge (or along the low/high walls for a shed roof) — determines the rafter count.

in rise / 12 in run

ℹ️Rise per 12 inches of run — a 6/12 roof rises 6 inches for every 12 inches of horizontal run. Common residential pitches range roughly 4/12 to 12/12.

ℹ️Half of this thickness is subtracted from each rafter's run, since both rafters meet at the ridge board.

in

ℹ️Horizontal projection of the rafter tail past the outer wall face, before any fascia trim.

ℹ️Sets the rafter's actual depth, used for the birdsmouth notch-depth check and HAP — verify span adequacy separately against a span table.

ℹ️The wall this rafter lands on — sets the birdsmouth seat cut length (2x4 = 3.5", 2x6 = 5.5").

Waste & Lumber

%

ℹ️Accounts for cut-offs, damaged pieces, and layout adjustments — 10% is a common estimating default.

ℹ️Standard stock length used to buy ridge board lumber — affects how many boards are needed after joints.

Cost

Enable Cost Estimation?

Total Rafters Needed

55

2x8, includes 10% waste — both slopes

Rafter Length to Buy

16 ft

Cut length 173.57" (14.46 ft) including the overhang tail

Rafter Geometry

Pitch: 6/12 (26.57° from horizontal)

Run: 143.25" (11.94 ft)

Rise: 71.63" (5.97 ft)

Line length (ridge to wall): 160.16"

Overhang tail: 13.42" (12" horizontal overhang)

Total rafter length: 173.57"

Birdsmouth & Cuts

Plumb cut angle: 26.57° (speed square/saw bevel setting)

Seat cut length: 3.5" (2x4 plate)

Notch depth (perpendicular to rafter): 1.57"

Max notch depth (1/4 rule): 1.81"

Heel height (plumb rise of the heel cut): 1.75"

Height above plate (HAP): 6.36"

Rafter Count

Rafters per side: 25 (16" O.C. over 32 ft)

Both slopes: 25 × 2 = 50

Total with 10% waste: 55

Ridge Board

Length: 32 ft (building length)

Boards needed: 2 (16 ft stock)

Assumptions Used

Standard US residential common-rafter framing (gable or shed, no hip/valley rafters). Rafter length, run, rise, and cut angles are direct trigonometry from your entered pitch, span, and overhang — not a code-table lookup, so they apply regardless of your local code edition. Notch depth (perpendicular to the rafter) and heel height (the vertical rise of the heel cut) are two distinct birdsmouth measurements — the 1/4 notch-depth limit is commonly cited as required by IRC R802.7.1 (some code editions cross-reference the equivalent R502.8 floor-joist rule) — verify against your locally adopted code edition before cutting. Rafter count uses the same on-center spacing formula as field studs, and total rafter length is rounded up to a real stock lumber length where one covers it — a rafter exceeding the longest standard stock length (24 ft) is flagged for a special-order, spliced, or engineered solution instead. This is a reference estimate for a material takeoff, not a structural design — snow load, wind uplift, and rafter size adequacy for your span must be verified against the adopted code and a structural professional.

Bill of Materials

Main material: 55 pcs + recommended tools

+

Computed items reflect your entered span, pitch, and length; consumables below are general recommendations — actual needs vary by product, wind/seismic zone, and site conditions.

For Your Job

Rafters

55 pcs

2x8 × 16 ft

Find suppliers

Ridge Board

2 pcs

16 ft boards

Find suppliers

General Tools & Consumables

Framing nails / rafter fasteners

consumable

Hurricane ties / rafter-to-plate connectors

site-dependent

Rafter ties or collar ties (lumber)

consumable

Framing nailer or hammer

tool

Circular saw or miter saw

tool

Speed square / framing square

tool

Tape measure

tool

Chalk line

tool

4 ft level

tool

Roof/ridge bracing or temporary supports

site-dependent

Safety glasses, work gloves & fall protection

consumable
Gable Roof Framing6/12Building Span16 ft rafters55 rafters total

Diagram simplified for clarity (not to scale)

Looking for the verification checklist, reference tables, tips, or common mistakes?See the complete Rafter Calculator.

Gable roof rafter sizing

A gable roof is the most common residential roof form — two equal slopes meeting at a center ridge. This page gives the full rafter length, birdsmouth, and count result for a gable roof.

It's the same calculator behind every other rafter calculator variant on this site, just pre-set with common gable-roof defaults — edit the inputs above to match your actual building.

  • Handles rafter run, rise, line length, overhang tail, and total length in one calculation.
  • Computes birdsmouth seat cut, notch depth, heel height, and the commonly-cited 1/4 rule check automatically.
  • Doubles the per-side rafter count to cover both roof slopes.

Rafter Calculator Formula: How Is It Determined?

Rafter geometry, birdsmouth cuts, and rafter count, calculated separately and combined into a material takeoff.

Step 1 — Rafter Run, Rise & Length

Run = Gable: (Span − Ridge Thickness) ÷ 2 | Shed: full Span

Angle = arctan(Pitch ÷ 12)

Rise = Run × (Pitch ÷ 12)

Line Length = Run ÷ cos(Angle)

Tail Length = Overhang ÷ cos(Angle)

Total Rafter Length = Line Length + Tail Length

This is direct trigonometry applied to your entered span, pitch, and overhang — a Pythagorean relationship between run and rise, not a code-table lookup, so it applies regardless of code edition. Total length is then rounded up to the nearest real stock lumber length.

Step 2 — Birdsmouth & Cuts

Seat Cut = Wall Plate Width

Plumb Cut Angle = Angle (from horizontal)

Notch Depth = Seat Cut × sin(Angle)

Heel Height = Seat Cut × tan(Angle)

Max Notch Depth (1/4 rule) = Rafter Depth ÷ 4

HAP = (Rafter Depth ÷ cos(Angle)) − Heel Height

The seat cut rests flat on the top plate. Notch depth (measured perpendicular to the rafter, the figure the 1/4 rule applies to) and heel height (the vertical rise of the plumb heel cut) are two distinct measurements — HAP (Height Above Plate) is the rafter's full vertical extent minus the heel height the notch removes. The 1/4 notch-depth rule is commonly cited as required by IRC R802.7.1 — this calculator flags any pitch/lumber combination that exceeds it, but verify against your locally adopted code edition.

Step 3 — Rafter Count & Ridge Board

Rafters per Side = ceil((Building Length in inches) ÷ Spacing) + 1

Total Rafters = Gable: Rafters per Side × 2 | Shed: Rafters per Side

Ridge Board Length = Building Length (Gable roofs only)

Rafter count uses the same on-center spacing formula as field studs. A gable roof doubles the count to cover both slopes; a shed roof has only one slope and no ridge board.

Worked Example

This example walks through your current inputs above, using the same steps as the Formula section.

Input Values Used

InputValueWhy it is used
Roof type / spanGable / 24 ftSets whether run is half or full span
Pitch6/12 (26.57°)Sets rise, length, and cut angles
Rafter lumber / wall plate2x8 / 2x4Sets birdsmouth notch depth check and HAP

Step 1 — Rafter Run, Rise & Length

CalculationResult
Run143.25"
Rise71.63"
Line length160.16"
Overhang tail13.42"
Total rafter length173.57" (16 ft stock)

Step 2 — Birdsmouth & Cuts

CalculationResult
Seat cut3.5"
Plumb cut angle26.57°
Notch depth (max 1.81")1.57"
Heel height1.75"
HAP6.36"

Step 3 — Rafter Count & Ridge Board

CalculationResult
Rafters per side25
Total rafters (with 10% waste)55
Ridge boards (16 ft, 32 ft total)2

Therefore, this 24 ft span, 6/12 pitch roof needs approximately 55 rafters (16 ft stock) and 2 ridge boards.

Related Calculators

Disclaimer: This calculator provides approximate results for planning and estimation purposes only. Actual requirements may vary based on site conditions, materials, workmanship, and local building regulations. Always consult a qualified engineer, architect, or construction professional before making final decisions.

FAQ

Run = (building span − ridge board thickness) ÷ 2 — both rafters meet at the ridge, so each side's run is half the span, adjusted for the ridge board's own thickness.
It calculates one common rafter's geometry, then multiplies by the spacing-based count for the whole building length, doubled for both slopes.