Roof Pitch Calculator
Convert roof rise and horizontal run into x-in-12 pitch, degrees, percentage slope, pitch factor, and a theoretical common-rafter line length for a symmetrical gable roof.
How to calculate roof pitch
Roof pitch and rafter geometry formulas
Rise divided by run is the roof slope ratio. Multiplying this ratio by 12 expresses the pitch in x-in-12 form. The angle comes from the arctangent of the ratio, and the pitch factor is the hypotenuse for one unit of horizontal run.
Roof angle = arctan(Rise ÷ Run)
Slope percentage = (Rise ÷ Run) × 100
Pitch factor = √(1 + (Rise ÷ Run)²)
Rafter line = (Span ÷ 2 + Horizontal overhang) × Pitch factor
The rafter result is the straight-line hypotenuse based on half the building span plus horizontal overhang. It excludes ridge thickness, seat cuts, plumb cuts, tail details, fascia, structural deflection, and field adjustments.
Common roof pitches and angles
Rounded geometric conversions.
| Pitch | Angle | Slope | Pitch factor |
|---|---|---|---|
| 2:12 | 9.46° | 16.67% | 1.0138 |
| 4:12 | 18.43° | 33.33% | 1.0541 |
| 6:12 | 26.57° | 50.00% | 1.1180 |
| 8:12 | 33.69° | 66.67% | 1.2019 |
| 12:12 | 45.00° | 100.00% | 1.4142 |
Methodology, assumptions and sources
All outputs follow right-triangle geometry. The pitch factor is derived from the Pythagorean theorem and the angle from the arctangent of rise divided by run. Results are rounded only for display.
OSHA uses a slope greater than 4 in 12 as part of its steep-roof definition for construction fall-protection rules. That terminology is included as a safety reference, not as structural or roofing-system design guidance.
Sources:
- OSHA — Fall protection on steep roofs — steep-roof terminology and construction safety context.
- NIST Handbook 44, Appendix C (2026) — customary unit relationships.
Last reviewed: August 2026. This calculator is not a substitute for structural design, code review, manufacturer instructions, or jobsite safety planning.