Rafter Length Calculator sizing common rafters from rise and run, pitch, span or one known length, with cut length, overhang tail, ridge deduction, birdsmouth seat and board count.
Run is level, from the outside of the wall to the ridge center.
Ridge and Birdsmouth Cut
A 2x6 is 5 1/2 in deep and a 2x8 is 7 1/4 in. The seat cut usually matches the wall plate width.
Rafter Count and Lumber
Rafters sit 16 or 24 in apart. Add your local board price to see the lumber cost.
Rafter Diagram with Birdsmouth
Rafter Length Table by Pitch
| Pitch | Angle | Multiplier | Common Rafter | Hip or Valley |
|---|---|---|---|---|
| 1/12 | 4.76° | × 1.0035 | 10 ft 7/16 in | 14 ft 2 in |
| 2/12 | 9.46° | × 1.0138 | 10 ft 1 5/8 in | 14 ft 2 7/8 in |
| 3/12 | 14.04° | × 1.0308 | 10 ft 3 11/16 in | 14 ft 4 5/16 in |
| 4/12 | 18.43° | × 1.0541 | 10 ft 6 1/2 in | 14 ft 6 3/8 in |
| 5/12 | 22.62° | × 1.0833 | 10 ft 10 in | 14 ft 8 15/16 in |
| 6/12 (yours) | 26.57° | × 1.1180 | 11 ft 2 3/16 in | 15 ft |
| 7/12 | 30.26° | × 1.1577 | 11 ft 6 15/16 in | 15 ft 3 9/16 in |
| 8/12 | 33.69° | × 1.2019 | 12 ft 1/4 in | 15 ft 7 5/8 in |
| 9/12 | 36.87° | × 1.2500 | 12 ft 6 in | 16 ft 1/16 in |
| 10/12 | 39.81° | × 1.3017 | 13 ft 3/16 in | 16 ft 5 in |
| 11/12 | 42.51° | × 1.3566 | 13 ft 6 13/16 in | 16 ft 10 1/4 in |
| 12/12 | 45.00° | × 1.4142 | 14 ft 1 11/16 in | 17 ft 3 7/8 in |
| 14/12 | 49.40° | × 1.5366 | 15 ft 4 3/8 in | 18 ft 4 in |
| 16/12 | 53.13° | × 1.6667 | 16 ft 8 in | 19 ft 5 1/4 in |
| 18/12 | 56.31° | × 1.8028 | 18 ft 5/16 in | 20 ft 7 3/8 in |
Step-by-Step Math
- Slope: m = 5 ÷ 10 = 0.5 (6/12, 26.5651°)
- Rafter length: √(5² + 10²) = 11.1803 ft, multiplier √(1 + 0.5²) = 1.11803
- Cut length: (10 - 0.125 ÷ 2 + 1) × 1.11803 = 12.2285 ft
- Birdsmouth: heel = 0.2917 × 0.5 = 0.1458 ft; height above plate = 0.6042 × 1.11803 - 0.1458 = 0.5296 ft
- Rafter count: (⌈30 ÷ 2⌉ + 1) × 2 = 32
Rafter Length Calculator Math on a 20 ft Span
A 20 ft span at 6/12 with a 12 in overhang and a 1 1/2 in ridge board needs rafters cut to 12 ft 2 3/4 in. The line length from wall plate to ridge center is 11 ft 2 1/8 in.
Lc is the cut length, R is the run from the outside of the wall to the ridge center, t is the ridge board thickness, e is the level eave overhang and P is the rise per 12 in. The run here is 10 ft, half the span.
The square root is the rafter multiplier in any rafter length calculator estimate, 1.118 at 6/12. It stretches every level inch into sloped inches, so the 10 ft run becomes 11.18 ft and the 12 in overhang becomes a 13 3/8 in tail.
Half the ridge board comes off along the slope too, a step some rafter length calculator figures skip. Half of 1 1/2 in is 3/4 in level, which is 7/8 in measured on the rafter, so the cut is 11 ft 2 1/8 in, minus 7/8 in, plus 13 3/8 in.
The common shortcut of rise and run plus the overhang adds the 12 in level, not sloped. On this roof it gives 12 ft 2 1/8 in where the correct line-plus-tail length is 12 ft 3 5/8 in, 1 3/8 in short.
That missing 1 3/8 in shows up at the fascia, where the tails no longer line up with a level soffit. Any rafter length calculator with overhang has to apply the multiplier to the tail as well as the run.
Tail Length for 12, 16 and 24 in Overhangs
A 24 in overhang on a 12/12 roof needs a 34 in tail, 10 in longer than the overhang itself. Steeper roofs stretch the tail more, so the error from adding the overhang level grows with pitch.
| Pitch | 12 in Overhang Tail | 16 in Overhang Tail | 24 in Overhang Tail | Shortfall If Added Level (24 in) |
|---|---|---|---|---|
| 3/12 | 12 3/8 in | 16 1/2 in | 24 3/4 in | 3/4 in |
| 4/12 | 12 5/8 in | 16 7/8 in | 25 1/4 in | 1 1/4 in |
| 6/12 | 13 3/8 in | 17 7/8 in | 26 7/8 in | 2 7/8 in |
| 8/12 | 14 3/8 in | 19 1/4 in | 28 7/8 in | 4 7/8 in |
| 10/12 | 15 5/8 in | 20 7/8 in | 31 1/4 in | 7 1/4 in |
| 12/12 | 17 in | 22 5/8 in | 34 in | 10 in |
For rafter length calculator math, measure the overhang level from the outside of the wall to the back of the fascia, the way the soffit will run. The Soffit Calculator uses the same level width for soffit panels.
Leave the tails an inch or so long when framing, then snap a line and trim them all at once. Small errors in the seat cuts or a crowned wall then disappear before the fascia goes on.
Birdsmouth Seat Limits by Lumber Size
A birdsmouth notch can cut no deeper than one-fourth of the rafter depth under IRC R802.7.1. A 2x12 can take a seat up to 8 7/8 in at 4/12 but only 4 in at 12/12, as framer Tim Uhler sets out in JLC's "Sizing the Birdsmouth".
smax is the longest level seat cut, D is the actual rafter depth and θ is the roof angle. Notch depth in rafter length calculator birdsmouth math is measured square to the rafter edge, so the same seat cuts deeper as the roof gets steeper.
| Pitch | 2x6 (5 1/2 in) | 2x8 (7 1/4 in) | 2x10 (9 1/4 in) | 2x12 (11 1/4 in) |
|---|---|---|---|---|
| 4/12 | 4 3/8 in | 5 3/4 in | 7 3/8 in | 8 7/8 in |
| 6/12 | 3 1/8 in | 4 in | 5 1/8 in | 6 1/4 in |
| 8/12 | 2 1/2 in | 3 1/4 in | 4 1/8 in | 5 1/8 in |
| 12/12 | 2 in | 2 5/8 in | 3 1/4 in | 4 in |
A full 3 1/2 in seat on a 2x4 wall works for a 2x8 at 6/12, where it notches 1 5/8 in or 21.6%. At 8/12 the same seat notches 2 in, which is 26.8% and over the limit, so shorten the seat or go to a 2x10.
The seat also has a floor in rafter length calculator layouts. IRC R802.6 requires at least 1 1/2 in of bearing on wood or metal, so a 2x6 at 12/12 has a narrow window from 1 1/2 in to 2 in of seat.
On the 20 ft span at 6/12, a 3 1/2 in seat on a 2x8 leaves a 1 3/4 in heel and 6 3/8 in of rafter above the plate. The Birdsmouth Cut Calculator works the seat and heel for any lumber size.
Table of Rafter Lengths From 3/12 to 12/12
A 12 ft run is 12 ft 4 3/8 in of rafter at 3/12 and 16 ft 11 5/8 in at 12/12. Each entry is the rafter length calculator line length from wall to ridge center, before the tail and ridge deduction.
| Run | 3/12 | 4/12 | 5/12 | 6/12 | 8/12 | 10/12 | 12/12 |
|---|---|---|---|---|---|---|---|
| 6 ft | 6 ft 2 1/4 in | 6 ft 3 7/8 in | 6 ft 6 in | 6 ft 8 1/2 in | 7 ft 2 1/2 in | 7 ft 9 3/4 in | 8 ft 5 7/8 in |
| 8 ft | 8 ft 3 in | 8 ft 5 1/4 in | 8 ft 8 in | 8 ft 11 3/8 in | 9 ft 7 3/8 in | 10 ft 5 in | 11 ft 3 3/4 in |
| 10 ft | 10 ft 3 3/4 in | 10 ft 6 1/2 in | 10 ft 10 in | 11 ft 2 1/8 in | 12 ft 1/4 in | 13 ft 1/4 in | 14 ft 1 3/4 in |
| 12 ft | 12 ft 4 3/8 in | 12 ft 7 3/4 in | 13 ft | 13 ft 5 in | 14 ft 5 1/8 in | 15 ft 7 1/2 in | 16 ft 11 5/8 in |
| 14 ft | 14 ft 5 1/8 in | 14 ft 9 1/8 in | 15 ft 2 in | 15 ft 7 7/8 in | 16 ft 9 7/8 in | 18 ft 2 5/8 in | 19 ft 9 5/8 in |
| 16 ft | 16 ft 5 7/8 in | 16 ft 10 3/8 in | 17 ft 4 in | 17 ft 10 5/8 in | 19 ft 2 3/4 in | 20 ft 9 7/8 in | 22 ft 7 1/2 in |
In rafter length calculator math, the run is half the span on a gable, measured from the outside of the wall plate to the ridge center. If you only know the pitch in degrees, the Roof Pitch Calculator converts it to a rise per 12 first.
Lean-To and Shed Rafters
A shed or lean-to rafter spans the whole building, not half. A 12 ft deep shed at 3/12 with a 12 in overhang has a 12 ft 4 3/8 in line length and a 13 ft 4 3/4 in cut length.
For a lean to rafter length calculator figure, the run is the full wall-to-wall depth, so the high wall rises 3 ft above the low wall on that 12 ft shed. There is no ridge board, so nothing comes off the top end of a lean-to rafter.
Low sheds hit the shingle limit first. A 10 ft deep shed at 2/12 rises only 1 ft 8 in and is the flattest roof that can take asphalt shingles, with two layers of underlayment up to 4/12 under IRC R905.2.2.
A shed rafter length calculator figure stops at the high wall plate. If the rafters run past the high wall too, add that overhang times the same multiplier, 1.031 at 3/12, to the top end.
Stock Board and Rafter Count for a 30 ft Building
A 30 ft gable at 24 in on center needs 32 rafters, 16 per side, each cut from a 14 ft board. At 16 in on center the count rises to 48, with 672 linear ft of lumber instead of 448 ft.
The rafter length calculator count per side is the building length divided by the spacing, rounded up, plus one for the second end. That is 30 ÷ 2 = 15, plus 1, giving 16 rafters per side at 24 in.
The 12 ft 2 3/4 in cut length rounds up to a 14 ft board, since lumber comes in 2 ft steps. A cut length just over an even length, such as 12 ft 1 in, wastes nearly 2 ft per rafter.
Over 24 ft of cut length, sawn lumber runs out. A 16 ft run at 12/12 already needs 22 ft 7 1/2 in plus its tail, so steep wide roofs often need a splice over a support or engineered rafters instead.
The Roof Truss Calculator covers the same building framed with trusses, which are counted the same way but sized by the maker.
Millimeter Results for Australia and the UK
A 7.2 m span at 22.5° with a 450 mm overhang and a 45 mm ridge needs rafters cut to 4,359 mm. The line length from wall to ridge is 3,897 mm, and the ridge sits 1,491 mm above the wall plates.
In a rafter length calculator for Australia or the UK, the 22.5° roof equals a 4.97/12 pitch and a 1.0824 multiplier. The 450 mm overhang becomes a 487 mm tail, and half the 45 mm ridge comes off as 24 mm along the rafter.
A 190 mm deep rafter with a 90 mm seat notches 34 mm, or 18.1%, inside the one-fourth limit. The longest seat it could take at this pitch is 124 mm, and in 0.3 m steps the cut length needs a 4.5 m length.
Rafter length calculator metric math is the same as in feet, as long as every input is in one unit. Mixing a span in meters with an overhang in millimeters is the usual source of a rafter that is 1,000 times off.
From Measuring Tape to Saw Cut
Rafter work moves from a tape measurement to a rafter length calculator figure to a marked line and a saw cut. The answers below use the 20 ft span at 6/12 with a 12 in overhang and a 1 1/2 in ridge board.
How to calculate rafter length?
Calculate rafter length as the run times the rafter multiplier, √(1 + (pitch/12)2). For a 10 ft run at 6/12 that is 10 x 1.118 = 11.18 ft, or 11 ft 2 1/8 in to the ridge center.
Rafter length calculator math using pitch alone works when the run is known. From rise and run, the same length is √(52 + 102) = 11.18 ft, and a 14 ft board at 6/12 covers a run of 12.52 ft before any tail.
How do you measure a rafter?
Measure a rafter along its top edge or along a measuring line parallel to it, from the ridge plumb cut to the tail plumb cut. On the 20 ft span the rafter measures 12 ft 2 3/4 in between those two marks.
On an existing roof, measure the rise and run instead of the rafter itself. A ridge 7 1/2 in above a level 12 in mark is a 7.5/12 pitch, and the run comes from half the outside wall width.
How do you cut a rafter?
Cut a rafter with plumb cuts at the roof angle and a level seat cut at 90° minus that angle. At 6/12 the plumb cuts are 26.57° and the seat cut is 63.43°, set off a speed square's pitch scale.
Mark the ridge plumb cut first, measure the cut length down the board, then mark the tail and the birdsmouth. Cut one pattern rafter, test it at both ends of the building, then trace that rafter length calculator pattern onto the rest.
How do you calculate rafter multiplier?
For any roof rafter length calculator estimate, calculate the rafter multiplier as √(1 + (rise/12)2), the rafter length for each foot of run. It is 1.0541 at 4/12, 1.118 at 6/12, 1.2019 at 8/12 and 1.4142 at 12/12.
The hip or valley multiplier is √(2 + (rise/12)2), because a hip covers 1.414 ft of plan for each foot of common run. At 6/12 it is exactly 1.5, so the 10 ft run needs a 15 ft hip, and the Hip Roof Calculator adds the tail.