Rafter Calculator
Rafter Sizing Guide
| Lumber Size | Maximum Span | Spacing | Load Rating |
|---|---|---|---|
| 2x4 | Up to 8 ft | 16" or 24" | Light loads only |
| 2x6 | 8-12 ft | 16" or 24" | Standard residential |
| 2x8 | 12-16 ft | 16" or 24" | Medium loads |
| 2x10 | 16-20 ft | 16" or 24" | Heavy loads |
| 2x12 | 20+ ft | 16" or 24" | Very heavy loads |
* Spans based on typical residential loads. Check local building codes for specific requirements.
Use our Rafter Calculator to determine the length and cutting angles for common rafters. Calculate rafter dimensions based on building width, roof pitch, overhang, and ridge board thickness.
How to Calculate Rafter Length
Understanding Rafter Components
Before calculating, understand these key measurements:
- Span: The total horizontal distance the roof covers (building width)
- Run: Half the span minus half the ridge board thickness
- Rise: The vertical distance from the wall plate to the ridge
- Overhang: How far the rafter extends beyond the exterior wall
- Ridge Board: The horizontal board at the peak where rafters meet
Step-by-Step Calculation
Here's how to calculate rafter length manually:
- Calculate the Run: (Building Width / 2) - (Ridge Board Thickness / 2)
- Calculate the Rise: (Roof Pitch / 12) x Run
- Calculate Rafter Length to Ridge: √(Rise2 + Run2)
- Add Overhang: Total Rafter Length = Rafter Length + Overhang
For example: 24-foot building, 6/12 pitch, 1.5" ridge, 12" overhang:
Run = (24' / 2) - (1.5" / 2) = 12' - 0.75" = 11.94'
Rise = (6 / 12) x 11.94' = 5.97'
Rafter to Ridge = √(5.972 + 11.942) = 13.37'
Total Length = 13.37' + 1' = 14.37'
Cutting Angles
Rafters require specific cuts for proper installation:
- Plumb Cut: The vertical cut at the ridge end. Angle equals the roof angle from horizontal.
- Level Cut (Birdsmouth): The horizontal cut that sits on the wall plate. Angle = 90° - roof angle.
- Tail Cut: The cut at the overhang end, typically a plumb cut for visual appeal.
Rafter Spacing and Sizing
Rafter size depends on span, spacing, and load requirements. Most residential construction uses 16" or 24" on-center spacing.
- 16" O.C.: Stronger, better for heavier loads or longer spans
- 24" O.C.: More economical, adequate for standard residential loads
- Load factors: Snow load, wind load, and dead load (roof materials)
- Species and grade: Douglas Fir, Southern Pine, SPF lumber grades
Rafter Installation Guide
Tools and Materials
Essential tools for rafter installation:
- Circular saw or miter saw for cutting
- Speed square for marking angles
- Chalk line for layout
- Level for checking alignment
- Framing square for large measurements
- Nail gun or hammer for fastening
Installation Steps
- Set the Ridge Board: Install and level the ridge board at the correct height
- Cut Pattern Rafter: Cut one rafter carefully and test fit before cutting others
- Mark Wall Plates: Mark rafter locations on both wall plates and ridge board
- Install End Rafters: Start with gable end rafters for stability
- Install Common Rafters: Work from both ends toward the center
- Check for Straightness: Use a string line to ensure ridge stays straight
Common Mistakes to Avoid
- Not accounting for ridge board thickness in run calculation
- Cutting all rafters before testing the pattern rafter
- Incorrect birdsmouth cut depth (should not exceed 1/3 of rafter depth)
- Poor bearing at the wall plate or ridge connection
- Inconsistent rafter spacing affecting sheathing installation
| Lumber Size | 16" O.C. Span | 24" O.C. Span | Typical Application |
|---|---|---|---|
| 2x4 | 8' | 6' | Small sheds, garages |
| 2x6 | 12' | 10' | Small homes, additions |
| 2x8 | 16' | 13' | Standard residential |
| 2x10 | 20' | 16' | Large homes, heavy loads |
| 2x12 | 24' | 20' | Commercial, heavy snow |
* Spans based on Douglas Fir #2 grade lumber, 40 psf live load, 10 psf dead load. Always check local building codes.
Cite this page as:
Daniel, P. Rafter Calculator. Available at: https://constructioncalculators.com/rafter-calculator/. Accessed: October 25, 2026.