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.
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.
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.

Foundation
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.
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 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.
Open a gallery house as your own copy where its author allows it, press Calculate and find its rafters under Roof.
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, 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.
For one slope, type twice the run as the span and add no ridge board; the rafter then runs wall to wall.
Not here. Draw the roof in the editor and the ridge, the rafters and the sheathing are each counted.
Outside: the rafter sits on the wall plate, so the run starts at the outside of the wall.
Each rafter stops at the face of the ridge, half its thickness from the center line.
The form takes it level, the way a drawing shows it, and turns it into its length along the rafter.
The form says so when the rafter is longer than the 16 ft the catalog counts lumber in: ask your supplier for a longer stock length, or use an engineered rafter.
No sign-up needed to try