IRC 2021/2024 & AWC Code Compliant Suite

Ultimate Roof Rafter & Truss Framing Calculator

Engineered for structural carpenters, timber framers, and home builders. Calculate precise common rafter lengths, 4/12 to 12/12 pitch angles, birdsmouth seat cuts, truss spacing layouts, and 2x6 joist spans with live blueprint visualizer.

Ridge Deductions
Birdsmouth Angles
Shed Roof Mode
1/16" Fractions

Rafter Dimensions & Pitch

Shed Roof Mode (Mono-Slope / Lean-To) Single pitch slope; full span run.
Auto calculates 1/2 Run for Gable
FT
IN
Please enter a valid roof span greater than zero.
18.43° Slope Angle
3 / 12
4 / 12
5 / 12
6 / 12
8 / 12
12 / 12
Wall to outer subfascia
INCHES
Bearing plate
Total Rafter Cut Length (Stock)
13' - 7 5/8"
163.65 in (4157 mm)
Order Commercial Stock: 14 FT Commercial 2x6
Line Length
12' - 7"
151.00 in (12.58 ft)
Total Rise
3' - 11 3/4"
47.75 in to peak
Overhang Tail
1' - 5/8"
4.00" Drop
Plumb Angle
18.43°
71.57° Seat
Dynamic Framing Blueprint
Live Scaled Vector

Birdsmouth Cut Guide (IRC R802.7.1)

SAFE NOTCH (≤ 1/4 DEPTH)
Seat Cut (Level)
3 1/2"
Plumb Cut (Depth)
1 3/16"
H.A.P. (Plate Height)
4 3/8"
Notch Ratio
20.1% (Pass)

Truss Layout Parameters

Wall to wall
FT
IN
Outside plates
FEET
Gambrel & Fink Note: Spacing calculations remain identical along top plates while chord lengths follow engineering shop drawings.
Total Roof Trusses Needed
21 Trusses
20 Bay Spaces @ 24" O.C.
2 Gable End Trusses + 19 Standard Common Trusses 42 Hurricane Ties
Hurricane Clips
42 Pcs
2 per truss at wall
2x4 Bracing
100 Lin. Ft
6x 16ft 2x4s
Plywood OSB
41 Sheets
4x8 (10% waste incl)
Roof Area
1,180 Sq Ft
~11.8 Squares

On-Center Tape Measure Layout

Running marks on top plates
Truss # Type Tape Mark (Ft/In) Inches

Lumber Span Sizing Inputs

Bearing distance
FT
IN
✓

PASS — Structural Capacity Safe

Your planned clear span of 13'-6" is within the maximum allowable limit of 14'-4".

Max Allowable Code Span
14' - 4"
94.2% Capacity Utilized
Selected Member: 2x6 Douglas Fir-Larch #2 @ 16" O.C. IRC R802.4 & AWC

Lumber Size vs. Allowable Span

Current Conditions
Size 12" OC 16" OC 19.2" OC 24" OC

Interactive Rafter Length Matrix

Swipe horizontally across columns to view line lengths across all standard pitches.

