One Rafter, Three Lengths
Ask for a rafter length and you can get three different answers, and they differ by inches. Take a 24 ft wide gable at 6/12 with a 12 in. overhang and 2×6 rafters. Half the width is 12 ft, the run from the center of the ridge to the outside of the wall. The rafter stops at the face of the ridge board, not its center, so half of a 1 1/2 in. ridge comes off first, measured level, leaving 11 ft 11 1/4 in. Times the 6/12 slope factor of 1.118, that is a line length of 13 ft 4 3/16 in: the distance you mark from the ridge plumb cut to the heel of the birdsmouth.
The overhang adds a tail. Twelve inches of level overhang is 1 ft 1 7/16 in along the rafter, for a total of 14 ft 5 9/16 in. Then comes the board. Both ends are cut plumb, and the long points of those cuts sit 2 3/4 in further along the board than the measuring line, so the piece needs 14 ft 8 5/16 in of lumber. A 14 ft board looks right and is short; you buy 16s. Lumber comes in 2 ft steps, and lengths past 16 ft are often special order, so the board length is worth knowing before you order. Carpentry texts don’t even agree on which of the first two numbers to call the line length, as InspectAPedia points out, which is why the calculator labels all three.
Where the Run Starts and Stops
Fine Homebuilding defines the run of a gable rafter as running from the centerline of the ridge to the outside edge of the top of the wall. Measure the walls as they were built rather than the plan; an inch out of square at the plates is an inch of run. If the wall sheathing goes on before the roof and you want the heel cut flush with it, add the sheathing to the width. The overhang is always a level measurement from that same outside face, so 12 in. of overhang at 6/12 is 13 7/16 in. along the rafter.
Shed and lean-to roofs change the start and end points. A shed rafter crosses two walls and gets a birdsmouth at each, and on the high wall the heel cut bears on the inside face of the wall, so the Stanley rafter guide takes the run as the span less one wall thickness. A lean-to rafter runs from the face of a ledger on the house to the outside of the new wall, with no ridge to deduct. For a shed, the calculator also tells you how much taller the high wall must be, because that is the dimension you frame first.
The Birdsmouth Gets Harder as the Roof Gets Steeper
The usual habit is to make the seat cut as wide as the wall plate, 3 1/2 in. on a 2×4 wall, and to keep about two-thirds of the rafter above it; JLC calls this the two-thirds rule. The code adds its own limits. Rafters need at least 1 1/2 in. of bearing (IRC R802.6). A rafter with an overhang may be notched only if at least 3 1/2 in. of it remains and the overhang is no longer than 24 in. (R802.7.1.1). With no overhang, the end notch falls under the general limit of one-fourth of the depth.
The trouble is that a fixed seat digs deeper as the pitch rises. Here is a 2×6 with a full 3 1/2 in. seat, 12 in. overhang:
| Pitch | Height above plate | Rafter left at notch | Seat cut |
|---|---|---|---|
| 4/12 | 4 5/8 in | 4.39 in | Full seat |
| 6/12 | 4 3/8 in | 3.93 in | Full seat |
| 8/12 | 4 1/4 in | 3.56 in | Shorten to 3 1/4 in |
| 10/12 | 4 1/4 in | 3.26 in | Shorten to 2 13/16 in |
| 12/12 | 4 1/4 in | 3.03 in | Shorten to 2 9/16 in |
From 8/12 the full seat leaves less than two-thirds of the rafter above the plate, and from 9/12 it would also break the code’s 3 1/2 in. minimum. JLC’s Tim Uhler makes the same point: the steeper the roof, the more likely a plate-width seat over-notches the rafter. The calculator shortens the seat in 1/16 in. steps until every check passes, and if even a 1 1/2 in. seat fails, it tells you to go up a size. One judgment call: the code doesn’t say whether the remaining 3 1/2 in. is measured plumb or square to the edge. We measure square to the edge, the smaller of the two.
Hips and Jacks
A hip rafter runs at 45° to the walls, so for every 12 in. a common rafter runs, the hip runs 16.97 in., the diagonal of a 12 in. square; framing squares round it to 17. The rise is the same, so the hip is longer and flatter. Its top is deducted by half the ridge’s thickness measured on the 45°, 1 1/16 in for a 2× ridge with a single cheek cut, and the jacks lose half the hip’s 45° thickness where they meet it (Pressbooks Carpentry Refresher). On the 24 ft example the hip’s line length is 17 ft 10 7/8 in, and its total with the tail is 19 ft 4 7/8 in, from a 20 ft board.
Jack rafters are short commons, so each is the common slope factor times its run from the corner, and each one at 16 in. spacing is 17 7/8 in shorter than the last. Hips are usually cut one size deeper than the commons, 2×8 hips with 2×6 commons in a JLC example, so the angled ends of the jacks land fully on the hip.
Checking It by Hand
You don’t need the calculator to check a number. The rafter tables on a framing or rafter square give the length per foot of run: 13.42 in. at 6/12. Multiply by the run in feet (11.9375 ft here) and you get 160.2 in., which is the 13 ft 4 3/16 in. above. The other way is to step it off: set a framing square at 6 and 12 on the board, mark, slide it along, and repeat once for each foot of run, then take the 3/4 in. off at the top. The full plan in the calculator shows each step with your own numbers, and a per-foot table for 1/12 to 12/12.
What This Doesn’t Size
A length calculator can’t tell you whether a 2×6 is strong enough. That comes from the rafter span tables in the IRC (R802.4.1), which measure span along the level and depend on species, grade, spacing, snow load and whether a ceiling hangs from the rafters, or from the American Wood Council’s span calculator. Pick the size there, then come back for the lengths.
Rafter Questions
The length method follows the rafter square manuals and framing guides listed below; the birdsmouth limits come from the IRC sections named, with the two-thirds rule labeled as a framer’s rule. We test the engine on the worked examples here and on more than a quarter of a million roofs, pitches from 1/2 to 24 in 12, every rafter size and four roof types, to check that every seat it gives passes every limit.
- DeWalt rafter square manual (ridge deduction, rafter tables)
- Fine Homebuilding: laying out a common rafter (run, ridge trim)
- InspectAPedia: framing square rafter tables (line length and total length)
- JLC: sizing the birdsmouth (bearing, end notches, seat width)
- JLC: efficient rafter cutting (the two-thirds rule)
- Building Code Trainer: IRC R802.7.1.1, notches on cantilevered rafters
- ICC CodeNotes: cutting, drilling and notching (end notches)
- IRC R802.3 ridge text, as adopted in the Seattle Residential Code
- Stanley Quick Square rafter guide (shed run, measuring line)
- Pressbooks Carpentry Refresher: ridge boards and hip rafters
- JLC: fast jack rafter layout and cutting
- Lowe’s: nominal and actual lumber sizes and lengths
- American Wood Council: span tables for joists and rafters
Written and checked by Kris Lynch. Not reviewed by a licensed professional. See our methodology. Spotted a problem? Tell us. Updates: Nov 2026, launched.