Home › Rafter Calculator
Common rafter length, count and total lumber for a gable roof — from run, pitch, overhang and spacing.
Price is an editable estimate — change it to your supplier's price. Cost = total quantity (with waste) × your price. Estimate only, not a quote.
Slope factor = √(1 + (pitch ÷ 12)²) · Rafter length = (run + overhang) × slope factor · Rafters = (ceil(building length in inches ÷ spacing) + 1) × 2 sides
12 ft run at 6/12 pitch with a 12 in overhang: slope factor 1.118, so each rafter = 13 × 1.118 = 14.53 ft. A 24 ft building at 16 in spacing needs 19 rafters per side — 38 total, about 552 linear ft.
No — the length runs to the ridge centreline. For a ridge board, deduct half its thickness from each rafter, or simply order the length shown and cut on site.
Yes — the overhang you enter is added along the slope of the roof, the way the rafter actually runs.
16 in on centre is common (24 in for some engineered roofs) — local code and snow load decide, so check before building.