Skip to content
Saved
Menu

Common rafter length, pitch, and overhang

Two roofs, worked from the span and the pitch to the board you pick up at the yard.

Start with the run, not the board

The length of a common rafter is the horizontal run times a slope factor. Everything else on the page is a way of finding that run and that factor without mixing a level measurement with a sloping one. Get the run wrong and the pitch can still be right. The board will still be the wrong length.

On a gable the run is half the span minus half the ridge thickness. On a shed the run is the whole span minus the whole ridge. A shed with no ridge board uses a ridge of zero. The rafter length calculator switches that rule when you change the roof type. The roof pitch calculator is only the conversion among 6/12, degrees, and percent. It does not know the span.

A 24 foot gable at 6/12

The building is 24 feet from outside face to outside face. The ridge is a 2x, 1.5 inches thick. Half the span is 144 inches, and half the ridge is 0.75 inch, so the run is 143.25 inches. The pitch is 6/12: 26.57 degrees, a 50 percent slope, and a slope factor of 1.118. That factor is the square root of 144 plus 36, divided by 12.

The common rafter, from the ridge plumb line to the outside of the wall, is 143.25 times 1.118, which is 160.16 inches. A 12 inch level overhang becomes 13.42 inches along the slope. The line length is 173.57 inches. The rise of that rafter, run times pitch over 12, is 71.63 inches.

The wall plate is a 2x4, so the seat stays at 3.5 inches until you edit it. The heel is 3.5 times 6/12, which is 1.75 inches. The notch depth is 1.57 inches. A 2x8 is 7.25 inches deep, and a quarter of that depth is 1.81 inches. The notch is shallower than the quarter, so the R802.7.1 row passes. The plumb-cut angle printed for this slope is 63.43 degrees, 90 degrees minus 26.57.

The board has to include the plumb cuts, not only the line between them. The cut length adds the stock width times the tangent of the angle, plus 2 inches. Here that is 179.20 inches. The shortest stock length that covers it is 16 feet. Order 16 foot 2x8s for this rafter. A 14 foot board is short by about a foot once the cuts are marked.

The same span at 4/12

Leave the building, the ridge, and the overhang alone and change only the pitch to 4/12. The slope factor drops to 1.054, and the angle is 18.43 degrees. The common rafter shortens to about 151.00 inches. The difference from the 6/12 rafter is a little more than 9 inches before the overhang is added. The tail shortens as well, because the same 12 inch level overhang is multiplied by the smaller factor.

That comparison is why the pitch and the length belong on two pages that share one number. Convert the pitch, read the factor, then calculate the length at that pitch. A length you wrote down last week is for last week’s pitch.

A 12 foot shed at 4/12

A shed is not half of a gable. The span is 12 feet, 144 inches, from the outside of the tall wall to the outside of the low wall. There is no ridge board, so the ridge entry is zero and the run stays 144 inches. The pitch is 4/12. The common rafter is 151.79 inches. A 16 inch level overhang, which is a different overhang from the gable example, adds 16.87 inches of sloping tail. The line length is 168.65 inches. The rise is 48 inches, which is the 12 foot run times 4/12.

Use a 2x6, 5.5 inches deep, on a 2x4 plate. The seat is 3.5 inches. The heel is 1.17 inches. The notch is 1.11 inches. A quarter of 5.5 inches is 1.375 inches, so this notch still passes the depth check. The cut length, with the 2x6 width in the plumb-cut allowance, is 172.49 inches. The board to buy is still 16 feet. The line length would have fit in 14 feet. The allowance for the cuts pushes it over.

If you had left the ridge at 1.5 inches out of habit, the run would shrink by 1.5 inches and the rafter would come up short of the low wall. Shed roofs are where that default does the most harm.

What to mark, and what to look up elsewhere

Mark the ridge plumb, the seat, and the tail plumb from the numbers above, on a pattern rafter, and trace the rest from the pattern. Check the throat of wood above the seat against the rafter you are actually using. The calculator draws the birdsmouth. It does not print a span rating.

Species, grade, snow, and on-center spacing decide the size. This guide does not include a span table, because a table for the wrong species is worse than no table. Use the table in the code book your inspector uses, or the table published for that species. Then return here for the length of the board that table allowed. Price the stock on the board foot calculator when the yard sells by the board foot. A 16 foot 2x8 and a 16 foot 2x6 are not the same board feet.

The roof calculators page walks the 24 foot gable as an order, with the same 160.16 inch rafter and the same 16 foot buy. Use this guide when you want the arithmetic, including the shed, written out in one place.

Mistakes that show up at the ridge

Measuring the span to the siding adds the thickness of the siding to the run, twice on a gable if both walls are sided, and the ridge plumb no longer meets the ridge. Measuring the overhang along the fascia instead of level does the same thing at the tail. Mixing a degree from a phone inclinometer with a 6/12 you also typed will fight itself: edit one source and let the page fill the others. Forgetting the ridge on a gable, or leaving a ridge on a shed, moves the run by a fraction of an inch per side that becomes a visible gap once the rafters are up. Buying the line length instead of the cut length is the error that survives all of those, because the number looks precise and is still short.

This guide explains the measurement the calculators use. It is not a permit review.

FAQ

Is the span the width of the room?

No. On these pages the span is the level distance from the outside face of one wall’s framing to the outside face of the other. Measuring inside the drywall, or out to the face of the siding, moves the run and every rafter with it. Keep the tape level. Record feet and inches, then enter that span on the rafter calculator before you change the pitch.

Why is the overhang longer on the slope than on the plan?

The overhang you measure for the calculator is horizontal, from the outside of the wall to where the tail’s plumb cut lands. The wood follows the roof slope, so it is the level overhang times the slope factor. A 12 inch level overhang at 6/12 is 13.42 inches of rafter. Type the level number. The page applies the factor.

Does a passing birdsmouth mean the rafter is strong enough?

No. The check compares the notch depth with one quarter of the rafter’s actual depth, which is the 2021 IRC R802.7.1 limit the calculator prints. It does not choose the species, the grade, the spacing, or the snow load. A shallow notch can still be the wrong board for the span. Use the span table for the lumber you are buying, then come back for the length.

What if the cut length is past 20 feet?

Stock lengths on the calculator stop at 20 feet. When the cut length is longer, the buy line is empty. That is not a suggestion to ignore the extra length. It means the board is a special order or a splice, and the splice has to land where the span table and the framing plan allow it. Do not order a 20 foot board and hope the tail can be short.

By Lumber Calc Editorial Team · Checked against the 2021 IRC & AWC DCA 6 · 2024 sections not yet verified · Last updated Nov 6, 2026