How to Calculate Roof Pitch: A Trigonometry Guide for Roofers
How to calculate roof pitch: tan(angle) = rise ÷ run, so a 6/12 roof is 26.57°. Pitch-to-angle conversions, rafter length, code minimums, a worked example.
Convert between roof pitch (X/12), angle in degrees, rise, run, slope percent, and rafter length. Built by a builder, for builders.
Tip
Use the same length unit for rise and run (inches, feet, meters — doesn't matter, just be consistent). The pitch ratio and angle are unit-free.
Enter rise, run, or angle to convert
Rise
-
Run
-
Angle
-
Pitch (rise/12)
-
Rafter length
-
Slope %
-
Roof pitch describes the steepness of a roof. In residential construction, it's almost always expressed as rise over run with a fixed run of 12 — written as X/12. A 6/12 roof rises 6 inches for every 12 inches you travel horizontally. The same roof can also be described by its angle (about 26.57°) or its slope percent (50%).
A roof slope is just the hypotenuse of a right triangle whose legs are rise (vertical) and run (horizontal). All the conversions follow from basic trigonometry:
angle = arctan(rise / run)
rise = run × tan(angle)
rafter length = √(rise² + run²)
pitch (X/12) = (rise / run) × 12
Every standard residential pitch from low-slope (2/12) up to the equal-rise-and-run 12/12. The rafter multiplier column is the conversion factor for rafter length: rafter = run × multiplier. So a 6/12 roof with a 14 ft run needs a rafter of 14 × 1.118 ≈ 15.65 ft (before adding overhang).
| Pitch | Angle | Slope % | Rafter multiplier | Use case |
|---|---|---|---|---|
| 2/12 | 9.46° | 16.67% | 1.0138 | Low slope — modified bitumen, EPDM rubber, standing-seam metal |
| 3/12 | 14.04° | 25.00% | 1.0308 | Low slope — asphalt shingles allowed with double underlayment |
| 4/12 | 18.43° | 33.33% | 1.0541 | Conventional asphalt shingles minimum (most building codes) |
| 5/12 | 22.62° | 41.67% | 1.0833 | Common ranch / suburban — gentle but sheds water well |
| 6/12 | 26.57° | 50.00% | 1.1180 | Most common residential — works with every roofing material |
| 7/12 | 30.26° | 58.33% | 1.1577 | Steeper conventional — common in colder climates |
| 8/12 | 33.69° | 66.67% | 1.2019 | Steeper residential — typically allows usable attic space |
| 9/12 | 36.87° | 75.00% | 1.2500 | Steep — common in snowy regions, dramatic profile |
| 10/12 | 39.81° | 83.33% | 1.3017 | Very steep — premium aesthetics, requires roof jacks for work |
| 11/12 | 42.51° | 91.67% | 1.3566 | Very steep — Victorian / Gothic Revival, traditional steep styles |
| 12/12 | 45.00° | 100.00% | 1.4142 | 45° pitch — A-frame, alpine cabins, maximum snow shedding |
Rafter multiplier = √(rise² + 144) / 12. Slope % = rise / run × 100. Angle = arctan(rise / run). For pitches above 12/12 (e.g. 18/12 mansard ≈ 56.3°, 24/12 ≈ 63.4°), use the calculator above — the same formulas extend without change.
Roof pitch is the steepness of a roof, expressed as the ratio of vertical rise to horizontal run. In the U.S., it's typically written as "X/12" — meaning X inches of vertical rise for every 12 inches of horizontal run. A 6/12 pitch rises 6 inches per foot of run, which equals about 26.57°.
Use the inverse tangent: angle = arctan(rise/run). For example, a 4/12 pitch is arctan(4/12) ≈ 18.43°. Going the other way, rise = run × tan(angle). This calculator does both directions automatically.
Most residential roofs in North America fall between 4/12 (18.43°) and 9/12 (36.87°). Steeper pitches (10/12 to 12/12) shed snow better and are common in colder regions. Lower pitches (under 4/12) are considered "low slope" and need different roofing materials.
Rafter length is the hypotenuse of the rise/run right triangle: rafter = √(rise² + run²). For a 6/12 pitch over a 12-foot run, the rafter would be √(6² + 12²) ≈ 13.42 feet (excluding overhang and ridge thickness).
Slope percent is rise ÷ run × 100. A 6/12 pitch is a 50% slope. Roofers usually use the X/12 pitch notation; engineers and surveyors more often use percent or degrees. All three describe the same thing — just in different units.
Tradition and convenience. A framing square has 12-inch markings, so measuring rise per 12 inches of run is the fastest way to mark cuts on rafters in the field. The X/12 system became standard in U.S. residential framing for that reason.
Deepen your understanding of triangles and trigonometry with our guides and tutorials:
How to calculate roof pitch: tan(angle) = rise ÷ run, so a 6/12 roof is 26.57°. Pitch-to-angle conversions, rafter length, code minimums, a worked example.
Square, plumb and straight: what each term means, how to check it with a level, string line or the 3-4-5 method, worked numbers and typical tolerances.
How to square building footings with the 3-4-5 method and a diagonal check: the math, a worked 24 × 36 ft garage layout, tolerances, and layout tools.
Triangles are the strongest shape in engineering: three fixed sides lock the angles. The geometry, a worked force example, and how trusses use it.
How to calculate stair stringers: riser count, unit rise and run, stringer length and stair angle, with IRC limits and a worked 48-inch deck stair.
Feet and inches in triangle math: convert to decimal feet or inches, handle fractional inches, and turn answers back into tape-measure readings.
Formulas and results last reviewed . How we check accuracy · Corrections log · Report an error