Calculated result
Rafter pairs to plan
LUM-RAFTER-001Rafter length = √((width ÷ 2)² + ((width ÷ 2) × rise ÷ 12)²)
Individual rafters
Rafter length before cuts
Planning linear footage
Lumber & framing calculator
Preliminary paired-rafter count and rafter length from roof plan dimensions, pitch and spacing.
By Feroz Sheikh · Formula LUM-RAFTER-001 v1.0.0 · Tested formula
LUM-RAFTER-001v1.0.0Enter your measurements. Switching units converts the same project, including coverage and unit rates. Package yields keep the unit printed beside each field.

Calculated result
Rafter pairs to plan
LUM-RAFTER-001Rafter length = √((width ÷ 2)² + ((width ÷ 2) × rise ÷ 12)²)
Individual rafters
Rafter length before cuts
Planning linear footage
Planning estimate, not engineering advice. Confirm site measurements and product specifications. Calculation limits.
This calculator uses roof width, rise-per-12 pitch and stated spacing to produce a preliminary paired-rafter count and sloped rafter length.
Enter supplier prices and any labour, equipment or delivery costs. Pick a currency — badges, inputs, and totals follow.
Costs use the stick or sheet rate you type. Construclytic does not fetch lumber-yard prices. Hangers, hardware and labour stay companion lines.
How this calculator works
This calculator uses roof width, rise-per-12 pitch and stated spacing to produce a preliminary paired-rafter count and sloped rafter length.
LUM-RAFTER-001 pairs rafters from plan width, pitch and spacing, then a rafter length. It does not cut birds-mouths or size a ridge. Hips and valleys are extra members.
This separate example uses the calculator's starting values in imperial units. It stays unchanged when you edit the tool above. Example rates, yields and dimensions are assumptions, not recommendations for your project.
| Input | Example value |
|---|---|
| Building length | 30 ft |
| Building width | 20 ft |
| Pitch rise | 6 rise per 12 |
| Rafter spacing | 24 in |
| Waste factor | 10 % |
Example result: Rafter pairs to plan — 18 pairs.
Rafter length = √((width ÷ 2)² + ((width ÷ 2) × rise ÷ 12)²)
Use the labelled units above when reproducing this example. To work in metric, switch the calculator to Metric; applicable measurements are converted, while product-specific units remain labelled.
Need the broader workflow? Read the lumber & framing planning guide.
Questions
No. It is a geometric quantity estimate only and cannot determine structural rafter sizing or connections.
A simple symmetrical roof uses two rafters per spacing location; complex roofs must be taken off by their actual geometry.
This rafter calculator publishes formula LUM-RAFTER-001, version 1.0.0. The ID stays on the result and on the estimate line.