Rafter Length Calculator: Accurately calculate length of rafters

Rafter Length Calculation Tool

Use this calculator to determine the precise length of your common rafters, considering the roof's run, rise, and any eave overhang.

Choose your preferred measurement system.
Horizontal distance from the wall plate to the ridge. (e.g., 10 feet or 10' 6") Please enter a valid positive number.
Vertical distance from the wall plate to the top of the ridge. (e.g., 5 feet or 5' 0") Please enter a valid positive number.
Horizontal projection of the rafter beyond the wall plate. (e.g., 1 foot or 1' 0") Please enter a valid non-negative number.

Diagram illustrating Roof Run, Rise, and Rafter Length.

1. What is Rafter Length Calculation?

Calculating the length of rafters is a fundamental task in roof framing, essential for ensuring structural integrity, proper drainage, and aesthetic appeal of any building. The process primarily involves applying the Pythagorean theorem to a right-angle triangle formed by the roof's horizontal run, vertical rise, and the rafter itself (the hypotenuse).

This rafter length calculator is designed for anyone involved in construction, from professional carpenters and builders to DIY enthusiasts and homeowners planning a roof project. It simplifies complex geometry into an easy-to-use tool, helping you accurately determine the required length for common rafters.

Common misunderstandings often arise regarding the "total" rafter length versus the "main" rafter length. The main rafter length is the segment from the wall plate to the ridge. However, most roofs include an eave overhang, which extends beyond the wall plate. This calculator accounts for both, providing the total length needed for cutting your lumber. Another common pitfall is unit confusion – mixing feet, inches, and fractions without proper conversion can lead to significant errors. Our calculator handles both Imperial and Metric systems with clear labels to prevent such issues.

2. Rafter Length Formula and Explanation

The core principle behind calculating rafter length is the Pythagorean theorem, which states: a² + b² = c². In roof framing, 'a' is the roof's rise, 'b' is the roof's run, and 'c' is the main rafter length. When an eave overhang is added, the calculation becomes slightly more involved.

The Formula:

The main rafter length (from wall plate to ridge) is calculated as:

Main Rafter Length = √(Run² + Rise²)

To find the total rafter length, we need to consider the eave overhang. The overhang is usually a horizontal extension. The additional length of the rafter needed for the overhang is derived using the roof's pitch:

Overhang Rafter Length = Overhang / cos(Roof Pitch Angle)

Therefore, the total rafter length is:

Total Rafter Length = Main Rafter Length + (Overhang / cos(Roof Pitch Angle))

Where:

  • Roof Pitch Angle = arctan(Rise / Run)

Variables Table:

Key Variables for Rafter Length Calculation
Variable Meaning Unit (Inferred) Typical Range
Run Horizontal distance from the wall plate to the ridge line. Feet (ft), Inches (in), Meters (m), Centimeters (cm) 8 ft - 20 ft (2.4 m - 6 m)
Rise Vertical distance from the wall plate to the top of the ridge. Feet (ft), Inches (in), Meters (m), Centimeters (cm) 4 ft - 12 ft (1.2 m - 3.6 m)
Overhang Horizontal projection of the rafter beyond the wall plate. Feet (ft), Inches (in), Meters (m), Centimeters (cm) 0.5 ft - 3 ft (0.15 m - 0.9 m)
Main Rafter Length Length of the rafter from the wall plate to the ridge. Feet (ft), Inches (in), Meters (m), Centimeters (cm) Calculated
Roof Pitch Angle The angle of the roof slope relative to the horizontal. Degrees (°) 18° - 45°
Total Rafter Length The full length of the rafter required, including overhang. Feet (ft), Inches (in), Meters (m), Centimeters (cm) Calculated

3. Practical Examples

Let's walk through a couple of examples to demonstrate how to calculate length of rafters using different unit systems.

Example 1: Imperial Units (Feet and Inches)

A homeowner is building a shed with the following roof dimensions:

  • Run: 8 feet (8' 0")
  • Rise: 4 feet (4' 0")
  • Eave Overhang: 1 foot 6 inches (1' 6")

Steps using the calculator:

  1. Select "Imperial (Feet & Inches)" for Unit System.
  2. Enter "8" or "8'0"" for Roof Run.
  3. Enter "4" or "4'0"" for Roof Rise.
  4. Enter "1'6"" for Eave Overhang.
  5. Click "Calculate Rafter Length".

Expected Results:

  • Main Rafter Length: ≈ 8 feet 11 3/8 inches
  • Roof Pitch Angle: ≈ 26.57°
  • Total Rafter Length: ≈ 9 feet 11 1/4 inches

This calculation helps the homeowner cut their rafters precisely, accounting for both the main roof slope and the desired overhang.

Example 2: Metric Units (Meters and Centimeters)

A builder is constructing a small house and needs to calculate rafter lengths for a section of the roof:

  • Run: 3.5 meters (350 cm)
  • Rise: 1.75 meters (175 cm)
  • Eave Overhang: 0.6 meters (60 cm)

Steps using the calculator:

  1. Select "Metric (Meters & Centimeters)" for Unit System.
  2. Enter "3.5" for Roof Run.
  3. Enter "1.75" for Roof Rise.
  4. Enter "0.6" for Eave Overhang.
  5. Click "Calculate Rafter Length".

Expected Results:

  • Main Rafter Length: ≈ 3.91 meters
  • Roof Pitch Angle: ≈ 26.57°
  • Total Rafter Length: ≈ 4.58 meters

This ensures the builder orders and cuts the correct amount of material, reducing waste and ensuring the roof structure is accurate.

4. How to Use This Rafter Length Calculator

Our rafter length calculator is designed for ease of use and accuracy. Follow these simple steps to get your precise rafter measurements:

  1. Choose Your Unit System: At the top of the calculator, select either "Imperial (Feet & Inches)" or "Metric (Meters & Centimeters)" from the dropdown menu. This will automatically adjust the input labels and output units.
  2. Enter Roof Run: Input the horizontal distance from the outer edge of the wall plate to the center of the ridge board. For Imperial units, you can enter values like "10", "10.5", "10'6"", or "10'6 1/2"". For Metric, use decimal values like "3.5" or "350cm".
  3. Enter Roof Rise: Input the vertical distance from the top of the wall plate to the top of the ridge board. Use the same unit format as your Roof Run.
  4. Enter Eave Overhang: Input the horizontal distance the rafter will extend past the wall plate. This is the projection that forms the eave. Use the same unit format. If you don't have an overhang, enter "0".
  5. Click "Calculate Rafter Length": Once all values are entered, press the calculate button.
  6. Interpret Results: The calculator will display:
    • Total Rafter Length: This is the most critical value, representing the full length of the rafter needed from the bird's mouth cut to the fascia cut, including the main run and the overhang.
    • Main Rafter Length: The length from the wall plate to the ridge.
    • Roof Pitch Angle: The angle of your roof's slope in degrees.
    • Total Horizontal Run: The sum of your roof run and eave overhang.
  7. Copy Results: Use the "Copy Results" button to quickly save all your calculated values to your clipboard for easy transfer to your project plans or material lists.
  8. Reset: If you need to start over, click the "Reset" button to clear all inputs and restore default values.

Remember to always double-check your measurements on site before inputting them into the calculator to ensure the highest accuracy for your project.

5. Key Factors That Affect Rafter Length

Understanding the elements that influence rafter length is crucial for accurate calculations and proper roof construction. These factors directly impact the geometry of the roof structure:

  1. Roof Run: This is the horizontal distance from the wall plate to the center of the ridge. A longer run will necessitate a longer rafter, assuming the rise remains constant. It's the base of your roof triangle.
  2. Roof Rise: The vertical distance from the wall plate to the top of the ridge. A greater rise results in a steeper roof pitch and, consequently, a longer rafter for the same run. It's the height of your roof triangle.
  3. Eave Overhang: The horizontal projection of the rafter beyond the wall plate. This is a crucial factor for total rafter length, as it adds extra material needed for the eave. The desired overhang length directly contributes to the overall rafter length.
  4. Roof Pitch (Angle): While not a direct input (it's calculated from run and rise), the pitch significantly influences the rafter's length. A steeper pitch (higher angle) means a longer rafter for a given run. Builders often design roofs based on a specific pitch, which then dictates the rise for a given run.
  5. Ridge Board Thickness (Indirect): While not directly used in the Pythagorean theorem for the rafter's main length, the ridge board's thickness must be considered when laying out and cutting rafters. Rafters typically butt against the ridge board, so the "run" measurement often goes to the center of the ridge, and the actual rafter length will be slightly shorter at the top to accommodate the ridge thickness. Our calculator provides the theoretical length to the center of the ridge.
  6. Bird's Mouth Cut: This is a notch cut into the rafter where it rests on the wall plate. The depth and position of this cut don't change the theoretical rafter length but are critical for the rafter's fit and structural stability. The calculated length is to the outside of this cut on the wall plate.
  7. Building Codes and Local Regulations: Local building codes often specify minimum roof pitches, maximum spans, and sometimes even minimum overhangs for weather protection. These regulations can influence your chosen run, rise, and overhang, thereby affecting the rafter length.

6. Frequently Asked Questions (FAQ) about Rafter Length

Q: What is the difference between "run" and "span" in roof framing?
A: The "run" is the horizontal distance from the wall plate to the ridge (half of the building's width). The "span" is the total horizontal distance covered by the roof, typically from outside wall to outside wall, which is twice the run. Our calculator uses "run" as a primary input.
Q: Why is the eave overhang important for rafter length?
A: The eave overhang extends the rafter beyond the wall plate, providing protection for the walls and foundation from rain and sun. It adds to the total length of the rafter material you need to cut, even though it's a horizontal projection.
Q: How do I measure roof pitch if I don't know the rise and run?
A: You can measure the rise and run from an existing roof. Place a level horizontally against the rafter and measure a convenient horizontal distance (e.g., 12 inches or 1 meter). Then measure the vertical distance from the level to the rafter. This gives you your "rise over run" ratio.
Q: Can this calculator be used for hip or valley rafters?
A: This calculator is primarily designed for common rafters. Hip and valley rafters are more complex as they run diagonally across the roof plan and require additional calculations involving a "diagonal run" based on the common rafter run. While the principles are similar, this tool does not directly calculate hip/valley lengths. You might need a specialized hip and valley rafter calculator.
Q: What units should I use?
A: You should use the units that are most convenient for your project and consistent with your measuring tools. Our calculator supports both Imperial (feet and inches) and Metric (meters and centimeters). Ensure all your inputs are in the same chosen unit system.
Q: How accurate are these calculations?
A: The mathematical calculations are precise. The accuracy of your final rafter lengths depends entirely on the accuracy of your input measurements. Always measure carefully on site.
Q: What is a "bird's mouth" cut and does it affect the rafter length?
A: A bird's mouth is a notch cut into the rafter that allows it to sit flat on the wall plate. While the bird's mouth itself is a cut, the total rafter length calculated here accounts for the material needed to make that cut and extend to the eave. The theoretical length is to the outside face of the wall plate.
Q: What if my roof has no overhang?
A: If your roof has no eave overhang, simply enter "0" for the Eave Overhang input. The calculator will then provide the rafter length required just from the wall plate to the ridge.

7. Related Tools and Internal Resources

Explore our other useful construction and home improvement calculators and guides:

🔗 Related Calculators