Roofing15 min read

Rafter Calculator: Roof Rafter Length, Angle & Birdsmouth Cut

Calculating rafter length is a four-step process that every framing carpenter works through before touching a saw. Get the run, calculate the line length using the Pythagorean theorem, determine the pitch angle, then lay out the birdsmouth. This guide walks through every step with real numbers and the IRC code limits that govern each dimension.

Key Takeaways

  • Rafter line length = √(run² + rise²) — the Pythagorean theorem applied to your roof slope
  • Run = half the building span minus half the ridge board thickness
  • Birdsmouth seat cut maximum depth: 1/3 of rafter depth per IRC R802.7.1
  • Use pitch multipliers for fast calculation: multiply run by the rafter length factor for your pitch
  • Add 10% waste and order full-length stock — short-cutting rafters wastes a lot of lumber

Use the Roofing Calculator

Estimate total roofing materials — sheathing, underlayment, and shingles — for your full roof area once you have your rafter count.

Open Roofing Calculator

Understanding the Parts of a Common Rafter

Before running numbers, you need to know which dimension you are actually calculating. Carpenters distinguish between three different “lengths” of the same rafter, and confusing them is a common and expensive mistake.

  • Line length: The theoretical distance from the centerline of the ridge to the outer edge of the top plate, measured along the rafter. This is what the Pythagorean theorem gives you. It does not account for the ridge board or the tail overhang.
  • Actual rafter length: Line length minus half the ridge board thickness (typically 3/4 inch for a 1-1/2 inch ridge board) plus the tail length beyond the wall plate.
  • Tail length: The portion of the rafter that extends beyond the exterior wall to create the roof overhang. A 12-inch overhang measured horizontally (run) requires a tail length equal to 12 inches × the pitch multiplier.

Most rafter calculators — including tools like those at BlockLayer and SpikeVM — compute line length only. You add the tail yourself and subtract for the ridge. This guide walks through both.

Step 1: Determine the Rafter Run

The run is the horizontal distance the rafter covers from the centerline of the building to the outer face of the top plate. For a simple gable roof:

Formula

Run = (Building Span ÷ 2) − (Ridge Board Thickness ÷ 2)

Example: 28-foot span, 1.5-inch ridge board

Run = (336 in ÷ 2) − (1.5 in ÷ 2) = 168 − 0.75 = 167.25 inches

The building span is measured from exterior face to exterior face of the stud walls — not including siding or sheathing. Measure at the top plate level, since walls can have slight bows. If you are working from architectural plans, verify the dimension is clear-span framing, not finish-to-finish.

Step 2: Calculate the Rise

Rise is the vertical height of the rafter from the top plate to the ridge. It is directly determined by the roof pitch, expressed as a ratio of rise to run in units of “X inches per 12 inches of run.”

Formula

Rise = Run × (Pitch ÷ 12)

Example: Run = 167.25 in, Pitch = 6/12

Rise = 167.25 × (6 ÷ 12) = 167.25 × 0.5 = 83.625 inches

Note that the rise is calculated using the adjusted run (with the ridge deduction), not the full half-span. This is where many DIYers get their first measurement wrong — they calculate rise from the raw half-span and end up with a ridge that sits slightly too high.

Step 3: Calculate Rafter Line Length

With run and rise determined, the line length is a straightforward application of the Pythagorean theorem:

Formula

Line Length = √(Run² + Rise²)

Example: Run = 167.25 in, Rise = 83.625 in

Line Length = √(167.25² + 83.625²)

= √(27972.56 + 6993.14)

= √34965.7 = 187.0 inches (15 ft 7 in)

Alternatively, use the pitch multiplier method: multiply the run by the pitch's slope factor. This is faster when cutting many rafters to the same dimension. Per the Western Wood Products Association Span Book, pitch multipliers are:

PitchSlope Factor (Multiplier)Angle (degrees)Classification
2/121.0149.46°Low slope
3/121.03114.04°Low slope
4/121.05418.43°Moderate
5/121.08322.62°Moderate
6/121.11826.57°Most common
7/121.15830.26°Steep
8/121.20233.69°Steep
9/121.25036.87°Steep
10/121.30239.81°Very steep
12/121.41445.00°Very steep

Source: Western Wood Products Association Span Calculator; angle conversion formula: arctan(pitch/12). Multiply Run × Slope Factor to get line length.

Using the multiplier method for our example: 167.25 in × 1.118 = 186.98 in ≈ 187 inches. Matches the Pythagorean result — use whichever method you find faster on the job.

Step 4: The Birdsmouth Cut — Dimensions and Code Limits

The birdsmouth is the notch that allows the rafter to bear squarely on the top plate of the exterior wall. Without it, the rafter would bear only on its corner — concentrating load on a tiny area and allowing the rafter to slide outward. The birdsmouth transfers rafter load directly onto the wall plate in bearing.

