Roof Pitch Calculator
This roof pitch calculator turns a rise and run into every form a roofer uses. Enter the rise over a 12-inch run, or your own run, and you'll get the pitch as a number in 12, the angle in degrees, the slope factor, and the grade percent. Add a horizontal span and it returns the rafter length too. It's free and accurate, you won't need an account, and it runs in your browser, so estimating shingles, framing rafters, or planning a solar layout takes seconds. You'll see the slope the moment you type.
- Pitch in 12
- Angle in degrees
- Slope factor
- Grade percent
- Rafter length
Last updated June 17, 2026 Rise over a 12-inch run Reviewed by the Calcowa team
Enter a run above zero to work out the pitch.
Pitch is the rise over a 12-inch run, so a 6-inch rise on a 12-inch run is a 6/12 pitch. The rafter length is the run-to-ridge distance, before any overhang.
How do you calculate roof pitch?
Roof pitch describes the slope as a rise over a run, and the standard run is 12 inches, so a roof that climbs 6 inches across 12 is a 6/12 pitch. To get the pitch in 12, you divide the rise by the run and multiply by 12. For the angle, you take the arctangent of rise over run, which turns 6/12 into about 26.6 degrees and a 12/12 into a clean 45. The slope factor is the rafter length over the run, found with the Pythagorean theorem as the square root of rise squared plus run squared, divided by the run; it stretches a flat distance into the sloped one, so you order roofing for the larger area. Grade is just the rise over run as a percent. You don't have to reach for a trig table or a framing square, and you won't fumble the square root, since it's all worked out for you. This tool runs all of it and adds the rafter length for any span you give it, so it's quick whether you're ordering shingles or cutting rafters.
Working out a slope, step by step
Here's the quick routine for any roof, and it's just three steps:
- 1
Measure the riseFind how far the roof climbs over a level run.
- 2
Set the runUse 12 inches for the standard form, or your own.
- 3
Read the slopeYou'll get pitch, angle, slope factor, and grade.
Common roof pitches
The angle and slope factor for the pitches you'll see most on homes.
| Pitch | Angle | Slope factor |
|---|---|---|
| 3/12 | 14.0° | 1.031 |
| 4/12 | 18.4° | 1.054 |
| 6/12 | 26.6° | 1.118 |
| 9/12 | 36.9° | 1.250 |
| 12/12 | 45.0° | 1.414 |
Frequently asked questions
You enter how much the roof rises over a set run, usually 12 inches, and it turns that into the four ways roofers describe a slope. It gives the pitch as a number in 12, the angle in degrees, the slope factor that stretches a flat distance into a sloped one, and the grade as a percent. Add a horizontal run and it returns the rafter length too. It all runs in your browser, so you'll see every figure update as you type.
Roof pitch is how steep the roof is, written as the rise over a 12-inch run, like 6/12, which means the roof climbs 6 inches for every 12 inches across. A low slope sits under 4/12, a common residential range is 4/12 to 9/12, and anything past 9/12 is steep. Builders favor the in-12 form because it is easy to mark on a framing square, and this tool converts it to degrees and a slope factor for you.
Take the rise divided by the run and find its arctangent, which is the angle. A 6/12 pitch is 6 divided by 12, or 0.5, and the arctangent of 0.5 is about 26.6 degrees. A 12/12 pitch is a perfect 45 degrees, since the rise equals the run. You don't have to reach for a trig table, because the calculator does the arctangent step and shows the angle alongside the pitch, so it's there at a glance.
The slope factor is the number you multiply a flat, horizontal distance by to get the true length along the slope, and it equals the rafter length over the run. For a 6/12 roof it is about 1.118, so 10 feet of horizontal run becomes 11.18 feet of roof surface. It matters because materials like shingles and underlayment cover the sloped area, not the footprint, so you'll want to order by the larger sloped figure, and that's why ignoring it leaves you short.
A rafter is the hypotenuse of the rise-and-run triangle, so its length is the run multiplied by the slope factor, before any overhang. Enter your horizontal run and the calculator returns the rafter length for that span, which is the straight-line distance from the wall to the ridge. Add a little for the eave overhang and the plumb cut, since the figure here is the bare run-to-ridge length.
Yes, it's completely free, with no sign-up, and it runs right in your browser, so nothing you enter leaves your device. Type a rise and run, read the pitch, angle, slope factor, and grade, and add a span for the rafter length. Bookmark it for roofing estimates, framing, solar layout, or a permit drawing, and you'll have an accurate slope breakdown whenever you need it.
Related tools
More construction and project tools.
Concrete, framing, and finish.
Stair CalculatorSteps, riser, tread, and stringer.
Square Footage CalculatorArea of a room or whole house.
Estimating a roof?
Work out the slope above, or browse all the construction tools.