Ultimate Rafter Length Calculator: How to Calculate Rafter Length Using Pitch


Rafter Length Calculator

An expert tool for learning how to calculate rafter length using pitch. Accurately determine the required length for your roofing project based on key structural dimensions.


Enter the horizontal distance from the outer wall to the center of the building (in feet and inches).

Please enter a valid, positive number for the run.


/ 12
Enter the vertical rise in inches for every 12 inches of horizontal run.

Please enter a valid, positive number for pitch rise.


Enter the desired horizontal length of the eave/overhang.

Please enter a valid, positive number for the overhang.


Standard thickness is 1.5 inches. Enter 0 if no ridge board is used. This value is subtracted from the run.

Please enter a valid, non-negative number.

0.00 inches
Roof Rise

0.00 in

Pitch Angle

0.00 °

Main Rafter (to Ridge)

0.00 in

Overhang Rafter

0.00 in

The calculation uses the Pythagorean theorem (a² + b² = c²) on the triangle formed by the run, rise, and rafter.

Rafter Geometry Visualization

Dynamic chart illustrating the relationship between Run, Rise, and Rafter Length. It updates as you change the input values.

Common Rafter Lengths per Foot of Run

Pitch Length per Foot of Run (in) Angle (°)
3/12 12.37 14.04
4/12 12.65 18.43
5/12 13.00 22.62
6/12 13.42 26.57
7/12 13.89 30.26
8/12 14.42 33.69
9/12 15.00 36.87
10/12 15.62 39.81
12/12 16.97 45.00
This table shows the theoretical rafter length for each foot (12 inches) of horizontal run at various common roof pitches.

What is Rafter Length Calculation?

A rafter is a structural member in a roof, forming its sloped frame. The process of how to calculate rafter length using pitch is a fundamental skill in carpentry and construction. It involves using geometric principles to determine the exact length of the rafter board needed to span from the building’s wall to the ridge. An accurate calculation is critical for structural integrity, ensuring the roof can support its own weight and environmental loads like snow and wind. This calculation is essential for builders, architects, and DIY enthusiasts aiming for a safe and professional roofing outcome. A common misconception is that you can simply measure the diagonal distance; however, this fails to account for critical factors like ridge board thickness and the required overhang, leading to errors. The true method of how to calculate rafter length using pitch provides precision that measurement alone cannot.

Rafter Length Formula and Mathematical Explanation

The core of understanding how to calculate rafter length using pitch lies in the Pythagorean theorem. A roof’s structure forms a right-angled triangle where the horizontal ‘run’ is one side (a), the vertical ‘rise’ is the other side (b), and the rafter itself is the hypotenuse (c). The theorem states: a² + b² = c².

Here’s a step-by-step breakdown:

  1. Determine the Run: The run is half the building’s total span, minus half the thickness of the ridge board. For example, for a 24-foot span (288 inches) and a 1.5-inch ridge board, the run is (288 / 2) – (1.5 / 2) = 144 – 0.75 = 143.25 inches.
  2. Calculate the Rise: The rise is determined by the pitch. Pitch is expressed as inches of rise per 12 inches of run (e.g., 6/12). The formula is: Rise = Run × (Pitch Rise / 12). For a 6/12 pitch and a 143.25-inch run, the Rise = 143.25 × (6 / 12) = 71.625 inches.
  3. Calculate Rafter Length (Hypotenuse): Using the Pythagorean theorem: Rafter Length = √(Run² + Rise²). In our example, √(143.25² + 71.625²) = √(20520.56 + 5130.14) = √25650.7 = 160.16 inches. This is the length from the ridge to the outer wall.

This process of how to calculate rafter length using pitch is repeated for the overhang, which forms its own smaller triangle, and the two lengths are added together for the final board length.

Variables Table

Variable Meaning Unit Typical Range
Run Horizontal distance from ridge center to outer wall inches, ft 5 – 30 ft
Rise Total vertical height from wall top plate to ridge inches, ft Depends on pitch
Pitch Inches of rise per 12 inches of run Ratio (e.g., 6/12) 3/12 – 12/12
Overhang Horizontal length of the eave inches 6 – 24 inches
Ridge Thickness Width of the central ridge board inches 1.5 – 3 inches

Practical Examples (Real-World Use Cases)

Example 1: Garden Shed

Imagine you’re building a shed that is 10 feet wide (120 inches) with a simple 4/12 pitch roof. You want a 6-inch overhang and are using a 1.5-inch ridge board.

  • Inputs: Span = 120 in, Pitch = 4/12, Overhang = 6 in, Ridge = 1.5 in.
  • Run Calculation: (120 / 2) – (1.5 / 2) = 60 – 0.75 = 59.25 inches.
  • Rise Calculation: 59.25 * (4 / 12) = 19.75 inches.
  • Main Rafter Length: √(59.25² + 19.75²) = √3899.56 = 62.45 inches.
  • Overhang Rafter Length: Based on a 6-inch horizontal overhang, the overhang rafter is √(6² + (6 * 4/12)²) = √(36 + 4) = √40 = 6.32 inches.
  • Total Rafter Length: 62.45 + 6.32 = 68.77 inches.

