Roof Pitch Calculator

What is the pitch of your roof? Enter the rise and run, the angle in degrees or the pitch as x in 12, and get all three forms plus the slope as a percent and the multiplier that turns a horizontal run into the length of the rafter along the slope.

Enter your roof

Units

The horizontal distance the rafter covers. The calculator gives the rise over that run and the rafter length along the slope.

Roof pitch

6/12 pitch

26.57° · 50% slope · roof length multiplier 1.118

Pitch in every form
Pitch (rise per 12 in of run)6 in 12
Angle26.565°
Slope (percent)50%
Roof length multiplier, √(1 + (pitch ÷ 12)²)1.118
Horizontal run entered12 ft
Rise over that run6 ft
Rafter length along the slope13 ft 5 in (13.42 ft)

Formulas: pitch = rise ÷ run × 12; angle = arctan(rise ÷ run); rafter length = run × √(1 + (pitch ÷ 12)²). The rafter length is the line length along the slope for the run you enter, before any overhang or cut allowance.

What roof pitch means and how it is written

Roof pitch compares how far a roof rises with how far it runs horizontally. In the United States it is written as the number of inches of rise for every 12 inches of run, so a 6/12 roof climbs 6 inches in each 12 inches of horizontal distance. The same slope can be written as an angle in degrees or as a percent, and the three are linked by simple trigonometry.

Pitch (x in 12) = rise ÷ run × 12
Angle = arctan(rise ÷ run)
Slope (percent) = rise ÷ run × 100
Length multiplier = √(1 + (pitch ÷ 12)²)

The calculator takes whichever form you know. Enter the rise and run in the same unit, or an angle above 0 and up to 83 degrees, or the x of an x/12 pitch, and it fills in the rest. Metric works too: a rise of 1.2 m over a run of 4 m is a pitch of 3.6/12, an angle of 16.7 degrees and a slope of 30 percent.

Worked example: 6 inches of rise in 12 inches of run

You measure 6 inches of rise over 12 inches of run and want the rafter length for a horizontal run of 12 feet.

  • Pitch: 6 ÷ 12 × 12 = 6/12
  • Angle: arctan(6 ÷ 12) = 26.57°
  • Slope: 6 ÷ 12 × 100 = 50%
  • Length multiplier: √(1 + 0.5²) = 1.118
  • Rise over a 12 ft run: 12 × 6 ÷ 12 = 6 ft
  • Rafter length: 12 × 1.118 = 13.42 ft, which is about 13 ft 5 in

Starting from an angle works the same way. A roof at 30 degrees has a pitch of 12 × tan(30°) = 6.93/12, a slope of 57.7 percent and a length multiplier of 1.155. A rise of 5 inches in a run of 20 inches is a pitch of 3/12, an angle of 14 degrees.

Pitch, angle and slope side by side

The table lists the common x/12 pitches. The length multiplier is how much longer the sloping surface is than the flat distance beneath it, so a 12-foot run at 6/12 gives a rafter 1.118 times as long.

Pitch, angle, slope and length multiplier
Pitch (rise in 12)AngleSlopeRafter length multiplier
2/129.5°16.7%1.014
3/1214°25%1.031
4/1218.4°33.3%1.054
5/1222.6°41.7%1.083
6/1226.6°50%1.118
7/1230.3°58.3%1.158
8/1233.7°66.7%1.202
9/1236.9°75%1.25
10/1239.8°83.3%1.302
12/1245°100%1.414

A 12/12 roof is at 45 degrees and has a slope of 100 percent, which is where rise equals run. Multiply a horizontal run by the multiplier from the row for your pitch to find the length along the slope. The same multiplier also scales roof area, so a plan area of 1,000 square feet at 6/12 becomes 1,118 square feet of roof surface, which feeds directly into the roofing calculator.

From pitch to rafter length

The optional run field gives the rafter length for the horizontal run you enter. For a gable roof the run is half the width of the building, measured from the outside of the wall plate to the center line of the ridge. The result is the length along the top edge of the rafter from the ridge to the plate, before any overhang, bird's mouth cut or ridge board allowance.

For a full rafter length with the ridge thickness taken out of the span and the overhang added, use the rafter calculator. To size stairs on a similar rise and run, see the stair calculator.

How to measure a roof you already have

From inside the attic, hold a level horizontal against the underside of a rafter, measure 12 inches along the level from the rafter, then measure straight up or down from the level's end to the rafter. That vertical distance in inches is the rise per 12 inches of run, which is your x/12. A phone or digital angle finder gives the angle directly, which you can enter in the angle field.

Measure in a place where the rafter is straight and unaltered, and take two or three readings. On an older house the roof may have sagged, so a reading from the middle of a span can read lower than the pitch the roof was built with.

Roof Pitch Calculator FAQ

How do I convert roof pitch to degrees?

Divide the rise by the run and take the arctangent. For a 6/12 roof that is arctan(0.5), or 26.57 degrees. A 12/12 roof is 45 degrees.

What does 6/12 pitch mean?

It means the roof rises 6 inches for every 12 inches it runs horizontally. That is an angle of 26.6 degrees and a slope of 50 percent.

How do I find the length of a rafter from the pitch?

Multiply the horizontal run by √(1 + (pitch ÷ 12)²). At 6/12 the multiplier is 1.118, so a 12 ft run needs about 13.4 ft of rafter, before overhang.

What is the difference between pitch and slope?

Pitch is usually written as inches of rise per 12 inches of run, such as 6/12. Slope is the same ratio written as a percent, so 6/12 is a slope of 50 percent.

Can I enter the angle from a phone level?

Yes. Choose "Roof angle in degrees" and enter the angle, above 0 and up to 83. The calculator returns the pitch as x in 12, the slope and the length multiplier.

Guides

Last updated . Free to use, no sign-up. How we check our numbers.