A rafter length calculator for a gable roof

Span, pitch and overhang give the length of a common rafter, its plumb cut, its stock length and how many a roof takes. Then draw the roof in the free 2D/3D editor. No sign-up.

No sign-up needed to try

It works in your phone’s browser, nothing to install.

Lay out a common rafter

Type the span and the building’s length, pick the pitch, the overhang and the spacing. The answer is the rafter, its cut and how many.

Span, outside of the walls
'"
Pitch
Overhang, measured level
Building length
'"
Spacing
Rafter length, with the overhang
14 ft 5-9/16 in
Wall line to ridge
13 ft 4-3/16 in
Overhang along the rafter
1 ft 1-7/16 in
Rise of the roof
5 ft 11-5/8 in
Plumb cut
26.6 °
Rafters31 a side
62 EA

Stock length: a 16 ft stick, the shortest of the lengths framing lumber is sold in (8, 10, 12, 14, 16 ft) that holds the rafter.

Pure geometry: run times the slope factor, half the 1-1/2 in. ridge board off each run. The span is the outside of the walls; draw the roof in the editor and its rafters are counted for you.

A house being built in the DrawToBid editor: the foundation

Foundation

How the length is worked out

A common rafter is the long side of a right triangle: its run is half the span less half the ridge board, its rise is the run times the pitch over 12. The form takes the 1-1/2 in. ridge board off, multiplies the run by the slope factor and adds the overhang along the slope. Pure geometry, no catalog norm.

Stock length and count

The stock length is the shortest stick framing lumber is sold in that holds the whole rafter, read from the same lengths the estimate counts lumber in: 8 to 16 ft in 2 ft steps. The count is one rafter at each end and one at every 16 or 24 in. between, on both sides.

A rafter by hand

A 24 ft span at 6/12 with a 12 in. overhang: the run is 144 less 3/4, so 143-1/4 in. The slope factor at 6/12 is 1.118, so the rafter is 160-3/16 in. to the wall line, 13 ft 4-3/16 in, and 13-7/16 in. more for the overhang: 14 ft 5-9/16 in. in all, cut from a 16 ft stick.

The plumb cut at the ridge and the seat cut at the wall are both set at the roof’s angle, 26.6° at 6/12.

Lay the first rafter out on a sawhorse, cut it, test it on both walls, and use it as the pattern for the rest.

Framed roofs on gallery houses

Open a gallery house as your own copy where its author allows it, press Calculate and find its rafters under Roof.

Nothing to download first

The editor runs in the page. Whatever you draw is kept in this browser and reappears after a reload; it is not backed up on any other machine, one drawing fits, and you can download it as a file with Export JSON in the File menu.

Rafters by hand are free

Rafters, ridge and every member you place by hand are counted free. A builder’s subscription adds automatic layout of the roof and the networks, and one press that places a prepared set of parts. See pricing.

Questions about rafter length

Size my rafters

No sign-up needed to try