QuickSiteCalc

Home › Rafter Calculator

Rafter Calculator

Common rafter length, count and total lumber for a gable roof — from run, pitch, overhang and spacing.

Type your numbers — the result updates live.

Price is an editable estimate — change it to your supplier's price. Cost = total quantity (with waste) × your price. Estimate only, not a quote.

Formula

Slope factor = √(1 + (pitch ÷ 12)²)  ·  Rafter length = (run + overhang) × slope factor  ·  Rafters = (ceil(building length in inches ÷ spacing) + 1) × 2 sides

Solved example

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.

FAQs

Does this deduct the ridge board?

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.

Is the overhang included?

Yes — the overhang you enter is added along the slope of the roof, the way the rafter actually runs.

What spacing is normal?

16 in on centre is common (24 in for some engineered roofs) — local code and snow load decide, so check before building.