Rafter Length Calculator
Find the rafter length, overhang, plumb and seat cut angles and board length from the run and the roof pitch.
How to use the rafter length calculator
- Enter the run: the level distance from the outside of the wall to the center of the ridge. For a gable roof that is half the width of the building.
- Enter the pitch as inches of rise per 12 in of run, such as 4, 6 or 8.
- Enter the overhang, measured level from the wall to the end of the tail, and pick the ridge board. Half the ridge thickness comes off each rafter.
- Optionally, enter the building length and the spacing to count the rafters.
The rafter length calculator gives the length along the top edge of the rafter, the cut angles and the shortest standard board that will do.
The formula
Rafter length = run × √(rise² + 12²) ÷ 12
The part after the run is the slope factor: how much longer the rafter is than its level run.
Example: a 24 ft wide building has a 12 ft run. Subtract half of a 1-1/2 in ridge board: 144 − 0.75 = 143.25 in. At 6/12 the slope factor is 1.118, so the rafter is 143.25 × 1.118 = 160.16 in, or 13 ft 4-3/16 in from the ridge to the birdsmouth. A 12 in overhang adds 13-7/16 in, for 14 ft 5-9/16 in in total. Buy 16 ft boards.
Slope factors and angles
| Pitch | Angle | Slope factor |
|---|---|---|
| 3/12 | 14.0° | 1.031 |
| 4/12 | 18.4° | 1.054 |
| 5/12 | 22.6° | 1.083 |
| 6/12 | 26.6° | 1.118 |
| 7/12 | 30.3° | 1.158 |
| 8/12 | 33.7° | 1.202 |
| 9/12 | 36.9° | 1.250 |
| 10/12 | 39.8° | 1.302 |
| 12/12 | 45.0° | 1.414 |
Marking the cuts
- Plumb cut at the ridge: pivot a speed square on its pivot point until the edge reads the pitch on the common scale, and draw along the edge. The line is at the roof angle from a square cut.
- Birdsmouth: a plumb line where the rafter meets the outside of the wall, and a level seat cut at right angles to it. Do not cut deeper than about a third of the rafter depth.
- Tail: measure the overhang length along the top edge from the birdsmouth plumb line and cut plumb or square, to suit the fascia.
Cut one pattern rafter, test it at both ends of the building, then use it to mark the rest.
Sizing the rafters
This calculator gives length, not strength. The rafter size and spacing depend on the span, the snow load, the roofing and the species; check your code’s rafter span table. For floor and ceiling joists, use the joist span calculator.
Frequently asked questions
Is the rafter length measured on the top or the bottom edge?
The figure here is along the top edge (the measuring line in this method), from the ridge plumb cut to the tail.
What angle is a 4/12 pitch?
18.4°. A 6/12 pitch is 26.6° and a 12/12 pitch is 45°.
Share this
More lumber calculators
-
Board Foot Calculator
Board feet, cubic volume and cost for any boards, timbers or hardwood.
-
Lumber Size Chart
Nominal and actual sizes of every board, in inches and millimeters.
-
Joist Span Calculator
How far a floor, deck or ceiling joist can span, by species and grade.
-
Deck Board Calculator
Deck boards, linear feet and screws for a deck of any size.
-
Stud Calculator
Studs and plates for a framed wall, with corners and openings.
-
Lumber Weight Calculator
Weight of boards and timbers by species and moisture content.
-
Wood Movement Calculator
How much a board shrinks or swells as its moisture changes.