Saved

Press the star next to a tool's name to save it.

All my tools

Roof Pitch Calculator

This roof pitch calculator turns rise and run, or an angle, into the x:12 slope, degrees, grade, pitch fraction, metric slope and rafter length.

Restored your last values ·

Measure the rise straight up and the run level, in the same unit. For example, 6 inches of rise over 12 inches of run is a 6:12 roof.

Worked out in your browser. Nothing is sent anywhere.

Roof slope

–

Enter the rise and run, or the angle.

See full result

A roof pitch calculator works out how steep a roof is from its rise and run, or from its angle. Enter the rise and the run, and this roof pitch calculator gives the slope in the usual x:12 form, the angle in degrees, the grade as a percentage, the pitch as a fraction of the span, the metric slope and the rafter length factor. Add the building width to estimate the rafter length from the ridge to the wall.

Pitch and slope

Roof pitch is the steepness of a roof, expressed as inches of rise per horizontal foot, or its metric equivalent, or as the angle its surface makes with the horizontal. A flat roof has a pitch of zero. Strictly, pitch and slope are different: pitch is the total rise divided by the total span of the roof, while slope is the rise divided by the run, which is half the span, usually given per 12 inches of run, or per meter in metric. A roof that rises 6 inches for every 12 inches of run has a slope of 6:12. In everyday use, people often call that a 6:12 or 6 in 12 pitch.

The conversions

  • x:12 slope = rise ÷ run × 12.
  • Angle = arctan(rise ÷ run), in degrees.
  • Grade = rise ÷ run × 100%.
  • Pitch (strict) = rise ÷ span, where the span is twice the run. To convert pitch to a slope per 12 inches, multiply it by 24: a pitch of 1/6 is a 4:12 slope.
  • Metric slope: rise per meter of run, in millimeters.
  • Rafter length factor = √(1 + (rise ÷ run)²), how much longer the sloped length is than the run.

Worked example

A roof rises 6 inches for every 12 inches of run. The slope is 6:12, the angle is about 26.57°, the grade is 50%, and the pitch is 1/4 of the span. The metric slope is 500 mm per meter, and the rafter length factor is about 1.118. For a building 24 feet wide, the run on each side is 12 feet, so a rafter from the ridge to the wall is about 12 × 1.118 = 13.42 feet, before any overhang.

How to use the roof pitch calculator

  1. Choose what you know: the rise and run, or the angle.
  2. Pick US or metric units.
  3. Enter the rise and run in the same unit, or the angle in degrees.
  4. Add the building width if you want a rafter length.
  5. Press Calculate.

Measuring a roof

From inside an attic, hold a level against a rafter, measure 12 inches along the level, and measure straight up from that mark to the underside of the rafter: that's the rise per 12 inches of run. From outside, a pitch gauge or a level and tape on the roof surface does the same job. Don't climb onto steep roofs without proper safety equipment; very steep roofs need scaffolding boards secured with roof brackets.

Why pitch matters

The steepness of a roof affects how well it drains and which roofing materials can be used. A thatched roof, for example, needs a steep pitch to drain properly, and some types of stone roof have a very restrictive range of pitches, outside which they can leak. Always check the roofing manufacturer's minimum slope for the material you plan to use.

Framing squares

A common misconception is that a framing square shows roof pitch. Its tables and markings actually show slope: rise per 12 inches of run, or per meter in metric. That's the information carpenters need for rafter lengths and plumb cuts, which is why the calculator leads with the x:12 slope.

Common roof slopes

SlopeAngleGrade
3:1214.04°25%
4:1218.43°33.3%
6:1226.57°50%
8:1233.69°66.7%
9:1236.87°75%
12:1245°100%

A 12:12 roof rises one foot for every foot of run, which is a 45° angle. Above that, each step adds less to the angle, because the angle approaches 90° only as the slope becomes vertical.

From an angle

If you know the roof angle, for example from a plan or a phone inclinometer app, choose Angle and enter it. The calculator works out the matching x:12 slope with tan(angle) × 12, and all the other values. A 30° roof is about a 6.93:12 slope, and a 20° roof about 4.37:12.

Metric slopes

In metric, slope is usually given as rise per meter of run, so a 6:12 roof is 500 mm per meter. Some metric plans give the angle instead. Choose Metric units to enter the rise and run in centimeters and the building width in meters; the slope, angle, grade and rafter factor don't depend on the unit.

Rafter length and overhang

The rafter length shown runs from the ridge to the outside of the wall, measured along the slope, using half the building width as the run. Real rafters also need the overhang past the wall, called the eave, and you'll subtract half the thickness of the ridge board. To include an overhang, add its horizontal length to the run and multiply by the same rafter length factor, or add the sloped overhang length to the result. Always check against your plans or a carpenter before cutting.

Common mistakes

  • Measuring the run along the slope instead of level.
  • Using the full span as the run. The run is half the span.
  • Mixing units for rise and run.
  • Forgetting the overhang when ordering rafters.

What next

Use this often? Add Roof Pitch to your Home screen.

Frequently asked questions

How does the roof pitch calculator work?

It divides the rise by the run to give the x:12 slope, the angle with arctan, the grade as a percentage, the pitch as a fraction of the span, and the rafter length factor.

What angle is a 6:12 roof?

About 26.57 degrees, a grade of 50%.

What's the difference between pitch and slope?

Slope is rise over run, usually per 12 inches; pitch is rise over the whole span, which is twice the run.

How do I convert pitch to slope?

Multiply the pitch by 24 to get the rise per 12 inches of run: a pitch of 1/6 is a 4:12 slope.

How long is a rafter?

Multiply the run by the rafter length factor, √(1 + (rise ÷ run)²), then add any overhang.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Everyday Life Tools