Home › Structural › Rafter Calculator
Rafter Calculator
IRC R802.4.1: the span is the horizontal projection, not the rafter
There are two lengths in every rafter and the code wants the shorter one. R802.4.1 says rafter spans shall be measured along the horizontal projection, which is the run from the wall to under the ridge, not the timber you cut. On a 12 in 12 roof the rafter is 41% longer than its own span, and reading the table with the wrong one is the most common mistake on the subject.
Rafter geometry
Enter the horizontal run. Everything else is derived, including the length you actually cut.
Specification summary
Generated from on . Reopen that address to reproduce these figures exactly.
Entered
Result
Worked example
- The span the table wants. 14 ft, the horizontal run. Not the rafter.
- The rafter. 14 × 1.1180 = 15.65 ft, which is 12% longer than the span.
- The overhang. 16 in horizontally becomes 1.49 ft along the slope, not 1.33.
- Order length. 17.14 ft before any cuts, so 18 ft stock.
- At 12 in 12 instead, the rafter is 41% longer than the span. That is a different table row and a different piece of timber.
The formula
- run
- the horizontal projection, ft. This is what R802.4.1 calls the span
- p
- pitch, rise in 12
- f
- the slope factor. 1.1180 at 6 in 12, 1.4142 at 12 in 12
- overhang
- also multiplied by f, because it runs down the slope too
Two lengths, and the code only wants one of them
This page does not size the rafter
The ridge is not always a beam
Hip and valley rafters are longer again
Frequently asked questions
- How do I measure rafter span for the code tables?
- Along the horizontal projection: the run from the wall plate to a point under the ridge, not the length of the rafter. IRC R802.4.1 states this explicitly, and it is the single most common error in reading rafter tables.
- How long is a rafter for a 28 foot wide house?
- With a 14 ft run at 6 in 12, the rafter is 15.65 ft plus the overhang along the slope, so about 17.14 ft before cuts. The span you take to the table is still 14 ft.
- How much longer is a rafter than its span?
- It depends entirely on pitch. 4% at 3 in 12, 12% at 6 in 12, 25% at 9 in 12 and 41% at 12 in 12. The multiplier is the square root of one plus the pitch ratio squared.
- Does the overhang count in the rafter span?
- No. The span is from the wall plate inward. The overhang is a cantilever beyond it and adds to the length you cut, not to the span you look up.
- What size rafters do I need?
- That is Tables R802.4.1(1) through (8), which vary by roof live load, ground snow, species, grade, spacing and whether the ceiling is attached. Several states amend them. This page gives you the horizontal span those tables need.
- What is the difference between a ridge board and a ridge beam?
- A ridge board is a nailing surface and carries no load, which works only when ceiling joists or rafter ties take the outward thrust. A ridge beam carries the rafters and must be supported at each end down to a foundation. Cathedral ceilings need a beam.
- Why is the rafter deflection limit L/180?
- Because a rafter with no ceiling attached is not supporting a finish that cracks. Where a ceiling is attached, the tables tighten it. It is looser than the L/360 used for floors, which is why a compliant rafter can still feel springy.
Check these numbers yourself
- 780 CMR 51.00 Massachusetts Residential Code, Chapter 8 amendmentsCommonwealth of Massachusetts, amendments to the 2021 IRC. Quoted for R802.4.1: rafter spans shall be measured along the horizontal projection of the rafter.
- AWC Maximum Span Calculator for Wood Joists and RaftersAmerican Wood Council. The path the code itself points to for species, grades and loading conditions the tables do not cover.
- IRC R802 roof-ceiling constructionUpCodes. Rafter and ceiling joist sections. Confirm the edition and jurisdiction it serves you.
How every figure here is verified: Sources & Method. Who builds this: About. Found something wrong? Tell us and it gets fixed or removed.
Figures on this page last checked against the source documents on 2026-09-08. Codes are amended locally; confirm against the edition your jurisdiction enforces.
Related calculators
- Roof Truss Calculator IRC R802.10 & TPI 1
- Header Calculator IRC Table R602.7(1)
- Structural Load Calculator dead, live and snow
- Joist Calculator IRC Table R507.6
- Beam Load and Deflection Calculator IRC Table R301.7 deflection limits
- Deck Beam Calculator IRC Table R507.5(1) · NDS design values
- Deck Ledger Calculator IRC Table R507.9.1.3(1)
- Occupant Load Calculator IBC Table 1004.5
- Stair Construction Calculator IRC R311.7 · riser R311.7.5.1 · tread R311.7.5.2
Geometry, not sizing. This page gives the horizontal span the rafter tables require and the lengths you cut. It does not size the member: that is Tables R802.4.1(1) through (8), which several states amend. Order lengths carry no allowance for birdsmouth, plumb or tail cuts.