Roof Pitch Calculator
Find a roof's pitch, angle and slope, plus the rafter length.
Last updated 2026-11-27 · How we calculate this
Roof Pitch
Enter a rise and run to see the pitch.
Results assume a straight, flat roof plane. The rafter length is a theoretical line length, not a cut list: it does not include overhangs, birdsmouth cuts or ridge boards. Check structural sizes and roofing rules with your local code or a qualified professional.
Quick Answer
Roof pitch is the rise for every 12 of level run. Divide the rise by the run and multiply by 12: a roof that rises 6 in over 12 in is 6 ÷ 12 × 12 = 6/12, which is an angle of 26.57° and a 50% slope.
How to Use This Calculator
Measure how far the roof rises over a level distance, or enter the roof angle if you already know it. The calculator gives the pitch in the usual US form of rise over 12, the angle in degrees, the percent slope and the pitch multiplier. Add the rafter run, the level distance from the wall to the ridge, to get the rafter length along the slope. Rise and run can be in any units, even different ones.
- Choose "From rise and run" or "From an angle".
- Enter the rise and run, or the angle.
- Read the pitch, angle and slope.
- Add the rafter run if you want the rafter length.
The Formula
Pitch = rise ÷ run × 12 · Angle = tan⁻¹(rise ÷ run) · Multiplier = √(1 + (rise ÷ run)²)
The rise divided by the run gives the slope as a ratio. Multiplying by 12 turns it into inches of rise per foot of run, which is how US roofers state pitch. The angle comes from the inverse tangent of the ratio, and the percent slope is the ratio × 100. The pitch multiplier comes from the Pythagorean theorem: it is the length of the sloping side of a triangle whose level side is 1. Multiplying any level distance by it gives the matching length along the roof.
Worked Example
A rise of 6 in over a 12 in run is a 6/12 pitch: 26.57°, a 50% slope and a pitch multiplier of 1.118. A rafter run of 12 ft gives a rafter length of 12 × 1.118 = 13.42 ft.
From an angle: a 30° roof has a ratio of tan 30° = 0.5774, so its pitch is 6.93/12, its slope is 57.74% and its multiplier is 1.1547.
A low roof rising 4 in per 12 is 18.43° with a 33.33% slope, and a 12/12 roof is exactly 45°.
Metric: a roof that rises 1.5 m over a 3 m run has a ratio of 0.5, the same 6/12 pitch and 26.57° angle as the first example.
Frequently Asked Questions
Sources: International Code Council, 2021 International Residential Code, Section R905.2.2 (asphalt shingle slope); NIST Guide to SI, Appendix B (conversion factors)