Rafter Calculator
Common rafter length from span, pitch, overhang and ridge board, with plumb and seat cut angles, stock length and the number of rafters.
A common rafter runs from the ridge to the wall and on to the eaves. Its horizontal run is half the building's span less half the ridge board's thickness, and its length is that run times the slope factor for the pitch, plus the overhang (measured level) times the same factor. For a 24 ft span at 6/12 with a 1½ in ridge and a 12 in overhang, the run is 11.94 ft, the rafter is 13.35 ft to the wall plus 1.12 ft of tail, 14.46 ft in all, so you'd cut it from a 16 ft board. The plumb cut is 26.6° and the seat cut 63.4°, and a 40 ft building at 16 in centres takes 31 rafters a side. Enter your roof and the calculator works it out in feet or metres.
- Rafter length
- 14.46 ft
- Plumb cut
- 26.6°
- Ridge height
- 5.97 ft
- Rafters
- 62
buy 16 ft lengths
seat cut 63.4°
above the wall plate line
31 per side
How it was worked out
- Run = half the span less half the ridge board: 12 ft − 0.75 in = 11.94 ft (143.3 in)
- Slope factor for 6/12 = 1.118
- Rafter to the wall: 11.94 ft × 1.118 = 13.35 ft (160.2 in)
- Overhang: 12 in level × 1.118 = 13.42 in
- Total rafter length 14.46 ft (173.6 in); the next stock length is 16 ft
- Rafters: 40 ft at 16 in spacing = 31 per side, 62 in all
Lengths are along the top edge (the measuring line) of a common rafter on a simple gable roof. Rafter sizes and spacing come from span tables or an engineer, and trusses are often used instead. A common rule is not to cut the birdsmouth seat deeper than about a third of the rafter's depth.
Common use cases
- Cut rafters for a shed, garage or lean-to
- Choose rafter stock lengths before buying lumber
- Find the ridge height for a given pitch
- Count rafters for a roof
How to use
- Choose your units.
- Enter the span (outside of the walls), the pitch and the overhang measured level.
- Enter the ridge board thickness, the building length and the rafter spacing.
- Read the rafter length, stock length, cut angles and the number of rafters.
FAQ
How do I calculate rafter length?
Rafter length = run × slope factor, where the run is half the span less half the ridge board and the slope factor is √(1 + (pitch ÷ 12)²). Add the overhang times the same factor for the tail.
What angles are the rafter cuts?
The plumb cut at the ridge is the roof angle from horizontal: 26.6° for 6/12. The seat cut of the birdsmouth is 90° minus that: 63.4° for 6/12.
What size rafters do I need?
That comes from span tables for your timber grade, spacing, snow and wind loads, or from an engineer. Many roofs now use engineered trusses instead of cut rafters.
Related tools
- Roof Pitch CalculatorConvert roof pitch between rise and run, x in 12, degrees and percent, with the slope factor and rafter…
- Roofing CalculatorRoof area from the footprint and pitch, squares, shingle bundles or roof tiles, and underlay rolls, in feet…
- Stud CalculatorHow many studs and plates a framed wall needs: wall lengths, stud spacing, corners and openings, with the…
- Board Foot CalculatorBoard feet for lumber of any size and quantity, with cubic metres, linear length and cost per board foot or…
- Plywood CalculatorHow many sheets of plywood, OSB or sheathing you need: area of floors, walls or roofs, sheet size and extra…
- Ramp CalculatorHow long a ramp needs to be for a given rise: ADA 1:12, England's Approved Document M, Australian rules or…
Results are estimates for planning and buying materials, worked out from the figures you enter and typical values (weights, coverage, sizes) that vary by product and supplier. They are not engineering, building or professional advice. Check your local building code, the product maker's instructions and your supplier's figures before you buy or build, and use a qualified professional for structural, electrical and gas work. Sizes, spans, depths and reinforcement for anything structural must come from span tables, your building code or an engineer.