Lumber & framing calculator

Rafter calculator

Default example (30 ft building length, 20 ft building width, 6 rise per 12 pitch rise, 24 in rafter spacing, 10% waste factor): Rafter pairs to plan is 18 pairs. In metric, rafter length before cuts is 3.41 m.

Formula. Rafter length = √((width ÷ 2)² + ((width ÷ 2) × rise ÷ 12)²)

Preliminary paired-rafter count and rafter length from roof plan dimensions, pitch and spacing.

By Feroz Sheikh · Our math isn't hidden: see the formula, waste allowance and rounding rule. Formula LUM-RAFTER-001 v1.0.0

Math shown

See the formula, waste and rounding.

Formula IDLUM-RAFTER-001v1.0.0

Project inputs

Enter your measurements. Switching units converts the same project, including coverage and unit rates. Package yields keep the unit printed beside each field.

Refine measurements and rates at any time. Your current values are included in the material-list PDF.

Calculated result

18pairs

Rafter pairs to plan

Formula, waste and rounding are shownLUM-RAFTER-001

Rafter length = √((width ÷ 2)² + ((width ÷ 2) × rise ÷ 12)²)

36 rafters

Individual rafters

11.18 ft

Rafter length before cuts

402.49 ft

Planning linear footage

Planning estimate, not engineering advice. Confirm site measurements and product specifications. Calculation limits.

Rafter calculator: measurement diagram. Distinguish the horizontal footprint from the sloping roof surface. Pitch changes the surface area.
Distinguish the horizontal footprint from the sloping roof surface. Pitch changes the surface area. View image

This calculator uses roof width, rise-per-12 pitch and stated spacing to produce a preliminary paired-rafter count and sloped rafter length.

  1. Measure building length and total horizontal building width.
  2. Enter roof rise per 12 and spacing specified by the project.
  3. Verify rafter size, birdsmouth, overhang, ridge detail, spans and connection requirements independently.

Add your project costs

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.

View estimate Quote / invoice Add another item

How this calculator works

A transparent rafter calculator takeoff.

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.

Worked example. Example: a 30 ft building length at 24 in spacing has 16 rafter pairs. A 20 ft building width at 6:12 creates a 11.18 ft run per rafter before waste allowance.
See the example inputs and calculated result

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.

Rafter calculator: example inputs
InputExample value
Building length30 ft
Building width20 ft
Pitch rise6 rise per 12
Rafter spacing24 in
Waste factor10 %

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.

  1. 1. Measure building length and total horizontal building width.
  2. 2. Enter roof rise per 12 and spacing specified by the project.
  3. 3. Verify rafter size, birdsmouth, overhang, ridge detail, spans and connection requirements independently.

Field notes that change the number

  • Pitch is rise per 12. An 8:12 pair is longer than a 4:12 pair on the same span.
  • Spacing is on-center. 16 in and 24 in do not share a count.
  • Ridge, collar ties and hangers stay off this line.

Common mistakes

  • Using plan half-span as rafter length on a steep pitch.
  • Ignoring gable overhangs.
  • Treating this as a truss design.

Need the broader workflow? Read the lumber & framing planning guide.

Questions

Questions about rafter calculator

Does this design a rafter?

No. It is a geometric quantity estimate only and cannot determine structural rafter sizing or connections.

Why show rafter pairs?

A simple symmetrical roof uses two rafters per spacing location; complex roofs must be taken off by their actual geometry.

What is the formula ID?

This rafter calculator publishes formula LUM-RAFTER-001, version 1.0.0. The ID stays on the result and on the estimate line.