How do you calculate rafter length?
How do you calculate rafter length? Use rise and run or a pitch multiplier, account for overhangs, and check your framing dimensions with our calculator.
Key takeaways
- Common-rafter line length = √(horizontal run² + rise²).
- With pitch X/12, multiply horizontal run by √(1 + (X ÷ 12)²).
- Add overhang geometry separately; line length does not include every cut or establish timber strength.
How do you calculate rafter length? For a straight common rafter, use the horizontal run and the vertical rise: length = √(run² + rise²). If you know the roof pitch instead of the rise, multiply the run by the matching pitch factor. A 12 ft run at 6/12 gives a line length of about 13.42 ft.
That answer describes a line in the roof triangle. A finished timber also needs an agreed reference face, ridge connection, bearing detail, overhang and end cuts. Keep those details separate so an accurate geometric result does not become an incorrect cutting instruction.
Choose the correct run first
On a symmetrical gable roof, the run from one wall reference line to the ridge centreline is half the corresponding span. A 24 ft span gives a 12 ft run. On a single-slope roof, the run is the full horizontal distance between the chosen low and high points. An off-centre ridge produces different runs on the two faces.
Do not use the building length parallel to the ridge. That dimension controls how many rafters may be needed along the building; it does not give the length of one common rafter. Likewise, a roof overhang measured horizontally must not be added as though it were a length along the slope.
Write down whether your starting dimensions refer to wall faces, bearing lines or centre lines. If a drawing uses the ridge centreline, the timber may stop at the face of a ridge board. A change in horizontal reference has a corresponding sloping length, so a horizontal thickness adjustment cannot simply be subtracted along the rafter.
Formula 1: use rise and run
Let U be horizontal run, R be vertical rise and L be sloping line length. Pythagoras gives L = √(U² + R²). Use one unit throughout and keep unrounded values until the final result.
For a 12 ft run and a 6 ft rise:
- Square the run: 12² = 144.
- Square the rise: 6² = 36.
- Add them: 144 + 36 = 180.
- Take the square root: √180 = 13.416 ft.
Rounded to two decimals, the length is 13.42 ft. Expressed in feet and inches, it is about 13 ft 5 in. The decimal part of a foot must be multiplied by 12; it cannot be read directly as inches.
If your rise is uncertain, first use the pitch calculation guide or measure an accessible attic rafter. The length calculation can only be as reliable as those measurements.
How to calculate rafter length using pitch
For a pitch of X/12, rise = run × X ÷ 12. Substitute that into Pythagoras and the formula becomes L = run × √(1 + (X ÷ 12)²). The expression after run is the pitch multiplier.
At 6/12, the multiplier is √(1 + 0.5²) = 1.1180339. Multiply a 12 ft run by that factor to obtain 13.416 ft. This agrees with the rise-and-run method, which gives you a useful independent check on your arithmetic.
| Pitch | Angle | Rafter multiplier |
|---|---|---|
| 2/12 | 9.46° | 1.0138 |
| 3/12 | 14.04° | 1.0308 |
| 4/12 | 18.43° | 1.0541 |
| 5/12 | 22.62° | 1.0833 |
| 6/12 | 26.57° | 1.1180 |
| 7/12 | 30.26° | 1.1577 |
| 8/12 | 33.69° | 1.2019 |
| 9/12 | 36.87° | 1.2500 |
| 12/12 | 45.00° | 1.4142 |
These multipliers are for common rafters with the corresponding horizontal run. They are not material waste percentages or span-capacity factors. Use the pitch chart for a wider conversion reference, and the roof frame calculator to organise the project’s geometric dimensions and quantities.
Formula 2: use an angle in degrees
When a drawing gives the roof angle θ, use L = run ÷ cos(θ). At 30° with a 10 ft run, L = 10 ÷ cos(30°) = 11.547 ft, or about 11.55 ft. The rise is 10 × tan(30°) = 5.774 ft.
Set the calculator to degrees. Also check that the angle is measured from horizontal. The angle between the rafter and a vertical line is its complement; using that value in the same formula produces the wrong length. A 30° roof makes a 60° angle with vertical.
The roof pitch calculator can verify the 12 ft example. The two formulas describe the same geometry, so differences larger than rounding usually mean a different reference point, unit or angle has been used.
Add an overhang in the right direction
Suppose the 6/12 example has a 1 ft horizontal eave overhang beyond the wall reference. The additional sloping distance is 1 × 1.1180339 = 1.118 ft, or about 13.42 in. The total geometric line from the ridge reference to the extended tail reference is 13.416 + 1.118 = 14.534 ft.
If the 1 ft overhang is already measured along the slope, add 1 ft instead. The distinction changes the result by about 1.42 in in this example. A sketch with a horizontal arrow or a sloping arrow is clearer than an unqualified note saying “12-inch overhang.”
The extension assumes the same straight roof slope continues beyond the wall. Fascia orientation, tail cuts, raised heels and unusual eave details can change the exact reference length. Resolve those details from the framing design before choosing a stock length or marking a cut.
How to determine rafter length for ordering
Start with the geometric line length, then identify the connection and cut allowances needed by the actual design. Check whether the top end meets a ridge board, ridge beam, hanger or another rafter. Check which surface of the timber is the setting-out line. These choices determine where the line ends on the physical piece.
A birdsmouth provides a seat at the support. It is not an invitation to subtract an arbitrary amount from the diagonal. Notch depth, remaining timber, bearing and restraint are structural details. Use an approved detail and verify one template or trial piece before repeating a cut across the whole roof.
A stock timber must accommodate the complete cut layout and any defects that must be avoided. Rounding the line length down to the nearest available length is not a valid allowance. Equally, applying a generic percentage to every rafter can overstate a material order. Base the allowance on a real cutting plan.
Length, spacing and strength are different checks
A rafter that geometrically reaches the ridge is not necessarily strong enough to carry the roof. Timber species, grade, section, support conditions, spacing, dead load, snow or roof live load and deflection limits all affect the structural choice.
The American Wood Council span-table tutorial explains that load and material properties are inputs to sizing. Its tables have defined assumptions and jurisdictions. They should not be applied to a different member or load case simply because the length appears similar.
The post-spacing guide explains the same distinction for the supports below a roof. Posts, beams and rafters form a load path. Moving a post can change beam spans even when the rafter length stays exactly the same.
Check the result before passing it on
Write a short measurement record: roof face, horizontal run, rise or angle, units, overhang direction and the endpoints used. Recalculate with the second formula if both rise and angle are available. The sloping length should be longer than the horizontal run for every non-flat roof.
For a hip, valley, dormer or changing roof plane, draw the plan geometry first. A hip’s horizontal projection may run diagonally across the plan, so using the common-rafter run gives the wrong starting triangle. Treat each member type separately and obtain the connection details from the design.
Once the measurements are settled, carry them into the framing calculator and compare its drawing with your sketch. The output is a planning aid for geometry and quantities; structural approval and final cutting dimensions remain tied to the project drawings.
If the roof must fit below an existing window or eave, the lean-to height and pitch guide checks the available rise before you choose the sloping length.
Sources and method
All worked lengths and multipliers were calculated from Pythagoras and trigonometry. The AWC span-table tutorial supports the distinction between length and capacity. The 2024 IRC roof provisions provide covering context, not a universal rafter cutting schedule. Sources reviewed on 23 October 2026.
To distinguish a geometric length from a structural lookup, follow the rafter span table walkthrough. For diagonal intersections, the hip and valley pitch guide derives the longer plan run and its shallower line angle.
For the next drawing check, distinguish the support reference from the rafter tail in the birdsmouth and overhang length guide.
Frequently asked questions
How to figure rafter length without knowing the rise?
If you know the horizontal run and roof angle, divide the run by cos(angle). If you know X/12 pitch, multiply the run by √(1 + (X ÷ 12)²). Pitch alone does not give a length.
How to find rafter length for a 6/12 roof?
Multiply the horizontal run by 1.1180. A 12 ft run gives about 13.42 ft of geometric line length before overhang and connection adjustments.
Does the birdsmouth change the roof pitch?
The notch is a connection detail; it does not change the intended roof-plane angle. Its position, depth and bearing need to follow the approved framing design.
Can I use the same formula for a hip rafter?
Pythagoras still applies, but a hip rafter has a different horizontal plan run. Do not use a common-rafter multiplier with the half-span unless the geometry specifically supports that calculation.