How roof pitch works
A roof pitch describes how steeply a roof rises over a horizontal distance. This tool connects rise and run to degrees, percent and US X/12 notation.
How do you figure roof pitch?
Measure the rise of one slope over a known horizontal run and divide the rise by the run. Multiply by 12 for the US X/12 pitch, by 100 for the slope in percent, or take the arctangent for the angle in degrees. In the attic, hold a level flat against the underside of a rafter: the vertical drop from the rafter to the level, 12 inches out, is the X in X/12.
What is the slope of a roof?
The slope of a roof is how steeply one roof plane rises over its horizontal run. In the US it is written as an X/12 pitch, in Europe mostly as a percentage or an angle; all three describe the same ratio, and the calculator shows them side by side together with the rafter length.
Rise, run and rafter: three different lengths
- Rise
- Vertical difference between the ends of one slope, not the whole building height.
- Horizontal run
- The level projection of that slope, not its sloping length. Half a building span applies only to known symmetric geometry; the calculator never halves your input.
- Rafter length
- The straight sloping side, excluding overhang, cuts and construction allowances.
- Pitch, percent and angle
- Degrees measure the angle above horizontal. Percent means rise per 100 horizontal units; US X/12 uses 12. X/12 is a convention, not a building rule.
Choose and enter your measurements
- Identify both ends of one straight slope. Use their height difference and horizontal projection from the same reference, on an existing drawing or at accessible measurement points.
- Use Pitch for rise and run. Use Lengths when you know a rafter length or an angle plus a length. Each field has its own unit, so convert feet and inches through the selectors rather than entering a mixed expression.
- Read X/12 alongside degrees and percent. Changing the display unit preserves the physical measurement; changing precision only rounds the displayed answer. Changing a mode or known-value selection starts fresh.
Step-by-step guides: How to measure roof pitch from the attic · Roof area from Google Maps: measure and correct for pitch
When the steps are done, one page combines the pitch, the covering and the timber into a printable material list: Roof project summary.
The formulas and their units
Use the same length unit for h (rise) and d (horizontal run). Let l be the geometric rafter and θ the angle above horizontal. The tool converts mixed input units before solving.
Slope (%) = 100 × h ÷ dUS pitch X/12: X = 12 × h ÷ dθ = arctan(h ÷ d) × 180 ÷ πl² = h² + d²Slope (%) = 100 × tan(θ × π ÷ 180)Three worked examples
These examples use the same calculation engine as the tool. Values shown here are rounded to two decimal places; choose four decimal places in the calculator for a closer view.
Attic method: a 7 in drop over a 12 in level
Known values: Rise: 7 in · Run: 12 in
- Roof angle
- 30.26°
- Slope (%)
- 58.33%
- US pitch (X/12)
- 7/12
- Rafter length
- 13.89 in
- Rise
- 7.00 in
- Run
- 12.00 in
Span and ridge height: 24 ft span, ridge 5 ft above the plates
Known values: Rise: 5 ft · Run: 12 ft
- Roof angle
- 22.62°
- Slope (%)
- 41.67%
- US pitch (X/12)
- 5/12
- Rafter length
- 13.00 ft
- Rise
- 5.00 ft
- Run
- 12.00 ft
Rafter and run: a 14 ft rafter over a 12 ft run
Known values: Run: 12 ft · Rafter: 14 ft
- Roof angle
- 31.00°
- Slope (%)
- 60.09%
- US pitch (X/12)
- 7.21/12
- Rafter length
- 14.00 ft
- Rise
- 7.21 ft
- Run
- 12.00 ft
Reference table: common pitches
The same inclination in degrees, percent and X/12, rounded to two decimals.
| Angle (°) | Slope (%) | US pitch (X/12) |
|---|---|---|
| 4.76° | 8.33% | 1/12 |
| 9.46° | 16.67% | 2/12 |
| 14.04° | 25.00% | 3/12 |
| 18.43° | 33.33% | 4/12 |
| 22.62° | 41.67% | 5/12 |
| 26.57° | 50.00% | 6/12 |
| 30.26° | 58.33% | 7/12 |
| 33.69° | 66.67% | 8/12 |
| 36.87° | 75.00% | 9/12 |
| 39.81° | 83.33% | 10/12 |
| 42.51° | 91.67% | 11/12 |
| 45.00° | 100.00% | 12/12 |
4/12 is one of the most common house pitches: the 4/12 roof pitch page lists its angle, rafter lengths for common spans and the coverings it suits.
Local rules
In the United States, roof coverings follow the International Residential Code (IRC) as adopted by your city or county. Chapter 9 sets minimum slopes per covering; asphalt shingles, for example, need at least 2/12, with extra underlayment between 2/12 and 4/12.
Check which IRC edition your jurisdiction has adopted, any local amendments and the manufacturer’s installation instructions. CalcSlope reports geometry only and does not check code compliance.
| Roofing material | Minimum pitch | Same slope | Condition and source |
|---|---|---|---|
| Modified bitumen, EPDM, TPO and PVC membranes | ≥ 0.25/12 | 1.19° · 2.08% | Thermoset and thermoplastic single-ply roofs included. IRC R905.11–R905.13 |
| Standing-seam metal panels | ≥ 0.25/12 | 1.19° · 2.08% | Lapped, non-soldered panels: 3/12 without lap sealant, 1/2:12 with sealant. IRC R905.10 |
| Asphalt shingles | ≥ 2/12 | 9.46° · 16.67% | Double underlayment from 2/12 up to 4/12. IRC R905.2 |
| Clay and concrete tile | ≥ 2.5/12 | 11.77° · 20.83% | Double underlayment from 2½/12 up to 4/12. IRC R905.3 |
| Wood shingles and wood shakes | ≥ 3/12 | 14.04° · 25.00% | IRC R905.7–R905.8 |
Roof pitch questions
Does this work for shed roofs?
Yes, for the geometric triangle of one straight slope. Enter the actual horizontal distance between its endpoints and their height difference. No dedicated roof-form drawing, material takeoff or structural design is produced.
Is run the same as building width?
Only if that width is the horizontal projection of the particular slope you are measuring. For two roof sides, measure each slope separately unless the geometry is known to be symmetric.
Why no lengths in Convert mode?
An angle, percentage or X/12 pitch describes a proportion. Many differently sized triangles share that proportion. Use Lengths with a known length to get dimensions.
What does 1 in X mean?
It gives one unit of vertical rise for X units of horizontal run. It is a length ratio, not a percentage. With zero rise the slope is flat and this reciprocal has no finite value.
Can this choose my roofing material?
The result describes geometry only. It does not specify a minimum pitch, loading, member sizes or a compliant roof covering. Those choices require the relevant project information and product guidance.