How Long Is a Rafter?
A 24 ft wide gable at a 6/12 pitch with a 12 in overhang and a 1 1/2 in ridge board takes common rafters 14' 5-9/16" long: 13' 4-3/16" from the wall to the ridge plus 13-7/16" of overhang along the slope. Cut them from 16 ft boards.
Rafter length for a 24 ft wide building with a 12 in overhang, and the shortest stock length that leaves room for the cuts:
| Pitch | Angle | Rafter | Board |
|---|---|---|---|
| 3/12 | 14.0° | 13' 4" | 14 ft |
| 4/12 | 18.4° | 13' 7-5/8" | 14 ft |
| 5/12 | 22.6° | 14' 3/16" | 16 ft |
| 6/12 | 26.6° | 14' 5-9/16" | 16 ft |
| 8/12 | 33.7° | 15' 6-9/16" | 16 ft |
| 10/12 | 39.8° | 16' 10-1/16" | 18 ft |
| 12/12 | 45.0° | 18' 3-9/16" | 20 ft |
| Pitch | Slope factor | Roof angle | Rafter length | Board |
|---|---|---|---|---|
| 3/12 | 1.031 | 14.0° | 13' 4" | 14 ft |
| 4/12 | 1.054 | 18.4° | 13' 7-5/8" | 14 ft |
| 5/12 | 1.083 | 22.6° | 14' 3/16" | 16 ft |
| 6/12 | 1.118 | 26.6° | 14' 5-9/16" | 16 ft |
| 8/12 | 1.202 | 33.7° | 15' 6-9/16" | 16 ft |
| 10/12 | 1.302 | 39.8° | 16' 10-1/16" | 18 ft |
| 12/12 | 1.414 | 45.0° | 18' 3-9/16" | 20 ft |
The length is measured along the top edge of the rafter, from the plumb cut at the ridge to the plumb cut at the tail; the run and the overhang are measured level. The lumber standard sets lengths in multiples of 1 or 2 ft, and the calculator rounds up to the next even length from 8 to 20 ft. The IRC span tables add a note to check that boards longer than 20 ft are available, so a steep, wide roof can outgrow stock rafters.
Parts of a Common Rafter
The cuts and measurements on one rafter of the default roof:
- 1Plumb cut at the ridge: 26.6° from square
- 2Line length: 13 ft 4 3/16 in along the top edge
- 3Birdsmouth: 3 1/2 in seat cut, 1 3/4 in heel cut
- 4Height above plate: 6 3/8 in on the wall line
- 5Overhang: 12 in level, 13 7/16 in along the rafter
- 6Run: 11 ft 11 1/4 in, half the span less half the ridge
The wall line, the outside face of the wall, is where the run starts and where the heel cut of the birdsmouth falls. Everything outside it is the tail.
How to Calculate Rafter Length
Subtract half the ridge thickness from half the width, add the overhang and multiply by the slope factor:
Swanson's rafter tables give the same factor per foot of run: 13.42 in at 6/12, so 12 ft of run makes 13 ft 5 in before the ridge deduction. The deduction is taken level, off the run: Dunkley's 8/12 roof with an 11 ft run and a 1 1/2 in ridge works out to 13 ft 1 3/4 in this way.
How to Lay Out and Cut a Rafter
- 1Sight the board and put the crown, the high edge, up.
- 2Mark the plumb cut at the top: with a Speed Square, pivot on the top edge to the rise number on the Common scale and draw along the edge.
- 3Measure the line length along the top edge and mark a second plumb line. It is the wall line, where the heel cut goes.
- 4Lay out the birdsmouth from the wall line: the seat cut square to the plumb line, the heel cut along it.
- 5Add the tail: measure the overhang along the rafter and mark a plumb cut for the fascia.
- 6Move the top plumb cut toward the tail by half the ridge thickness, cut, and use the first rafter as the pattern for the rest.
Keeping the pattern flush with the top edge of each new board keeps the height above the plate the same on every rafter, even when the boards differ slightly in depth.
Rafter Span Chart
IRC Table R802.4.1(1) gives the longest horizontal span for #2 lumber at a 20 psf roof live load, 10 psf dead load (light roofing such as asphalt shingles) and no ceiling attached to the rafters:
| 16 in on center | 2×6 | 2×8 | 2×10 | 2×12 |
|---|---|---|---|---|
| Douglas fir-larch | 14' 7" | 18' 5" | 22' 6" | 26' 0" |
| Hem-fir | 14' 2" | 17' 11" | 21' 11" | 25' 5" |
| Southern pine | 13' 6" | 17' 1" | 20' 3" | 23' 10" |
| Spruce-pine-fir | 14' 4" | 18' 2" | 22' 3" | 25' 9" |
| 24 in on center | 2×6 | 2×8 | 2×10 | 2×12 |
|---|---|---|---|---|
| Douglas fir-larch | 11' 11" | 15' 1" | 18' 5" | 21' 4" |
| Hem-fir | 11' 7" | 14' 8" | 17' 10" | 20' 9" |
| Southern pine | 11' 0" | 13' 11" | 16' 6" | 19' 6" |
| Spruce-pine-fir | 11' 9" | 14' 10" | 18' 2" | 21' 0" |
Douglas fir-larch #2 spans at 16 and 24 in on center from the same table:
- Span is horizontal: measured along the horizontal projection of the rafter, face to face of the supports (R802.4.1), not along the slope.
- Snow, heavy roofing and ceilings: 30 psf ground snow, 20 psf dead load or a ceiling fastened to the rafters use other tables with shorter spans. Set Roof load, Roofing and Ceiling in the calculator to look them up.
- Raised ceiling joists: the tables assume ceiling joists or rafter ties at the bottom of the attic. If they sit higher, multiply the span by 0.67 at one-third of the ridge height, up to 1.00 at 1/7.5 or less (Table R802.4.1(9)).
What Size Rafter for Your Building
On a gable, each rafter spans half the building width. The smallest Douglas fir-larch #2 rafter at 16 in on center, with light roofing and no ceiling on the rafters:
| Building width | Rafter run | 20 psf live | 30 psf snow |
|---|---|---|---|
| 16 ft | 7' 11-1/4" | 2×6 | 2×6 |
| 20 ft | 9' 11-1/4" | 2×6 | 2×6 |
| 24 ft | 11' 11-1/4" | 2×6 | 2×6 |
| 28 ft | 13' 11-1/4" | 2×6 | 2×8 |
| 32 ft | 15' 11-1/4" | 2×8 | 2×10 |
A 20 psf live load is the code minimum for roofs flatter than 4/12; where the ground snow load is higher, the snow tables govern. A span beyond 2×12 in the IRC tables, or any load the tables don't cover, goes to the American Wood Council tables or an engineer.
Birdsmouth Cut
The birdsmouth is the notch that seats the rafter on the wall: a level seat cut on the top plate and a plumb heel cut at the outside of the wall. The heel cut is the seat times the pitch: a 3 1/2 in seat at 6/12 leaves a 1 3/4 in heel. On the default 2×8, the notch takes 22% of the rafter's depth, with 6-3/8" of rafter above the plate at the wall line.
- Code limit: the IRC has no birdsmouth rule as such, but notches at the ends of rafters may not exceed one-fourth of their depth (R802.7.1, pointing to R502.8.1).
- Rule of thumb: framers often keep at least two-thirds of the rafter above the cut, a looser limit than the code's.
- Bearing: at least 1 1/2 in on wood (R802.6). The seat does not have to cover the whole plate; on a 2×6 rafter at 6/12, a full 3 1/2 in seat would take 28% of the depth, so the calculator suggests a 3-1/16" seat instead.
- Steep roofs: the steeper the pitch, the deeper the same seat cuts. Uhler's example: a 2×12 at 4/12 can take an 8 7/8 in seat within the one-fourth limit, at 12/12 only 4 in.
- No notch: Simpson Strong-Tie's VPA connector fastens rafters to the plate at pitches from 3:12 to 12:12 without a birdsmouth.
Cut angles: the plumb cut is the roof angle from square, 26.6° at 6/12, and the seat cut is its complement, 63.4°. Work out the seat, heel and notch for any rafter on its own.
How Many Rafters
Divide the wall length by the spacing, round up and add one for the end: a 36 ft wall at 16 in on center takes 28 rafters per side, 56 for a gable. At 24 in on center the same wall takes 19 per side. Add doubled rafters at skylights and chimneys and the framing for any gable overhang.
The IRC span tables cover 12, 16, 19.2 and 24 in on center. At 24 in, the sheathing has to be rated for that span, such as 7/16 in panels marked 24/16, and 24 in is also the most the code's simple uplift exception allows (R802.11). Count the sheathing panels and pick the thinnest one the code allows for your spacing.
Shed and Lean-To Rafters
A shed roof has one slope, so each rafter runs the full width of the building with no ridge. Here is a 10 ft wide shed at 4/12 with a 12 in overhang at the low wall:
The rafter is 11' 7-1/8" long: 10' 6-1/2" from wall to wall plus 12-5/8" of overhang. The high wall stands 3 ft 4 in taller than the low one, the rise of 10 ft of run at 4/12. In the calculator choose Shed Roof; the span check then uses the whole width, because the rafter spans from wall to wall.
Overhang, Ridge and Ties
- Overhang: typical eaves run 12 to 24 in, measured level from the wall (GAF). A notched rafter tail may cantilever up to 24 in and must keep at least 3 1/2 in of depth (R802.7.1.1); the code's uplift table also assumes an overhang of 24 in or less.
- Ridge board: at least 1 in nominal thick and no shallower than the cut end of the rafter (R802.3). Below a 3/12 pitch the ridge must be designed as a beam (R802.4.4); the ridge beam calculator sizes the board from the plumb cut.
- Ties: ceiling joists or rafter ties must tie the walls together so the roof does not push them apart (R802.2). Rafter ties are at least 2×4 and no more than 24 in on center (R802.5.2.2); collar ties go in the upper third of the attic (R802.4.6).
Rafters vs. Trusses
Rafters are cut on site from dimension lumber and leave the attic open between the ceiling joists. Trusses come from a plant, built to a design for the given span and loads; the IRC asks for their design drawings before installation (R802.10) and forbids cutting or notching them unless the designer allows it (R802.7.2). Count and price the trusses for the same building.
Hip, Valley and Jack Rafters
On a roof with the same pitch on all sides, a hip or valley rafter runs at 45° in plan, so it covers 16.97 in of run for every 12 in of the common rafter. Its length is the common run times √(pitch² + 288) ÷ 12: 1.5 at 6/12 and 1.563 at 8/12. Shorten it at the ridge by half the ridge thickness times √2.
Jack rafters step down by the spacing times the common slope factor: 17-7/8" at 16 in on center and 26-13/16" at 24 in, for a 6/12 roof. List the hips, ridge and jacks for a whole hip roof.
Frequently Asked Questions
How do I calculate rafter length?
Take half the building width, subtract half the ridge board thickness and multiply by the slope factor, √(1 + (pitch ÷ 12)²). Add the overhang times the same factor. A 24 ft wide gable at 6/12 with a 12 in overhang and a 1 1/2 in ridge takes rafters 14' 5-9/16" long.
How far can a 2×6 rafter span?
At 16 in on center, 14' 7" in Douglas fir-larch #2 and 13' 6" in Southern pine #2; at 24 in, 11' 11" and 11' 0". Those are IRC Table R802.4.1(1) spans for a 20 psf roof live load, 10 psf dead load and no ceiling on the rafters, measured horizontally.
How far can a 2×8, 2×10 or 2×12 rafter span?
In Douglas fir-larch #2 at 16 in on center: 2×8 18' 5", 2×10 22' 6" and 2×12 26' 0", for a 20 psf live load and light roofing. Snow and heavy roofing shorten them; the calculator looks up your case.
What size rafter do I need for a 12 ft span?
For a rafter that spans 12 ft horizontally, a 2×6 at 16 in on center works in all four common species at a 20 psf live load. At 24 in on center, all four need a 2×8, because their 2×6 spans run 11' 0" to 11' 11".
Should rafters be 16 or 24 inches on center?
Both are in the IRC tables. 16 in allows longer spans with the same lumber; 24 in uses fewer rafters but needs sheathing rated for a 24 in span, such as 7/16 in 24/16 panels, and is the most the code's simple uplift exception allows.
How deep can a birdsmouth cut be?
The IRC limits notches at the ends of rafters to one-fourth of their depth (R802.7.1, which points to R502.8.1). Many framers use a looser rule of thumb, keeping at least two-thirds of the rafter above the cut. The seat needs at least 1 1/2 in of bearing.
How many rafters do I need?
Divide the wall length by the spacing, round up and add one for each side. A 36 ft wall at 16 in on center takes 28 per side, 56 for a gable. A 10 × 12 shed gable with rafters along the 12 ft side takes 10 per side, 20 in all.
How long should a rafter tail be?
As long as the overhang times the slope factor, plus the fascia detail. Eaves typically overhang 12 to 24 in measured level; a 12 in overhang at 6/12 adds 13 7/16 in to the rafter. A notched tail may cantilever up to 24 in (IRC R802.7.1.1).
What is the rafter length per foot of run for a 6/12 roof?
1.118 ft, or 13 7/16 in per 12 in of run. For 4/12 it is 1.054, for 8/12 1.202 and for 12/12 1.414.
How do I find the length of a hip rafter?
On a roof with the same pitch on all sides, multiply the common rafter's run by √(pitch² + 288) ÷ 12: 1.5 at 6/12. Then shorten it at the ridge by half the ridge thickness times √2.
What size ridge board do I need?
At least 1 in nominal thick and no shallower than the cut end of the rafters (IRC R802.3): a 2×10 ridge for 2×8 rafters up to about a 9/12 pitch, because the plumb cut is deeper than the rafter itself.
Sources
- American Wood Council. (2020). 2018 National design specification (NDS) supplement: Design values for wood construction.
- American Wood Council. (2023). 2024 span tables for joists and rafters.
- Department of the Army. (1995). Carpentry (FM 5-426).
- Dunkley, D. (1999, August 1). Efficient rafter cutting. Journal of Light Construction.
- International Code Council. (2020). 2021 International Residential Code (Chapters 3, 5 and 8).
- International Code Council. (2023). 2024 International Residential Code (Chapter 8).
- National Institute of Standards and Technology. (2010). American softwood lumber standard (Voluntary Product Standard PS 20-10).
- Simpson Strong-Tie. (2017). VPA variable pitch connector. In Wood construction connectors 2017–2018 (C-C-2017).
- Soto, M. (2026, May 28). How roof overhangs can protect your home from water damage. GAF.
- Swanson Tool Co. (n.d.-a). Cutting a common rafter. The Blue Book.
- Swanson Tool Co. (n.d.-b). Cutting a hip or valley rafter. The Blue Book.
- Uhler, T. (2007, May 1). Sizing the birdsmouth. Journal of Light Construction.
Updated .
Cite this page as:
Daniel, P. Rafter Calculator. Available at: https://constructioncalculators.com/rafter-calculator/. Accessed: October 28, 2026.