Roof Pitch Calculator

Enter the rise and run you measured, plus the horizontal run of the rafter. You get the pitch, angle in degrees, slope percentage and the length of the rafter.

Jump to your result ↓

Your project

How far the roof goes up over the run.

The horizontal distance. 12 in is the usual reference.

Results

Example job shown. Change the numbers to match yours.

Roof pitch
6.0 / 12
Angle
26.6 degrees
Slope
50.0 %
Slope multiplier (roof area ÷ footprint)
1.118

Rafter

Rafter length (no overhang)
16.77 ft
Rafter length
201.2 in
  • Add the overhang (measured along the slope) and subtract half the ridge board thickness for a cut length.

Blueprint

12 in6 in

26.6 ° angle

How this calculator works

Pitch is how much the roof rises for each 12 inches of horizontal run, written as x/12. Mathematically it is the slope: rise ÷ run. The angle is the arctangent of the slope, and the length of a rafter is the hypotenuse of a right triangle whose base is its horizontal run.

angle = arctan(rise ÷ run)rafter = horizontal run × √(1 + (rise ÷ run)²)

Worked example: a 6 in rise over a 12 in run is a 6/12 pitch: a 26.6° angle and a 50% slope. A rafter with a 15 ft horizontal run is 15 × 1.118 = 16.77 ft long, before overhang.

Assumptions and sources

The assumptions behind your numbers (waste, sizes, rates) are listed in the notes directly under your results, and they update when you change an input.

The formula and a worked example are shown above, so you can check any result by hand. Read how we calculate and check our numbers. Results are estimates for planning: supplier products vary, so check the size printed on the label.

Tips before you buy

  • Measure pitch inside the attic: hold a level horizontally against a rafter, measure 12 in along the level, then measure straight up to the rafter.
  • Roofs below 2/12 count as "flat" for roofing purposes and need different materials, such as membrane roofing, not shingles.
  • Most residential roofs fall between 4/12 and 9/12.

Frequently asked questions

What is a 6/12 roof pitch in degrees?

About 26.6°. A 4/12 pitch is 18.4°, 8/12 is 33.7° and 12/12 is 45°.

How do you convert roof pitch to percent slope?

Divide the rise by the run and multiply by 100. A 6/12 pitch is 6 ÷ 12 = 0.5, which is 50%.

How do I find rafter length?

Multiply the rafter's horizontal run by √(1 + (rise ÷ run)²). For a 15 ft run at 6/12, that is 15 × 1.118 = 16.77 ft.

Add this calculator to your website

Running a blog, a contractor site or a class page? You can put this calculator on it for free. Copy the code below, and please leave the link underneath the calculator in place. The small script just resizes the frame to fit the results; if your site strips scripts, the calculator still works inside a scrolling frame.

Get the embed code

Related calculators & guides

Estimates only. Results assume standard materials and simple shapes. Supplier products vary, and the final call on quantity, structure and safety is yours. Check your local code and your supplier's guidance before ordering.