Quick summary: A rafter length calculator finds the common rafter as the horizontal run, including the overhang, times the pitch factor. Run to the ridge face is half the span minus half the ridge thickness. The pitch factor is the square root of 1 + (rise ÷ 12)². This is geometry only, not an official span table or a cutting list.
Last reviewed November 25, 2026. Length = (span ÷ 2 − ridge thickness ÷ 24 + overhang in feet) × √(1 + (rise ÷ 12)²). Free tool, and your numbers stay in your browser.
Do this today
Run this calculator with real numbers (a real quote, a real price), not guesses, and save the result in your startup budget.
Start small. Your first goal is $500 a month. That is where I started. — Trent
Get the free Startup Kit
Five free files: a startup checklist (PDF), a one-page business plan (Word and PDF), a full plan template (Word), a financials workbook (Excel), and a startup cost worksheet (Excel). Enter your email and the downloads open on the next page. No credit card.
How do you use the rafter length calculator?
Enter the building span from outside of wall to outside of wall, the pitch as inches of rise per 12 inches of run, the thickness of the ridge board, and the horizontal overhang past the wall. A 2x ridge is often 1½ inches thick; enter 0 if you measure run to the ridge centerline instead. The result is the line length along the rafter, not a birdsmouth layout and not a lumber stock length you must buy.
What is the rafter length formula?
Run to the ridge face is span ÷ 2 minus half the ridge thickness in feet. Add the horizontal overhang in feet to get the full horizontal run. The pitch factor is the square root of 1 + (rise ÷ 12)². Multiply the full horizontal run by that factor. The rise height over that same run is the horizontal run times (rise ÷ 12). This page does not apply an official span table, a snow load, or a species grade.
Worked example
| Scenario | Inputs | Rafter length | Pitch factor |
|---|---|---|---|
| Default 6/12 | 24 ft span, 6/12, 1.5 in ridge, 12 in overhang | 14.46 ft (173.57 in) | 1.1180 |
| Same span, no overhang | 24 ft span, 6/12, 1.5 in ridge, 0 overhang | 13.35 ft (160.16 in) | 1.1180 |
| Steeper 8/12, same overhang | 24 ft span, 8/12, 1.5 in ridge, 12 in overhang | 15.55 ft (186.59 in) | 1.2019 |
The default row: half of 24 feet is 12 feet, minus half of 1.5 inches (0.0625 feet) is a 11.938 foot run to the ridge face. Add a 12 inch overhang and the horizontal run is 12.938 feet. The 6/12 factor is 1.1180, so the rafter is 14.46 feet, or 173.57 inches. With no overhang the length is 13.35 feet. An 8/12 pitch on the same span and overhang is 15.55 feet.
How this differs from the roofing calculator
The live roofing calculator converts plan area and pitch into roof area and squares. It does not report the length of a common rafter. This page does not report squares. Use both if you need sheathing and a rafter length; do not treat either one as a structural design.
Frequently asked questions
How do you calculate rafter length?
Take the run to the ridge, add the horizontal overhang, and multiply by the pitch factor. On a 24 foot span, 6/12 pitch, 1½ inch ridge, and 12 inch overhang, the common rafter is 14.46 feet.
Why subtract the ridge thickness?
Each rafter usually stops at the face of the ridge board, not at the centerline of the building. Half the ridge thickness comes off each side. Enter 0 if your layout is to the centerline.
Is the overhang measured along the rafter or horizontally?
This tool uses the horizontal overhang past the wall, then slants that run with the pitch factor. If you already measured the overhang along the rafter, do not enter it here as well.
Does this include a birdsmouth or a tail cut?
No. The result is the theoretical line length. Seat cuts, plumb cuts, and stock length you will actually buy are layout steps you still have to make.
Can I use this as a span table?
No. Span tables depend on species, grade, snow load, and spacing, and those official tables are not in this tool. The length here is only the geometry of the triangle.
Related guides and tools
General information, not a structural design or a cutting list. Span, pitch, ridge, and overhang are figures you supply.