Home › Construction & Home › Roof Pitch Calculator
Construction & Home · Roofing

Roof Pitch Calculator

Convert roof rise and run into pitch, angle, slope percentage, and a geometric rafter factor. You can also start with an angle and convert it to an equivalent rise per 12 inches of horizontal run.

UFWritten and coded by Umer Farooq, CalcsDone founder/developer•Updated September 24, 2026
Quick answer: slope ratio = rise ÷ run. Angle = arctan(rise ÷ run). The equivalent X/12 pitch is 12 × rise ÷ run, and the straight-line rafter factor is √(1 + slope²).

Enter your roof measurements

Angle = atan(rise ÷ run)
in
in
ft
Pitch
—
rise per 12 in run
Angle
—
from horizontal
Slope
—
percent grade
Rafter factor
—
per ft of horizontal run
Rafter length: enter a horizontal run if you want the theoretical straight-line slope length.
Enter valid rise and run values, or switch to angle mode.
Method

How the Roof Pitch Calculator Works

All four outputs describe the same right-triangle geometry.

Pitch notation

The calculator normalizes any valid rise/run ratio to an equivalent rise for 12 inches of horizontal run.

Roof angle

Angle from horizontal = arctan(rise ÷ run), converted from radians to degrees.

Slope percentage

Slope percentage = (rise ÷ run) × 100. A 6/12 slope is therefore 50%.

Rafter factor

For pure geometry, factor = √(1 + slope²). Multiply by horizontal run for the theoretical sloped length.

Important distinction

Roof Geometry Is Not Structural Rafter Sizing

This calculator can convert pitch and estimate a geometric straight-line slope length. It does not determine whether a rafter size, species, grade, spacing, or span is structurally adequate. The American Wood Council’s span resources account for structural variables that this geometry calculator does not.

Likewise, the calculated length does not automatically include eave overhang, ridge details, birdsmouth geometry, connection details, or cutting allowances. Use project drawings, applicable codes, manufacturer instructions, and qualified professional guidance where required.

Reference

Common Pitch Conversions

These are mathematical conversions, not recommendations that a pitch is appropriate for a particular roof covering.

PitchAngleSlopeRafter factor
2/129.46°16.67%1.014
4/1218.43°33.33%1.054
6/1226.57°50.00%1.118
8/1233.69°66.67%1.202
12/1245.00°100.00%1.414
Worked examples

Roof Pitch Calculation Examples

Each example uses the same geometry as the calculator.

6/12 roof

Rise / run6 / 12
Slope50%
Angle26.57°
Factor 1.118
For a 15-ft horizontal run, theoretical slope length ≈ 16.77 ft.

30° measured angle

tan(30°)0.57735
Equivalent rise6.93 in / 12
Slope57.74%
≈ 6.93/12
This is a mathematical equivalent; do not round it to a construction specification without project context.

4/12 roof

Rise / run4 / 12
Angle18.43°
Rafter factor1.054
10.54 ft
For a 10-ft horizontal run, theoretical slope length ≈ 10.54 ft before project-specific details.
Limitations & safety

Mistakes to Avoid

Using 12 as the entered run regardless of how you measured

If your actual measurement uses a different horizontal run, enter that value. The calculator will normalize the result to X/12 notation.

Treating slope length as a cut-ready rafter

The geometric hypotenuse does not include overhang, ridge, birdsmouth, connection, or structural design details.

Assuming one pitch works with every roofing product

Minimum slopes and installation requirements depend on the roofing system and manufacturer instructions. Check the exact product specification and applicable code.

Ignoring roof-work fall hazards

Under OSHA 29 CFR 1926.501(b)(13), workers engaged in qualifying residential construction 6 feet or more above lower levels must be protected by conventional fall protection or another measure permitted by the standard. Where the standard’s infeasibility or greater-hazard exception applies, OSHA requires a site-specific fall-protection plan meeting 29 CFR 1926.502(k). This calculator is not a substitute for safe measurement and work practices.

FAQ

Roof Pitch Calculator FAQ

What does a 6/12 roof pitch mean?
It means 6 units of vertical rise for every 12 units of horizontal run. Mathematically, the slope ratio is 0.5, the slope percentage is 50%, and the angle is about 26.57°.
Can I enter a run other than 12 inches?
Yes. Enter rise and run in the same units. The calculator uses their ratio and then normalizes the result to equivalent X/12 notation.
Can this calculator size structural rafters?
No. Structural sizing depends on variables such as span, loading, lumber species and grade, spacing, and applicable code requirements. This tool calculates geometry only.
Is the rafter length a finished cut length?
No. It is the theoretical straight-line hypotenuse for the horizontal run entered. It excludes project-specific overhang, ridge, birdsmouth, and connection details.
What roof pitch is required for shingles?
Do not use a universal value from this calculator. Requirements vary by roofing system, product instructions, and applicable code. Check the exact manufacturer specification for the roof covering you intend to install.
Related calculators

Continue Your Construction Estimate

Sources & methodology

References Used for This Calculator

UF

About this calculator

This calculator was written and coded by Umer Farooq, founder/developer of CalcsDone. It is a geometry and planning tool, not a structural design, code-compliance determination, roofing-product specification, or instruction to work on a roof.

Scroll to Top