Rafter Calculator
Input Parameters
Computed Results
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:
- Enter the Roof Span: Measure the total width of the building across the exterior walls in feet.
- 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).
- Set the Overhang: Enter the horizontal distance the eaves project past the exterior walls in inches.
- Specify Ridge Board Thickness: Enter the thickness of your ridge board in inches. Standard 2x dimensional lumber is typically 1.5 inches thick.
- 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.
Next, it determines the slope factor based on the roof pitch. The pitch is the ratio of rise over a 12-inch run.
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.
Inputs and Outputs Reference
| Category | Field Name | Description |
|---|---|---|
| Input | Roof Span | Total building span across exterior walls in feet. |
| Input | Roof Pitch | Inches of vertical rise for every 12 inches of horizontal run. |
| Input | Overhang | Horizontal projection past the exterior wall plate in inches. |
| Input | Ridge Board Thickness | Thickness of the ridge board in inches. |
| Output | Common Rafter Length | The cut length from the ridge to the wall plate (in feet). |
| Output | Total Length incl. Overhang | The full rafter length including the eaves (in feet). |
| Output | Total Rafters Required | The estimated total count of rafters needed for both sides of the roof. |
| Output | Total Roof Surface Area | The 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:
- Material Estimation: By calculating the total rafter length and the exact number of rafters required, you can accurately order lumber and minimize waste.
- Roofing Materials: The total roof surface area output helps in estimating the amount of underlayment, shingles, or metal roofing panels needed for the job.
- Framing Layout: Knowing the exact common rafter length and roof rise allows for precise marking and cutting of birdsmouth joints and ridge angles before assembly.
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.