Roof Pitch Calculator

Use this roof pitch calculator to convert rise and run into an x:12 pitch, angle in degrees, slope percentage, rafter line length, and pitch multiplier. You can also enter a known pitch to calculate the missing rise or run.

Roof pitch
4:12
Roof pitch4:12
Angle18.43°
Slope33.33%
Decimal slope0.3333
Rise4 ft
Run12 ft
Rafter line length12.65 ft
Pitch multiplier1.0541

Method: pitch = rise ÷ run; angle = arctan(rise ÷ run); rafter = √(rise² + run²); multiplier = √(1 + (rise ÷ run)²).

Rafter line length excludes overhang, ridge-board adjustment, birdsmouth cuts, and other framing allowances. Displayed values are rounded for readability; calculations use unrounded values.

RunRiseRafterAngle
Results update as you type

Formula

Pitch from Rise and Run

roof pitch = rise ÷ run
x in 12 = (rise ÷ run) × 12

Roof Pitch in Degrees

angle = arctan(rise ÷ run). The angle is measured from the horizontal.

Roof Slope Percentage

slope (%) = (rise ÷ run) × 100. See the percentage calculator for general percent conversions, or the percentage difference calculator to compare two pitches expressed as percents.

Rafter Line Length

rafter length = √(rise² + run²). This is the mathematical sloped length and excludes overhang, ridge board adjustment, birdsmouth cuts, and other framing allowances.

Roof Pitch Multiplier (also called Roof Pitch Factor)

multiplier = √(1 + (rise ÷ run)²). The roof pitch multiplier, also known as the roof pitch factor, is the ratio of sloped length to horizontal run, or equivalently the ratio of sloped area to horizontal projected area for a plane of constant pitch. This calculator does not compute roof area on its own — measure the horizontal footprint with the square footage calculator and multiply by this factor for a sloped-area estimate.

Variable definitions

  • Rise: Vertical change from the wall plate to the ridge over the given horizontal run.
  • Run: Horizontal distance the roof plane covers (not the sloped length).
  • Decimal slope: Rise divided by run, expressed as an unscaled decimal (for example 0.5).
  • X:12 pitch: Traditional roofing shorthand: rise per 12 units of horizontal run.
  • Angle: Roof pitch expressed as an angle from horizontal, equal to arctan(rise ÷ run).
  • Slope percentage: Decimal slope multiplied by 100, expressed as a percent.
  • Rafter line length: Sloped length from wall plate to ridge, equal to √(rise² + run²).
  • Pitch multiplier: Ratio of sloped length to horizontal run, equal to √(1 + slope²).

Step-by-step calculation

  1. Confirm that rise and run use the same measurement unit.
  2. Divide rise by run to get the decimal slope.
  3. Multiply the decimal slope by 12 to get the x:12 pitch.
  4. Multiply the decimal slope by 100 to get the slope percentage.
  5. Take the arctangent of the decimal slope to get the angle in degrees.
  6. Apply the Pythagorean theorem to rise and run for the rafter line length.
  7. Compute the pitch multiplier as the square root of (1 plus slope squared).

Worked example

Known values: roof pitch 6:12 and run 15 ft.

  • Decimal slope: 6 ÷ 12 = 0.5
  • Rise: 15 × 0.5 = 7.5 ft
  • Angle: arctan(0.5) = 26.57°
  • Slope percentage: 0.5 × 100 = 50%
  • Rafter line length: √(7.5² + 15²) ≈ 16.77 ft
  • Pitch multiplier: √(1 + 0.5²) ≈ 1.1180

A 6:12 roof rises 6 units for every 12 units of horizontal run. Over a 15 ft run the rise is 7.5 ft and the rafter line length is about 16.77 ft before framing allowances.

How to use this calculator

  1. Pick what you want to calculate: roof pitch, rise, or run.
  2. Select a pitch format (x in 12, degrees, or percent) if a pitch is required.
  3. Choose one measurement unit for rise, run, and the rafter length.
  4. Enter the known values. Results update as you type.
  5. Use Copy, Share, or Reset in the actions bar below the result card.

Changing the unit after a valid calculation converts the rise, run, and rafter length to the new unit rather than only relabeling them. The x:12 ratio, angle, percentage, and multiplier are unit independent.

Common mistakes

  • Measuring along the sloped roof surface instead of the horizontal run.
  • Mixing feet and inches, or metric and imperial units, without converting.
  • Entering an angle in degrees where an x:12 ratio is expected.
  • Typing 50 instead of 0.50 in a decimal-slope formula outside this calculator.
  • Confusing the full building span with the run of a single roof plane.
  • Using rafter line length as a finished cut length.
  • Assuming a pitch alone determines code compliance or material suitability.
  • Rounding intermediate values too early and losing accuracy.

Roof Pitch Chart (x:12, Degrees, Slope %, Multiplier)

This roof pitch chart doubles as a roof slope chart. Every value is computed with the same formulas the calculator uses, so the table cannot drift out of sync with the tool.

