How to Use the Rafter Calculator
- Enter the building span from outside of wall to outside of wall.
- Choose the roof pitch.
- Enter the level overhang and the ridge board thickness (1.5 in for a 2× ridge).
- Enter the building length and rafter spacing to count rafters.
Common Rafter Formulas
Example: 24 ft Span at 6/12
Run: 12 ft − 0.0625 ft (half the ridge) + 1 ft overhang = 12.94 ft
Length: 12.94 × 1.118 = 14.46 ft (14 ft 5.6 in) → buy 16 ft boards
Plumb cut: 26.57° · Seat cut: 63.43°
Rafters at 24 in on a 40 ft building: 21 per side, 42 total
Rafter Multipliers by Pitch
| Pitch | Multiplier | Plumb angle |
|---|---|---|
| 4/12 | 1.054 | 18.43° |
| 5/12 | 1.083 | 22.62° |
| 6/12 | 1.118 | 26.57° |
| 8/12 | 1.202 | 33.69° |
| 10/12 | 1.302 | 39.81° |
| 12/12 | 1.414 | 45.00° |
Choosing Rafter Size
- Rafter size depends on span, spacing, wood species and grade, and snow and dead loads.
- Use the span tables in your local code (based on the IRC in many US areas) or ask an engineer.
- Trusses are an alternative to stick framing and are designed by the truss maker.
- Ceiling joists or rafter ties are usually needed to resist outward thrust on the walls.
Tips for Cutting Rafters
- Cut one pattern rafter, test it on both sides, then use it to mark the rest.
- Crown every board so the bow faces up.
- Size roofing once the frame is set with the roofing calculator.
- Price lumber with the board foot calculator.
Rafter Calculator FAQs
How do I calculate rafter length?
Take half the span, subtract half the ridge board thickness, add the level overhang, and multiply by the pitch multiplier. For a 24 ft span at 6/12 with a 12 inch overhang, that is about 14.46 ft.
What angle do I cut rafters at?
The plumb cut at the ridge equals the roof angle, arctan(pitch ÷ 12). For 6/12 that is 26.57°. The seat cut (birdsmouth) is 90° minus that, 63.43°.
How many rafters do I need?
Divide the building length in inches by the spacing, add 1, then double it for both sides. A 40 ft building at 24 inches on center needs 42 rafters.
What size lumber do I need for rafters?
It depends on span, spacing, species, grade and roof loads. Check the rafter span tables in your local building code or have an engineer size them.