BlueprintCalcs 2D Parametric Trade Tools

Rafter Length Calculator

To calculate rafter length, divide building span in half and subtract half the ridge board thickness for effective run (or use full span for a shed roof). Multiply run by roof pitch for total rise, then take the square root of run squared plus rise squared.

2D Parametric CAD Cut Blueprint
✓ Within Cut Limits
Click to Expand ⛶ DETAIL A: BIRD'S MOUTH CUT 3.5X Top Plate 90° Notch Seat: 3 1/2" Plumb: 1 3/4" Max Notch: 1 13/16" (D/4) Uncut Meat: 5 11/16" *IRC R802.7.1: Perpendicular notch <= 1/4 rafter depth (1 13/16" max on 2x8). Ceiling Joist Tie Line Exterior Wall Exterior Wall Ridge Board (2x) A Pitch: 6/12 (26.6°) Building Span: 24' 0" Rise: 5' 11 5/8" Line Length: 13' 4 3/16" Tail: 1' 1 7/16"
* Total Cut Length: Line Length (13' 4 3/16") + Overhang (1' 1 7/16") = 14' 5 9/16"
Verify span tables, snow loads, and local code amendments with your building inspector before cutting.
Effective Run 11' 11 1/4" -3/4"" (2x Ridge)
Total Rise 5' 11 5/8"
Total Cut Length 14' 5 9/16"
Pitch Ratio 6/12 (26.6°)

Rafter Framing Controls

Units: Inches / Feet
Common Presets
Roof Framing Style
288.0" (24' 0")
Out-to-out exterior wall span
Inches:
6/12 (26.6°)
Shingles require 4/12+ (2/12 to <4/12 needs double underlayment, IRC R905.2.2).
12.0" run / 1' 1 7/16" tail
Standard soffit is 12"–16"; over 24" requires cantilever/uplift checks (IRC R802.7.1).
2x8 (7.25" Actual)
Sets remaining meat and max D/4 notch depth.
3.5" (2x4 Wall)
Seat cut bearing (min 1.5" wood, 3" masonry per IRC R802.6).
Rafter Lumber Cut List Estimator 48 Rafters (24 Pairs)
Recommended Stock:
2x8 @ 16ft
Line Length:
13' 4 3/16"
Overhang Tail:
1' 1 7/16"
Total Cut Length:
14' 5 9/16"
Plumb Cut Angle:
26.6°
Seat Cut Angle:
63.4°
Bird's Mouth Notch:
1 9/16" (Within D/4 Limit)

How to Calculate Rafter Length Using Pitch

Use this common rafter length calculator as either a gable roof rafter calculator or a shed roof rafter length calculator. For a gable roof, apply the ridge board deduction formula: halve the span and subtract 0.75" for a 2x ridge board. For a shed roof, run equals full clear span.

Common Rafter Length Formula

Line Length = √[Effective Run² + Total Rise²]

This rafter run and rise calculator sets Rise = Effective Run × (Pitch ÷ 12).

Rafter Pitch Calculator Multiplier

Unit Length = √(12² + Pitch²)

At 6/12, unit length is 13.416" per foot of run. This rafter length calculator with overhang adds the diagonal tail cut.

Step-by-Step Layout: Rafter Plumb Cut and Seat Cut

01

1. Top Plumb & Ridge Deduction

Set stair gauges to rise and 12" on your square, mark the ridge plumb line, and step back 3/4" perpendicular for a 2x ridge board.

02

2. Bird's Mouth Layout

Mark line length down the top edge, then lay out the rafter plumb cut and seat cut keeping perpendicular notch depth within D/4.

03

3. Overhang Tail Cut

Add the rafter overhang tail cut calculator length past the wall line for fascia plumb cuts, and finish the notch corner with a handsaw.

IRC R802 Roof Rafter Code Requirements & Span Table (2x6 vs 2x8)

Check this rafter span table 2x6 2x8 reference (IRC Table R802.4.1(1)), notch limits, and wall bearing minimums before ordering lumber:

Stock 16" O.C. (20 psf Live) 24" O.C. (20 psf Live) Max Notch (D/4) Min Bearing (R802.6)
2x6 (5.5") 14' 7" 11' 11" 1 3/8" 1.5" Wood / 3" Mas.
2x8 (7.25") 18' 5" 15' 1" 1 13/16" 1.5" Wood / 3" Mas.
2x10 (9.25") 21' 4" 18' 2" 2 5/16" 1.5" Wood / 3" Mas.
2x12 (11.25") 26' 0" 21' 0" 2 13/16" 1.5" Wood / 3" Mas.

*IRC Table R802.4.1(1) DF-L #2 (20 psf live load, 10 psf dead load, no ceiling). Snow loads or drywall shorten spans; verify locally.

Common Rafter Length Chart & Roof Pitch Angle Calculator

This roof pitch angle calculator chart covers common slopes from 3/12 up to a steep rafter length for 12 pitch roof layout (45.0°):

Pitch Angle Unit Length Multiplier Plumb / Seat
3/12 14.0° 12.37" 1.031 14.0° / 76.0°
4/12 18.4° 12.65" 1.054 18.4° / 71.6°
5/12 22.6° 13.00" 1.083 22.6° / 67.4°
6/12 26.6° 13.42" 1.118 26.6° / 63.4°
8/12 33.7° 14.42" 1.202 33.7° / 56.3°
10/12 39.8° 15.62" 1.302 39.8° / 50.2°
12/12 45.0° 16.97" 1.414 45.0° / 45.0°

Collar Ties, Rafter Ties & Uplift (IRC R802.4.6 & R802.5.2)

Rafter Ties (Lower Third, R802.5.2)

Ties or ceiling joists resist outward wall thrust; nail count scales from 3 to 11+ 16d nails per IRC Table R802.5.2 by slope, span, and snow load.

Collar Ties (Upper Third, R802.4.6)

Minimum 1x4 collar ties at 4 ft O.C. prevent ridge uplift separation, paired with plate hurricane straps where required by IRC R802.11.

Frequently Asked Questions: Roof Rafter Calculator

How do you calculate rafter length using roof pitch?

Find the effective run (half the span minus half the ridge board for a gable, or full span for a shed). Multiply run in feet by the pitch unit length, sqrt(12 squared + pitch squared), such as 13.416 inches per foot on 6/12, then add overhang.

How to cut a bird's mouth in a rafter?

Knowing how to cut a bird's mouth in a rafter starts with setting a framing square to your rise and run. Mark the wall plumb line, scribe a level seat cut (3.5 inches for 2x4 plates), and keep the perpendicular notch within 1/4 of rafter depth (IRC R802.7.1). Finish the corner with a handsaw.

What size lumber is required for roof rafters (2x6 vs 2x8)?

Lumber size depends on clear span, spacing (16 or 24 inches O.C.), and snow or live loads. Per IRC Table R802.4.1(1), Douglas Fir-Larch #2 2x6 at 16 inches O.C. spans 14 feet 7 inches under a 20 psf roof live load (10 psf dead load, no ceiling). Deeper snow loads or steep notches often require 2x8 or 2x10 stock.

Why deduct half the ridge board thickness from rafter length?

Line length measures to the roof centerline. Because a 2x ridge board (1.5 inches actual) sits between opposing gable rafters, each rafter deducts half that thickness (0.75 inches horizontally) for a tight fit without pushing walls outward.

Framing & Carpentry Calculators

Related Layout Tools

View Full Framing & Carpentry Hub 10 Tools →