Home › Roofing › Roof Pitch Calculator
Roof Pitch Calculator
Trigonometry, plus the IRC R905 thresholds the same pitch trips
Pitch is written four different ways and they are all the same angle. Rise per 12 is what a framing square is marked in, degrees is what a phone reports, percent is what a civil drawing uses, and rise over span is what an older builder means by a quarter pitch. Convert between them here, get the rafter length, and see the three points where the code changes its mind about your roof.
Roof pitch, in whichever form you have it
Rafter lengths are line lengths along the slope, plate to ridge centreline. Overhang and the ridge deduction are not included.
Specification summary
Generated from on . Reopen that address to reproduce these figures exactly.
Entered
Result
Worked example
- Pitch. 12 in over 24 in is 6 in over 12, so 6:12.
- Angle. arctan(6/12) = 26.57 degrees.
- Percent. 6/12 = 50%. Note that 50% slope is not 45 degrees, which catches people out.
- Slope factor. √(144+36)/12 = 1.1180, so 11.8% more roof than footprint.
- Common rafter. Half of 28 ft is a 14 ft run, times 1.1180 = 15.65 ft, with the ridge 7 ft above the plate.
The formula
- r
- rise in inches per 12 in of run. The framing form
- θ
- the angle from horizontal, in degrees
- percent
- rise over run as a percentage. 100% is 45 degrees, not vertical
- factor
- slope length over horizontal length. Multiplies footprint into roof area
- rise over span
- the old form. A 6:12 is a quarter pitch, because the rise is a quarter of the span
Four names for one angle
Measuring a pitch you cannot climb on
Why your measurement is not a whole number, and why it probably is one
Rafter length, and what this page leaves off it
Frequently asked questions
- How do I calculate roof pitch?
- Hold a level against the underside of a rafter, mark 12 in along it, and measure vertically from that mark up to the rafter. That reading is the rise per 12 in of run, so a 6 in reading is a 6:12 pitch. Using a 24 in level and marking 12 in halves the effect of any error in the vertical measurement.
- What is a 6:12 pitch in degrees?
- 26.57 degrees. The conversion is the arctangent of the rise over 12, so arctan(6/12) = 26.57. A 4:12 is 18.43 degrees, an 8:12 is 33.69 and a 12:12 is exactly 45.
- What is a 6:12 pitch as a percentage?
- 50%. Percent slope is rise over run, so 6 over 12 is 50%. Note that this is not halfway to vertical: 50% slope is 26.57 degrees. Percent reaches 100% at 45 degrees and keeps going above it, so a 24:12 roof is a 200% slope.
- What does quarter pitch mean?
- A 6:12 roof. The old form measures rise against the full span rather than the run, and the run is half the span, so a rise of a quarter of the span is 6 in per 12 in of run. By the same logic a half pitch is 12:12, not 6:12, which is where the confusion usually starts.
- How long is a rafter for a 28 foot span at 6:12?
- 15.65 ft as a line length each side. Half the span is a 14 ft run, and the slope factor for 6:12 is 1.1180, so 14 x 1.1180 = 15.65 ft from the outside of the plate to the ridge centreline. Add the overhang at the same factor and take off half the ridge thickness.
- What is the lowest pitch for a shingle roof?
- Two units vertical in 12 horizontal, per IRC R905.2.2, and between 2:12 and 4:12 the underlayment must be doubled. Below 2:12 asphalt shingles are not permitted at all and the roof needs a different covering.
- My measured pitch is 5.9:12. What is it really?
- Almost certainly a 6:12. Roofs are cut in whole rises because that is how framing squares and rafter tables are marked, and a measurement is moved by sag, sheathing thickness and where the level sat. A reading within a tenth or two of a whole number is that number.
Check these numbers yourself
- 2018 Seattle Residential Code, Chapter 9 Roof AssembliesSeattle Department of Construction and Inspections. Prints IRC R905.2.2, which sets the 2:12 minimum for asphalt shingles and the doubled underlayment between 2:12 and 4:12, and R905.2.6, which hands attachment to the manufacturer above 21:12.
How every figure here is verified: Sources & Method. Who builds this: About. Found something wrong? Tell us and it gets fixed or removed.
Figures on this page last checked against the source documents on 2026-09-08. Codes are amended locally; confirm against the edition your jurisdiction enforces.
Related calculators
Conversions are exact, measurements are not. Rafter lengths are line lengths from the plate to the ridge centreline, with no overhang added and no ridge deduction taken. The code thresholds shown are from IRC Chapter 9 as printed in the 2018 Seattle Residential Code, read 8 September 2026, and your jurisdiction may have amended them.