Roof Pitch Calculator

Use our roof pitch calculator to calculate rafter length, roof pitch in degrees, roof pitch percent, and pitch as x:12 from rise and run length. Includes the roof pitch formula, how to calculate roof pitch in degrees, and a quick roof pitch angles chart.

Rise (yd)
Vertical rise in yards (yd).
Run length (yd)
Horizontal run in yards (yd).
Results
Rafter length (yd)
Rafter length = √(rise² + run²).
Roof pitch (deg)
Pitch angle = arctan(rise/run).
Roof pitch (%)
Pitch (%) = (rise/run) × 100.
Roof pitch (x:12)
x:12 = (rise/run) × 12.
Enter rise and run in yards. Pitch is shown as degrees, percent slope, and x:12.
Did we solve your problem today?

What Is Roof Pitch?

Roof pitch describes how steep a roof is. It’s based on how much the roof rises vertically (rise) compared to how far it runs horizontally (run).

Pitch is commonly expressed three ways: angle in degrees, slope as a percent, and pitch as x:12 (how many units of rise for every 12 units of run).

This calculator uses rise and run length (in yards) to return rafter length (yards), pitch angle (degrees), pitch (%), and pitch (x:12).

Roof Pitch Formula

Roof pitch comes from basic right-triangle relationships using rise and run.

Rafter length =
Rafter = √(Rise^2 + Run^2)

Rafter length is the hypotenuse of the right triangle formed by rise and run.

Roof pitch (degrees) =
Pitch(deg) = arctan(Rise ÷ Run) × (180/π)

arctan returns the angle in radians, then it’s converted to degrees.

Roof pitch (percent) =
Pitch(%) = (Rise ÷ Run) × 100

Also called slope percent.

Roof pitch (x:12) =
x = (Rise ÷ Run) × 12

Pitch is reported as x:12 (rise for 12 units of run).

Rise
= Vertical rise (yd)
Run
= Horizontal run length (yd)
Rafter
= Rafter length along the slope (yd)
x:12
= Pitch expressed as rise per 12 units of run
Example: calculate roof pitch
Rise = 1 yd, Run = 4 yd → Pitch ≈ 14.04°, Pitch% = 25%, Pitch ≈ 3:12, Rafter ≈ 4.123 yd

A larger rise or smaller run creates a steeper roof.

Roof Pitch Angles Chart

Common roof pitches shown as x:12 with the equivalent degrees and slope percent.

Pitch (x:12)Degrees (°)Pitch (%)
1:124.768.33
2:129.4616.67
3:1214.0425
4:1218.4333.33
5:1222.6241.67
6:1226.5750
7:1230.2658.33
8:1233.6966.67
9:1236.8775
10:1239.8183.33
12:1245100

How to Calculate Roof Pitch

  1. 1

    Enter the rise (yd).

  2. 2

    Enter the run length (yd).

  3. 3

    The calculator computes rafter length using the Pythagorean theorem.

  4. 4

    It calculates pitch in degrees using arctan(rise/run), pitch percent as (rise/run)×100, and pitch as x:12 using (rise/run)×12.

Frequently Asked Questions

How do you calculate roof pitch in degrees?

Use Pitch(deg) = arctan(rise ÷ run) × (180/π). This calculator does that automatically from your rise and run.

How do you calculate roof pitch as x:12?

Compute x = (rise ÷ run) × 12, then report the pitch as x:12.

What is the roof pitch formula?

The core relationship is slope = rise ÷ run. From that you can calculate degrees with arctan(slope), percent with slope×100, and x:12 with slope×12.

Does this calculator calculate roof area with pitch?

No. This tool calculates pitch and rafter length from rise and run. Roof area needs additional measurements like roof length/width (or building footprint and overhangs).

Can I use this as a roof pitch calculator for a shed?

Yes. Shed roofs still form a right triangle with rise and run, so the same pitch and rafter formulas apply.