Roof Pitch Calculator
Find rise, rafter length and roof angle from run and pitch (x:12) or from run and rise — results in both imperial and metric.
Calculation results
Pitch
Roof angle
Rise
Rafter length
Rafter length is the structural rafter span (run to ridge). Add overhang length separately when cutting full rafter stock.
Understanding the formula
All roof pitch calculations are right-triangle geometry: the run is the horizontal leg, the rise is the vertical leg, and the rafter is the hypotenuse.
The x:12 convention means “X inches of rise for every 12 inches of run”.
A 6:12 pitch rises 6 inches for every horizontal foot, giving a 26.6° angle and
a slope of 50 %. Converting to degrees is atan(6/12) × 180/π.
Worked example
A house 24 ft wide with a 6:12 pitch (run = 12 ft for a symmetric gable):
- Rise = 12 × (6 / 12) = 6 ft
- Rafter = √(12² + 6²) = √(144 + 36) = √180 = 13.416 ft
- Angle = atan(6/12) = 26.57°
- Slope = (6/12) × 100 = 50 %
Common roof pitches at a glance
Reference table for the most common residential pitches:
| Pitch | Angle | Slope % | Rafter factor* | Common use |
|---|---|---|---|---|
| 2:12 | 9.5° | 16.7 % | 1.014 | Low-slope, sheds |
| 4:12 | 18.4° | 33.3 % | 1.054 | Ranch homes |
| 6:12 | 26.6° | 50.0 % | 1.118 | Most common residential |
| 8:12 | 33.7° | 66.7 % | 1.202 | Steeper residential |
| 9:12 | 36.9° | 75.0 % | 1.250 | Cape cod style |
| 12:12 | 45.0° | 100 % | 1.414 | Very steep / decorative |
* Rafter factor = rafter / run = 1 / cos(angle). Multiply footprint width by this factor to get roof surface width per side.
Common mistakes & tips
- Run is half the span. For a symmetrical gable roof on a 24-ft-wide building, the run is 12 ft — not 24 ft. Enter the half-width.
- Rafter ≠ rafter stock length. The calculator gives the structural rafter (ridge to wall plate). Add the overhang (tail) separately when ordering lumber.
- Check local codes for minimum pitch. Asphalt shingles typically require 2:12 minimum; some materials (standing seam metal, TPO) go lower.
- Hip roofs vs. gable roofs. The calculator applies to one plane of a gable roof. Hip roofs have diagonal hip rafters that are longer — use a dedicated hip rafter calculator or add ~15 % to the hip rafter length.