terican

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.

FreeInstantNo signupOpen source

Inputs

Roof Pitch

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Roof Pitch

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

Frequently asked questions

What is roof pitch and why does it matter for construction?
Roof pitch is the ratio of vertical rise to horizontal run, expressed as an angle in degrees, an X/12 ratio, or a percent slope. It determines which roofing materials meet code requirements, how quickly the surface sheds rain and snow, the structural live load from precipitation, available attic volume, rafter length, and the total quantity of shingles and underlayment required for an accurate project estimate.
How do you calculate roof pitch from rise and run measurements?
Divide the vertical rise by the horizontal run to get the tangent of the pitch angle, then apply the arctangent function: θ = arctan(rise ÷ run) × (180 ÷ π). For a rise of 6 inches over a run of 12 inches, the result is arctan(0.5) × 57.296 ≈ 26.57°. In X/12 notation this equals a 6/12 pitch; as a percent slope it equals 50%. All three values describe the same roof geometry.
What does a 4/12 roof pitch equal in degrees?
A 4/12 pitch means the roof rises 4 inches for every 12 inches of horizontal run. Applying the arctangent formula: arctan(4 ÷ 12) × 57.296 ≈ 18.43°. This is a moderate conventional slope widely used in residential construction across North America. It is compatible with asphalt shingles, standing-seam metal panels, and most tile products without requiring special installation modifications or additional underlayment layers.
What is the minimum roof pitch for asphalt shingles?
Most asphalt shingle manufacturers and model building codes specify a minimum pitch of 2/12 (approximately 9.46°) with a double layer of underlayment installed beneath the shingles. At 3/12 or steeper, a single underlayment layer is typically sufficient. Below 2/12, low-slope membrane systems such as EPDM, TPO, or modified bitumen are required because shingles cannot reliably redirect water flow at such shallow angles, risking leaks and voiding product warranties.
How does roof pitch affect the quantity of roofing materials needed?
Steeper pitches increase both roof surface area and individual rafter length relative to the building footprint. A 12/12 pitch (45°) produces roughly 41% more surface area than a flat roof over the same floor plan, directly raising required quantities of shingles, underlayment, ridge cap, drip edge, and flashing. Calculating exact pitch before ordering materials prevents costly shortfalls or overages, making the roof pitch calculator an essential tool in every pre-construction takeoff.
How do you measure roof pitch on an existing roof without blueprints?
Hold a 12-inch carpenter's level horizontally against the roof surface and measure vertically from the 12-inch mark on the level straight down to the roof deck with a tape measure. The vertical measurement in inches is the X value in the X/12 pitch ratio. Alternatively, access the attic and measure the vertical rise from the top plate to the ridge and the horizontal run from the wall to the point directly below the ridge, then compute arctan(rise ÷ run) × 57.296 to convert to degrees.