Quick checks
Check run, rise, and overhang before cutting lumber
Roof framing
Calculate common rafter length and size planning from roof span, run, pitch, and rafter spacing, plus plumb and seat-cut angles, birdsmouth depth, overhang, and lumber count for common roof layouts.
Use a garage, shed, hip-roof, or barn-style preset.
Quick checks
Check run, rise, and overhang before cutting lumber
Quick checks
Separate geometry from final structural sizing
Quick checks
Use roof type and spacing to narrow the framing plan
Framing setup
Use the calculator to solve length and angles. Then verify member size with span tables.
A small span mistake compounds into wrong rafter length, birdsmouth placement, and sheathing layout.
The calculator can solve length and angles quickly, but final member size still depends on span tables, load, and code.
Gable, shed, hip, and ridge-beam layouts create different cut logic and different follow-up checks for ties or supports.
Moving from 16-inch to 24-inch spacing changes sheathing, load path, and the acceptable member range.
Snow country or heavy roofing systems can invalidate a member size that looks fine on a generic table.
Birdsmouth depth, bearing, and ridge thickness all need room in the board before the geometry is truly buildable.
Fast planning rules
Check span, pitch, overhang, spacing, and birdsmouth layout before you cut or order lumber.
Roof rafter length calculator
Enter roof span, pitch, overhang, and spacing to estimate common rafter length, cut angles, and the rough lumber count.
Use the output for planning, then verify the final span, species, load, and code requirements before cutting.
What size rafter do I need?
Rafter sizing depends on the span or run, rafter spacing, roof and other loads, lumber species, grade, and local building code.
This is planning guidance only. Confirm the final size with local span tables, code requirements, or a structural engineer before ordering or cutting lumber.
How do I calculate rafter length?
For a common gable roof, start with half the building span as the run, convert pitch into rise, then find the diagonal rafter length before adding overhang and ridge adjustments.
A 24-ft span at 6/12 pitch is about 13.4 feet before overhang.
Birdsmouth and cut angles
Roof pitch sets the plumb cut, seat cut, and birdsmouth layout, while overhang and wall thickness change the final mark.
Keep birdsmouth cuts within accepted framing limits and check local code before cutting.
Use this calculator to estimate rafter length, cut angles, and framing quantity. It works best after you confirm span, pitch, and overhang.
Start with these key terms:
Different roof styles require different framing approaches:
Measure carefully - accurate dimensions are critical for proper fit:
Roof pitch is expressed as a ratio of rise to run. For example, a 6:12 pitch rises 6 inches for every 12 inches of horizontal run.
| Pitch | Angle | Description |
|---|---|---|
| 2:12 - 3:12 | 9° - 14° | Low slope - requires special roofing (membrane or built-up) |
| 4:12 - 6:12 | 18° - 26° | Standard residential - most common, works with shingles |
| 7:12 - 9:12 | 30° - 37° | Medium steep - good water runoff, harder to walk on |
| 10:12 - 12:12 | 40° - 45° | Steep - excellent for snow, requires safety equipment |
| 13:12+ | 47°+ | Very steep - specialty construction, dramatic appearance |
Every rafter requires three basic cuts to fit properly:
The plumb cut is made at the top of the rafter where it meets the ridge board. This cut is vertical (plumb) when the rafter is in position. The angle is determined by the roof pitch.
How to mark: Set your framing square with the pitch (e.g., 6 on the tongue, 12 on the blade) and mark along the tongue for the plumb cut.
The birdsmouth is a notch cut where the rafter sits on the wall's top plate. It consists of:
Rule of thumb: The seat cut depth should not exceed 1/3 of the rafter depth to maintain structural integrity. For a 2x6 rafter (5.5" actual), maximum seat cut is about 1.8".
The tail cut is made at the end of the overhang where the fascia board attaches. This is typically a plumb cut, but can be modified for different fascia styles.
On a standard gable roof, the common-rafter run is usually about half the total building span. Rafter size and span planning also depend on spacing, snow and wind loads, roof covering, species, grade, and local building code. For example, a 20-foot building span is about a 10-foot common-rafter run per side before overhang. Use the directions below for early planning only:
| Planning situation | What it changes | Next check |
|---|---|---|
| Short, light runs | Usually leaves more conventional framing options to compare. | Check the applicable local span table and design loads. |
| Typical residential runs | Spacing, roof covering, and design loads can change the lumber choice. | Confirm the combination against local span tables and code. |
| Longer or heavier-load runs | May require larger members, shorter spacing, or additional support. | Have the framing system checked for the actual loads and run. |
| Structural ridge or open ceiling | Changes the load path through the ridge beam, posts, connections, and rafters. | Use local code and a structural engineer for the system review. |
For a full walkthrough of how span, pitch, and spacing change the lumber choice, see our rafter size and span guide. Confirm the final rafter size with local span tables or a structural engineer before you order lumber or cut.
Most asphalt shingles require a minimum 4:12 pitch. Lower pitches (2:12 to 4:12) may require ice and water shield underlayment. Below 2:12, you'll need low-slope roofing like modified bitumen, EPDM, or TPO.
For our review process, corrections policy, and monetization disclosure, see the Editorial Standards page.
Framing FAQ
These questions help visitors separate framing geometry from structural sizing so the calculator does not get mistaken for a generic span-table shortcut.
Rafter length is calculated using the Pythagorean theorem: Length = √(Run² + Rise²). For a 24-foot building with 6:12 pitch: Run = 12 feet, Rise = 6 feet, Length = √(144 + 36) = 13.4 feet. Add overhang for total length.
A 20-foot building span on a standard gable roof is usually split into two common-rafter runs of about 10 feet before overhang and other adjustments. The rafter size still depends on spacing, loads, species, grade, roof system, and local requirements; confirm it with local span tables, building code, or an engineer rather than treating the span alone as a structural prescription.
16 inches on center is most common and provides good strength with standard sheathing. 24 inches on center is acceptable for light loads with proper sheathing. 12 inches on center is used for heavy snow areas or tile roofs.
A ridge board is non-structural and just keeps rafters aligned - requires collar ties or ceiling joists. A ridge beam is structural and carries the roof load - required for cathedral ceilings without ceiling joists, needs posts at each end.
Hip rafters run at 45° from corners to the ridge. They're longer than common rafters and require compound cuts. Hip length = √(Run² + Rise² + Run²) × 1.414. Hip roofs also require jack rafters running from wall to hip rafter.
Most asphalt shingles require minimum 4:12 pitch. Lower pitches (2:12 to 4:12) may require ice and water shield underlayment. Below 2:12, you'll need low-slope roofing like modified bitumen, EPDM, or TPO.