MachineCalcs

Rafter Calculator

Calculate common rafter length, roof rise, pitch angle, overhang tail length and rafter count for a symmetric gable roof. Metric and imperial inputs, with formulas shown.

Calculator

Outside-wall to outside-wall building width for a centered gable roof.

m

Rise per 12 units of horizontal run: 6 means 6:12.

rise/12

Horizontal projection beyond the outside wall, not sloped tail length.

mm

Subtracts half the ridge thickness from each common-rafter run. Use 0 if you do not want a ridge deduction.

mm

Length along the ridge, used only for rafter count and stock length.

m

On-center spacing along the ridge. Count assumes a rafter pair at each end.

mm

Results

Default result
Edit inputs
Rafter cut length(L_cut)
4.4088m
Pass

Common rafter length plus the sloped overhang tail.

Common length plus sloped overhang tail.

Also computed

Common rafter length(L_r)4.068m

Run to ridge multiplied by the slope factor.

Wall plate to ridge, before overhang.

Run to ridge(run)3.6386m

Half the building span minus half the ridge board thickness.

Roof rise(rise)1.8193m

Run to ridge multiplied by pitch / 12.

Sloped tail length(L_tail)340.78mm

Horizontal overhang multiplied by the slope factor.

Roof angle(theta)Pass26.57°

theta = atan(pitch / 12).

Angle above level from the entered pitch.

Plumb line to rafter(90-theta)63.43°

Angle between a plumb cut line and the rafter edge.

Method notes 3 notes
  • Gable roof geometry only: common rafters, centered ridge, symmetric pitch and straight overhang.
  • Rafter count assumes one pair at each end, then one additional pair at each on-center spacing interval along the ridge.
  • This does not check structural span, member size, birdsmouth limits, uplift, snow/wind load, bracing, ties, bearing, code or local inspection requirements.

Common rafter geometry starts with the horizontal run to the ridge: run = span/2 - ridge thickness/2 for a centered gable roof. From pitch p in rise per 12 run, the slope factor is sqrt(12^2 + p^2)/12, so rafter cut length = (run + overhang) * slope factor. This calculator also returns roof rise, pitch angle, plumb/seat layout line angles, rafter pairs and total stock length.

Continue workflow

All Structural

How to use this calculator

  1. Enter the span. Use the outside-wall to outside-wall building width for a centered gable roof.
  2. Set the roof pitch. Enter rise per 12 units of horizontal run, such as 6 for a 6/12 roof.
  3. Add overhang and ridge thickness. Enter horizontal eave overhang and the ridge board thickness, or use 0 for no ridge deduction.
  4. Enter length and spacing. Use building length along the ridge and the on-center rafter spacing for count and stock length.
  5. Read the rafter layout. Review run, rise, common length, tail length, pitch angle, rafter count and total stock length.

How it works

This rafter calculator is a roof-layout tool for a symmetric gable roof. It starts with the horizontal run from the outside wall to the side of the ridge:

run = span / 2 - ridge thickness / 2

Roof pitch is entered as rise per 12 units of run. The pitch angle and slope factor are:

theta = atan(pitch / 12)

slope factor = sqrt(12^2 + pitch^2) / 12

The common rafter length is the run multiplied by that slope factor. The eave tail uses the same slope factor from the horizontal overhang.

common rafter length = run x slope factor

cut length = (run + overhang) x slope factor

The count is a material takeoff estimate for common rafters: one pair at each end of the gable roof, plus each on-center spacing interval along the ridge.

Worked example

Verified against the live calculator

For a 24 ft span, 6/12 pitch, 12 in horizontal overhang, 1.5 in ridge board, 32 ft building length and 16 in spacing, the run to the ridge is 11.94 ft. The slope factor is 1.118, so the common rafter length is about 13.35 ft. The overhang tail adds about 13.4 in, making the cut length about 14.46 ft. The roof needs 25 rafter pairs, or 50 common rafters, before waste and layout changes.

Frequently asked questions

How do you calculate common rafter length?

Find the horizontal run first, then multiply by the slope factor. For a centered ridge, run = span / 2 - ridge thickness / 2. Slope factor = sqrt(12^2 + pitch^2) / 12. Common rafter length = run * slope factor.

Does this subtract the ridge board?

Yes. The calculator subtracts half the entered ridge board thickness from each side. Set ridge thickness to 0 if you want a pure half-span run with no ridge deduction.

Is this a rafter span calculator?

No. This is a layout calculator for common rafter geometry and material count. It does not choose 2x size, species, grade, spacing, snow load, wind load or code span limits.

What roof angle is a 6/12 pitch?

A 6/12 pitch has angle atan(6/12), which is about 26.6 degrees above level.

Does rafter count include both roof sides?

Yes. Rafter pairs are counted along the ridge, then multiplied by two for individual common rafters on both sides of a gable roof.

Does this include hip, valley or jack rafters?

No. It covers straight common rafters for a symmetric gable roof. Hip, valley, jack and dormer rafters need additional plan geometry.

Method & assumptions

  • Assumes a symmetric gable roof with a centered ridge and common rafters only.
  • Horizontal overhang is converted to sloped tail length with the same roof pitch.
  • Angles are layout line angles: roof angle above level, plumb line angle to the rafter edge, and level seat line angle to the rafter edge.
  • Rafter count assumes full-length common rafters at regular on-center spacing; openings, hips, valleys, rake details and blocking are not included.
  • This is not a structural span table. Use approved rafter span tables or engineered design for species, grade, size, snow load, wind uplift, bracing, collar ties, bearing and code requirements.
  • For material volume, use the board feet calculator. For beam-style checks, use the beam deflection calculator or LVL beam calculator.
Embed this calculator on your site free

Paste this where you want the calculator to appear. It stays in sync — same formulas, metric & imperial, light/dark — and a small credit link helps people find more tools.

Open widget

Live preview