Rafter Length Calculator

Calculate rafter length from roof run, rise, and overhang. Includes birdsmouth cut depth and total rafter stock length needed.

ft
:12
ft
in
ft
Rise
6'-0″
6:12 pitch = 26.6°
Line Length
13'-5″
theoretical run to ridge
Adjusted Length
13'-4.2″
shortened 0.8″ for ridge
Overhang on Slope
1'-8.1″
eave tail length
Total Rafter Length
15'-0.3″
cut length
Stock Length
16 ft
purchase length
Rafter Count
24
16″ OC × 30 ft
Birdsmouth
2.42″
HAP: 4.83″

Rafter Breakdown

Main 13'-4.2″
Overhang 1'-8.1″

Cut Angles

CutAngleNotes
Plumb Cut (ridge)26.6°Angle from horizontal
Seat Cut (birdsmouth)63.4°Level cut at plate
Tail Cut26.6°Plumb at eave end

Pitch Reference

PitchAngleRiseLine LengthTotal w/ Overhang
3:1214.0°3'-0″12'-4.4″13'-11″
4:1218.4°4'-0″12'-7.8″14'-2.8″
5:1222.6°5'-0″13'-0″14'-7.5″
6:1226.6°6'-0″13'-5″15'-1.1″
7:1230.3°7'-0″13'-10.7″15'-7.5″
8:1233.7°8'-0″14'-5.1″16'-2.7″
10:1239.8°10'-0″15'-7.4″17'-6.9″
12:1245.0°12'-0″16'-11.6″19'-1.1″
Planning notes, formulas, and examples

About the Rafter Length Calculator

Calculating rafter length accurately is essential for ordering the right lumber and making precise cuts. A rafter's length is determined by the horizontal run (half the building width minus half the ridge thickness), the vertical rise (set by the roof pitch), and any overhang (eave projection) you want beyond the exterior wall.

This rafter length calculator uses the Pythagorean theorem to compute the line length of a common rafter from run and rise, then adds the overhang distance adjusted for pitch. It also shows the total stock length you need to purchase and the birdsmouth cut dimensions.

Whether you're framing a simple gable roof, a shed addition, or a porch, This calculator gives you the measurements needed to lay out and cut each rafter accurately.

When This Page Helps

Rafter length calculations involve square roots and trigonometry that are error-prone with a tape measure and framing square alone. This calculator gives you the exact line length, overhang adjustment, and stock length so you can order material and set up your saw with confidence.

How to Use the Inputs

  1. Enter the horizontal run (half the roof span, measured from the outside of the wall to the center of the ridge).
  2. Enter the rise per foot of run (e.g., 6 for a 6:12 pitch).
  3. Enter the desired overhang (horizontal projection of the eave beyond the wall).
  4. Read the rafter line length, overhang length on the slope, and total stock length.
  5. Use the birdsmouth dimensions to lay out your plumb and seat cuts.
Formula used
Rafter Line Length = √(Run² + Rise²) Rise = Run × (Pitch / 12) Overhang on Slope = Overhang / cos(pitch angle) Total Stock Length = Line Length + Overhang on Slope Pitch Angle = arctan(Pitch / 12)

Example Calculation

Result: 14'-1″ total rafter length

With a 12-ft run at 6:12 pitch, the rise is 6 ft. Line length = √(12²+6²) = √180 = 13.42 ft. The pitch angle is 26.57°, so overhang on slope = 1.5/cos(26.57°) = 1.68 ft. Total stock = 13.42 + 1.68 = 15.10 ft, requiring a 16-ft rafter.

Tips & Best Practices

  • Always measure the run from the outside face of the wall's top plate to the center of the ridge board.
  • Subtract half the ridge board thickness from the run for accurate line length.
  • The birdsmouth cut should not remove more than one-third of the rafter depth.
  • Use a framing square or speed square to lay out plumb cuts and seat cuts directly on the rafter.
  • Order rafters 2 feet longer than calculated to allow for cutting the bird's mouth and tail.
  • Check that opposing rafters have equal lengths to keep the ridge straight.

Common Rafter Layout Process

Start by marking the ridge plumb cut at one end, measure the rafter line length along the top edge, mark the birdsmouth location at the wall plate, and finish with the tail cut at the eave. Use a speed square set to your pitch for consistent plumb and level cuts.

Birdsmouth Cut Guidelines

The IRC limits birdsmouth depth to one-third of the rafter depth. For a 2×8 rafter (7.25″ actual depth), the maximum seat cut is about 2.4 inches. The seat cut must be long enough to bear fully on the top plate (minimum 1.5″ for a 2× plate).

Adjusting for Different Pitches

Steeper pitches produce longer rafters for the same horizontal run. A 12:12 pitch (45°) adds 41% to the rafter length compared to the run, while a 4:12 pitch adds only 5.4%. Always recalculate when pitch changes—don't interpolate.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • The run is the horizontal distance from the outside of the wall's top plate to the center of the ridge. For a symmetrical gable roof, the run equals half the building span minus half the ridge board thickness.