Roof pitch calculator

Rise and run, span and rise, or an angle in. Pitch, degrees, slope, rafter length and a roofing code check out.

More

ROOF PITCH

—

Enter rise and run

Pitch triangle

Results are geometry for planning. Rafter lengths here are the line length along the slope; your framer will adjust for the ridge board and cuts.

To calculate roof pitch, divide the rise by the run and multiply by 12. A roof that rises 5.5 in over 12 in of run is a 5.5/12 pitch, which is 24.62° and a 45.8% slope. This roof pitch calculator does that from rise and run in feet and inches, from a gable's span and height, or from an angle, and gives the rafter length too.

How to calculate roof pitch

Roof pitch is rise over run, scaled to a 12-inch run:

> pitch = rise ÷ run × 12

  1. Get the rise. The vertical climb over the distance you measured, in inches or feet.
  2. Get the run. The level distance under that rise, in the same unit.
  3. Divide and scale. Rise ÷ run × 12 gives the pitch over 12. A rise of 8 ft over a run of 16 ft is 8 ÷ 16 × 12 = 6, so 6/12.

You don't need a 12-inch run to start with: any matching pair of measurements works, because the calculator scales it. To turn the pitch into degrees, take the arctangent of pitch ÷ 12. A 6/12 roof is arctan(0.5) = 26.57°.

Calculating pitch from a gable's span and rise

On a symmetrical gable roof the run is half the span, the full width between the outside walls. So:

> pitch = total rise ÷ (span ÷ 2) × 12

A roof 28 ft wide that rises 7 ft at the ridge has a run of 14 ft, so 7 ÷ 14 × 12 = 6/12. Pick Span & rise in the calculator and enter the two numbers from your plans or a sketch.

From an angle or a percent

If you only have an angle, from a phone level or a drawing, pitch = 12 × tan(angle). A 22° roof is 12 × tan(22°) = 4.85/12. A 30° roof is 6.93/12, close to 7/12.

A percent slope converts even more simply: pitch = percent ÷ 100 × 12. A 25% slope is 3/12.

Rafter length from the pitch

A common rafter runs along the slope, so it's longer than the level run under it. Multiply the run by the pitch's area factor, √(1 + (pitch ÷ 12)²):

  • 14 ft run at 6/12: 14 × 1.1180 = 15.65 ft, about 15' 7 7/8".
  • Add a 1.5 ft horizontal overhang: 15.5 × 1.1180 = 17.33 ft, about 17' 4".
  • 12 ft run at 9/12: 12 × 1.25 = exactly 15 ft. (That's the 3-4-5 triangle.)

This is the line length only. Real rafters are cut shorter at the ridge for the ridge board and get seat and plumb cuts, so treat the number as a starting point for ordering lumber.

Hip and valley rafters

On a regular hip roof, where both sides have the same pitch, the hip or valley rafter runs diagonally and is longer per foot of common run. The factor is √(pitch² + 288) ÷ 12. At 6/12 that's exactly 1.5, so a 14 ft common run needs a hip about 21 ft long along its line. At 12/12 the factor is 1.7321.

Will your roofing work at this pitch?

Pick a roofing material and the calculator checks your pitch against the International Residential Code minimums (Section R905). It tells you if the pitch is below the minimum, if the code calls for a double layer of underlayment at that pitch, or if it's fine. For the full list of minimums and what low slope means, see the roof pitch chart.

From pitch to roof area

The area factor that gives you rafter length also turns a house footprint into real roof surface. Tap Use this pitch and the roof square footage calculator opens with your pitch filled in, ready for the footprint and overhangs.

Pitch is half the job; the house footprint is the other half, and you can measure the footprint in square feet room by room or from the outside walls.

Questions people ask

15 questions

How do you calculate the pitch of a roof?

Divide the rise by the run and multiply by 12. A rise of 4 ft over a run of 12 ft is a 4/12 pitch.

How do I calculate roof pitch in degrees?

Take the arctangent of the pitch divided by 12. For a 4/12 roof: arctan(4 ÷ 12) = 18.43°.

How do I calculate roof pitch from the span?

Halve the span to get the run, then divide the rise by it and multiply by 12. A 32 ft span with a 4 ft rise is 4 ÷ 16 × 12 = 3/12.

How do I convert an angle to roof pitch?

Multiply 12 by the tangent of the angle. 45° is 12/12, 30° is about 6.93/12 and 22° is about 4.85/12.

What pitch is a 25% slope?

3/12. Multiply the percent by 12 and divide by 100.

Can I measure rise and run in feet instead of inches?

Yes. Use any unit as long as rise and run are in the same one. 8 ft over 16 ft and 6 in over 12 in are both 6/12.

How do I figure roof pitch without getting on the roof?

Measure in the attic against a rafter, use a level app on the gable end, or read it from the plans. Then enter the numbers here. The roof pitch chart walks through the attic method step by step.

How long is a rafter on a 6/12 roof?

About 1.1180 times the run. For a 12 ft run that's 13.42 ft before any overhang.

Does the overhang change the rafter length?

Yes. Add the horizontal overhang to the run before multiplying. A 12 ft run with a 1 ft overhang at 9/12 is 13 × 1.25 = 16.25 ft.

What is a hip rafter factor?

The number you multiply the common rafter's run by to get the hip or valley rafter's length on a regular hip roof: √(pitch² + 288) ÷ 12. It's 1.5 at 6/12.

What does pitch over 12 mean?

It's the rise for every 12 units of level run. 7/12 means the roof climbs 7 inches for every 12 inches across.

Is a 3/12 pitch too low for shingles?

Not under the IRC, which allows asphalt shingles down to 2/12. Anywhere from 2/12 up to just under 4/12, it calls for two underlayment layers.

How do I calculate a pitch that isn't a whole number?

The same way: 5.5 in of rise over 12 in of run is a 5.5/12 pitch. The calculator shows two decimals.

Why does my pitch app show degrees, not pitch?

Most level apps measure angles. Enter the angle in Angle mode and the calculator converts it to pitch over 12.

How accurate is this roof pitch calculator?

Results use full-precision formulas and are rounded only for display. Accuracy depends on your measurements, so measure the rise over the longest level run you can.