Roof pitchAngleSlopeMultiplier
0.5:122.39°4.17%1.0009
1:124.76°8.33%1.0035
2:129.46°16.67%1.0138
3:1214.04°25.00%1.0308
4:1218.43°33.33%1.0541
5:1222.62°41.67%1.0833
6:1226.57°50.00%1.1180
7:1230.26°58.33%1.1577
8:1233.69°66.67%1.2019
9:1236.87°75.00%1.2500
10:1239.81°83.33%1.3017
11:1242.51°91.67%1.3566
12:1245.00°100.00%1.4142
14:1249.40°116.67%1.5366
16:1253.13°133.33%1.6667
18:1256.31°150.00%1.8028
20:1259.04°166.67%1.9437
24:1263.43°200.00%2.2361

Roof Pitch Categories (Flat, Low, Conventional, Steep)

Roofs are commonly grouped into four pitch ranges. Category boundaries are conventions, not code — always check manufacturer instructions and local building codes for the materials and climate on your project.

  • Flat roofs — roughly 0.5:12 to 2:12 (about 2.4° to 9.5°). Not truly flat; a small slope is needed for drainage.
  • Low-slope roofs — about 2:12 to 4:12 (about 9.5° to 18.4°). Often require special underlayment or membranes.
  • Conventional roofs — about 4:12 to 9:12 (about 18.4° to 36.9°). The most common residential range and generally the easiest to work on.
  • Steep-slope roofs — 9:12 and above (about 36.9° and higher, up to about 21:12 in extreme designs). May need extra fasteners and safety equipment.

How to Measure Roof Rise and Run

Run is the horizontal distance the roof covers, not the length along the sloped surface. Rise is the vertical change over that horizontal distance. A common field method is to hold a level so that 12 inches of it are horizontal and measure the vertical gap from the roof surface down to the end of the level. Measurements can also come from architectural drawings or from accessible framing inside an attic. Do not climb onto a roof where doing so is unsafe. When you report a pitch or rafter length to a supplier, use the rounding calculator to keep the number of decimals consistent with the measurement precision.

Roof Pitch vs. Roof Slope

This calculator follows the common roofing convention of expressing pitch as vertical rise per 12 units of horizontal run. The terms roof pitch and roof slope are commonly used interchangeably in everyday roofing work. Some technical references distinguish slope as rise over run and pitch as rise over the full roof span, but all calculator outputs on this page use rise over run.

Frequently asked questions

How do I calculate roof pitch from rise and run?

Divide the vertical rise by the horizontal run to get the decimal slope, then multiply by 12 to express it in the standard x:12 format. A rise of 4 over a run of 12 gives 4/12 = 0.333, so the pitch is 4:12.

What angle is a 4:12 roof pitch?

A 4:12 pitch has an angle of about 18.43 degrees from the horizontal. It is calculated as arctan(4 / 12).

How do I convert roof pitch to degrees?

Take the arctangent of the rise divided by the run and convert from radians to degrees. In the calculator, choose degrees as the pitch format and the value is shown alongside x:12 and percentage.

What does a 6:12 roof pitch mean?

A 6:12 pitch means the roof rises 6 units of vertical for every 12 units of horizontal run.

What is a roof pitch multiplier?

The pitch multiplier is the ratio of sloped length to horizontal run. It equals the square root of (1 plus the slope squared). Multiplying a horizontal measurement by this factor gives the corresponding sloped length.

How is rafter line length calculated?

Rafter line length uses the Pythagorean theorem: the square root of (rise squared plus run squared), where rise and run share the same measurement unit.

Why is roof pitch written as x:12?

The x:12 notation is the standard roofing convention: it states x units of vertical rise for every 12 units of horizontal run, which makes pitches easy to compare and easy to measure with a 12-inch level.

Does the rafter length include overhang and framing cuts?

No. The rafter line length is the raw sloped length between the top of the wall plate and the ridge. Overhang length, ridge board thickness, and birdsmouth or plumb cuts are framing allowances that must be added or subtracted separately.

What is a 4:12 roof pitch?

A 4:12 pitch means the roof rises 4 units of vertical for every 12 units of horizontal run. It is a gentle slope that sits at the boundary between low-slope and conventional roofs, with an angle of about 18.43 degrees and a slope of about 33.3 percent.

What roof pitch is 30 degrees?

A 30 degree roof angle equals a pitch of about 6.93:12. It is calculated as tan(30°) × 12 ≈ 6.93. In practical terms it sits just under a 7:12 pitch.

What is the angle of a 12:12 roof pitch?

A 12:12 roof pitch has an angle of exactly 45 degrees, because rise equals run. The slope is 100 percent and the pitch multiplier is √2 ≈ 1.4142.

What roof pitch is considered walkable?

A pitch of 6:12 (about 26.57 degrees) or lower is commonly considered comfortably walkable. Pitches from 7:12 to 10:12 are usually walkable with care, and pitches above 10:12 generally require fall-protection equipment or scaffolding. Weather, roof condition, and personal experience matter more than pitch alone — do not climb onto a roof where doing so is unsafe.

Related calculators

If this helped, the following calculators are useful for material and area estimates:

Last updated: July 27, 2026 · Checked against standard formulas and sample test cases.

Angles use JavaScript Math.atan and Math.tan; conversions use the international foot (0.3048 m).

Disclaimer: Results are mathematical estimates for planning and educational use. Verify measurements before purchasing materials or beginning construction. Roof design, drainage, structural requirements, manufacturer instructions, and local building codes may require additional calculations or professional guidance.