What roof pitch means
Roof pitch is the slope of a roof expressed as rise over a 12-inch run. A 6:12 pitch rises 6 inches for every 12 inches of horizontal run. The same slope can also be written as an angle in degrees or as a percent grade. This calculator keeps all three in sync, and it also gives the rafter length and the slope factor used to turn a floor-plan footprint into roof surface.
In the United States, carpenters almost always speak in X-in-12. Architects often prefer degrees. Material takeoffs care about the slope factor: multiply the building’s plan area by that factor to estimate the roof covering on a simple gable or shed, before overhangs and wasted cuts.
How to measure rise and run
The attic method is the most common. Place one end of a level against the underside of a rafter, then adjust the level until the bubble is centered so the tool is truly horizontal. From the point where the level meets the rafter, measure 12 inches along the level. At that 12-inch mark, measure straight up to the rafter. That vertical distance is the rise. If you measure 6 inches, the pitch is 6:12.
From outside, rise is the height from the top of the wall plate to the ridge. Run for one side of a gable is half the building width (plus any overhang you want in the rafter length). On a phone, use Measure with phone and lay the device screen-up on a rafter. The page reads the tilt relative to gravity; it does not send motion data anywhere.
The math
Treat the roof as a right triangle. Run is the adjacent side, rise is the opposite side, and the rafter is the hypotenuse:
- Angle = arctan(rise ÷ run)
- X:12 = (rise ÷ run) × 12
- Grade % = (rise ÷ run) × 100
- Rafter = √(rise² + run²)
- Slope factor = rafter ÷ run = 1 ÷ cos(angle)
Worked example: rise 6 in, run 12 in. Angle = arctan(0.5) = 26.57°. Grade = 50%. Rafter = √(36 + 144) = 13.416 in. Slope factor = 13.416 ÷ 12 = 1.118. A 20 × 16 ft plan (320 sq ft) on a matching gable then has about 358 sq ft of roof surface, or 3.58 squares, before waste.
Common pitches
These figures are geometry, not a building-code table. Always check the shingle manufacturer and the local building department for the roof you are actually building.