A birdsmouth has two cuts made in the same operation:

  • Seat cut (level cut): The horizontal cut that rests on the top plate. Its length should match the plate width — typically 3.5 inches for a 2x4 wall or 5.5 inches for a 2x6 wall.
  • Heel cut (plumb cut): The vertical cut at the outer edge of the wall, perpendicular to the plate. This cut is made at the pitch angle.

The critical code limit: IRC Section R802.7.1 states that the birdsmouth seat cut depth shall not exceed one-third of the rafter depth. For common rafter sizes:

  • 2×6 rafter (5.5 in actual): max seat cut = 1.83 inches
  • 2×8 rafter (7.25 in actual): max seat cut = 2.42 inches
  • 2×10 rafter (9.25 in actual): max seat cut = 3.08 inches
  • 2×12 rafter (11.25 in actual): max seat cut = 3.75 inches

For steep pitches (9/12 and above), the geometry of the birdsmouth can push the seat cut depth beyond the 1/3 limit. In those cases, you have two solutions: use a larger rafter dimension, or use a “rafter seat block” — a separate short block attached to the plate that provides the bearing without notching into the rafter at all.

Calculating Birdsmouth Dimensions

Given a seat cut length (L) and pitch angle (θ), the heel cut depth is:

Formula

Heel Cut Depth = Seat Cut Length × tan(pitch angle)

Example: 3.5-inch seat cut, 6/12 pitch (26.57°)

Heel Cut Depth = 3.5 × tan(26.57°) = 3.5 × 0.5 = 1.75 inches

Check: 1.75 in < 2.42 in (1/3 of 2×8) ✓ Within code

Step 5: Adding the Tail (Overhang)

The tail is the rafter section that extends beyond the wall to form the roof overhang (eave). The overhang dimension on architectural plans is usually given as a horizontal projection — how far out from the wall face the fascia sits. To find the tail length along the rafter slope, multiply the horizontal overhang by the slope factor.

Formula

Tail Length = Horizontal Overhang × Slope Factor

Example: 18-inch overhang, 6/12 pitch (slope factor 1.118)

Tail Length = 18 × 1.118 = 20.12 inches (20-1/8 in)

Complete Rafter Calculation Example

Let us put the full sequence together. I am framing a 28-foot-wide garage with a 6/12 pitch, 18-inch overhang, and a 1.5-inch ridge board. What is my total rafter stock length?

  1. Span: 28 feet = 336 inches
  2. Half span: 336 ÷ 2 = 168 inches
  3. Run (half span minus half ridge): 168 − 0.75 = 167.25 inches
  4. Rise (run × pitch/12): 167.25 × 0.5 = 83.625 inches
  5. Line length = √(167.25² + 83.625²) = 187.0 inches
  6. Tail length (18-in overhang × 1.118) = 20.1 inches
  7. Total rafter stock: 187.0 + 20.1 = 207.1 inches ≈ 17 ft 3 in
  8. Order: 18-foot 2×8 stock (common lengths: 16 ft, 18 ft, 20 ft)

Rafter Sizing: IRC Span Tables

Rafter size is not just about the length — it is about the structural capacity to carry roof loads. The 2021 IRC Table R802.4.1 governs maximum allowable rafter spans for common lumber species at standard roof loads (20 psf live load, 10 psf dead load). Here are the key limits for the two most common species in residential framing:

Rafter SizeDouglas Fir-Larch No. 2
16″ o.c.
Southern Pine No. 2
16″ o.c.
Southern Pine No. 2
24″ o.c.
2×612' 3"13' 2"10' 9"
2×816' 2"17' 4"14' 2"
2×1020' 8"22' 1"18' 1"
2×1225' 1"26' 9"21' 10"

Source: 2021 IRC Table R802.4.1 (20 psf live load, 10 psf dead load, ceiling not attached). Spans are horizontal projections. In high-snow or high-wind zones, use the 30 psf or 50 psf load tables instead.

How Many Rafters Do You Need?

Once you know the rafter size, calculate the quantity. Most residential roofs use 16-inch on-center (o.c.) spacing per IRC R802.4, though 24-inch o.c. is code-compliant with appropriate sizing and is common in sheathing-heavy designs like SIPs panels.

Formula

Number of Rafters = (Roof Length ÷ Spacing) + 1

Example: 40-foot roof, 16-inch o.c. spacing

= (480 in ÷ 16 in) + 1 = 30 + 1 = 31 rafters per side

= 62 total rafters (both sides of gable)

Add 10% waste → order 69 pieces

This count does not include valley rafters, hip rafters, jack rafters, ridge board, or collar ties — those require separate calculations. For a comprehensive lumber estimate, use our lumber calculator which accounts for all framing members.

Roof Pitch Considerations for Material Selection

