Skip to content
Construction & Home Improvement

Rafter Length Calculator

A Rafter Length Calculator estimates the straight sloping distance between two points on a common-rafter line. With a known horizontal run and matching vertical rise, that distance follows a right-triangle calculation.

i Before using the result, establish where the measurement starts and stops. A length to the ridge centreline differs from a length to the ridge face, and a measurement ending at the wall does not include the eave tail.

Run and rise

{{ c.label }}
{{ c.hint }}
{{ c.suf }}
{{ c.hint }}
Geometric slope length
{{ bigValue }} {{ bigUnit }}
{{ bigSub }}
{{ st.label }} {{ st.value }}
Your calculation {{ wl }}

Slope length between the two endpoints you defined. No ridge, tail or cut-layout allowance is included.

Rafter triangle

Side view, drawn to scale. Run and rise share the same endpoints.

{{ runText }} {{ riseText }} {{ angleLabel }}
Slope length {{ lenLabel }} Calculation endpoints

How rise changes the length

Same {{ runLabel }} run. Select a row to use that pitch.

PitchAngleRiseLength

The comparison does not establish a suitable roof pitch for a building or covering.

01 — Definitions

Define the length you want first

“The rafter length” can describe several measurements.

MeasurementWhat it represents
{{ ir.a }}{{ ir.b }}

The theoretical length is a length along the slope between geometric endpoints. Those are not inherently different quantities. The difference arises when endpoints, reference edges or framing details change.

Johnson Level’s framing guide identifies the wall, ridge and tail references used in common-rafter layout. Johnson Level

02 — Method

How to prepare your measurements

  1. {{ sp.n }}

    {{ sp.title }}

    {{ sp.text }}

03 — Formula

Rafter length formula

For a straight common-rafter line:

L=√R2 + H2
Where:
{{ v.sym }}
= {{ v.text }}
The formula applies when run and rise form the perpendicular sides of one right triangle. It does not determine member strength or calculate every roof-framing arrangement.
If both inputs are in millimetres, the output is in millimetres. If both are in feet, the output is in feet.
04 — Worked example

Step-by-step example in millimetres

Assume two defined points on a common-rafter line have:

{{ ea.a }}{{ ea.b }}
Step 1: Square each dimension 3,000² = 9,000,0002,250² = 5,062,500
Step 2: Add the squares 9,000,000 + 5,062,500 = 14,062,500
Step 3: Take the square root L = √14,062,500 = 3,750 mm
QuantityResult
{{ er.a }}{{ er.b }}

The example is a 3:4:5 right triangle scaled to these dimensions. It establishes the distance between the stated points, not an approved cutting specification.

05 — Slope

How run, rise, pitch and angle relate

Run is horizontal. Rise is vertical. Their ratio describes slope:

Slope ratio=HR In the example2,250 ÷ 3,000 = 0.75

That is a 75% slope, equivalent to a rise of 9 units per 12 units of run: 9:12.

The angle from horizontal is:

θ = arctan(H/R)θ = arctan(0.75) ≈ 36.87°

These are three representations of the same slope:

RepresentationExample value
{{ rp.a }}{{ rp.b }}
Read the notation

Do not enter 9:12 as 9°, or interpret a 75% slope as 75°.

06 — Pitch and length

Does a steeper roof need a longer rafter?

Yes, when the horizontal run and measurement references remain unchanged.

For a 3,000 mm run:

RiseCalculated slope length
{{ pt.a }}{{ pt.b }}

Each value follows the same right-triangle formula. The comparison does not establish a suitable roof pitch for a building or covering.

07 — Span vs run

Building span is not one rafter’s run

A symmetrical gable roof commonly places its ridge centreline halfway across the corresponding building span.

However, the rafter may meet a ridge-board face rather than that centreline. Johnson Level’s guide accounts for ridge-board thickness when establishing common-rafter run. Johnson Level

Before calculating, distinguish:

{{ sl.n }}{{ sl.t }}

If your run already includes the relevant deduction, do not apply it again. Unequal slopes or an offset ridge also mean that half-span may not describe the required run.

08 — Overhang and cut length

Overhang and finished cut length

A horizontal overhang and a sloping tail length are different measurements.

Sloping tailIf the tail continues along the same roof slope, its sloping length exceeds its horizontal projection. Adding the horizontal projection directly to a slope length therefore understates the extended line.
Cut layoutThe physical cut layout can also depend on the rafter’s reference edge, plumb cuts, birdsmouth, bearing and fascia details. These details must come from the actual framing design.
09 — Checks

Check these points before using the result

CheckWhy it matters
✓{{ mk.m }} {{ mk.b }}

Retain calculation precision until the final display. The appropriate construction tolerance must come from the project, not from the number of decimals shown by a calculator.

10 — Structural

Length does not determine structural suitability

Knowing how long a rafter is does not establish which timber section can support the roof.

Structural assessment can depend on:

{{ sf }}

For projects in England, Approved Document A: Structure provides guidance covering structural elements and loading. It is not a single set of requirements for every UK jurisdiction. GOV.UK

Not a structural check

Use applicable design guidance, approved span tables or qualified professional assessment for structural decisions. This geometric calculation does not certify the roof assembly.

11 — FAQ

Frequently asked questions

{{ q.a }}

12 — Sources

External references

Related calculators

More Construction Tools

All construction calculators →
From the blog

Roof Framing Guides

View all posts →
Slope length {{ bigValue }}{{ bigUnit }}