# Roof pitch calculator

Roof pitch is the rise over a 12-inch run. If you know a different run, divide rise by that run and multiply by 12. The roof angle is the arctangent of rise over run. The slope factor is the rafter length per unit of horizontal run, and it equals the square root of (rise² + run²) divided by the run. Multiply that factor by the horizontal rafter run in feet to get the rafter length.

Canonical page: https://tools.torontosoft.com/calculators/carpentry/roof-pitch-calculator/

## Formula

Pitch per 12 = (rise ÷ run) × 12. Angle = arctan(rise ÷ run). Slope factor = √(rise² + run²) ÷ run. Rafter length = horizontal run × slope factor.

## Worked example

A rise of 6 inches in a 12-inch run is a 6/12 pitch, about 26.57 degrees. The slope factor is 1.118. A rafter that covers 14 feet horizontally is about 15.65 feet long, before the tail and the ridge cut.

- Pitch: 6 / 12
- Angle: 26.57°
- Slope factor: 1.118
- Rafter length: 15.65 ft

## Assumptions

- The rafter length is the sloped line of the horizontal run you entered. It does not add overhang or subtract a ridge plumb-cut shortening.
- Pitch is a straight gable or a single rafter. Hips and valleys are longer.
- This is geometry, not a span table.

## Sources

- Pitch, angle, and slope factor are trigonometry. A 6/12 factor of 1.118 is √(6² + 12²) ÷ 12.

## Questions

### What is a 6/12 pitch in degrees?

About 26.57 degrees. A 4/12 is about 18.43 degrees. A 12/12 is 45 degrees.

### How do I find rafter length?

Multiply the horizontal run by the slope factor. For 6/12 the factor is about 1.118, so a 14-foot run is about 15.65 feet of rafter, not counting overhang.

### Does pitch include the overhang?

No. Pitch is the slope. Overhang is additional horizontal run past the wall, and it lengthens the rafter by that extra run times the same factor.


This is a planning estimate. It is not engineering, electrical design, or tax advice.
