How to calculate rafter length: pitch multipliers, bird’s mouth, and ridge board
Rafter length equals run times the pitch multiplier: 6:12 is 1.118, so a 19.25 ft run gives 21.5 ft. How to find the run (subtract half the ridge board), bird’s mouth depth limit (one-third of rafter depth), ridge board vs ridge beam, and rafter tie vs collar tie placement.
Rafter length is a simple right-triangle problem. The run is the horizontal leg, the rise is the vertical leg, and the rafter is the hypotenuse. The formula is:
Rafter length = sqrt(run² + rise²) Or with a pitch multiplier (faster): Rafter length = run × pitch multiplier
Pitch multipliers are pre-computed from sqrt(rise² + 12²) / 12 for each common pitch. Use the table below and you can figure rafter length on the back of a lumber receipt.
Pitch Multiplier (rise per 12" of run) ────────────────────────────────────────────── 3:12 1.031 4:12 1.054 5:12 1.083 6:12 1.118 8:12 1.202 10:12 1.302 12:12 1.414 Example: run = 19.25 ft, pitch = 6:12 19.25 × 1.118 = 21.52 ft (21'-6¼") This matches the field result: "21 and a half."
Step 1 — Find the run
Run is not half the building width. It’s half the building width minus half the ridge board thickness. The ridge board sits at the peak, and opposing rafters frame into each face of it — so each rafter’s run is shortened by half the ridge’s thickness.
Run = (building width ÷ 2) − (ridge thickness ÷ 2) Worked example — 40 ft wide building, 1½" ridge board: Half span: 40 ÷ 2 = 20.000 ft Half ridge: 1.5" ÷ 2 = 0.75" = 0.0625 ft Run: 20.000 − 0.0625 = 19.9375 ft "Full measurement outside to outside and we get 40, split the measurement in half and we get 20, then we subtract half the ridge beam and we get 19¼ for our run."
Step 2 — Find the rise
Rise is the vertical height from the top of the top plate to the bottom of the ridge. For a given pitch, rise equals the pitch ratio multiplied by the run in feet.
Rise = run (ft) × pitch numerator / 12 At 6:12 pitch, run = 19.25 ft: Rise = 19.25 × (6 / 12) = 9.625 ft At 8:12 pitch, run = 19.25 ft: Rise = 19.25 × (8 / 12) = 12.83 ft
The pitch “can be any number you choose” — 6:12 is a common residential standard, but the formula works identically for a 4:12 shallow roof or a 12:12 steep one. Just plug in the right numerator.
Step 3 — Rafter length (structural)
Rafter length = sqrt(run² + rise²)
Or: rafter length = run × pitch multiplier
40 ft building, 6:12 pitch, 1½" ridge board:
Run = 19.9375 ft
Rise = 19.9375 × 0.5 = 9.969 ft
Length = sqrt(19.9375² + 9.969²)
= sqrt(397.50 + 99.38)
= sqrt(496.88)
= 22.29 ft (22'-3½")
Or: 19.9375 × 1.118 = 22.29 ft ✓
Add the tail (overhang) to get the cut length — typically
12"–24" depending on your eave detail.Bird’s mouth cut
The bird’s mouth is the notch cut into the underside of the rafter where it seats on the top plate. It has two parts: a plumb cut (vertical, parallel to the ridge plumb cut) and a seat cut (horizontal, sitting on the plate).
The critical limit: the seat cut depth must not exceed one-fourth of the rafter depth (IRC 2021 R802.7.1 / R502.8.1). For a 2×8 rafter (actual depth 7.25″), the maximum seat cut depth is 7.25 × 0.25 = 1.81″. Cutting deeper than this removes too much of the rafter’s cross-section and creates a stress concentration right at the bearing point.
To lay out the bird’s mouth, set the framing square to the pitch (e.g., 6 on the tongue, 12 on the blade), slide it to the desired seat-cut depth, and mark. The plumb cut at the ridge uses the same square setting.
Ridge board vs. ridge beam — they are not the same thing
These two members look similar but behave completely differently under load.
- Ridge board — not a structural member. It’s a spacer that aligns opposing rafters so they land opposite each other. The rafters push against each other through the ridge board; the ridge board itself carries no vertical load. Works only when rafter ties are present to resist the outward thrust at the walls.
- Ridge beam — a load-bearing member that carries the weight of the roof and transfers it to posts or end walls. Required for cathedral ceilings where there is no attic space and no room for rafter ties. “This is typically an engineered situation” — specify an LVL or glulam and get a structural engineer to size it.
Rafter ties and collar ties
Both are horizontal members between opposing rafters, but they serve different functions and must be placed at different heights.
- Rafter tie — installed in the bottom third of the rafter span. For a 12 ft tall rafter run, this means within the bottom 4 ft. Rafter ties resist the outward horizontal thrust that would spread the walls apart under roof load. Required at a maximum of 24 inches on center (IRC 2021 R802.5.2.2).
- Collar tie — installed in the top third. For a 12 ft tall rafter run, this means within the top 4 ft. Collar ties resist uplift: they hold the top of the roof frame from splitting apart when wind creates negative pressure on the roof surface. Also spaced at 4 ft on center maximum.
Roof sheathing
Once the rafter frame is up, sheathing ties everything together. Two rules apply to every residential roof:
- Install horizontally (long edge perpendicular to the rafters). This orients the panel grain for maximum bending strength across the rafter span and staggers the end joints automatically.
- Use H-clips between panel edges in the rafter bays. H-clips hold adjacent panel edges aligned and provide the required edge support where panels meet mid-span between rafters. They also maintain the ⅛″ expansion gap the panels need. Minimum panel thickness: 7⁄16″ OSB for 16″ oc rafters, ½″ CDX for 24″ oc.
Load path
Understanding where the loads go helps you understand why each member is sized the way it is. For a standard rafter roof:
Roof load (live + dead) → down the rafters → into the top plate → through the wall studs (or cripples and header at openings) → into the jack studs and foundation sill → into the footings At openings: load travels through cripples → header → jack studs → footings. The header spans the opening; it must be sized for the load above it.
Common mistakes
- Forgetting to subtract half the ridge board thickness from the run. The error is small on narrow buildings but adds up on wide spans — a missed 3/4" on each rafter pair means the ridge sits too high.
- Measuring run to the outside of the fascia instead of the outside of the wall plate. The fascia is finish trim; the rafter bears on the top plate.
- Ignoring the tail. The structural rafter length ends at the top plate. The overhang (tail) is additional length that needs to be planned and cut separately.
- Cutting the bird's mouth deeper than one-fourth of the rafter depth. This is an IRC violation (IRC 2021 R802.7.1) and weakens the rafter right at the bearing point.
- Using a ridge beam where a ridge board is called for, or — worse — using a ridge board where a ridge beam is required (cathedral ceilings). Know which you need before you frame.
- Skipping rafter ties because the attic "won't be used." Rafter ties resist wall spread, not floor load. A roof without rafter ties will push the walls out over years, regardless of whether anyone walks in the attic.
Related
- How to estimate framing lumber
- Deck joist span and spacing
- Wall framing stud layout
- BuilderCalc — construction calculators for iOS and Android
Disclaimer: This article is for general educational reference only. All structural decisions must be verified against your local adopted building code and reviewed by the building official or a licensed structural engineer before construction. Local codes, soil, snow, wind, and seismic conditions vary. Always obtain required permits.
