Construction, DIY & Materials

Roof Rafter Length Calculator

Calculate the exact length of common roof rafters, including slope, runs, rise, and overhang based on span and roof pitch. Perfect for construction framing.

ft
/12
in
Rafter Length (ft)
14.416

Calculated locally in your browser. Fast, secure, and private.

Framing the Roof (Stick by Stick)

Before the invention of prefabricated roof trusses, every house in the world was "stick-framed." Carpenters would measure, cut, and install every single roof rafter by hand directly on the job site. Even today, stick-framing is still required for complex custom homes, dormers, vaulted ceilings, and remodeling additions.

A roof rafter is a massive piece of dimensional lumber (usually a 2x8, 2x10, or 2x12) that runs diagonally from the peak of the roof (the ridge board) down to the exterior walls of the house.

Accurately calculating the true diagonal length of a rafter is the most challenging mathematical task in residential carpentry. If you cut a rafter too short, you have completely ruined a $1 piece of lumber.

The Geometry of a Rafter

A roof is a right triangle. To find the length of the rafter, you must use the Pythagorean theorem (A² + B² = C²).

The three sides of the roof triangle are:

  1. The Run (Base): This is exactly half the total width of the house. If a house is 24 feet wide, the Run is 12 feet.
  2. The Rise (Height): This is how far the roof goes straight up from the top of the wall to the peak of the roof.
  3. The Rafter (Hypotenuse): The true diagonal length of the wood.

Calculating Rafter Length

The Formula

Instead of doing complex trigonometry on the job site, modern carpenters use a "Pitch Multiplier" derived from the roof's slope (e.g., 6/12 pitch).

  1. Determine the Run of the roof in feet (Half the width of the building).
  2. Determine your Roof Pitch (e.g., 6/12) and find its corresponding multiplier:
    • 4/12 Pitch = 1.054
    • 6/12 Pitch = 1.118
    • 8/12 Pitch = 1.202
    • 10/12 Pitch = 1.302
    • 12/12 Pitch = 1.414
  3. Multiply the Run by the Pitch Multiplier. This gives you the diagonal length from the peak down to the wall.
  4. Determine your Overhang (the Eave) in inches. This is the part of the roof that sticks out past the wall.
  5. Convert the Overhang to feet (divide by 12) and multiply it by the Pitch Multiplier.
  6. Add the two numbers together.

Simplified Equation:

Total Rafter Length=(Run in Feet\n+Overhang in Feet)\n×Pitch Multiplier\scriptsize \begin{aligned} \text{Total Rafter Length} &= (\text{Run in Feet} \n &\quad + \text{Overhang in Feet}) \n &\quad \times \text{Pitch Multiplier} \end{aligned}

Where:
Total Rafter Length=
Input value
Run in Feet=
Input value
Overhang in Feet=
Input value
Pitch Multiplier=
Input value

Quick Example: 24 ft Wide Building with 6/12 Pitch

You are building a garage that is 24 feet wide. The roof will have a 6/12 pitch (Multiplier = 1.118). You want a 12-inch overhang to keep rain off the siding.

  1. Find the Run: 24 ft wide ÷ 2 = 12 ft Run
  2. Convert Overhang to feet: 12 inches = 1 ft
  3. Add Run and Overhang: 12 ft + 1 ft = 13 ft total horizontal run
  4. Multiply by Pitch Multiplier: 13 ft × 1.118 = 14.53 feet

Your total rafter length is 14.53 feet. You must go to the lumber yard and purchase 16-foot 2x10s, because 14-foot boards will be a few inches too short!

Frequently Asked Questions

A birdsmouth is a triangular notch cut out of the bottom edge of the rafter. It allows the diagonal rafter to sit perfectly flat on top of the horizontal exterior wall plate. Without a birdsmouth, the rafter would just rest on a sharp corner, providing zero structural stability.

Yes! This is the most common mistake rookies make. If your house has a 2-inch thick ridge board running down the center peak, you must subtract half of that thickness (1 inch) from the absolute top of your rafter measurement. If you don't, the roof will be 2 inches wider than the house!

This is dictated entirely by local building codes, which are based on your region's 'Snow Load.' In Florida, a simple 2x6 rafter might be legal because it never snows. In Minnesota or Canada, you might be legally required to use massive 2x12 rafters to support the crushing weight of 4 feet of wet winter snow.