Skip to content

Online Rafter Length Calculator

    Find rafter slope length online from the horizontal run and roof pitch. See the matching rise, slope angle and percent slope alongside the length result.

    Roof measurements

    Rafter Length Calculator

    Calculate rafter slope length from the horizontal run and roof pitch. See the vertical rise, slope angle and percent slope in the same result.

    Known measurements

    Horizontal runRiseRafter lengthθ

    Run is the horizontal distance from the wall to the ridge, not the full roof span. Lengths accept decimals or fractions, such as 8.5 or 8 1/2.

    Enter the rise for every 12 units of horizontal run. A 6:12 pitch means 6 inches of rise per 12 inches of run.

    For rafter calculations on your phone, Unit Converter is free to download and includes a Rafter tool in its Construction Calculator.

    How to use this tool

    1. Choose the Horizontal run unit, then enter the horizontal distance from the wall to the ridge. Use the run for one roof slope, not the full roof span.
    2. Enter Roof pitch as the rise per twelve units of run. Enter only the rise amount in that field, not a colon-separated ratio.
    3. Click Calculate to see the rafter slope length and rise. Choose Result units for the displayed lengths.

    What is a rafter?

    Rafters are the sloping members that form the framework of a roof and support its sheathing, the boards or panels beneath the roof covering. On a gable roof, the familiar roof shape with two sloping sides, pairs of common rafters extend from the outside walls to the ridge where the slopes meet.

    Rafter length is needed when planning the roof framing and estimating the timber for it. It follows the slope of the roof, so measuring the building’s width alone does not give the length of the timber. A rafter length calculator finds that sloping distance from the horizontal run and roof pitch.

    Understanding span, run, rise and roof pitch

    A roof’s dimensions are easier to understand when viewed from the end. Each sloping side forms a right triangle: the run is its horizontal base, the rise is its vertical height, and the rafter follows the diagonal.

    Span
    The distance across the building between the outside faces of the supporting walls. For a symmetrical gable roof, the ridge sits halfway across this distance.
    Run
    The level distance from the outside of a supporting wall to the ridge centerline. On that symmetrical roof, each side’s run is half the span.
    Rise
    The vertical difference between the roof slope at the outside wall and at the ridge. It is the height of the roof triangle, rather than the height of the whole building.
    Roof pitch
    The steepness of the slope. In the rise-per-12 notation used here, the first number gives the vertical rise for every 12 units of horizontal run. Both distances use the same unit.

    For the same run, a higher pitch produces a higher ridge and a longer rafter. For the same pitch, increasing the run increases both the rise and the rafter length in proportion.

    How rafter length is calculated

    The calculation uses the Pythagorean theorem, which relates the three sides of a right triangle. First, the roof pitch gives the rise. If p is the rise-per-12 pitch number:

    Rise = run × p ÷ 12

    The run and rise then give the sloping length:

    Rafter length = √(run² + rise²)

    Run and rise must be expressed in the same length unit, and the answer is in that unit too. The calculator carries out these steps and displays the rise, rafter slope length, slope angle and percent slope together.

    Rafter overhang and the ridge board

    A rafter often continues beyond the outside wall to form the eave. This extension is the rafter overhang. Its horizontal projection is the level distance past the wall; the timber itself follows the roof slope. The same pitch relationship determines the sloping length of this extra section.

    At the top, a ridge board occupies space between the two roof slopes. With a centered ridge board, the horizontal distance to its near face is half the building span minus half the board’s thickness. This shorter run gives the slope length up to the board. Adding the horizontal projection of the overhang to that run gives the distance used to calculate the full slope length from the ridge face to the end of the eave.

    More tools: Browse all calculators and unit converters.

    Keep a rafter calculator on your phone

    Use the Rafter tool in Unit Converter’s Construction Calculator to find slope length and related roof measurements from run and pitch. Download Unit Converter free from the App Store or Google Play.

    Leave a Reply

    Your email address will not be published. Required fields are marked *