Example 2: Garage Roof

For a larger 24-foot wide garage (288 inches) with a steeper 8/12 pitch for better snow shedding, a 1.5-inch ridge, and a 12-inch overhang. Learning how to calculate rafter length using pitch is vital here.

  • Inputs: Span = 288 in, Pitch = 8/12, Overhang = 12 in, Ridge = 1.5 in.
  • Run Calculation: (288 / 2) – (1.5 / 2) = 144 – 0.75 = 143.25 inches.
  • Rise Calculation: 143.25 * (8 / 12) = 95.5 inches.
  • Main Rafter Length: √(143.25² + 95.5²) = √29659.81 = 172.22 inches.
  • Overhang Rafter Length: For a 12-inch horizontal overhang, the length is √(12² + (12 * 8/12)²) = √(144 + 64) = √208 = 14.42 inches.
  • Total Rafter Length: 172.22 + 14.42 = 186.64 inches.

How to Use This Rafter Length Calculator

This tool simplifies the complex geometry involved. Follow these steps to master how to calculate rafter length using pitch:

  1. Enter Building Run: Input the feet and inches for half of your building’s total span. Remember to subtract half the ridge board thickness from your measurement before entering it if you want the most precise result, or simply enter the ridge thickness in its dedicated field.
  2. Set Roof Pitch: Enter the ‘rise’ value for your desired pitch (e.g., enter ‘6’ for a 6/12 pitch).
  3. Specify Overhang: Input the horizontal distance your rafters will extend past the wall.
  4. Read the Results: The calculator instantly provides the total rafter length required for one board. It also shows intermediate values like the roof’s total rise and the pitch angle in degrees, which are useful for setting up saws and other tools. This makes the process of how to calculate rafter length using pitch fast and error-free.

Key Factors That Affect Rafter Length Results

  • Roof Pitch: This is the most significant factor. A steeper pitch results in a longer rafter for the same run. Mastering the pitch is central to learning how to calculate rafter length using pitch.
  • Building Span: A wider building requires a longer run, which in turn necessitates a longer rafter.
  • Ridge Board Thickness: The ridge board sits at the roof’s peak between the rafters. Its thickness reduces the effective run of each rafter, slightly shortening the required length. Failing to account for this can lead to a gap at the ridge.
  • Overhang Size: The desired eave or overhang adds directly to the total length of the rafter board you need to cut.
  • Bird’s Mouth Cut: This is a notch cut into the rafter to allow it to sit securely on the wall’s top plate. While it doesn’t change the overall length, the location of the cut is determined by the main rafter length calculation. A proper understanding of how to calculate rafter length using pitch is necessary to place this cut correctly.
  • Lumber Dimensional Accuracy: Always measure your actual lumber. A “2×6” is not actually 2 inches by 6 inches. Using nominal vs. actual dimensions can introduce small but cumulative errors.

Frequently Asked Questions (FAQ)

1. What’s the difference between run and span?
The span is the total width of the building from wall to wall. The run is typically half of the span, representing the horizontal distance a single rafter covers.
2. Why do I need to subtract half the ridge board’s thickness?
Each rafter only meets the center of the ridge board. Therefore, half of the board’s thickness occupies space that the rafter’s run would otherwise cover. You subtract it for a tight fit at the peak.
3. Can I use this calculator for hip or valley rafters?
No, this calculator is specifically for common rafters. Hip and valley rafters involve compound angles and require a more complex calculation. It is an excellent tool for learning the fundamentals of how to calculate rafter length using pitch for common rafters.
4. What is a typical roof pitch?
Pitches vary by climate and style. Low pitches like 3/12 or 4/12 are common in areas with little to no snowfall, while steep pitches like 8/12 or 9/12 are used in snowy regions to help shed snow.
5. How does the overhang affect the calculation?
The overhang is a separate right-triangle calculation using the same pitch. Its horizontal measurement is its “run.” The calculator finds the hypotenuse of this smaller triangle and adds it to the main rafter length.
6. What’s more important: pitch in degrees or the ratio (e.g., 6/12)?
For calculations and layout, the ratio is far more practical and commonly used by carpenters. Degrees are useful for setting the angle on power saws but the ratio is fundamental to the method of how to calculate rafter length using pitch.
7. What happens if my calculation is slightly off?
Even a small error of a fraction of an inch can be magnified across the roof. It can result in an uneven roof plane, gaps at the ridge, or rafters that don’t sit flush on the wall plates. Precision is key. This is why a reliable method to calculate rafter length using pitch is so important.
8. Should I buy lumber of the exact calculated length?
No. Always buy lumber that is longer than your calculated total length. This gives you material to work with for making precise plumb cuts at the ridge and tail cuts at the overhang, ensuring a perfect fit after accounting for blade width and minor adjustments.

© 2026 Date-Related Web Developer Inc. All Rights Reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *