Roof Rafter Calculator: Span, Length & Cuts
Accurately calculate rafter line length, tail overhang, ridge board deductions, and birdsmouth cuts for timber framing according to IRC building codes.
- Total Length (ft & in)
- 14' 5.6"
- Rafter Run Length
- 13' 4.2"
- Tail Length
- 1' 1.4"
- Adjusted Horizontal Run
- 11.94 ft
Enter your values and press Calculate to see your result.
How the Roof Rafter Calculator Works
Follow the exact steps to get your result instantly and privately.
Step 1: 1. Enter Building Span
Measure the total exterior width of the building from outside wall framing to outside wall framing.
Step 2: 2. Input Roof Pitch & Overhang
Enter your roof's rise over 12 and the desired horizontal eave overhang distance (typically 12 to 24 inches).
Step 3: 3. Review Exact Cut Dimensions
Get rafter line length, plumb cut angle, birdsmouth seat cut placement, and total lumber board order lengths.
Step 1: 1. Enter Building Span
Measure the total exterior width of the building from outside wall framing to outside wall framing.
Roof Rafter Geometry & Framing Formulas
A common rafter forms the hypotenuse of a right triangle whose base is the horizontal run (half the building span minus half the ridge board thickness) and whose vertical leg is the rise. International Residential Code (IRC) Section R802 governs rafter spans and bearing cuts. When cutting timber rafters, you must deduct half the thickness of the center ridge beam (typically 0.75 inches for standard 1.5-inch thick 2x lumber) from the run so the rafters meet squarely at the center.
Measuring Methods
- Total Building Span Measurement: Measure the exterior distance between the top wall plates across the width of the building.
- Net Horizontal Run Calculation: Divide the total building span by 2 to get the half-span, then subtract half the ridge board's actual thickness (0.75 inches for 2x dimensional lumber).
- Birdsmouth Cut Layout: Lay out the plumb cut where the rafter meets the ridge, then measure the calculated rafter line length down to the heel of the birdsmouth notch where it sits on the wall top plate.
Half Span = Building Span / 2
Net Run = Half Span - (Ridge Board Thickness / 2)
Rafter Length = Net Run × √(1 + (Pitch / 12)²)
Tail Length = Overhang Run × √(1 + (Pitch / 12)²)
Total Board = Rafter Length + Tail Length (round up to nearest standard 2 ft lumber length)
Plumb Cut Angle = 90° - arctan(Pitch / 12)
Seat Cut Angle = arctan(Pitch / 12)For a 24 ft wide garage with a 6/12 pitch, a 1.5-inch ridge board, and a 12-inch overhang: Half span = 12 ft = 144 inches. Net run = 144 - 0.75 = 143.25 inches (11.94 ft). Slope factor = √(1 + (6/12)²) = 1.118. Rafter length = 11.94 × 1.118 = 13.35 ft (13 ft 4-3/16 in). Tail length = 1.0 ft × 1.118 = 1.12 ft (1 ft 1-7/16 in). Total rafter board length = 14.47 ft → Order standard 16-foot 2x6 boards.
Rafter Length Examples
Review these common framing scenarios to see how span, pitch, and overhang combine to determine structural rafter cuts and lumber ordering requirements.
| Scenario | Calculation | Result |
|---|---|---|
| 24 ft Garage / Workshop (6/12 Pitch, 12″ Overhang) | Half span 12 ft - 0.75" ridge = 11.94 ft run × 1.118 slope factor. Tail 12" × 1.118. | Rafter line length: 13′ 4-3/16″ | Tail: 1′ 1-7/16″ | Order 16 ft lumber |
| 16 ft Garden Shed (4/12 Pitch, 6″ Overhang) | Half span 8 ft - 0.75" ridge = 7.94 ft run × 1.054 slope factor. Tail 6" × 1.054. | Rafter line length: 8′ 4-1/2″ | Tail: 6-5/16″ | Order 10 ft lumber |
| 30 ft Two-Story Home (8/12 Pitch, 18″ Overhang) | Half span 15 ft - 0.75" ridge = 14.94 ft run × 1.202 slope factor. Tail 18" × 1.202. | Rafter line length: 17′ 11-1/2″ | Tail: 1′ 9-5/8″ | Order 20 ft lumber |
Maximum Rafter Spans by Lumber Size (IRC)
Check maximum allowable rafter spans (horizontal projection) under IRC Table R802.4.1 for common lumber species (Douglas Fir-Larch #2, 20 psf live load + 10 psf dead load).
| Lumber Size | 12″ Spacing O.C. | 16″ Spacing O.C. | 24″ Spacing O.C. | Typical Application |
|---|---|---|---|---|
| 2 × 4 Dimensional | 9 ft 10 in | 8 ft 11 in | 7 ft 10 in | Small sheds, outbuildings, short dormers |
| 2 × 6 Dimensional | 15 ft 5 in | 14 ft 0 in | 12 ft 3 in | Standard residential garages and small homes |
| 2 × 8 Dimensional | 20 ft 4 in | 18 ft 5 in | 16 ft 2 in | Standard residential roofs up to 36 ft span |
| 2 × 10 Dimensional | 25 ft 10 in | 23 ft 6 in | 20 ft 6 in | Larger custom homes and heavy snow zones |
| 2 × 12 Dimensional | 31 ft 5 in | 28 ft 6 in | 24 ft 11 in | Vaulted / cathedral ceilings without collar ties |
Quick facts
- A standard 2x lumber ridge board is 1.5 inches thick; subtract exactly 0.75 inches from your horizontal half-span before calculating rafter length.
- The birdsmouth notch consists of two cuts: the plumb cut (heel) and the horizontal seat cut that rests on the wall top plate.
- Under IRC Section R802.7.1, the depth of a birdsmouth cut must not exceed one-third (1/3) of the rafter board's total depth.
- Rafters must have at least 1.5 inches of continuous bearing on wood or metal top plates (3 inches on concrete or masonry).
- Collar ties or ceiling joists must be installed in the upper third of the attic space to prevent outward thrust on exterior walls.
Marcus Vance
Lead Construction Estimator & Technical Editor
- IRC R802 Framing Analysis
- Timber Span Table Calculations
- Carpentry & Framing QA
Marcus analyzes International Residential Code (IRC) timber span tables, American Wood Council (AWC) lumber grading rules, and rafter cut geometry to ensure accurate DIY and contractor framing takeoffs.
Sources & references
Frequently Asked Questions
Clear answers about roof square footage calculations, pitch slope factors, shingle bundles, and ordering materials.
Rafter line length is calculated using the Pythagorean theorem: Rafter Length = Net Run × √(1 + (Pitch / 12)²). Net run is the building half-span minus half the thickness of the ridge board (typically 0.75 inches for 2x lumber). To find the total lumber length needed, add the tail length for your eave overhang: Tail = Overhang Run × √(1 + (Pitch / 12)²).
Because rafters meet at the center ridge board, each rafter's horizontal run must be shortened by half the actual thickness of that board. A standard dimensional 2x board (2x6, 2x8, 2x10) is 1.5 inches thick. Therefore, you deduct 0.75 inches (3/4") from your building half-span before laying out your plumb cut.
Under IRC Table R802.4.1 (for #2 Douglas Fir with a 20 psf live load and 16" spacing): A 12 ft horizontal run requires at least a 2x6 rafter (max allowable span 14 ft 0 in). A 16 ft horizontal run requires a 2x8 rafter (max span 18 ft 5 in). For spans over 19 feet, step up to a 2x10 or engineered LVL rafter.
A birdsmouth cut is an angled triangular notch cut into the underside of a rafter where it rests on the exterior wall's top plate. It consists of two cuts: the 'seat cut' (the horizontal cut that bears flat on the wall plate) and the 'heel cut' or plumb cut (the vertical cut that sits flush against the outside edge of the wall plate).
Under International Residential Code (IRC) Section R802.7.1, a birdsmouth notch depth cannot exceed one-third (1/3) of the rafter board's total depth. For example, on a 2x6 rafter (actual depth 5.5 inches), the maximum vertical depth of the notch is 1.83 inches. Cutting deeper weakens the rafter, risking structural failure along the grain.
A 2x6 rafter spaced 16 inches on-center can span up to 14 feet 0 inches of horizontal run using #2 Douglas Fir-Larch (12 feet 3 inches at 24 inches on-center). If using Spruce-Pine-Fir (SPF), the maximum span is approximately 13 feet 1 inch at 16" spacing. For roofs with high snow loads (>30 psf), span limits are reduced by 15% to 25%.
Rafter overhang (the tail) is calculated using the horizontal projection of your eave multiplied by the roof slope factor. For example, if you want a 12-inch horizontal soffit overhang on a 6/12 pitch roof (slope factor 1.118), the rafter tail length is 12 × 1.118 = 13.4 inches (1 ft 1-7/16 in) measured from the birdsmouth heel cut to the plumb fascia cut.
Rafters are dimensional lumber boards cut on-site to create custom roof framing, leaving an open, usable attic or vaulted ceiling space. Roof trusses are pre-engineered triangular timber webs assembled in a factory with steel connector plates. Trusses install much faster and span greater distances without interior load-bearing walls, but their webbing fills the attic space, eliminating storage room.
Still have questions about your roof takeoff?
Explore our comprehensive suite of specialized calculators or contact our estimator team for personalized guidance.