Pitch does not just determine rafter length — it determines what roofing materials you can legally use. Per the Asphalt Roofing Manufacturers Association (ARMA) and the NRCA Roofing Manual, minimum pitch requirements are:

  • 3-tab asphalt shingles: Minimum 2/12 pitch (with double underlayment)
  • Architectural asphalt shingles: Minimum 2/12 pitch (with ice and water shield)
  • Metal standing seam panels: Can go as low as 1/4:12 with factory-sealed panels
  • Metal exposed fastener: Minimum 3/12
  • Clay or concrete tile: Minimum 4/12; 7/12 preferred for longevity
  • Wood shingles: Minimum 3/12; wood shakes require 4/12
  • EPDM / modified bitumen (flat/low slope): 1/4:12 to 2/12

For roofing material estimates once you have your rafter layout and roof area, our roofing calculator converts roof area to squares, bundles, and squares of underlayment with waste factor included.

Rafter vs. Truss: Which to Use?

Before you calculate a rafter order, consider whether your project would be better served by engineered trusses. This is a legitimate trade-off question, not a clear winner either way.

Cut rafters are better when: You need usable attic space (trusses sacrifice this entirely), the roof has complex geometry (hips, valleys, dormers that would require custom trusses), or the project is small enough that truss lead time and delivery cost exceeds the labor savings.

Engineered trusses are better when: You are framing a large, simple gable roof where speed and precision matter, your crew is not experienced with layout work, or you need to span distances that would require very large sawn rafter stock. According to the Structural Building Components Association (SBCA), trusses can reduce framing labor by 30 to 50 percent on simple rectangular buildings. Truss material costs $3.50 to $7.50 per square foot of roof area vs. $2.50 to $5.00 for sawn rafters, but the labor savings typically offset this.

Common Rafter Calculation Mistakes

  • Not deducting for ridge board: Forgetting to subtract half the ridge board thickness from each run makes every rafter 3/4 inch too long, causing the ridge to sit too high.
  • Confusing line length with stock length: Line length is the structural dimension; actual stock must be longer to include the tail, ridge cut, and plumb cut waste at the top.
  • Ignoring tail plumb cut waste: The plumb cut at the fascia end wastes some material depending on pitch. At steep pitches, account for 1 to 3 extra inches of stock per rafter.
  • Excessive birdsmouth depth: Cutting deeper than 1/3 of rafter depth to get the seat length right is a structural failure waiting to happen. Size up the rafter instead.
  • Not accounting for species and grade: Rafter span tables vary significantly by species. Hem-Fir spans about 12 percent less than Southern Pine for the same size and spacing.

Frequently Asked Questions

How do you calculate rafter length?

Rafter length equals the square root of (run² + rise²), where run is half the building width minus half the ridge board thickness, and rise equals run multiplied by the pitch fraction. For a 24-foot-wide building with a 6/12 pitch, run = 12 feet, rise = 6 feet, and rafter length = √(144 + 36) = √180 = 13.42 feet (161 inches). Add tail length separately.

What is a birdsmouth cut on a rafter?

A birdsmouth is a notch cut into the underside of a rafter where it bears on the top plate of the exterior wall. It consists of a seat cut (horizontal cut that rests on the plate) and a heel cut (vertical plumb cut against the outside of the wall). The seat cut depth should not exceed 1/3 of the rafter depth per IRC Section R802.7.1 to maintain structural integrity.

What is roof pitch and how is it measured?

Roof pitch is expressed as rise over run — the number of inches of vertical rise per 12 inches of horizontal run. A 6/12 pitch rises 6 inches for every 12 inches of run. Pitch can also be expressed as an angle: a 6/12 pitch equals 26.57 degrees. To measure an existing roof, hold a level against the rafter for 12 inches and measure the vertical rise from the 12-inch mark.

How deep can a birdsmouth seat cut be?

IRC Section R802.7.1 limits the birdsmouth seat cut depth to 1/3 of the rafter depth. For a 2x8 rafter (7.25 inches actual), the maximum seat cut is 2.42 inches. Exceeding this weakens the rafter at the bearing point and is a code violation. If your wall plate width requires a deeper cut, use a larger rafter or add a rafter seat block instead.

What size rafter do I need for my roof span?

Rafter sizing depends on span, species, spacing, and load. Per the 2021 IRC Table R802.4.1, common Southern Yellow Pine No. 2 rafters at 16-inch on-center span: 2×6 up to 13 feet 2 inches, 2×8 up to 17 feet 4 inches, 2×10 up to 22 feet 1 inch, 2×12 up to 26 feet 9 inches. Always verify with your local code and a structural engineer for unusual loads.

How many rafters do I need?

Divide the roof length by the rafter spacing (typically 16 or 24 inches on-center) and add one for the starting rafter. For a 40-foot-long roof at 16-inch spacing: 40 feet ÷ 1.33 feet = 30, plus 1 = 31 rafter pairs, or 62 total rafters. You'll also need doubled rafters at valleys, hips, or roof openings. Add 10 percent for waste.

Estimate Your Full Roofing Material Order

Once you have your rafter count and roof area, calculate sheathing, underlayment, and shingles in one step.

Explore More Tools

Related Articles