Calculators.Life Calculator
Construction

Rafter Calculator

Input Parameters

Scenarios
Total building span across exterior walls in feet.
Inches of vertical rise for every 12 inches of horizontal run (e.g. 6 in 12).
Horizontal projection past the exterior wall plate in inches.
Thickness of the ridge board in inches (standard 2x dimensional lumber is 1.5 inches).
Total length of the roof ridge / building in feet.
On-center spacing between rafters in inches.

Computed Results

Common Rafter Length (Cut Length)
13.35
Total Length incl. Overhang14.46
Total Roof Rise5.97
Roof Pitch Angle26.6
Total Rafters Required48
Total Roof Surface Area867.9

The rafter calculator determines the exact cut length of common rafters, total roof rise, and pitch angle for your framing project. By entering your building's span, roof pitch, and overhang, you can quickly estimate the total number of rafters required and the overall roof surface area.

How to Use the Rafter Calculator

To calculate your roof framing dimensions, follow these steps:

  1. Enter the Roof Span: Measure the total width of the building across the exterior walls in feet.
  2. Input the Roof Pitch: Specify the vertical rise in inches for every 12 inches of horizontal run (e.g., enter 6 for a 6/12 pitch).
  3. Set the Overhang: Enter the horizontal distance the eaves project past the exterior walls in inches.
  4. Specify Ridge Board Thickness: Enter the thickness of your ridge board in inches. Standard 2x dimensional lumber is typically 1.5 inches thick.
  5. Provide Building Length and Spacing: Enter the total length of the roof ridge in feet and select your desired on-center rafter spacing to calculate the total number of rafters needed.

Formula and Calculation Method

The calculator uses right-triangle geometry (the Pythagorean theorem) to determine the rafter length. First, it calculates the actual horizontal run by taking half of the total roof span and subtracting half of the ridge board thickness.

Actual Run = (Roof Span ÷ 2) − (Ridge Thickness ÷ 2)

Next, it determines the slope factor based on the roof pitch. The pitch is the ratio of rise over a 12-inch run.

Slope Factor = √(1 + (Pitch ÷ 12)²)

Finally, the common rafter length is calculated by multiplying the actual run by the slope factor. The total rafter length adds the overhang distance to the run before applying the slope factor.

Common Rafter Length = Actual Run × Slope Factor

Inputs and Outputs Reference

CategoryField NameDescription
InputRoof SpanTotal building span across exterior walls in feet.
InputRoof PitchInches of vertical rise for every 12 inches of horizontal run.
InputOverhangHorizontal projection past the exterior wall plate in inches.
InputRidge Board ThicknessThickness of the ridge board in inches.
OutputCommon Rafter LengthThe cut length from the ridge to the wall plate (in feet).
OutputTotal Length incl. OverhangThe full rafter length including the eaves (in feet).
OutputTotal Rafters RequiredThe estimated total count of rafters needed for both sides of the roof.
OutputTotal Roof Surface AreaThe total square footage of the roof surface.

Verified Scenario Walkthroughs

Small Garden Shed Construction

Consider a small shed with an 8-foot roof span, a 4/12 pitch, a 6-inch overhang, and a standard 1.5-inch ridge board. The building is 10 feet long with rafters spaced 24 inches on-center. The calculator determines a common rafter length of 4.15 feet and a total rafter length of 4.68 feet. The roof rise is 1.31 feet, the pitch angle is 18.4 degrees, and the project requires 12 total rafters covering 93.6 square feet of roof area.

Standard Residential Garage Build

For a standard garage with a 20-foot span, an 8/12 pitch, an 18-inch overhang, and a 3-inch ridge board, the building length is 24 feet with 16-inch on-center spacing. The common rafter length is 11.87 feet, with a total length of 13.67 feet including the overhang. The roof rise is 6.58 feet at a 33.7-degree angle. This structure requires 38 rafters and has a total roof surface area of 656.2 square feet.

Practical Use Cases

This calculator is useful for several phases of roof construction:

Frequently Asked Questions

How does ridge board thickness affect rafter length?

The ridge board takes up space at the peak of the roof. Half of its thickness is subtracted from the total horizontal run to ensure the rafters fit flush against it without extending past the center line.

What is the difference between common rafter length and total length?

Common rafter length is the measurement from the ridge board down to the exterior wall plate. Total length includes the additional length required for the horizontal overhang (eaves) extending past the wall.

How is the total number of rafters calculated?

The total number of rafters is calculated by dividing the building length by the on-center spacing, rounding up to the next whole number, adding one for the end of the run, and then multiplying by two to account for both sides of the roof.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.