Construction Calculators Logo

Rafter Calculator

Total width of the building

Common residential pitches: 4/12 to 8/12

Typical overhang: 12-24 inches

Standard 2x lumber: 1.5 inches actual

Rafter Sizing Guide

Lumber SizeMaximum SpanSpacingLoad Rating
2x4Up to 8 ft16" or 24"Light loads only
2x68-12 ft16" or 24"Standard residential
2x812-16 ft16" or 24"Medium loads
2x1016-20 ft16" or 24"Heavy loads
2x1220+ ft16" 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:

  1. Calculate the Run: (Building Width / 2) - (Ridge Board Thickness / 2)
  2. Calculate the Rise: (Roof Pitch / 12) x Run
  3. Calculate Rafter Length to Ridge: √(Rise2 + Run2)
  4. 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

  1. Set the Ridge Board: Install and level the ridge board at the correct height
  2. Cut Pattern Rafter: Cut one rafter carefully and test fit before cutting others
  3. Mark Wall Plates: Mark rafter locations on both wall plates and ridge board
  4. Install End Rafters: Start with gable end rafters for stability
  5. Install Common Rafters: Work from both ends toward the center
  6. 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 Size16" O.C. Span24" O.C. SpanTypical Application
2x48'6'Small sheds, garages
2x612'10'Small homes, additions
2x816'13'Standard residential
2x1020'16'Large homes, heavy loads
2x1224'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.