Formula and units
Slope (%) = rise ÷ horizontal run × 100. Angle = arctan(rise ÷ run). In the common inches-per-foot convention, pitch = rise in inches per 12 inches of horizontal run. Use horizontal run, not rafter length.
Worked example
A roof rising 6 inches over 12 inches of horizontal run has a 6:12 pitch, 50% slope and an angle of about 26.6°.
Assumptions and limits
Measure the horizontal projection and keep rise and run in the same units. Roof geometry, overhangs and local definitions can differ. Pitch alone does not establish structural capacity, drainage compliance or fall protection needs.