Rafter Length Calculator
Calculate total rafter length, clear-span rafter length, pitch angle, slope percentage, pitch ratio, and geometric dimensions based on roof span, rise, and overhang. Rafter Length Calculator helps roofers, builders, framers, and homeowners plan accurate roof framing and material cuts.
Highlights
- Calculate accurate total and clear-span rafter lengths.
- Determine roof pitch angle, slope percentage, and pitch ratio.
- Account for eave overhangs in total rafter measurements.
- Calculate horizontal run and total vertical rise.
- Supports multiple units, including feet, inches, metric, and yards.
Table of Contents
How Rafter Length Calculator Works?
The Rafter Length Calculator models one side of a symmetrical roof as a right triangle. The roof span is the full horizontal distance between the exterior wall supports, so the horizontal run from the ridge centerline to one wall is half of the roof span.
Here, S is the roof span and R is the horizontal run to the wall. The clear-span rafter length is calculated with the Pythagorean theorem using this run and the roof rise.
H represents the roof rise from the wall support level to the ridge. The eave overhang extends the horizontal run beyond the wall, so the total horizontal run is:
where O is the eave overhang. The calculator preserves the same roof pitch across the overhang. Therefore, the total vertical rise from the outer eave edge to the ridge is:
The total rafter length, including the overhang, is then:
The pitch angle, slope percentage, and pitch ratio describe the same roof inclination in different forms.
For example, with a 30 ft span, 6 ft rise, and 1.5 ft overhang, the run to the wall is 15 ft, the total run is 16.5 ft, the clear-span rafter length is approximately 16.16 ft, the total vertical rise is 6.6 ft, and the total rafter length is approximately 17.77 ft. The pitch is approximately 21.8°, the slope is 40%, and the pitch ratio is 4.8 in/12.
| Output | Calculation basis |
|---|---|
| Clear-Span Rafter Length | Rafter from ridge to wall support |
| Total Rafter Length | Rafter from ridge to outer edge of overhang |
| Horizontal Run | Half the roof span |
| Total Horizontal Run | Horizontal run plus eave overhang |
| Total Vertical Rise | Total run multiplied by the roof rise-to-run ratio |
| Pitch Angle | Inverse tangent of rise divided by run |
| Slope | Rise divided by run, expressed as a percentage |
| Pitch Ratio | Rise for every twelve parts of horizontal run |
Practical Use Cases
Roofers can use the calculator to determine the sloping cut length of individual rafters, including the additional length required for an eave overhang, before preparing material or laying out cuts.
Builders and framers can use the clear-span length, total run, rise, and pitch ratio to coordinate roof framing, ridge height, wall placement, and rafter layout on new construction projects.
Roofing material estimators can use the calculated rafter geometry to assess the sloped dimensions of a roof section when planning framing quantities and preliminary material requirements.
Architects and designers can compare pitch angles, slope percentages, and pitch ratios when developing roof profiles, elevations, and preliminary building plans.
Homeowners and DIY renovators can estimate rafter dimensions for garages, sheds, porches, and home additions by entering the span, rise, and desired eave overhang.
Building inspectors and project reviewers can use the independent pitch and length outputs to check whether proposed roof geometry is consistent with the stated span, rise, and overhang.
Accuracy and Limitations
The calculator provides geometrically accurate results for a straight, symmetrical roof plane using the entered span, rise, and horizontal eave overhang. It assumes the roof pitch continues uniformly through the overhang and that the roof span is divided equally at the ridge. Results do not account for ridge-board thickness, wall-plate offsets, birdsmouth cuts, plumb or seat cuts, fascia details, framing tolerances, compound roof shapes, unequal roof slopes, structural loading, or local building-code requirements. The inputs are limited to roof span values from 1 to 500, roof rise values from 0.01 to 500, and eave overhang values from 0 to 100, with results rounded for display.
Quick Examples
Example #1: Standard Residential Gable Roof
Calculate rafter dimensions for a typical residential roof with a moderate pitch and eave overhang.
Example #2: Compact Shed Roof
Determine the rafter length and roof geometry for a small shed or outbuilding.
Example #3: Large Workshop Roof
Calculate framing dimensions for a large workshop using metric measurements and a relatively steep roof pitch.