MathPlainly

Roof Pitch Calculator: Angle, Slope Factor and Rafter Length

Turn a pitch like 6/12 into an angle, a percent slope, the multiplier for roof area, and the length of a rafter.

12 for the usual X/12 pitch
Optional, for rafter length
Pitch = °
Percent slope
%
Slope factor (area multiplier)
Rise of the roof
ft
Rafter length (no overhang)
ft

How roof pitch is calculated

Pitch is the ratio of rise to run. A roof that rises 6 inches over 12 inches of horizontal run is a "6/12" or "six-twelve" roof. From the ratio, the rest follows from a right triangle: the angle is the inverse tangent of rise ÷ run, the percent slope is the ratio times 100, and the length along the slope is the hypotenuse, which is the run times the square root of 1 plus the ratio squared.

That square root is the slope factor, and it is the number roofers use most. A roof is always larger than the footprint of the house under it, and the factor says by how much. At 6/12 the factor is 1.118, so a 1,000 square foot footprint is a 1,118 square foot roof. If you also have the building width, the calculator finds the run of one side (half the width) and the rafter length along the slope.

Worked example: a 24 ft wide building at 6/12

  1. Ratio: 6 ÷ 12 = 0.5, so the slope is 50%.
  2. Angle: arctan(0.5) = 26.57°.
  3. Slope factor: √(1 + 0.5²) = √1.25 = 1.118.
  4. Run of one side: 24 ÷ 2 = 12 ft. Rise: 12 × 0.5 = 6 ft.
  5. Rafter length along the slope: 12 × 1.118 = 13.42 ft.

Assumptions and rounding

Common pitches

PitchAnglePercentSlope factor
3/1214.0°25.0%1.031
4/1218.4°33.3%1.054
5/1222.6°41.7%1.083
6/1226.6°50.0%1.118
7/1230.3°58.3%1.158
8/1233.7°66.7%1.202
9/1236.9°75.0%1.250
10/1239.8°83.3%1.302
12/1245.0°100.0%1.414

Ready to order? The roofing calculator turns your footprint and pitch into squares and bundles of shingles.

Frequently asked questions

What does a 6/12 roof pitch mean?

The roof rises 6 inches for every 12 inches it runs horizontally. That is a slope of 50%, an angle of 26.6 degrees, and a slope factor of 1.118, meaning the roof surface is 11.8% bigger than the flat area beneath it.

How do I measure my roof pitch?

Place a level 12 inches long against the underside of a rafter in the attic, hold it level, and measure straight up from the 12 inch mark to the rafter. That measurement is the rise per 12. A pitch gauge or smartphone level app can also read the angle.

What is the slope factor used for?

The slope factor is the square root of 1 plus (rise ÷ run) squared. Multiply the flat footprint of a roof by it to get the actual roof surface area, which is what you need for roofing materials. The roofing calculator does this for you.

What is a low-slope or flat roof?

Very shallow roofs, roughly below 2/12, are generally treated as low-slope, and shingle makers set their own minimum pitch. Check the manufacturer’s minimum for the product you plan to use before buying.

How long are my rafters?

Rafter length along the slope is half the span times the slope factor. A 24 ft wide building at 6/12 has 12 ft of run, so each rafter is 12 × 1.118 = 13.4 ft before adding the overhang and subtracting any ridge board.

Related calculators

Reviewed 2026-12-06 by the MathPlainly editorial team. Formulas are checked against hand-worked examples. Results are estimates for planning, not engineering advice.