Home / Rafter length

Rafter length calculator

Enter the span of the building, the pitch, the overhang and the thickness of the ridge board. The calculator gives the length of a common rafter along its top edge, in feet and inches to the nearest eighth, and the shortest standard board it fits in.

Rafter length
Outside of wall to outside of wall.
1.5 in for a board 2 in thick nominal. Type 0 without a ridge board.

Each common rafter

14 ft 5 5/8 in

Length along the top edge, before the plumb and seat cuts.

Run to the ridge
11 ft 11 1/4 in
Rafter to the wall
13 ft 4 1/8 in
Tail for the overhang
1 ft 1 3/8 in
Rise
5 ft 11 5/8 in
Slope factor
1.1180
In decimal feet
14.46 ft
Shortest stock length
16 ft board

Nothing you type leaves your browser. The numbers are kept on this device so they are still there next time.

The geometry of a common rafter

A common rafter runs from the wall plate up to the ridge at a right angle to both. Its run is half the span, less half the ridge board, because the rafter stops against the face of the ridge. The length is the run multiplied by the slope factor of the pitch, the same factor as on the pitch calculator. The overhang is added the same way: its flat width times the slope factor.

run = 24 ft × 12 / 2 − 1.5 / 2 = 11 ft 11 1/4 in
11 ft 11 1/4 in × 1.1180 = 13 ft 4 1/8 in
12 in × 1.1180 = 1 ft 1 3/8 in
13 ft 4 1/8 in + 1 ft 1 3/8 in = 14 ft 5 5/8 in

The result is measured along the top edge, from the plumb cut at the ridge to the end of the tail, before the seat cut (the bird's mouth) and the tail cut are laid out. Framers then mark those cuts with a framing square or a speed square set to the pitch.

Rafter length by span and pitch

Total length along the top edge, with a 12 inch overhang and a ridge board 1 1/2 inches thick:

Span4 in 126 in 128 in 1212 in 12
12 ft7 ft 3 3/4 in7 ft 9 1/8 in8 ft 4 in9 ft 9 3/4 in
16 ft9 ft 5 in9 ft 11 7/8 in10 ft 8 7/8 in12 ft 7 5/8 in
20 ft11 ft 6 3/8 in12 ft 2 3/4 in13 ft 1 3/4 in15 ft 5 5/8 in
24 ft13 ft 7 5/8 in14 ft 5 5/8 in15 ft 6 5/8 in18 ft 3 1/2 in
28 ft15 ft 9 in16 ft 8 3/8 in17 ft 11 3/8 in21 ft 1 1/2 in
32 ft17 ft 10 1/4 in18 ft 11 1/4 in20 ft 4 1/4 in23 ft 11 1/2 in

Choosing the board length

Lumber is stocked in lengths that step by 2 feet. The calculator names the shortest length from 8 to 24 feet that holds the rafter, before any allowance for a damaged end. For longer rafters, ask a lumber yard about longer stock or engineered lumber.

Not a structural size

This page gives a length only. Whether a rafter should be a 2 by 6, a 2 by 8 or something else, how far apart rafters go and how they are tied together depend on the span, the snow and wind loads of the area, the wood species and grade, and the span tables of the building code. Those questions belong to the code that applies where you live and to a designer or engineer. Hip, valley and jack rafters follow other rules and are not covered here.

Questions

Is the span measured to the outside of the walls?

Yes, from the outside of one wall plate to the outside of the other, the way the rafters bear on them.

What if there is no ridge board?

Type 0. The rafters then meet at the center line, as with some ridge beams or trusses.

Why is my rafter longer than the table?

The overhang adds length. Type 0 for the overhang to see the rafter to the wall only.

Does it work for a shed roof?

Yes: type twice the horizontal distance the rafter covers as the span and 0 for the ridge.

Other calculators

RoofingRoof area from the footprint and pitch, squares, bundles and underlayment.40 × 30 ft at 6 in 12 → 45 bundlesRoof pitchPitch in 12, degrees and percent, both ways, and the slope factor.6 in 12 → 26.57°SidingWall and gable area less openings, squares and lap pieces.140 ft of wall, 9 ft high → 14.69 squaresPaintGallons for walls and ceiling, less doors and windows.12 × 14 ft room, 2 coats → 2 gallons + 1 quartDrywallSheets, screws, tape and joint compound for a room.12 × 14 ft room and ceiling → 21 sheetsWallpaperStrips and rolls, with the pattern repeat.12 × 14 ft room, 8 ft walls → 10 rollsBaseboard & trimLinear feet and pieces of baseboard or crown.12 × 14 ft room → 4 pieces of 16 ftFlooringSquare feet with waste and the boxes to buy.12 × 14 ft room → 10 boxesTileTiles with the joint, grout volume and thinset bags.12 × 24 in tile, 168 sq ft → 91 tilesCarpetSquare yards off the roll, strips and seams.12 × 14 ft room → 19.33 sq ydStairsRisers, treads and stringer, checked against the IRC limits.108 in of rise → 14 risersBoard feetBoard feet and cubic feet of lumber.Ten 2 × 6 × 8 → 80.00 board feet

Sources

Figures checked on 2026-12-03. Page updated 2026-12-03.