Roofing Guide
How to Figure Rafter Length: A Step-by-Step Guide
Figuring out rafter length is an important part of planning and framing a roof. The correct measurement helps determine how long each rafter needs to be before making the ridge, seat, and tail cuts. To calculate rafter length, you need to know the roof's horizontal run and vertical rise. If you already know the roof pitch, you can use it to calculate the rise or multiply the run by a roof pitch factor.
Quick Answer
What is the formula for rafter length?
Use the Pythagorean theorem: L = √(R² + H²), where L is rafter length, R is horizontal run, and H is vertical rise.
This formula calculates the theoretical length along the slope of a common rafter. The final board length may need adjustments for ridge thickness, overhang, and the cuts required by your roof design.
What Is Rafter Length?
Rafter length is the distance measured along the sloping length of a roof rafter. It runs from the upper roof connection near the ridge down toward the wall plate or eave.
It is different from the horizontal run and the overall roof span.
- Roof span: The horizontal distance across the roof between its opposite supporting sides.
- Rafter run: The horizontal distance covered by one common rafter, normally about half the span on a symmetrical gable roof.
- Rafter rise: The vertical distance from the wall plate level to the ridge.
- Rafter length: The sloping distance calculated from the run and rise.
For example, a symmetrical gable roof with a 24-foot span normally has a 12-foot run on each side before considering the ridge-board adjustment.
Understanding these measurements helps prevent a common mistake: using the full building width as the run for a single common rafter.
How to Figure Rafter Length Using the Formula
You can calculate common rafter length with the Pythagorean theorem. The roof's run and rise form the two shorter sides of a right triangle, while the rafter forms the hypotenuse.
Use this formula:
Follow these steps.
Step 1: Determine the Rafter Run
The run is the horizontal distance from the outside wall plate toward the center of the ridge.
For a symmetrical gable roof, begin by dividing the building's roof span by two.
For example, if the roof span is 24 feet:
The basic run is 12 feet. The exact framing run may need to account for the ridge board's thickness, depending on the measurement reference used in the plans.
Step 2: Determine the Roof Rise
The rise is the vertical height from the wall plate level to the ridge.
You can measure it from the roof design or calculate it using the roof pitch.
For example, a 6/12 roof pitch rises 6 inches for every 12 inches of horizontal run.
If the run is 12 feet, or 144 inches:
The roof rise is 6 feet.
Step 3: Apply the Rafter Length Formula
Now that you know the run and rise, substitute them into the formula.
Using the example:
The theoretical common rafter line length is approximately 13 feet 5 inches.
This is the sloping line length before making any additional adjustments required by the framing layout.
How to Calculate Rafter Length Using Roof Pitch
If you know the roof pitch but do not know the vertical rise, you can use a pitch multiplier.
Roof pitch is commonly written as a ratio such as 4/12, 6/12, or 8/12. The first number represents the vertical rise in inches for every 12 inches of horizontal run.
The pitch multiplier converts horizontal run into sloping rafter length.
Where:
- M = roof pitch multiplier
- P = roof pitch rise in inches per 12 inches of run
Then calculate:
For example, a 6/12 roof has a multiplier of approximately 1.118.
If the horizontal run is 12 feet:
The result is approximately 13 feet 5 inches.
This method is useful when you have the roof pitch and run but do not have a separate rise measurement.
Rafter Length Table for Common Roof Pitches
A rafter length table shows how much sloping rafter length is required for each foot of horizontal run at a particular roof pitch.
The following table uses the mathematical pitch multiplier. Multiply the horizontal run by the appropriate factor to estimate the theoretical common rafter line length.
| Roof pitch | Multiplier | Rafter length per 10 ft of run |
|---|---|---|
| 3/12 | 1.031 | 10.31 ft |
| 4/12 | 1.054 | 10.54 ft |
| 5/12 | 1.083 | 10.83 ft |
| 6/12 | 1.118 | 11.18 ft |
| 7/12 | 1.158 | 11.58 ft |
| 8/12 | 1.202 | 12.02 ft |
| 9/12 | 1.250 | 12.50 ft |
| 10/12 | 1.302 | 13.02 ft |
| 11/12 | 1.357 | 13.57 ft |
| 12/12 | 1.414 | 14.14 ft |
Example: If your roof has a 4/12 pitch and a 14-foot run:
The theoretical rafter length is approximately 14 feet 9 inches.
These multipliers are geometric calculations, not structural span recommendations. They do not tell you whether a particular lumber size can safely support the roof.
Rafter Length Table for 4/12 Pitch
A 4/12 roof rises 4 inches for every 12 inches of horizontal run. Its pitch multiplier is approximately 1.054.
| Horizontal run | Theoretical rafter length |
|---|---|
| 6 ft | 6.32 ft |
| 8 ft | 8.43 ft |
| 10 ft | 10.54 ft |
| 12 ft | 12.65 ft |
| 14 ft | 14.76 ft |
| 16 ft | 16.87 ft |
| 18 ft | 18.97 ft |
| 20 ft | 21.08 ft |
For example, a 12-foot run at 4/12 pitch requires approximately 12 feet 8 inches of theoretical rafter line length.
Rafter Length Table for 6/12 Pitch
A 6/12 roof rises 6 inches for every 12 inches of horizontal run. Its pitch multiplier is approximately 1.118.
| Horizontal run | Theoretical rafter length |
|---|---|
| 6 ft | 6.71 ft |
| 8 ft | 8.94 ft |
| 10 ft | 11.18 ft |
| 12 ft | 13.42 ft |
| 14 ft | 15.65 ft |
| 16 ft | 17.89 ft |
| 18 ft | 20.12 ft |
| 20 ft | 22.36 ft |
These values are theoretical line lengths. Actual cut dimensions depend on the ridge connection, wall-plate layout, and any required overhang.
How to Calculate Rafter Length With an Overhang
A roof overhang is the part of the roof that extends beyond the exterior wall. If your roof design includes an overhang, you need to account for it separately when calculating the total rafter length.
An important detail is that the overhang measurement is often provided as a horizontal projection, while the rafter length follows the roof slope.
To convert a horizontal overhang into a sloping length, use the same pitch multiplier.
Where:
- Oₛ = sloping overhang length
- Oₕ = horizontal overhang measurement
- M = roof pitch multiplier
Example: 6/12 Roof With a 1-Foot Overhang
Assume:
- Horizontal run = 12 feet
- Roof pitch = 6/12
- Horizontal overhang = 1 foot
- Pitch multiplier = 1.118
First, calculate the common rafter length:
Next, calculate the sloping overhang:
Add both measurements:
The theoretical sloping length, including the overhang, is approximately 14 feet 6 inches.
This calculation does not include ridge-board deductions or the final cut details.
How to Account for Ridge Board Thickness
The ridge board is the horizontal framing member at the roof peak where opposing common rafters meet.
When calculating rafter length, the ridge board thickness can affect the final measurement. If you calculate the rafter length all the way to the ridge centerline, you may need to deduct half the ridge board thickness for the actual ridge connection.
For example, a 1.5-inch-thick ridge board has a half-thickness of:
The precise adjustment depends on the reference point and layout method used. Follow the roof plans and the applicable rafter-layout method rather than automatically subtracting a deduction from every calculation.
The Swanson framing guide also identifies a half-ridge-thickness deduction in its common-rafter layout instructions.
Swanson Tool Co.
How to Measure and Mark a Rafter Before Cutting
After calculating the theoretical rafter length, you still need to lay out the cuts correctly.
A common rafter typically has a ridge plumb cut at the upper end and a birdsmouth near the wall plate. The birdsmouth includes a seat cut and a heel cut. If the design includes an eave overhang, the lower end also needs a tail cut.
Follow these general steps:
- Confirm the roof pitch and horizontal run from the framing plan.
- Calculate the theoretical rafter line length.
- Mark the ridge plumb-cut reference.
- Apply the ridge-board adjustment required by the layout.
- Mark the wall-plate and birdsmouth position.
- Determine the overhang and tail-cut position.
- Check all measurements and cut details before cutting the remaining rafters.
For more detailed cutting instructions, see our guide to rafter plumb cuts.
Do not assume that the theoretical rafter length is automatically the final cut length. Birdsmouth dimensions, bearing requirements, ridge connections, and overhang details must be checked against the construction plans and applicable building requirements.
How Many Rafters Do I Need?
The number of rafters depends on the roof length, rafter spacing, and roof layout.
Rafters are commonly installed at 12, 16, or 24 inches on center, but the appropriate spacing depends on the roof design, structural requirements, sheathing, loads, and local code.
For a simple preliminary estimate, use:
Where:
- N = estimated number of rafters along one roof side
- L = roof length in feet
- S = rafter spacing in inches
- 12 = converts feet into inches
Example
Suppose:
- Roof length = 20 feet
- Rafter spacing = 16 inches on center
You would need an estimated 16 rafter positions on one side of the roof. A symmetrical gable roof may require a corresponding set on the opposite side.
This is a preliminary layout estimate. Actual framing counts can change because of end spacing, gable framing, openings, roof intersections, and the construction plan.
For more details, see our guide to rafter spacing for metal roofs.
What Factors Affect Rafter Length?
Several factors determine the length of a roof rafter.
1. Roof Span and Run
A wider building generally requires a longer rafter run. For a symmetrical gable roof, the run is normally half the overall span before accounting for ridge-board details.
2. Roof Pitch
A steeper roof has a longer sloping rafter for the same horizontal run. For example, a 10/12 roof requires more rafter length than a 4/12 roof with an identical run.
3. Roof Overhang
An overhang adds to the total sloping length of the rafter. Its contribution depends on the roof pitch and the horizontal projection.
4. Ridge Board Thickness
The ridge connection may require a length adjustment depending on how the rafter is measured and laid out.
5. Roof Design
A basic common-rafter calculation does not directly determine the length of every roof member. Hip rafters, valley rafters, and jack rafters have different layouts and geometry.
6. Rafter Size and Structural Requirements
Rafter size does not change the basic geometric formula, but it affects the structural design and the way connections and cuts are laid out. Lumber species, grade, loads, spacing, and support conditions matter when selecting a suitable rafter.
Read our rafter span guide to understand how these structural factors affect allowable rafter spans.
Common Mistakes When Calculating Rafter Length
Incorrect measurements can result in rafters that are too short, too long, or incorrectly positioned. Avoid these common mistakes:
- Using the full roof span as the rafter run: A common rafter on a symmetrical gable roof normally covers half the span.
- Ignoring roof pitch: The horizontal run is not the same as the sloping rafter length.
- Forgetting the overhang: A horizontal overhang must be converted into its sloping length.
- Ignoring ridge-board thickness: The ridge connection may require an adjustment to the theoretical line length.
- Mixing measurement units: Convert feet and inches consistently before using the formula.
- Confusing length with span: Rafter length is a geometric measurement, while allowable span is a structural measurement.
- Cutting before checking the layout: Confirm the ridge, birdsmouth, bearing, and tail details before cutting multiple rafters.
Frequently Asked Questions
How do you calculate rafter length?
Calculate rafter length using the Pythagorean theorem:
You need the horizontal run and vertical rise. If you know the roof pitch, calculate the rise from the run or use the corresponding pitch multiplier.
How do I calculate rafter length using pitch?
Convert the roof pitch into a multiplier:
Then multiply the horizontal run by the multiplier. For a 6/12 roof, the multiplier is approximately 1.118.
How long is a rafter for a 12-foot run at 4/12 pitch?
The multiplier for a 4/12 roof is approximately 1.054.
The theoretical rafter line length is approximately 12 feet 8 inches.
How long is a rafter for a 12-foot run at 6/12 pitch?
The multiplier for a 6/12 roof is approximately 1.118.
The theoretical rafter line length is approximately 13 feet 5 inches.
Is rafter length the same as roof span?
No. Roof span is the horizontal distance across the roof between its supporting sides. Rafter length is the distance measured along the sloping rafter. On a symmetrical gable roof, the common rafter run is normally half the span.
Does rafter length include the overhang?
Not automatically. The basic formula calculates the sloping length for the specified run and rise. If the overhang is not included in the run, calculate its sloping length separately and add it.
How do I calculate the length of rafters for a shed roof?
For a simple shed roof, use the horizontal distance between the supporting walls as the rafter run. Calculate the vertical rise from the roof pitch, then apply the Pythagorean theorem. Add any required overhang separately.
Does rafter size affect rafter length?
Rafter size does not change the basic geometric calculation. However, lumber dimensions and structural requirements affect the framing layout, bearing, connections, and allowable span.
Can I use a rafter length table for any roof?
You can use a pitch multiplier table for basic common-rafter geometry, provided you know the correct run and pitch. The table does not account for every roof connection, overhang, or structural requirement.
Conclusion
Figuring out rafter length starts with two measurements: horizontal run and vertical rise. Once you know these dimensions, you can use the Pythagorean theorem to calculate the theoretical length of a common roof rafter.
If you know the roof pitch, a pitch multiplier makes the calculation quicker. However, remember to account for the ridge connection, overhang, and required cuts when preparing the final rafter layout.
Accurate measurements and a properly planned roof layout help avoid material waste and framing errors. Always verify the structural design, lumber selection, and connection details against the project plans and applicable building requirements.
Related Roofing Guide
Check the Structural Span of Your Rafters
Rafter length tells you how long the sloping member needs to be. Rafter span is a separate structural measurement that helps determine whether the selected lumber can safely cover the required distance.
Read the Rafter Span Guide →