🏚️

Rafter Calculator

Calculate rafter length, count, board feet, and lumber cost for any roof pitch

🏚️

Rafter Calculator

How to Calculate Rafter Length

Rafter length is determined by the building's width, the roof pitch, and the desired overhang. The horizontal run equals half the building width plus the overhang distance. The rafter length is then found by multiplying the run by the appropriate pitch multiplier, which is derived from the Pythagorean theorem.

Rafter Length Formula
Run = (Building Width ÷ 2) + Overhang (ft)
Pitch Multiplier = √(1 + (Rise/12)²)
Rafter Length = Run × Pitch Multiplier
Number of Rafters = (Building Length ÷ Spacing) × 2 + 2

Pitch Multiplier Reference Table

PitchMultiplierAngleCommon Use
3/121.03114°Low slope, warm climates
4/121.05418°Minimum for asphalt shingles
6/121.11827°Standard residential
8/121.20234°Traditional / Cape Cod
10/121.30240°High slope / attic space
12/121.41445°Steep / decorative

Rafter Sizing Tips

  • Always add 15% to your lumber order to account for waste from bird's-mouth and tail cuts
  • The ridge board should be one size larger than the rafters — use 2×10 ridge with 2×8 rafters
  • Bird's-mouth cuts (seat cut + plumb cut) must be no deeper than 1/3 of the rafter depth
  • In high-snow areas, use a minimum 5/12 pitch and check local codes for live load requirements
  • Collar ties or ceiling joists are required to resist outward thrust — space them to match rafter spacing

? Frequently Asked Questions

How do I calculate rafter length?
Rafter length is calculated using the Pythagorean theorem. The run (horizontal distance) equals half the building width plus any overhang. The rafter length equals the run multiplied by the pitch multiplier: √(1 + (pitch/12)²). For a 6/12 pitch the multiplier is 1.118.
What does roof pitch mean?
Roof pitch describes the slope as rise over run, expressed as X/12. A 6/12 pitch rises 6 inches for every 12 inches of horizontal run. Low pitch (3/12–4/12) sheds water slowly and is common in dry climates. Steep pitch (8/12–12/12) sheds snow and rain rapidly.
How far apart should rafters be spaced?
Standard rafter spacing is 16" on center for most residential construction. 12" OC is used for heavy loads (metal roofing, tile) or long spans. 24" OC reduces lumber cost but requires thicker sheathing and is only appropriate for lighter roofing materials.
What size lumber do I need for rafters?
Rafter size depends on span and spacing. For a 12 ft span at 16" OC, 2×6 is typically sufficient. A 16 ft span at 16" OC requires 2×8. An 18–20 ft span typically needs 2×10. Always verify with local building codes and a structural engineer for your specific loads.
How many rafters do I need?
Calculate by dividing the building length by the spacing and multiplying by 2 (for both sides of the roof), then add 2 for the gable-end rafters. Our calculator handles this automatically. Always buy 10–15% extra for waste from cuts.

💡 Pro Tips

Always add 10% extra to material estimates to account for waste, cuts, and mistakes.