Kairox DIY Calc

Building and framing

Rafter Length Calculator

Find the geometric slope length of a common rafter line from horizontal run and roof pitch. A separate horizontal overhang extends that line; the result still needs construction-specific cut and bearing adjustments.

Enter your measurements

ft
in

Example estimate

Wall-line slope length (ft)
11.1803
Overhang slope length (ft)
1.118
Combined geometric slope (ft, before cut adjustments)
12.2984

Estimates only. Whole purchase counts round up; displayed measurements round to four decimal places. The allowance is an editable planning assumption.

How the calculation works

Slope multiplier = √(1 + (pitch/12)²). Wall-line slope = run × multiplier. Combined slope(ft) = (run(ft) + horizontal overhang(in)/12) × multiplier.

Define the run on a drawing

The run field extends horizontally from the wall reference to the ridge centerline. It is not the full building width and it is not a tape measurement along the rafter. On a symmetrical roof, identifying that line may begin with half the appropriate horizontal span, but wall positions and ridge details must be understood before using any dimension as a cutting reference.

Use rise per twelve for pitch

Enter the roof’s rise for twelve horizontal units. A six-in-twelve pitch has a slope multiplier derived from the square root of one plus the square of six divided by twelve. The calculator applies the same right-triangle relationship for any nonnegative pitch input. It accepts a zero pitch as a mathematical case, not as an endorsement of a particular roof assembly.

Keep overhang horizontal in this form

The overhang field describes the horizontal distance beyond the wall reference. It is converted into slope length with the same multiplier as the main run. Do not enter a sloping tail measurement in that field, because doing so would apply the slope adjustment twice. The output separates wall-line slope from overhang slope so you can see how the total was assembled.

Understand why the result is not a cut list

The combined line is geometric. It does not deduct for ridge board thickness, define a plumb-cut measuring point, lay out a birdsmouth, or include a fascia detail. Those decisions depend on the actual framing plan and references. A stock board needs to accommodate the finished layout and cuts; rounding this line to a convenient purchase length is a separate decision that requires those details.

Limit the tool to the geometry it models

Hip, valley, jack, and irregular rafters have different geometry and are outside this tool. It also does not select lumber size, grade, species, spacing, connectors, or an allowable span. Follow approved plans and qualified design advice for those choices. Keep a labeled roof section with the estimate so a supplier or builder can check what the entered run and overhang actually represent.

Worked example

The default common-rafter line uses a horizontal run, a six-per-twelve pitch, and an additional horizontal overhang. Its two sloped components are calculated independently and added. The displayed combined result is explicitly labeled as a geometric length before any construction-specific adjustments.

Example inputs — Horizontal run to ridge centerline: 10 ft; Roof rise per 12 units of horizontal run: 6; Horizontal overhang: 12 in.

Calculated example

Wall-line slope length (ft)
11.1803
Overhang slope length (ft)
1.118
Combined geometric slope (ft, before cut adjustments)
12.2984

Frequently asked questions

Can I enter the full house width as run?

Only if that width actually describes the horizontal segment you intend to model. A typical common-rafter run is not the full span; use the labeled wall-to-ridge line from the plan.

Does this account for ridge thickness?

No. The reference line reaches the ridge centerline. Ridge-related adjustments and the correct measuring point must be resolved in the framing layout before making cuts.

Can I calculate a hip rafter here?

No. This is a common-rafter slope calculation. A hip or valley has a different plan direction and needs a model that represents its own horizontal projection.

Sources and scope