Calculators.Life Calculator
Construction

Rafter Dimensions Calculator

Input Parameters

Scenarios
Total building width from exterior wall to exterior wall (feet).
Inches of vertical rise per 12 inches of horizontal run.
Horizontal distance the rafter extends past the exterior wall (inches).
Actual thickness of the central ridge board (typically 1.5 inches).

Computed Results

Total Theoretical Length
14.46
Line Length (Ridge to Wall)13.35
Overhang Rafter Length1.12
Recommended Lumber Stock Length16
Total Roof Rise5.97
Plumb Cut Angle26.57
Seat (Level) Cut Angle63.43

The rafter dimensions calculator determines the total theoretical length of a roof rafter, including the line length and overhang. It also calculates the required plumb cut and seat cut angles, total roof rise, and recommends the standard lumber stock length needed based on your building span and roof pitch.

Practical Use Cases

Accurate rafter measurements are essential for structural integrity and material planning in construction. This calculator is commonly used for:

Rafter Calculation Formula

The calculator uses right-triangle geometry to determine the rafter dimensions. The horizontal distance the rafter covers (the run) is calculated by taking half of the building span and subtracting half of the ridge board thickness.

Run = (Building Span ÷ 2) − (Ridge Thickness ÷ 2)

Next, a pitch multiplier is calculated using the roof pitch (rise per 12 inches of run) to find the hypotenuse of the triangle.

Pitch Multiplier = √(1 + (Pitch Rise ÷ 12)²)

The line length (from the ridge to the exterior wall) and the overhang length are then calculated by multiplying their respective horizontal distances by the pitch multiplier.

Total Rafter Length = Line Length + Overhang Length

The cut angles are determined using basic trigonometry. The plumb cut angle (where the rafter meets the ridge) is the arctangent of the pitch rise divided by 12, converted to degrees. The seat cut angle (where the rafter rests on the wall plate) is 90 degrees minus the plumb cut angle.

Verified Scenario Walkthroughs

Here are examples of how different building dimensions affect the rafter length and cut angles.

Small Shed with Minimal Overhang

For a small shed with an 8-foot building span, a 4/12 roof pitch, a 6-inch overhang, and a standard 1.5-inch ridge board, the line length is 4.15 feet. Adding the 0.53-foot overhang results in a total theoretical length of 4.68 feet. The calculator recommends purchasing 8-foot lumber stock. The plumb cut angle is 18.43 degrees, and the seat cut angle is 71.57 degrees.

Standard Residential Garage Build

Consider a garage with a 20-foot span, an 8/12 roof pitch, an 18-inch overhang, and a 1.5-inch ridge board. The line length is 11.94 feet, and the overhang adds 1.80 feet, bringing the total rafter length to 13.75 feet. This requires a recommended lumber stock length of 14 feet. The total roof rise is 6.63 feet, with a plumb cut angle of 33.69 degrees.

Large Barn Structure with Steep Pitch

A large barn with a 40-foot span, a steep 12/12 pitch, a 24-inch overhang, and a thicker 3.5-inch ridge board requires significantly longer materials. The line length is 28.08 feet, and the overhang is 2.83 feet, resulting in a total length of 30.91 feet. The recommended lumber stock is 32 feet. Because the pitch is 12/12, both the plumb and seat cut angles are exactly 45 degrees.

How to Use the Calculator

Follow these steps to determine your rafter dimensions:

  1. Enter the Building Span: Input the total width of the building from the outside of one exterior wall to the outside of the opposite exterior wall, in feet.
  2. Select the Roof Pitch: Choose the vertical rise in inches for every 12 inches of horizontal run.
  3. Input the Horizontal Overhang: Enter the distance the roof extends past the exterior wall horizontally, in inches.
  4. Specify Ridge Board Thickness: Enter the actual thickness of the central ridge board (typically 1.5 inches for standard framing lumber).

Inputs and Outputs Reference

FieldTypeDescription
Building SpanInputTotal building width from exterior wall to exterior wall (feet).
Roof Pitch (Rise / 12 Run)InputInches of vertical rise per 12 inches of horizontal run.
Horizontal OverhangInputHorizontal distance the rafter extends past the exterior wall (inches).
Ridge Board ThicknessInputActual thickness of the central ridge board (typically 1.5 inches).
Total Theoretical LengthOutputThe combined length of the line length and the overhang rafter length.
Recommended Lumber Stock LengthOutputThe standard even-foot lumber size required to cut the rafter.
Total Roof RiseOutputThe total vertical height from the top plate to the top of the ridge.
Plumb Cut AngleOutputThe angle of the cut where the rafter meets the ridge board (in degrees).
Seat (Level) Cut AngleOutputThe angle of the horizontal cut where the rafter rests on the wall plate (in degrees).

Frequently Asked Questions

How is the recommended lumber stock length determined?

The calculator determines the total theoretical rafter length and rounds it up to the next standard even-foot lumber size (e.g., 8, 10, 12, up to 32 feet) to ensure you purchase a board long enough to make the necessary cuts.

Why is the ridge board thickness subtracted from the run?

Because the rafters attach to the sides of the central ridge board rather than meeting perfectly in the center of the building, half of the ridge board's actual thickness must be subtracted from the total horizontal run to calculate the true line length of the rafter.

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.