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.
Rafter Framing Controls
Units: Inches / FeetHow 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
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.
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.
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)
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.
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.
Related Layout Tools
Stair Stringer Blueprint Engine
Calculate rise, run, bottom tread thickness deduction, throat depth, and 2D cut blueprint.
Board & Batten Slat Designer
Calculate board widths, reveal gap spacing, and 1x dimensional batten cut layouts.
Wall Stud & Plate Counter
Top/bottom plate estimator, corner studs, and 16" vs 24" O.C. framing takeoffs.
Bird's Mouth Rafter Cut Tool
Seat cut bearing length and vertical plumb cut notch depth with 3.5X detail zoom.