Roof pitch calculator
Convert roof pitch to degrees, or an angle in degrees to a pitch, with the percent grade, slope ratio and rafter factor. Enter a rise per twelve, an angle, or a rise and run you measured. Add a run and it gives the rafter length.
Your roof
OPTIONAL · ADD A RUN FOR THE RAFTER LENGTH
26.5651°≈
Multiply your run by 1.118034 for the rafter length. Hips and valleys at this pitch are in the app.
angle = atan(rise ÷ 12)
RUN 12" RISE 6" ANGLE 26.5651°
Common roof pitches
Each of these has a page with its angle, grade and rafter lengths across five building spans:
1/12 · 2/12 · 3/12 · 4/12 · 4.5/12 · 5/12 · 6/12 · 6.5/12 · 7/12 · 8/12 · 9/12 · 10/12 · 11/12 · 12/12
Every pitch from 1/12 to 24/12 in one table is on the roof pitch chart, and the multiplier for each is on the rafter factor table.
Use this roof pitch calculator to convert a roof pitch to its angle in degrees, its percent grade, its slope ratio and its rafter factor. Pitch is written as rise per twelve inches of run: a 6/12 roof rises 6 inches for every foot of level run. Enter the pitch and all four values appear at once. Switch to DEGREES to go from an angle to a pitch, or to MEASURE to enter a rise and run you took from the roof itself.
Roof pitch to degrees conversion
Builders talk in ratios; saws and digital angle finders need degrees. The conversion is one arctangent: roof angle = atan(rise ÷ 12). A 4/12 pitch comes out at 18.4349°, a 6/12 pitch at 26.5651°, and a 12/12 pitch is exactly 45°. Only 12/12 gives an exact angle; every other pitch produces an irrational number, so the calculator marks every answer except 12/12 with ≈ to show the value is rounded.
Degrees to roof pitch
Going the other way is one tangent: rise per 12 = tan(angle) × 12. A 45° roof is exactly 12/12. A 30° roof is 6.93/12, which is framed as 7/12. 22.5° is 4.97/12, framed as 5/12, and 18° is 3.90/12, framed as 4/12. Roofs are framed to whole and half pitches, so the DEGREES mode gives the nearest half pitch beside the exact figure. Every whole pitch from 1/12 to 24/12 is on the roof pitch to degrees chart.
What is a good roof pitch for a shed?
Shed roof pitch depends on the roofing material. Asphalt shingles need at least 2/12, but most builders start at 3/12 for reliable drainage. Metal roofing can go as low as 1/12 with the right standing-seam profile. The pitch is worked out the same way for a shed as for a house.
Rafter factor and what it means for your cut list
The rafter factor (or roof pitch factor) is the number you multiply a horizontal run by to get the sloping length along the rafter. For a 6/12 pitch the rafter factor is 1.118034, so a 12 ft run gives a 13 ft 5 in common rafter (160.997 in), before the ridge deduction and overhang are counted. Enter the run above and the calculator works it out. The formula is √(144 + P²) ÷ 12 — the hypotenuse of a right triangle 12 in wide and P in tall, expressed per foot of run. The roof pitch multiplier table lists the factor for every pitch, with the hip and valley factor beside it.
Rafter length with an overhang, and for a shed roof
Add the overhang to the run before you multiply, measured level rather than along the slope. At 6/12, a 12 ft run with a 12 in overhang is 13 ft of run, so the rafter is 14 ft 6-7/16 in. A shed or lean-to roof has one slope, so its run is the full level distance the rafter covers, not half the building: a 10 ft wide shed at 4/12 needs a 10 ft 6-1/2 in rafter, or 11 ft 7-1/8 in with a 12 in overhang. For a diagonal that is not on a roof, use the diagonal calculator.
Percent grade and slope ratio
Roof pitch is written four ways, and which one you need depends on who is asking. Percent grade is rise ÷ run × 100, so a 6/12 roof is a 50% grade, the figure drainage drawings use. Slope ratio is written 1 : n, so 6/12 is 1 : 2. Degrees are what a saw or an angle finder reads. All four appear together above.
How to measure roof pitch from inside or outside
From inside the attic, hold a level against the underside of a rafter, mark 12 inches along it from where it touches the rafter, and measure straight up to the rafter — that is your rise per twelve. From a ladder at the eave, the method is the same against the roof surface. From the ground, take a square-on photograph of the gable end and measure the rise and run on the image: pitch is a ratio, so scaling does not change the answer. Round to the nearest half inch before you type it — roofs are framed to whole and half pitches.
Questions about roof pitch
How do you calculate roof pitch?
Hold a level out twelve inches from the roof surface and measure straight down to it: that drop is the rise per twelve, so a 6 in drop is a 6/12 pitch. From any other pair of measurements the formula is pitch = rise ÷ run × 12.
What is a 4/12 roof pitch in degrees?
18.4349°, which is atan(4 ÷ 12). As a percent grade that is 33.33%, the slope ratio is 1 : 3, and the rafter factor is 1.054093.
What is a 6/12 roof pitch in degrees?
26.5651°. It is the most common residential pitch, its grade is 50.00%, and its rafter factor is 1.118034 — so a 12 ft run gives a 13 ft 5 in rafter.
What pitch is a 45 degree roof?
12/12, exactly. The rise and the run are equal, so the angle is 45°, the grade is 100% and the rafter factor is 1.414214.
What pitch is a 30 degree roof?
tan(30°) × 12 = 6.93, so 6.93/12, which is framed as 7/12. A true 7/12 pitch is 30.2564°.
What pitch is a 22.5 degree roof?
tan(22.5°) × 12 = 4.9706, so a fraction under 5/12. A true 5/12 pitch is 22.6199°.
What is the most common residential roof pitch?
Most houses sit between 4/12 and 9/12, and 6/12 is the pitch that turns up most often in stock plans. Below 3/12 you are into low-slope territory and shingles stop being the right covering.
How do you work out rafter length from pitch and run?
Multiply the run by the rafter factor for the pitch, which is √(144 + P²) ÷ 12. At 6/12 the factor is 1.118034, so a 12 ft run gives a 13 ft 5 in rafter and a 16 ft run gives 17 ft 10-11/16 in. Enter the pitch and the run above and the calculator does it. That is the length along the top edge, before the ridge deduction and the overhang.
What is the rafter factor?
The number you multiply a horizontal run by to get the length along the rafter. It is √(144 + P²) ÷ 12, where P is the rise per twelve. It saves you working the hypotenuse every time.
How do you add an overhang to rafter length?
Add the overhang to the run, measured level, then multiply by the rafter factor. At 6/12 a 12 ft run plus a 12 in overhang is 13 ft of run, and 156 in × 1.118034 is 14 ft 6-7/16 in of rafter.
How do I find the pitch of my roof from the ground?
Take a square-on photograph of the gable end, measure the rise and run on the image, and divide: pitch is a ratio, so scaling does not change the answer. Round to the nearest half-inch — roofs are framed to whole and half pitches.
