Skip to content
Woodwork Calculator

Rafter Calculator

Enter the span, pitch and overhang. You get the rafter length, plumb and seat cut angles, birdsmouth size and the board to buy, with the rafter drawn on the wall.

Your numbers

ft

Outside of wall to outside of wall.

in 12

Inches of rise per 12″ of run.

in

Measured level, from the outside of the wall to the fascia cut.

More options
in

1 1/2″ for a 2× ridge. 0 for a shed roof.

Line length—
Plate 05One common rafter in half section, from the fascia to the ridge, drawn to your numbers.
Tail—
Plumb cut—
Board to buy—

Full result

Run—
Rise at the measuring line—
Rafter multiplier—
Line length, heel to ridge—
Tail, along the slope—
Board length needed—
Plumb cut, off square—
Seat cut, off square—
Birdsmouth seat / heel—
Height above plate—
Top of rafter at ridge—

Checks

    How the rafter calculator works

    A common rafter is the hypotenuse of a right triangle. The level leg is the run, the vertical leg is the rise, and the pitch tells you how they relate: so many inches of rise for every 12 inches of run. Once you know the run, everything else follows.

    run = span ÷ 2 − ridge thickness ÷ 2
    multiplier = √(1 + (pitch ÷ 12)²)
    line length = run × multiplier
    tail = overhang × multiplier
    rise = run × pitch ÷ 12

    Take a 24′ garage with a 6/12 roof, a 2× ridge and a 12″ overhang. Half the span is 144″; take off half the ridge and the run is 143 1/4″. The multiplier for 6/12 is 1.118, so the line length is 160 3/16″ from the heel of the birdsmouth to the face of the ridge. The tail adds 13 7/16″. On a 2×8, with the extra wood at both plumb cuts, the rafter needs about 177″ of board, so you buy 16-footers.

    Where the measuring line runs

    Rafter lengths are measured along a line, not along an edge. Here it's the line that runs parallel to the rafter edges through the corner where the seat cut meets the heel cut, right at the outside face of the wall. The plate shows it as a dash-dot line. Measure along it from that corner to the ridge plumb cut and you get the line length.

    Mixing up where you measure from is how rafters end up an inch long or short. If your layout method measures along the top edge instead, that's fine, but don't mix the two on one roof.

    Laying out the cuts

    1. Crown up. Sight each board and mark the crown. It goes up, toward the sky, so the load straightens it out.
    2. Mark the ridge plumb cut. Pivot a speed square to your pitch on the common scale and draw the plumb line near the top end.
    3. Measure the line length. Along the measuring line, from the plumb cut down. The ridge is already allowed for: the run on this page is shortened by half the ridge thickness.
    4. Draw the birdsmouth. Mark a second plumb line there for the heel, then square off it for the seat. The seat should be as wide as the wall plate.
    5. Mark the tail. Measure the tail length past the heel and mark the fascia plumb cut.
    6. Cut one, test it, then copy it. Set the pattern rafter in place at both ends before you cut the rest.

    Height above plate and the ridge height

    Height above plate (HAP) is the vertical distance from the top of the wall plate, at the outside face of the wall, up to the top edge of the rafter. It's the length of the plumb cut minus the heel height of the birdsmouth. For the 2×8 example that's 8 1/8″ − 1 3/4″ = 6 3/8″.

    Add the HAP to the rise and you have the top of the rafter at the ridge, measured from the top of the wall plate. That's the number to set your ridge board to: 71 5/8″ + 6 3/8″ = 78″ for the garage. The IRC asks for a ridge board at least as deep as the plumb cut, so a 2×8 rafter at 6/12 needs a 2×10 ridge.

    What this page doesn't do

    It doesn't tell you whether a 2×8 can span 12 feet under your snow load. That's a structural question answered by span tables for your species and grade, and by your building department. It also handles common rafters only, not hips, valleys or jacks. If you don't know the pitch yet, start by measuring your roof pitch.

    Questions people ask

    How do you calculate rafter length?

    Find the run (half the building span, minus half the ridge thickness), then multiply it by the rafter multiplier for your pitch: √(1 + (pitch ÷ 12)²). For a 24′ span at 6/12 with a 1 1/2″ ridge, the run is 143 1/4″ and the multiplier is 1.118, so the line length is 160 3/16″. Add the overhang, multiplied the same way, for the tail.

    Is the line length the same as the board length I need?

    No. Line length is measured along the measuring line, from the heel of the birdsmouth to the ridge. The board also has to cover the tail and the extra wood above the measuring line at each plumb cut. The calculator gives you the full board length and the shortest even stock length that covers it.

    What angle do I cut the top of a rafter?

    The plumb cut at the ridge is the roof angle off square: 26.6° for a 6/12 roof, 33.7° for 8/12, 45° for 12/12. On a speed square, pivot to the pitch number on the common scale and mark along the edge. The seat cut of the birdsmouth is square to the plumb cut.

    How deep can a birdsmouth be?

    A common rule of thumb is no deeper than one third of the rafter depth, measured square to the rafter edge. The calculator checks that. Engineered designs and some local codes set their own limits, and those win. Full bearing on the plate matters more than a deep notch.

    What size rafters do I need?

    That depends on species, grade, spacing, snow load and dead load, and it has to come from span tables, such as the rafter tables in the IRC (section R802) or the American Wood Council span tables. This calculator lays out the rafter you've chosen; it doesn't size it.

    Can I use this rafter length calculator for a shed roof?

    Yes, with one change. A shed roof has no ridge, so set the ridge thickness to 0 and enter twice the horizontal distance the rafter covers as the span. The calculator halves the span to get the run, so a shed that's 10′ deep wall to wall goes in as a 20′ span.

    Put this calculator on your site

    Lumber yards, sawmills and woodworking blogs are welcome to embed it for free. Paste the code into any page; it loads the calculator only, without our header or articles.