Boneyard Tools

Roof Pitch and Slope Calculator

Type in the vertical rise and horizontal run of a roof and this calculator returns the pitch as an x:12 ratio, the angle in degrees, the slope factor and the percent grade. Everything updates as you type, so you can compare a shallow and a steep roof in seconds. A second field turns a run in feet into a finished rafter length using the same slope.

How to find roof pitch

  1. Measure the vertical rise across a fixed horizontal run, most often 12 inches.
  2. Type the rise into the Rise (inches) box.
  3. Type the run into the Run (inches) box, or leave it at 12 for a standard reading.
  4. Read the four result tiles: Pitch as x:12, Angle in degrees, Slope factor and Grade.
  5. Enter a horizontal run in feet under Rafter length to size the sloped rafter.
  6. Click Copy results to grab the full summary as a single line of text.

Examples

A standard 6:12 roof

Rise 6 in, Run 12 in
Pitch 6:12, Angle 26.57 degrees, Slope factor 1.118, Grade 50%

A shallow 4:12 roof

Rise 4 in, Run 12 in
Pitch 4:12, Angle 18.43 degrees, Slope factor 1.0541, Grade 33.33%

A rafter for a 6:12 roof over a 20 ft run

Rise 6 in, Run 12 in, then 20 ft run
Rafter length 22.3607 ft (run times the 1.118 slope factor)

Frequently asked questions

What does a 6:12 roof pitch mean?

It means the roof climbs 6 inches vertically for every 12 inches of horizontal travel. In this tool that reads as a 6:12 pitch, an angle of 26.57 degrees, a slope factor of 1.118 and a 50 percent grade.

How does it convert roof pitch to degrees?

It takes the arctangent of rise divided by run and converts to degrees. For a 6:12 roof that is arctan(6/12), which rounds to 26.57 degrees. A 12:12 roof comes out at exactly 45 degrees.

What is the slope factor used for?

The slope factor is the rafter length per unit of horizontal run, equal to the square root of rise squared plus run squared, divided by the run. Multiply your run by it to get rafter length or true sloped area for ordering shingles and underlayment.

Do I have to use a run of 12 inches?

No. The run field accepts any positive number, and the tool normalizes the result back to a run of 12 so the ratio is comparable. A rise of 5 over a run of 10, for example, still reads as a 6:12 pitch.

How is the rafter length calculated?

It multiplies the run you enter in feet by the slope factor for your pitch. A 20 foot run on a 6:12 roof gives 22.3607 feet, before you add any overhang or subtract for the ridge board.

How precise are the results?

The angle and grade are rounded to two decimals, the slope factor to four decimals and the rafter length to four decimals. That is plenty for framing and material takeoffs, though your saw cuts will round to the nearest practical mark.

What counts as a low slope versus a steep roof?

Pitches below 4:12 are considered low slope and shed water slowly, so they often need a fully adhered membrane rather than standard shingles. Pitches of 9:12 and steeper are hard to walk and usually call for roof jacks or a harness.

How do I measure roof pitch without climbing on the roof?

Hold a level against a rafter or the underside of the roof in the attic, mark 12 inches along it while it reads level, then measure straight down to the roof at that mark. The vertical drop is your rise over a 12 inch run.

Is my data kept private?

Yes. Every calculation runs in your browser with plain arithmetic, nothing is uploaded, and the tool keeps working with no connection once the page has loaded.

Learn more

Related tools