Roof Run Pitch & Multiplier (Rise in 12")
2/12
1.0138
3/12
1.0308
4/12
1.0541
5/12
1.0833
6/12
1.1180
8/12
1.2019
10/12
1.3017
12/12
1.4142

Master Rafter Length Reference Table

Instant line length matrix for standard roof runs and pitches. Swipe left/right on mobile.

Roof Run Pitch & Multiplier
2/12
1.0138
3/12
1.0308
4/12
1.0541
5/12
1.0833
6/12
1.1180
8/12
1.2019
10/12
1.3017
12/12
1.4142

* Pure center-to-plate line lengths. Deduct half ridge thickness (e.g. 0.75" for 2x) and add eaves overhang tail for commercial stock.

How to Calculate Common Rafter Length Manually (Formula for Rafter Length)

Accurately calculating the length of a common roof rafter is one of the most fundamental skills in structural carpentry. Whether you are using an online rafter calculator, an easy rafter calculator, or figuring rafters manually on a job site with a framing square, understanding the underlying trigonometry ensures structural stability, building code compliance, and zero wasted lumber.

In traditional stick-frame roof framing, a common rafter forms the hypotenuse of a right-angled triangle where the horizontal leg is the roof run and the vertical leg is the roof rise.

Core Pythagorean Formula for Rafter Length
Rafter Line Length = √[ (Adjusted Run)² + (Total Rise)² ]

Where Adjusted Run = (Total Building Span ÷ 2) − (Ridge Board Thickness ÷ 2).

The Unit Pitch Factor Method (Carpenters' Framing Square Technique)

Master carpenters and timber framers rarely pull a tape measure across long diagonal spans to figure rafter length. Instead, they calculate common rafter length using the unit rise and unit run method based on standard 12-inch increments. Because pitch is universally expressed as rise in inches per 12 inches of horizontal run (e.g., 3/12 pitch, 4/12 pitch, 5/12 pitch, 6/12 pitch, or 8/12 pitch), you can establish a fixed Pitch Multiplier ($M$):

Unit Pitch Multiplier Formula
Multiplier (M) = √[ 12² + (Unit Rise)² ] ÷ 12 = √[ 1 + (Rise ÷ 12)² ]

For a 4/12 pitch: M = √[ 144 + 16 ] ÷ 12 = √160 ÷ 12 = 12.6491 ÷ 12 ≈ 1.05409

Multiplying this unit factor by your adjusted horizontal run gives you the theoretical rafter line length instantly.

Step-by-Step Practical Example: 4/12 Pitch Rafter Length Calculator

Let us walk through a complete real-world framing calculation for a building with a 24-foot exterior span, a 4/12 roof pitch, a 1.5-inch dimensional lumber ridge board (2x stock), and a 12-inch horizontal eaves overhang:

  1. Step 1: Determine Total Run: For a symmetrical gable roof, divide the 24 ft span in half:
    Total Run = 24 ft ÷ 2 = 12 ft (144 inches).
  2. Step 2: Deduct Half the Ridge Board Thickness: Because the ridge board sits directly on the center line, deduct half of its 1.5-inch thickness from the run:
    Adjusted Effective Run = 144" − 0.75" = 143.25 inches (11 feet 11-1/4 inches).
  3. Step 3: Calculate Common Rafter Line Length: Multiply the effective run by the 4/12 pitch multiplier (1.05409):
    Line Length = 143.25" × 1.05409 = 150.998 inches ≈ 12 feet 6-15/16 inches.
  4. Step 4: Compute the Overhang Tail: The horizontal eaves overhang is 12 inches. Applying the pitch multiplier:
    Rafter Tail Length = 12" × 1.05409 = 12.65 inches ≈ 1 foot 0-5/8 inches.
  5. Step 5: Determine Total Timber Cut Length: Add the rafter line length and overhang tail:
    Total Cut Length = 150.998" + 12.65" = 163.65 inches (13 feet 7-5/8 inches).
  6. Step 6: Commercial Board Sizing: Standard dimensional lumber is stocked in 2-foot increments (8', 10', 12', 14', 16', 18', 20'). To build this roof with zero splices, you would order standard 14-foot 2x6 boards.

Determining Rafter Span and Timber Size (2x6 Joist Capacity)

Selecting the appropriate lumber dimension for rafters and ceiling joists is governed by building codes such as the International Residential Code (IRC) Chapter 8 (Roof-Ceiling Construction) and design values established by the American Wood Council (AWC). Sizing depends on four structural parameters:

  • Bending Stress ($F_b$): The lumber species and grade's capacity to resist rotational tension and compression along the outer fibers under load.
  • Modulus of Elasticity ($E$): The stiffness rating that dictates how much the joist will deflect (sag) over time.
  • Design Gravity Loads: Comprising Dead Load (weight of framing, sheathing, insulation, and shingles, typically 10–20 psf) and Live / Ground Snow Load (ranging from 20 psf in non-snow regions to 50+ psf in alpine areas).
  • Deflection Criteria: Code mandates a maximum allowable live load deflection of $L/240$ for roofs with non-plaster ceilings, or $L/360$ for finished drywall ceilings to prevent sheetrock cracking.

What is the Maximum Span for a 2x6 Rafter and Joist?

Under standard residential design conditions (20 psf live/snow load, 10 psf dead load, and $L/240$ deflection limit), typical allowable spans for #2 Grade dimensional lumber are outlined below:

Lumber Species (#2 Grade) 2x6 @ 12" O.C. 2x6 @ 16" O.C. 2x6 @ 24" O.C.
Douglas Fir-Larch 15' - 8" 14' - 4" 12' - 6"
Southern Yellow Pine 15' - 5" 14' - 2" 12' - 4"
Hem-Fir 14' - 8" 13' - 5" 11' - 9"
Spruce-Pine-Fir (SPF) 14' - 11" 13' - 8" 11' - 11"

When utilizing a 2x6 floor joist (which must withstand a heavier 40 psf live load and stricter $L/360$ deflection limit), the maximum span drops significantly to approximately 9 feet 9 inches at 16" on-center. For spans exceeding 14 feet in roof framing, stepping up to a 2x8 or 2x10 is required by structural engineers.

The Geometry of the Birdsmouth Cut: Seat Cuts, Plumb Cuts & HAP

A birdsmouth cut is a triangular notch cut into the underside of a common rafter allowing it to bear firmly flat onto the exterior wall top plate. Cutting a birdsmouth involves two distinct cuts:

  • The Seat Cut (Level Cut): The horizontal surface that bears directly onto the 2x4 (3.5") or 2x6 (5.5") wall top plate. It carries the vertical gravity load of the roof.
  • The Plumb Cut (Heel Cut): The vertical cut that fits snugly against the outer vertical face of the wall plate or exterior sheathing line.
  • H.A.P. (Height Above Plate): The remaining vertical depth of the rafter measured perpendicular from the inside corner of the birdsmouth notch to the top edge of the rafter board. Maintaining a uniform HAP across all rafters is essential so that the roof plane remains perfectly flat.

Critical Building Code Warning (IRC R802.7.1): Over-notching a rafter will cause catastrophic failure along the shear plane. Building codes restrict the notch depth to no more than one-fourth (1/4) of the total rafter depth at the bearing wall. For example, on a 2x6 rafter (5.5" actual depth), the maximum allowable plumb cut notch depth is 5.5" ÷ 4 = 1.375" (1-3/8 inches).

Shed Roof & Lean-To Framing: Run, Slope & Ledger Connection

A shed roof (also called a mono-slope roof, lean-to roof, or pent roof) features a single continuous roof plane sloping downward from an upper support wall to a lower support wall.

Unlike a symmetrical gable roof where the building span is divided by 2 to determine run, in a shed roof rafter calculator the run equals the entire horizontal distance between the bearing walls. If the rafter bears on an upper wall ledger board rather than an overlapping top plate, the thickness of the ledger (typically 1.5 inches for a 2x rim board) must be deducted from the top plumb cut.

Shed roofs are widely favored for modern residential extensions, detached studios, carports, and backyard storage sheds because they eliminate complex valley cuts, hip rafters, and ridge beams while maximizing solar panel exposure.

Hip, Valley & Jack Rafter Framing Calculations (17-Inch Unit Run Rule)

When stick-framing a hip roof or calculating valley rafters, standard common rafter geometry must be adapted because hip and valley rafters run at a 45-degree angle in plan view relative to the exterior building walls.

Because the diagonal of a 12-inch by 12-inch square is $\sqrt{12^2 + 12^2} = \sqrt{288} \approx 16.97$ inches (traditionally rounded to 17 inches on carpenters' framing squares), the unit run for hip and valley rafters is always 17 inches of horizontal run for every unit of rise.

Hip & Valley Rafter Multiplier Formula
Hip Multiplier = √[ (16.97)² + (Unit Rise)² ] ÷ 12 = √[ 288 + Rise² ] ÷ 12

For a 4/12 roof: Hip Multiplier = √[ 288 + 16 ] ÷ 12 = √304 ÷ 12 ≈ 1.45297

Calculating Jack Rafters: Jack rafters (hip jacks, valley jacks, and cripple jacks) are common rafters that terminate against a hip or valley rafter rather than a ridge or wall plate. The common difference in length for jack rafters spaced at 16 inches or 24 inches on-center is found by multiplying the on-center spacing by the common rafter unit multiplier.

AWC Span Calculator & IRC Maximum Joist Capacities (Ceiling, Floor & Flat Roofs)

The American Wood Council (AWC) publishes the authoritative National Design Specification (NDS) for Wood Construction, which serves as the engineering benchmark for structural timber framing across North America. When engineering ceiling joists, flat roof rafters, carport beams, and pergola framing:

  • Ceiling Joists (Uninhabited Attic with Storage): Governed by 20 psf live load and 10 psf dead load, deflection limit $L/240$. A standard 2x6 Douglas Fir #2 spans up to 18' - 2" at 16" OC.
  • Ceiling Joists (Uninhabited Attic without Storage): Evaluated at a reduced 10 psf live load with 5 psf dead load. A 2x4 can safely span up to 13' - 0" at 16" OC.
  • Flat Roof Joists: Must support a heavier total load (30 psf live/snow load + 15 psf dead load for built-up membrane roofs) and resist water ponding deflection. Span capacities are approximately 15% to 20% lower than sloped common rafters.
  • Pergola & Carport Rafter Spacing: Freestanding timber pergola rafters without sheathing carry only self-weight and temporary maintenance loads, permitting extended spans or wider 24" to 32" on-center spacing.

Unlike legacy tools such as the Blocklayer rafter calculator or Wendrick truss software, which feature static diagrams, this calculator runs the complete AWC mathematical matrix natively inside your browser with live SVG updates and instant mobile compatibility.

Roof Trusses vs. Stick-Framed Rafters: Cost, Span & Labor

When engineering a new roof structure, builders choose between pre-engineered manufactured roof trusses (such as Fink, Howe, King Post, or Gambrel trusses) and traditional stick-framed common rafters.

  • Clear Span Capabilities: Engineered roof trusses utilize triangulated web members to span 30 to 60+ feet without requiring interior load-bearing partition walls. Stick-built rafters require intermediate purlins, collar ties, and bearing walls for long runs.
  • Installation Speed: A crane crew can set trusses on an entire residential home in 1–2 days, drastically shortening dry-in time. Stick-built rafters require individual miter saw cuts and manual ridge beam hoisting.
  • Attic Space & Usability: Common rafters provide wide-open cathedral ceilings and usable attic storage space. Standard web trusses block attic access unless specialized attic room trusses are ordered.

Frequently Asked Questions (Roof Framing FAQ)

The primary mathematical formula for common rafter line length is derived from the Pythagorean theorem: Rafter Length = √((Effective Run)² + (Total Rise)²). Alternatively, using the unit rafter multiplier: Rafter Length = Effective Run × √(1 + (Pitch / 12)²). To get the overall timber cut length, add the rafter tail overhang: Overhang Tail = Horizontal Overhang × √(1 + (Pitch / 12)²).

For a 4/12 pitch roof, the roof rises 4 inches for every 12 inches of horizontal run. The pitch factor (multiplier) is √(12² + 4²) / 12 = √(160) / 12 ≈ 1.05409. For example, with an effective run of 12 feet, the rafter line length is 12 × 1.05409 = 12.649 feet (12 feet 7-13/16 inches) before adding the overhang.

According to the International Residential Code (IRC R802.7.1), the maximum notch depth for a birdsmouth cut should not exceed one-fourth (1/4) of the rafter depth at the bearing point, or one-third (1/3) in non-critical cantilever designs. The horizontal seat cut must provide at least 1.5 inches of continuous bearing on wood or 3 inches on masonry/concrete.

Under typical residential design loads (20 psf live/snow load, 10 psf dead load, and L/240 deflection limit), a #2 grade Douglas Fir-Larch 2x6 spaced at 16 inches on-center can span up to 14 feet 4 inches. Spaced at 24 inches on-center, its allowable span drops to approximately 12 feet 6 inches. For higher snow loads (30–50 psf), 2x8 or 2x10 lumber is typically required.

To calculate the number of roof trusses needed: divide the total building length (in inches) by the truss spacing on-center (e.g., 24 inches), round up to the next whole number to get the number of spaces, and then add 1. For example, a 40-foot building (480 inches) at 24-inch OC requires (480 / 24) + 1 = 21 trusses (2 gable end trusses and 19 common trusses).

In a shed roof (mono-slope or lean-to), the run equals the full horizontal distance between the front and rear bearing walls, rather than half the span. The rafter line length is calculated as Full Run × √(1 + (Pitch / 12)²). Any ledger thickness at the high wall (e.g., 1.5 inches) is deducted from the top plumb cut.

Hip and valley rafters run at a 45-degree angle in plan view relative to common rafters. Therefore, their unit horizontal run is 16.97 inches (approximately 17 inches) for every 12 inches of common rafter run. The hip unit multiplier is calculated as √(16.97² + Rise²) / 12.

Rafter line length represents the theoretical hypotenuse distance from the plumb cut centerline at the ridge board down to the exterior intersection of the birdsmouth plumb cut with the top wall plate. Total cut length includes the line length plus the rafter tail overhang extending past the wall to the subfascia board.