Roof Square Footage Calculator

Roof Rafter Calculator: Span, Length & Cuts

Accurately calculate rafter line length, tail overhang, ridge board deductions, and birdsmouth cuts for timber framing according to IRC building codes.

Calculates True AreaFactors in PitchIncludes Waste FactorSquares & Bundles
ft
/12
in
in
Example preview
Result14.46 ft Total Length
Total Length (ft & in)
14' 5.6"
Rafter Run Length
13' 4.2"
Tail Length
1' 1.4"
Adjusted Horizontal Run
11.94 ft

Enter your values and press Calculate to see your result.

How the Roof Rafter Calculator Works

Follow the exact steps to get your result instantly and privately.

Step 1: 1. Enter Building Span

Measure the total exterior width of the building from outside wall framing to outside wall framing.

Step 2: 2. Input Roof Pitch & Overhang

Enter your roof's rise over 12 and the desired horizontal eave overhang distance (typically 12 to 24 inches).

Step 3: 3. Review Exact Cut Dimensions

Get rafter line length, plumb cut angle, birdsmouth seat cut placement, and total lumber board order lengths.

STEP 1

Step 1: 1. Enter Building Span

Measure the total exterior width of the building from outside wall framing to outside wall framing.

1. Enter Building Span

Roof Rafter Geometry & Framing Formulas

A common rafter forms the hypotenuse of a right triangle whose base is the horizontal run (half the building span minus half the ridge board thickness) and whose vertical leg is the rise. International Residential Code (IRC) Section R802 governs rafter spans and bearing cuts. When cutting timber rafters, you must deduct half the thickness of the center ridge beam (typically 0.75 inches for standard 1.5-inch thick 2x lumber) from the run so the rafters meet squarely at the center.

Measuring Methods

  • Total Building Span Measurement: Measure the exterior distance between the top wall plates across the width of the building.
  • Net Horizontal Run Calculation: Divide the total building span by 2 to get the half-span, then subtract half the ridge board's actual thickness (0.75 inches for 2x dimensional lumber).
  • Birdsmouth Cut Layout: Lay out the plumb cut where the rafter meets the ridge, then measure the calculated rafter line length down to the heel of the birdsmouth notch where it sits on the wall top plate.
Half Span       = Building Span / 2
Net Run         = Half Span - (Ridge Board Thickness / 2)
Rafter Length   = Net Run × √(1 + (Pitch / 12)²)
Tail Length     = Overhang Run × √(1 + (Pitch / 12)²)
Total Board     = Rafter Length + Tail Length (round up to nearest standard 2 ft lumber length)
Plumb Cut Angle = 90° - arctan(Pitch / 12)
Seat Cut Angle  = arctan(Pitch / 12)
Example

For a 24 ft wide garage with a 6/12 pitch, a 1.5-inch ridge board, and a 12-inch overhang: Half span = 12 ft = 144 inches. Net run = 144 - 0.75 = 143.25 inches (11.94 ft). Slope factor = √(1 + (6/12)²) = 1.118. Rafter length = 11.94 × 1.118 = 13.35 ft (13 ft 4-3/16 in). Tail length = 1.0 ft × 1.118 = 1.12 ft (1 ft 1-7/16 in). Total rafter board length = 14.47 ft → Order standard 16-foot 2x6 boards.

Rafter Length Examples

Review these common framing scenarios to see how span, pitch, and overhang combine to determine structural rafter cuts and lumber ordering requirements.

Various roof styles examples
Sample scenarios and their calculated results
ScenarioCalculationResult
24 ft Garage / Workshop (6/12 Pitch, 12″ Overhang)Half span 12 ft - 0.75" ridge = 11.94 ft run × 1.118 slope factor. Tail 12" × 1.118.Rafter line length: 13′ 4-3/16″ | Tail: 1′ 1-7/16″ | Order 16 ft lumber
16 ft Garden Shed (4/12 Pitch, 6″ Overhang)Half span 8 ft - 0.75" ridge = 7.94 ft run × 1.054 slope factor. Tail 6" × 1.054.Rafter line length: 8′ 4-1/2″ | Tail: 6-5/16″ | Order 10 ft lumber
30 ft Two-Story Home (8/12 Pitch, 18″ Overhang)Half span 15 ft - 0.75" ridge = 14.94 ft run × 1.202 slope factor. Tail 18" × 1.202.Rafter line length: 17′ 11-1/2″ | Tail: 1′ 9-5/8″ | Order 20 ft lumber

Maximum Rafter Spans by Lumber Size (IRC)

Check maximum allowable rafter spans (horizontal projection) under IRC Table R802.4.1 for common lumber species (Douglas Fir-Larch #2, 20 psf live load + 10 psf dead load).

Maximum Allowable Rafter Spans by Lumber Size (IRC Table R802.4.1)
Lumber Size12″ Spacing O.C.16″ Spacing O.C.24″ Spacing O.C.Typical Application
2 × 4 Dimensional9 ft 10 in8 ft 11 in7 ft 10 inSmall sheds, outbuildings, short dormers
2 × 6 Dimensional15 ft 5 in14 ft 0 in12 ft 3 inStandard residential garages and small homes
2 × 8 Dimensional20 ft 4 in18 ft 5 in16 ft 2 inStandard residential roofs up to 36 ft span
2 × 10 Dimensional25 ft 10 in23 ft 6 in20 ft 6 inLarger custom homes and heavy snow zones
2 × 12 Dimensional31 ft 5 in28 ft 6 in24 ft 11 inVaulted / cathedral ceilings without collar ties
DID YOU KNOW?

Quick facts

  • Background texture
    A standard 2x lumber ridge board is 1.5 inches thick; subtract exactly 0.75 inches from your horizontal half-span before calculating rafter length.
  • Background texture
    The birdsmouth notch consists of two cuts: the plumb cut (heel) and the horizontal seat cut that rests on the wall top plate.
  • Background texture
    Under IRC Section R802.7.1, the depth of a birdsmouth cut must not exceed one-third (1/3) of the rafter board's total depth.
  • Background texture
    Rafters must have at least 1.5 inches of continuous bearing on wood or metal top plates (3 inches on concrete or masonry).
  • Background texture
    Collar ties or ceiling joists must be installed in the upper third of the attic space to prevent outward thrust on exterior walls.

Marcus Vance

Lead Construction Estimator & Technical Editor

  • IRC R802 Framing Analysis
  • Timber Span Table Calculations
  • Carpentry & Framing QA

Marcus analyzes International Residential Code (IRC) timber span tables, American Wood Council (AWC) lumber grading rules, and rafter cut geometry to ensure accurate DIY and contractor framing takeoffs.

Got Questions?

Frequently Asked Questions

Clear answers about roof square footage calculations, pitch slope factors, shingle bundles, and ordering materials.

Rafter line length is calculated using the Pythagorean theorem: Rafter Length = Net Run × √(1 + (Pitch / 12)²). Net run is the building half-span minus half the thickness of the ridge board (typically 0.75 inches for 2x lumber). To find the total lumber length needed, add the tail length for your eave overhang: Tail = Overhang Run × √(1 + (Pitch / 12)²).

Still have questions about your roof takeoff?

Explore our comprehensive suite of specialized calculators or contact our estimator team for personalized guidance.