Rafter length from span and rise
The Rafter Calculator turns roof span and rise into a sloped rafter length. It then uses roof length and spacing to estimate the number of rafters.
Check these three roof measurements
- Span: Measure from outside wall to outside wall.
- Rise: Use the vertical rise above half the span.
- Spacing: Copy the on-center spacing from the approved plan.
Tip for a cleaner rafter takeoff
Sketch one roof half as a right triangle. Label the run, rise, and overhang before entering a number.
Measure the gable before tracing a rafter
Measure the full outside building span, the vertical rise from plate level to ridge, and the roof length along the ridge. Enter the tail overhang separately because it extends the rafter beyond the wall line.
- Building span (ft)24
- Roof rise (ft)6
- Roof length (ft)40
- Rafter spacing (in)16
- Tail overhang along rafter (ft)1
Example values show the tool format. Replace them with measurements from your project.
Following a 24-foot span through the math
A 24 ft span with 6 ft of rise gives a sloped half-span of 13.42 ft. Add a 1 ft tail measured along the rafter for 14.42 ft per common rafter. A 40 ft roof at 16 in on center has 31 rafter positions along its length.
From half-span to sloped rafter length
For a symmetrical gable, halve the span to find the horizontal run and use the Pythagorean theorem for the sloped length. Enter the tail length along the rafter. If you measured it horizontally, multiply by the roof slope factor before entering it. The position count is along the length of the roof.
What this rafter estimate can tell you
Use this tool to estimate common-rafter length and layout count for a simple, symmetrical gable roof. It uses the building span and rise for the sloped length, then uses roof length and spacing for the count.
Turn the geometry into a framing takeoff
Treat the length as a geometry estimate before ridge, seat, and fascia deductions. Treat the count as a layout check, not as approval of lumber size, grade, spacing, or structural capacity.
Carry the rafter count into the roof plan
Once the rafter geometry is set, use the Roof Sheathing Calculator to turn the same roof dimensions into a panel takeoff.
Cuts and structural choices left outside the tool
Cross-check the ridge, plates, and loading
The main points to verify are roof geometry and structural loading. Use How to Measure a Roof for Rafters and Sheathing to review the measurements, assumptions, and next checks that sit outside this calculator.
Rafter Calculator questions
Is the calculated rafter length a final cut length?
No. It is the sloped common-rafter geometry plus the entered tail overhang. Ridge deductions, birdsmouth cuts, fascia details, and the approved framing plan still affect the final cut.
Does the rafter count mean individual pieces?
The result reports layout positions along the roof length. Use the roof plan to turn those positions into individual pieces for both sides and to add gable, doubled, or special framing.
