CalculatorSignAll calculators

Roof Slope from Run and Rafter Length Calculator

Find a straight roof slope in rise-per-twelve notation and degrees from matched horizontal run and sloped lengths.

Roof Slope from Run and Rafter Length Calculator

Result
—

Use this calculator on your site

Paste the full code, including the CalculatorSign credit, into a Custom HTML block on your site.

Preview widget

Find a roof's slope when you know the horizontal run and the sloped length between the same two points. Enter both measurements in feet. The calculator reports pitch as rise per twelve inches of run. It also shows the estimated vertical rise, the inclination in degrees and the grade as a percentage.

The two lengths must describe one straight section. For example, both may run from the same eave measurement point to the same ridge position. The horizontal run is the projection of that sloped section onto a level plane. It is not the full building width unless that entire width is truly the projection of the section you measured.

Recover the vertical side of the triangle

The horizontal run, the vertical rise and the sloped length form a right triangle. The sloped length is the longest side. Square the sloped length and subtract the square of the run. The square root of the difference is the rise. The calculator uses an algebraically equivalent form that multiplies the difference of the two lengths by their sum before taking the square root.

Once the vertical rise is known, divide it by the run. This ratio tells you how many units of rise occur per unit of horizontal travel. Multiply by twelve to express the result in the familiar rise-per-twelve notation. Because the ratio is unitless, the pitch notation describes the same slope whether the original lengths are measured in feet or inches, provided both inputs use matching units and the output rise is interpreted accordingly.

To find the angle in degrees, take the arctangent of the rise-to-run ratio. To find percent grade, multiply the ratio by 100. A pitch near 6:12 has a grade near fifty percent, while its angle is only about 26.6 degrees. Percent grade and angle describe the same slope using different scales.

Worked example from a 12-foot run

Consider a straight run of 12 feet and a measured sloped length of 13.42 feet over the same endpoints. The squared sloped length is 180.0964 square feet. Subtracting 144 square feet leaves 36.0964. Its square root is about 6.008 feet of vertical rise.

Dividing that rise by twelve gives a ratio near 0.5007. Multiplying by twelve for pitch notation produces a result displayed as 6.01:12. The angle is roughly 26.6 degrees and the grade about 50.07%. The result is close to a nominal six-in-twelve pitch because the entered sloped length is close to the expected value for that design.

For comparison, an exact six-foot rise over a twelve-foot run would have a sloped length of the square root of 180 square feet, or about 13.4164 feet. A measurement rounded to two decimal places can shift the recovered pitch slightly. Use the underlying dimensions or a documented nominal pitch when you need to confirm a product specification.

Check where each length begins and ends

A rafter laid out for a roof may extend past the outside wall to form an overhang. If that overhang is included in the sloped measurement, the matching horizontal projection should include it too. A plumb cut, ridge thickness or another offset can change the endpoints described by a construction dimension. Confirm where the line begins and ends before pairing the measurements.

A roof can have more than one pitch. Check one plane at a time if there are different roof sections, a change at a dormer or a break in slope. A single length across two connected sections generally cannot identify the individual pitches. Preserve each pair of measurements with a label for the roof plane it represents.

If the lengths are almost equal, the recovered rise can be sensitive to small rounding changes because the slope is shallow. A sloped length smaller than the horizontal run cannot form the required triangle. A discrepancy of that kind can point to mixed units or unmatched endpoints.

The calculation describes geometry. It cannot establish allowable loads, drainage performance or compatibility with a particular roofing system. Use the resulting measured angle or pitch alongside the relevant drawings and specifications when comparing dimensions.

When comparing several roof faces, label the measurement pair for each one before copying the results into a drawing note.

Frequently asked questions

Can I use half the building width as the run?

That can represent the horizontal run of one slope on a centered gable roof without accounting for additional offsets. Make sure it ends at the horizontal projection of the same point used by the sloped length.

What if both inputs are equal?

The triangle then has zero vertical rise. The pitch, angle and percent grade are zero.

Does 6:12 mean six degrees?

It means six inches of rise per twelve inches of horizontal run. The corresponding angle is about 26.6 degrees.

Does the calculator convert inches automatically?

The form labels both inputs in feet. Convert inch measurements to feet before entering them so the displayed vertical rise also uses feet.