Last verified · v1.0
Calculator · construction
Roof Pitch Calculator
Convert rise and run into roof pitch — get degrees, X/12 slope ratio, or percent grade instantly for roofing, framing, and material estimation.
Inputs
Roof Pitch
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How the Roof Pitch Calculator Works
The roof pitch calculator determines the angle, slope ratio, and percent grade of any roof from two simple measurements: the vertical rise and the horizontal run. Contractors, architects, and DIY builders rely on this calculation to select appropriate roofing materials, estimate quantities, and ensure structural compliance with local building codes.
The Core Formula
Roof pitch angle in degrees is derived using the arctangent (inverse tangent) trigonometric function:
θ = arctan(rise ÷ run) × (180 ÷ π)
- θ — roof pitch angle in degrees
- rise — vertical height from the wall plate to the ridge, measured in inches (or any consistent unit)
- run — horizontal distance from the outside of the wall to the point directly below the ridge; for a symmetric gable roof, run equals half the total span
- 180 ÷ π ≈ 57.296 — the constant that converts radians to degrees
Three Ways to Express Roof Pitch
Building professionals express roof pitch in three standard formats, each suited to different workflows:
- Degrees (°) — the true geometric angle of inclination; used in engineering drawings and trigonometric calculations
- X/12 ratio — the dominant US construction standard; a 4/12 pitch rises 4 inches vertically for every 12 inches of horizontal run
- Percent slope (%) — rise divided by run, multiplied by 100; common in civil engineering and drainage design
Conversion formulas: X/12 to degrees: arctan(X ÷ 12) × (180 ÷ π). Degrees to X/12: tan(θ) × 12. Percent slope: (rise ÷ run) × 100.
Worked Example
A contractor measures a residential roof with a rise of 6 inches and a run of 12 inches:
- θ = arctan(6 ÷ 12) × 57.296 = arctan(0.5) × 57.296 ≈ 26.57°
- X/12 notation: 6/12 pitch — one of the most common residential slopes in North America
- Percent slope: (6 ÷ 12) × 100 = 50%
Pitch Categories and Material Compatibility
Roof pitch determines which materials and installation methods are permissible. As documented in BYUI Exterior Finishes: Roofing Materials Estimates, material minimums are strictly enforced across four recognized slope categories:
- Flat / Low-slope (0/12–3/12 | 0°–14.0°) — requires built-up roofing (BUR), TPO, EPDM, or modified bitumen membranes; standard shingles are not code-compliant
- Conventional slope (4/12–9/12 | 18.4°–36.9°) — compatible with asphalt shingles, wood shakes, and most tile products; asphalt shingles require a minimum 2/12 with double underlayment
- Steep slope (10/12–12/12 | 39.8°–45°) — may require special fastening patterns and hand-sealing of shingle tabs per manufacturer specifications
- Very steep (above 12/12 | above 45°) — demands specialized anchoring, fall-protection equipment, and manufacturer-specific application guidelines
Rafter Length and the Pythagorean Theorem
Once rise and run are known, rafter length follows directly from the Pythagorean theorem: rafter = √(rise² + run²). A 6/12 pitch roof with a 12-foot run yields a common rafter of √(6² + 12²) = √180 ≈ 13.42 feet before the eave overhang is added. This geometric relationship is detailed in MABTS: Calculate Rafter Length for Roof and grounded in the trigonometric derivations published in Suffolk County Community College MAT112 Measurement Geometry.
Practical Impact on Project Planning
Pitch affects nearly every roofing decision. Steeper roofs shed snow and rain faster, reducing live load accumulation in high-precipitation climates and lowering the risk of ice dams. Roof geometry also influences solar reflectance and attic ventilation efficiency, as noted by the U.S. Department of Energy Cool Roofs program. A 12/12 pitch (45°) creates substantial usable attic volume, while a 3/12 pitch yields minimal headroom. Because surface area scales with pitch — a 12/12 roof covers roughly 41% more area than a flat roof over the same footprint — accurate pitch measurement is the essential first step in every material takeoff, permit application, and structural calculation.
Reference