Skip to the roof pitch calculator

Pitch · Angle · Slope · Rafters · Photo · Phone level

Roof Pitch Calculator

Convert a roof pitch to degrees and percent slope, find the pitch from rise and run or a rafter length, work out rafter, hip and valley lengths, or measure a pitch from a photo or with your phone.

Runs in your browser. Nothing is uploaded.

Units

Find your roof pitch

What do you know?

= 6"

= 1' 0"

Type feet and inches the way you'd write them: 14' 3 5/8", 14ft 3in or a bare number of inches. In metric, a bare number is millimeters.

Roof area from the footprint (optional)

The area the roof covers seen from above, overhangs included. Roof area = footprint × pitch factor.

Estimate shingles and cost on the Roofing Calculator →

Roof coverings at this pitch

  • Asphalt shinglesAllowed (minimum 2/12) · IRC R905.2.2
  • Clay and concrete tileAllowed (minimum 2.5/12) · IRC R905.3.2
  • Metal roof shinglesAllowed (minimum 3/12) · IRC R905.4.2
  • Mineral-surfaced roll roofingAllowed (minimum 1/12) · IRC R905.5.2
  • Slate and slate-type shinglesAllowed (minimum 4/12) · IRC R905.6.2
  • Wood shinglesAllowed (minimum 3/12) · IRC R905.7.2
  • Wood shakesAllowed (minimum 3/12) · IRC R905.8.2
  • Built-up roofingAllowed (minimum 0.25/12) · IRC R905.9.1
  • Coal-tar built-up roofingAllowed (minimum 0.125/12) · IRC R905.9.1
  • Metal panels, standing seamAllowed (minimum 0.25/12) · IRC R905.10.2
  • Metal panels, lapped seams with lap sealantAllowed (minimum 0.5/12) · IRC R905.10.2
  • Metal panels, lapped seams without lap sealantAllowed (minimum 3/12) · IRC R905.10.2
  • Modified bitumenAllowed (minimum 0.25/12) · IRC R905.11.1
  • Single-ply membrane (EPDM, TPO, PVC)Allowed (minimum 0.25/12) · IRC R905.12.1
  • Sprayed polyurethane foamAllowed (minimum 0.25/12) · IRC R905.13.1
  • Liquid-applied roofingAllowed (minimum 0.25/12) · IRC R905.14.1
  • Photovoltaic (BIPV) shinglesAllowed (minimum 2/12) · IRC R905.15.2
  • BIPV roof panelsAllowed (minimum 2/12) · IRC R905.16.2

Minimum slopes from the 2024 International Residential Code (IRC), Section R905. Minimum slope only: maximum slopes and other limits come from the manufacturer, and high-wind areas need extra underlayment at every pitch. Local codes and the manufacturer's installation instructions govern; check with your building department.

Results

Pitch6/126 in 12
Angle26.57°

Slope
50.00%
Ratio (rise : run)
1:2 · 1 in 2
Pitch factor (multiplier)
1.118
Hip/valley factor
1.500
Rafter length
13 7/16" per foot of run
Pitch class (rough grouping)
Conventional
Plumb cut (ridge and tail)
63.43° to the rafter edge
Miter saw angle for plumb cuts (board flat)
26.57°
Seat cut (birdsmouth)
26.57° to the rafter edge
Framing square, common rafter
12 and 6
Framing square, hip/valley
17 and 6
Angle in degrees, minutes, seconds
26° 33′ 54″

4/12 to under 8/12: a conventional pitch that suits most steep-slope coverings.

The pitch class is our rough grouping, not a code or OSHA definition. OSHA's fall-protection rules call a roof low-slope up to 4 in 12 and steep above that (29 CFR 1926.500(b)).

Your roof pitch as a triangle

Right triangle drawn to a 6/12 pitch: rise 6", run 12", rafter 13 7/16", angle 26.57°.26.57°Run 12"Rise6"Rafter 13 7/16"

How to use the roof pitch calculator

Roof pitch is the number most roofing and framing jobs start from. It decides which roof coverings the building code allows, how long the rafters are, how much roof surface there is to cover, and how dangerous the roof is to work on. This roof pitch calculator works it out from whatever you can measure, shows every formula it uses on this page, and keeps all of the math in your browser.

  1. Pick what you know. On the Pitch tab, choose rise and run, a pitch (x/12), an angle in degrees, a slope percentage, rise and rafter length, or run and rafter length. Length fields take feet and inches with fractions, such as 14' 3 5/8", plain inches, or millimeters.
  2. Read the results. You get the pitch as x/12 and in words ("6 in 12"), the angle in decimal degrees and in degrees, minutes and seconds, the slope percentage, the reduced ratio, the pitch factor and hip/valley factor, the rafter length per foot of run, the plumb and seat cut angles and the framing-square settings. A diagram draws the triangle to your pitch, and a short list shows which roof coverings the code allows at that pitch.
  3. Work out the rafters. The Rafters tab takes the building width, pitch, overhang, ridge board and rafter depth, and returns the common rafter length, the ridge deduction, the board length and the stock length to buy, the hip and valley length and a rafter count.
  4. Can't reach a rafter? Don't climb up. From a photo measures the pitch on a picture you take from the ground, and Phone level turns a phone into a pitch gauge you can rest on a rafter in the attic. Pitch chart lists every whole pitch from 0/12 to 24/12.

The same tool works as a roof slope calculator, a roof angle calculator, a rafter length calculator and a roof pitch finder. Switch Units to Metric for millimeters and degrees; switch Precision to show lengths to the nearest 1/8", 1/16" or 1/32", or as decimals.

What roof pitch means

Roof pitch is how steeply a roof rises, written as the inches of vertical rise for every 12 inches of horizontal run. A roof that climbs 6 inches over 12 inches of run is a 6/12 pitch, said "6 in 12" and sometimes written 6:12. Run is measured level, never along the roof surface, and the 12 is simply one foot: a 6/12 roof gains 6 inches of height for every foot you move in from the wall toward the ridge.

Three other numbers describe the same steepness, and the calculator shows all of them:

  • Angle: the angle between the roof surface and level, in degrees. A 6/12 roof is at 26.57°.
  • Slope percentage: rise ÷ run × 100. A 6/12 roof is a 50.00% slope, because 6 is half of 12.
  • Ratio: rise to run in lowest terms. A 6/12 roof is 1:2, or "1 in 2", and a 4/12 roof is 1:3.

In everyday U.S. use, "pitch" and "slope" mean the same thing, the rise per 12 inches of run, and this page uses them that way. The building code writes the same idea as "units vertical in 12 units horizontal", with a percentage in parentheses. Some older carpentry texts, including the U.S. Army's 1995 carpentry manual (FM 5-426), define pitch as the rise divided by the span, the full width of the building, so a "1/4 pitch" roof under that definition is what we now call 6/12.

The calculator also sorts pitches into four groups: flat (below 2/12), low (2/12 to under 4/12), conventional (4/12 to under 8/12) and steep (8/12 and up). That is our own rough grouping, not a code or OSHA definition; the codes and OSHA draw their lines elsewhere, as the section on minimum pitch explains.

Roof pitch formulas

Pitch, angle and slope are three ways of writing the same right triangle, so each converts exactly into the others. With the rise and run in the same unit:

pitch (x/12)     = rise ÷ run × 12
slope %          = rise ÷ run × 100
angle            = arctan(rise ÷ run)
pitch from angle = 12 × tan(angle)
pitch factor     = √(1 + (pitch ÷ 12)²)

In a spreadsheet with the pitch (the x in x/12) in cell A2, the angle in degrees is =DEGREES(ATAN(A2/12)) and the pitch for an angle in B2 is =12*TAN(RADIANS(B2)).

Example 1: a 6/12 pitch in degrees (pitch to degrees)

A 6/12 roof rises 6 inches over 12. The slope is 6 ÷ 12 = 0.5, or 50.00%, and the angle is arctan(0.5) = 26.57°, which is 26° 33′ 54″. The pitch factor is √(1 + 0.5²) = 1.118, so every foot of run takes 13 7/16" of rafter. As a ratio, 6/12 is 1:2.

Example 2: 30 degrees to pitch (degrees to pitch)

To convert degrees to pitch, multiply the tangent of the angle by 12. For 30°, that is 12 × 0.57735 = 6.93, a 6.93/12 pitch. The nearest whole or half pitch is 7/12; the calculator shows both, and suggests the nearest half-inch pitch whenever yours isn't a whole or half number.

Example 3: a 4/12 pitch in degrees and percent

A 4/12 pitch is a slope of 4 ÷ 12 = 33.33% and an angle of arctan(1/3) = 18.43°. Its pitch factor is 1.054, and its hip/valley factor is 1.453.

Slope percentage to pitch

Multiply the percentage by 12 and divide by 100. A 25% slope is 25 × 12 ÷ 100 = 3 inches of rise per foot, a 3/12 pitch at 14.04°.

Roof pitch chart

The roof pitch chart below converts every whole pitch from 1/12 to 24/12 into degrees, slope percentage, pitch factor (the roof pitch multiplier), hip/valley factor and rafter length per foot of run. It is computed by the same code as the Pitch chart tab, which also has 0/12, highlights your current pitch, loads any row into the calculator and downloads the chart as a CSV file.

Roof pitch to degrees, slope and pitch factor
PitchAngleSlopePitch factorHip/valley factorRafter per ft of run
1/124.76°8.33%1.0031.41712 1/16"
2/129.46°16.67%1.0141.42412 3/16"
3/1214.04°25.00%1.0311.43612 3/8"
4/1218.43°33.33%1.0541.45312 5/8"
5/1222.62°41.67%1.0831.47413"
6/1226.57°50.00%1.1181.50013 7/16"
7/1230.26°58.33%1.1581.53013 7/8"
8/1233.69°66.67%1.2021.56314 7/16"
9/1236.87°75.00%1.2501.60115"
10/1239.81°83.33%1.3021.64115 5/8"
11/1242.51°91.67%1.3571.68516 1/4"
12/1245.00°100.00%1.4141.73217"
13/1247.29°108.33%1.4741.78117 11/16"
14/1249.40°116.67%1.5371.83318 7/16"
15/1251.34°125.00%1.6011.88719 3/16"
16/1253.13°133.33%1.6671.94420"
17/1254.78°141.67%1.7342.00220 13/16"
18/1256.31°150.00%1.8032.06221 5/8"
19/1257.72°158.33%1.8732.12322 1/2"
20/1259.04°166.67%1.9442.18623 5/16"
21/1260.26°175.00%2.0162.25024 3/16"
22/1261.39°183.33%2.0882.31525 1/16"
23/1262.45°191.67%2.1622.38225 15/16"
24/1263.43°200.00%2.2362.44926 13/16"

To read it, find your pitch in the first column. The angle is the roof's slope in degrees, the slope is rise ÷ run as a percentage, and the pitch factor is how much longer the roof surface is than its level run. A 12/12 roof is exactly 45°, a 100.00% slope, with a factor of 1.414; every row below it is steeper than 45 degrees. The last column is the pitch factor times 12 inches, rounded to the nearest 1/16".

Common angles to pitch

Going the other way, from degrees to pitch, rarely lands on a whole number. This table shows the exact pitch for some round angles and the nearest whole or half pitch:

Degrees to pitch
AnglePitchSlopeNearest whole or half pitch
5°1.05/128.75%1/12
10°2.12/1217.63%2/12
15°3.22/1226.79%3/12
20°4.37/1236.40%4.5/12
22.5°4.97/1241.42%5/12
25°5.6/1246.63%5.5/12
30°6.93/1257.74%7/12
35°8.4/1270.02%8.5/12
40°10.07/1283.91%10/12
45°12/12100.00%12/12
50°14.3/12119.18%14.5/12
60°20.78/12173.21%21/12

How to measure roof pitch

Safety first. Measure from the attic or from the ground with a photo. From a ladder at the gable end, use only the one-handed phone method. Don't climb onto the roof to measure it. OSHA's ladder safety guide says that "Falls are the leading cause of death in construction and every year falls from ladders make up nearly a third of those deaths." Its fall prevention campaign warns that workers six feet or more above lower levels are at risk for serious injury or death if they fall. OSHA's rules are written for employers and workers, but the physics is the same for a homeowner.

The classic method uses a level and a tape measure on a rafter in the attic, where you are standing on the ceiling framing rather than on the roof. Step on the joists or a board laid across them, never on the ceiling between them.

  1. Stay off the roof. Work from the attic or from the ground with a photo. From a ladder, use only the one-handed phone method, keeping three points of contact. The photo and phone methods are described below.
  2. Hold a level against a rafter. In the attic, hold a level horizontally, with the bubble centered and one end touching the underside of a rafter.
  3. Mark 12 inches along the level. Measure 12 inches along the level from the end that touches the rafter, and mark the spot.
  4. Measure straight up to the rafter. From the mark, measure plumb (vertically) up to the underside of the rafter. That distance is the rise per 12 inches of run: 6 inches means a 6/12 pitch. The rafter's edges are parallel, so its depth doesn't change the answer.
  5. Enter it in the calculator. On the Pitch tab, choose Rise & run and enter the rise with a run of 12 inches. For more accuracy, measure over a longer run, such as 24 inches, and enter both numbers: a 12-inch rise over 24 inches is still 6/12.

At the gable end

If you can't get into the attic, the rake board (the trim along the sloped edge of a gable) has the same pitch as the roof. The level-and-tape method needs both hands, so use it there only on a gable end you can reach without a ladder. From a ladder, use the phone method below instead: rest the phone against the rake board with one hand, keeping both feet and your other hand on the ladder. Follow OSHA's ladder advice: place the ladder on stable and level ground, do not work on the top rung, and maintain three points of contact with the ladder at all times. For a leaning ladder, OSHA's ladder rule sets the foot out about a quarter of the ladder's working length from the top support, often called the 4-to-1 rule.

From the ground: measure from a photo

To measure roof pitch from the ground, take a photo of a gable end and open it in From a photo. Drag the two handles onto the ends of the sloped rake edge, and the tool reads the angle and the pitch. A few things make the estimate better:

  • Stand square to the gable end. A photo taken from an angle makes the roof look steeper than it is.
  • Stand as far back as you can and zoom in, rather than shooting wide up close: perspective distortion shrinks with distance. Keep the camera level and the roof line near the middle of the frame, where lens distortion is lowest.
  • Mark the main rake edge, not a dormer, a porch or a hip, which may have a different pitch.
  • If the photo is tilted, switch on the level line and mark something truly horizontal in the same wall, such as the fascia along the eave, a siding course or a window head. That corrects a rotated photo, not perspective.

The photo never leaves your device. Treat the result as an estimate, and confirm it with a level before you order material or cut anything.

With your phone

The Phone level tab turns a phone into a roof pitch finder, with no app to install. Tap Start (some phones ask for permission to use motion sensors), then place the phone. In the default Long edge along the slope mode, lay the phone flat on the underside of a rafter with its long edge running along the rafter, or stand it on its long edge against the side of a rafter or the rake board; sideways roll doesn't affect this reading. In Lying flat on the surface mode, the phone must lie flat on the sloped surface itself, such as the underside of the roof sheathing between two rafters. Zero it on a known-level surface first, wait for the reading to settle and tap Hold.

Phone sensors are close but not exact. In one small validation study, one phone consistently read about 1.1° low against precision angle blocks, and the authors recommended a zeroing feature, which the tool has. Take the phone out of a bulky case, and check the result with a level before cutting.

From plans or known dimensions

Building plans often mark the pitch on the roof elevations or sections with a small triangle: 12 on the level leg and the rise on the vertical one. If you know the building width and how far the ridge rises above the top of the walls, enter them as rise and run (half the width) or use the span and rise example below.

Pitch from rise and run, or from a rafter length

When you know two lengths rather than an angle, the calculator solves the right triangle for you. Rise and run have to be in the same unit, but it doesn't matter which: feet, inches or millimeters all give the same pitch.

Example 4: a 3 ft rise over a 9 ft run

A roof that rises 3' 0" over a run of 9' 0" has a pitch of 3 ÷ 9 × 12 = 4/12, an angle of 18.43°. The sloped length over that run is √(3² + 9²) feet, or 9' 5 13/16".

Example 5: a 12 ft run and a 13 ft rafter

If you know the run and the sloped length, the rise is √(13² − 12²) = 5' 0", so the pitch is 5/12, at 22.62°. Starting from the rise and the sloped length instead, 5' 0" and 13' 0", gives the same 5/12. The sloped length here is measured between the same two points as the run and the rise; it is not the length of the board you buy, which the next sections cover. The rafter can't be shorter than the run, and it has to be longer than the rise.

Example 6: building width and ridge height

On a gable roof the run is half the building width, called the span. A building 24' 0" wide whose roof rises 4' 0" from the top of the walls to the ridge at the centerline has a run of 12' 0" and a pitch of 4/12. Measure the span and the rise to the same lines, for example the outside of the wall framing and the top of the wall plate.

Roof pitch multiplier and roof area

The pitch factor, also called the roof pitch multiplier or slope factor, is the length of sloped roof per unit of level run: √(1 + (pitch ÷ 12)²). Because every plane of a roof is tilted by the same amount in one direction, the same factor converts a roof plane's plan area, the area you'd see from directly above, into its true surface area:

roof area = footprint area × pitch factor
squares   = roof area ÷ 100

Example 7: a 1,500 sq ft footprint at 6/12

Start from the footprint's square footage: the area inside the outline of the roof seen from above, overhangs included.

A roof whose footprint, overhangs included, measures 1,500 sq ft at a 6/12 pitch has a surface area of 1,500 × 1.118 = 1,677.05 sq ft, or 16.77 squares. In roofing, a square is 100 sq ft of roof surface.

This only holds when every plane of the roof has the same pitch; for a roof with several pitches, work out each part separately and add them. The footprint field under Roof area from the footprint on the Pitch tab does this multiplication. To turn the area into shingle bundles, underlayment, waste and a cost estimate, use the Roofing Calculator.

Rafter length

A common rafter runs from the wall plate to the ridge at right angles to both. Its length comes from the run and the pitch factor, with three corrections: half of the ridge board comes off the top, the overhang goes on the bottom, and the plumb cut at the top needs a little extra board.

run           = span ÷ 2 (gable) or span (shed)
line length   = (run − ridge thickness ÷ 2) × pitch factor
overhang      = eave overhang × pitch factor
total length  = line length + overhang
board length  = total length + rafter depth × pitch ÷ 12
hip or valley = run × √(2 + (pitch ÷ 12)²)

Example 8: a 24 ft wide gable at 6/12

A gable building 24' 0" wide has a run of 12' 0" on each side. A 1 1/2" ridge board takes half its thickness off each side, leaving an adjusted run of 11' 11 1/4". At 6/12, multiplying by the pitch factor of 1.118 gives a line length of 13' 4 3/16", measured along the rafter from the building line (the outside of the wall) to the ridge plumb cut. The ridge deduction, half the ridge board measured along the rafter, is 13/16".

A 12" level overhang adds 13 7/16" along the slope, so the total length is 14' 5 9/16". The plumb cut at the top crosses the full 7 1/4" depth of a 2×8 at an angle, which adds the depth × the slope to the board length: 14' 9 3/16". The shortest standard length that covers it is 16' 0". The ridge line sits 6' 0" above the building line.

With a 3 1/2" seat cut, the width of a 2×4 wall plate, the birdsmouth's heel (plumb) cut is 1 3/4" high. Over a 40' 0" building at 16" on center you need 31 rafters per side, 62 in all: the length divided by the spacing, rounded up, plus one for the end.

Hip and valley rafters

On a regular hip roof, where roof planes of equal pitch meet at a right-angled corner, the hip rafter runs diagonally across the plan. Its run is the common run × √2, 16' 11 5/8" here, and its length is the common run × the hip/valley factor of 1.500: 18' 0". The hip line itself slopes at only 19.47°, because it covers more run for the same rise. Valley rafters follow the same math. These are theoretical line lengths before the deductions at the ridge and the side cuts, which depend on how the framing meets.

Lengths are along the rafter and assume a straight, uncrowned board; add a few inches for trimming. The count is a layout count: gable-end rafters, doubled rafters at openings and the ridge itself vary from roof to roof. Rafter size and span depend on lumber species, grade, spacing and loads, so this page gives neither: check the IRC span tables (Section R802.4.1, Tables R802.4.1(1) through R802.4.1(8)) or ask an engineer. The IRC measures a rafter span "along the horizontal projection of the rafter", which is not the same as the building width used here.

Cut angles and the framing square

Two cuts set a rafter's pitch. The plumb cut at the ridge (and often at the tail) is vertical once the rafter is in place; the seat cut of the birdsmouth sits level on the wall plate. Measured against the rafter's edge, they are 90 degrees minus the roof angle and the roof angle itself.

For a 6/12 roof, the plumb cut meets the rafter's edge at 63.43° and the seat cut at 26.57°. The plumb cut is the roof angle off square, so on a miter saw with the rafter lying flat the miter setting is 26.57°; with the board standing on edge against the fence, the same figure goes on the bevel scale. A circular saw following a marked plumb line stays square. At steep pitches the angle can be more than a miter saw's scale reaches, so mark the line and cut it by hand or with a circular saw.

With a framing square, hold 12 on the body (the wide arm) and the rise on the tongue against the rafter's edge: 12 and 6 for a 6/12 roof. Mark along the tongue for the plumb cut and along the body for the seat cut. Hip and valley rafters use 17 on the body instead of 12, because a hip covers about 17 inches of diagonal run (12 × √2) for every 12 inches of common run, so a 6/12 hip is laid out at 17 and 6. The calculator lists both settings for your pitch. The same rise-over-run layout is used for stair stringers, though stairs have their own code limits.

Minimum roof pitch by roofing material

Every roof covering has a lowest pitch it may be installed on, because water drains slowly off a shallow roof and wind can drive it back up under the laps. The International Residential Code (IRC), the model code for houses published by the International Code Council, sets those minimums in Section R905. The table gives the minimum pitch for each covering in the 2024 edition; the 2021 edition has the same minimums, though some section numbers differ. The Pitch tab checks your pitch against the same list.

Minimum roof pitch by covering, 2024 IRC Section R905
Roof coveringMinimum pitchConditionIRC section
Asphalt shingles2/12From 2/12 up to 4/12: two layers of underlayment, or one layer of self-adhering ASTM D1970 underlaymentR905.2.2, R905.1.1
Clay and concrete tile2½/12From 2½/12 to 4/12: the same underlayment ruleR905.3.2
Metal roof shingles3/12R905.4.2
Mineral-surfaced roll roofing1/12R905.5.2
Slate and slate-type shingles4/12R905.6.2
Wood shingles3/12R905.7.2
Wood shakes3/12R905.8.2
Metal panels, lapped seams, no lap sealant3/12R905.10.2
Metal panels, lapped seams with lap sealant½/12Sealant applied per the manufacturer's instructionsR905.10.2
Metal panels, standing seam¼/12R905.10.2
Built-up roofing¼/12Design slope for drainage; coal-tar built-up ⅛/12R905.9.1
Modified bitumen¼/12Design slope for drainageR905.11.1
Single-ply membrane (EPDM, TPO, PVC)¼/12Design slope for drainageR905.12.1
Sprayed polyurethane foam¼/12Design slope for drainageR905.13.1
Liquid-applied roofing¼/12Design slopeR905.14.1
Building-integrated photovoltaic (BIPV) shingles2/12From 2/12 up to 4/12: the same underlayment rule as asphalt shingles (Table R905.1.1(2))R905.15.2

Minimum pitch for shingles. Section R905.2.2 says asphalt shingles "shall be used only on roof slopes of 2 units vertical in 12 units horizontal (17-percent slope) or greater", and that from 2 in 12 up to 4 in 12 "double underlayment application is required in accordance with Section R905.1.1." The 2024 underlayment table allows a single layer of self-adhering polymer-modified bitumen underlayment that complies with ASTM D1970 instead of the two layers. In areas where the code requires wind design, the extra underlayment applies at every pitch. Wood shingles and wood shakes both start at 3/12, and slate at 4/12.

Minimum slope for a metal roof depends on the kind of metal roof. Metal shingles and lapped, nonsoldered-seam panels without lap sealant need 3/12; lapped panels with an applied lap sealant can go down to ½ in 12, and standing-seam systems to ¼ in 12 (Section R905.10.2). The coverings listed at ¼/12 are given as a design slope "for drainage": the slope the roof is built to so that water runs off. These are minimum slopes only; maximum slopes and other limits come from the manufacturer.

These figures are code minimums only: local codes and the manufacturer's installation instructions govern, and many manufacturers ask for more than the code does. Check with your building department before you choose a covering for a low-pitched roof.

Low slope and steep slope

These words mean different things in different documents. The building codes split at 2 in 12: the International Building Code (Section 202) and the 2024 IRC's energy chapter (Section N1101.6) call a roof slope of 2 units vertical in 12 units horizontal or greater a steep slope, and anything less a low slope. OSHA's construction fall-protection rules call a roof low-slope at 4 in 12 or less and steep above 4 in 12 (29 CFR 1926.500(b)). So a 4/12 roof is "conventional" in the calculator's rough grouping, a steep slope to the building codes and a low-slope roof to OSHA. Under 29 CFR 1926.501, employers must protect workers on either kind of roof from falls once they are six feet or more above a lower level.

Common roof pitches

A handful of pitches come up again and again in questions, plans and charts. Here is what each one means in numbers and under the code; none is better than another, and the right pitch for a building depends on its design, climate and covering.

  • 3/12 pitch: 14.04°, a 25.00% slope. Asphalt shingles are allowed but need the extra underlayment, and it is the code minimum for metal roof shingles, wood shingles, wood shakes and lapped metal panels without sealant.
  • 4/12 pitch: 18.43°, 33.33%, pitch factor 1.054. From here up, asphalt shingles need only one layer of underlayment (where wind design isn't required), and it is the minimum for slate. It is also the top of OSHA's low-slope range.
  • 5/12 pitch: 22.62°, 41.67%. Each foot of run takes exactly 13" of rafter, because 5, 12 and 13 form a right triangle.
  • 6/12 pitch: 26.57°, 50.00%, a 1:2 ratio and a pitch factor of 1.118. The calculator's default, and the example used throughout this page.
  • 8/12 pitch: 33.69°, 66.67%, pitch factor 1.202. Where the calculator's "steep" group starts. Where the IRC requires an ice barrier, roofs of 8 units vertical in 12 units horizontal or more need it to reach at least 36 inches along the slope from the eave edge (R905.1.2).
  • 9/12 pitch: 36.87°, 75.00%. Exactly 15" of rafter per foot of run, from the 3-4-5 triangle.
  • 12/12 pitch: 45°, a 100.00% slope where the rise equals the run. The pitch factor is 1.414, so every square foot of footprint carries that many square feet of roof.

Metric: pitch in degrees and millimeters per meter

In metric units, roof pitch is often given in degrees, as a percent, or in millimeters of rise per meter of run. Switch Units to Metric and the calculator leads with the angle, takes lengths in millimeters (or with cm or m after the number), shows lengths in whole millimeters, and gives rafter length per meter of run instead of per foot.

The math is identical: one inch is exactly 25.4 mm. A 30° roof rises 577 mm for each meter of run, and each meter of run takes 1,155 mm of rafter; in x/12 terms it is 6.93/12. A 22.5° roof rises 414 mm per meter, with 1,082 mm of rafter per meter of run. In metric mode, the stock lengths offered for rafters run from 1.8 m to 6.0 m in 0.3 m steps, a typical range; what you can buy varies by region and supplier.

How we calculate

Every figure on this page and in the tool comes from the same code, and the examples above are checked against it automatically. These are the rules it follows:

  • Pitch is stored as the rise per 12 units of run. Angle = arctan(pitch ÷ 12); slope = pitch ÷ 12; pitch factor = √(1 + slope²); hip/valley factor = √(2 + slope²), for equal pitches meeting at a right angle; hip line angle = arctan(slope ÷ √2).
  • Two lengths. Run = √(rafter² − rise²) or rise = √(rafter² − run²); on a gable, run = span ÷ 2. The rafter has to be longer than the rise and at least as long as the run.
  • Rafters. Line length = (run − ridge ÷ 2) × factor; overhang length = overhang × factor; board length = total length + depth × slope; heel cut = seat cut × slope. Stock lengths are 8 to 24 ft in 2 ft steps, or 1.8 to 6.0 m in 0.3 m steps; anything longer is flagged so you can splice or order engineered lumber. Rafter count = length ÷ spacing, rounded up, plus one, per side.
  • Photo. The angle of the line you mark, measured from the picture's horizontal or from a level line you mark, folded into 0 to 90 degrees.
  • Phone. From the device's orientation sensor (β and γ are its front-to-back and side-to-side tilt). In Long edge along the slope mode, the angle of the phone's long edge, arcsin(|sin β|), which ignores sideways roll; in Lying flat on the surface mode, the tilt of the screen, arccos(cos β × cos γ). Averaged over the last ten readings, minus the zero offset if you set one.
  • Full precision, rounded for display. Results are kept unrounded. Lengths are shown to the nearest 1/16" by default, with the carry into feet (11.99" shows as 1' 0"), or to whole millimeters in metric. Angles and percentages show two decimals, factors three, and pitches up to two decimals; the nearest whole or half pitch is the nearest half inch of rise.
  • Limits. Angles up to 85° and lengths up to 10,000 ft. Lengths are along the rafter and assume a straight, uncrowned board.

Your photo and sensor readings stay on your device

The calculator runs entirely as JavaScript in your browser tab, so your measurements, your photo and your phone's sensor readings never leave the device.

  • Photos are never uploaded. The picture you choose is read by the page itself and shown from memory. The page's Content-Security-Policy only allows connections back to this site, and the tool has no code that sends anything anywhere.
  • Sensor readings aren't stored or sent. The phone level reads the orientation sensor only after you tap Start and uses the readings to draw the angle. The only thing it saves is the zero offset, if you set one, in this browser on your device.
  • No account, no cookies. The tool remembers your last inputs, units and tab in your browser's local storage, on your device only. It never stores the photo.

Frequently asked questions

What is roof pitch?

Roof pitch is how steep a roof is, written as inches of rise per 12 inches of horizontal run. A 6/12 ("6 in 12") roof rises 6 inches for every 12 inches it runs. The same steepness can be given as an angle (26.57°) or a percent slope (50.00%). The calculator converts between all three and fills in the rest.

How do I convert roof pitch to degrees?

Divide the rise by 12 and take the arctangent: angle = arctan(rise ÷ 12). For a 6/12 roof, arctan(0.5) = 26.57°. To go the other way, pitch = 12 × tan(angle), so 30° is 6.93/12, a little under 7/12. Percent slope is rise ÷ 12 × 100.

What angle is a 4/12, 6/12, 8/12 or 12/12 pitch?

A 4/12 pitch is 18.43° (33.33%), 6/12 is 26.57° (50.00%), 8/12 is 33.69° (66.67%) and 12/12 is 45° (100.00%). The Pitch chart tab lists every whole pitch from 0/12 to 24/12 with its angle, slope, pitch factor and hip/valley factor.

How do I measure roof pitch without climbing on the roof?

Work from the attic: hold a level horizontally with one end touching the underside of a rafter, measure 12 inches along the level, then measure straight up to the rafter. That number is the rise in 12. From the ground, photograph a gable end square-on and mark the roof line in the From a photo tab, or rest your phone on a rafter with the Phone level.

Can I measure roof pitch from a photo?

Yes, if the photo is taken square to the gable end. Stand back as far as you can, zoom in, keep the camera level and mark the sloped (rake) edge, not a dormer. A photo taken from an angle makes a gable look steeper than it is. Treat the result as an estimate and confirm it with a level before cutting anything.

How accurate is the phone level?

Close, but not a substitute for a level and a tape measure. Phones differ: in one small validation study, one phone read about 1.1° low on average against precision angle blocks. At 6/12, an error of one degree is roughly a quarter inch of rise per foot. The error matters more on steep roofs, where whole pitches are close together: 23/12 is 62.45° and 24/12 is 63.43°, less than a degree apart. Zero the phone on a flat surface first, take it out of a bulky case, and confirm the reading with a level before cutting.

What is a roof pitch factor (multiplier)?

It's the sloped length per unit of horizontal run: √(1 + (rise ÷ 12)²). Multiply a footprint's area by it to get the roof's surface area. At 6/12 the factor is 1.118, so a 1,500 sq ft footprint (overhangs included) has 1,677.05 sq ft of roof, or 16.77 squares. The Roofing Calculator turns that into shingles and cost.

How do I calculate rafter length?

Multiply the run by the pitch factor. On a 24 ft wide gable at 6/12 the run is 12 ft; take off half of a 1 1/2" ridge board and the line length is 13' 4 3/16". A 12" overhang adds 13 7/16" along the slope, for 14' 5 9/16" in total. Allowing for the plumb cuts, you need a board at least 14' 9 3/16" long, so buy 16' 0" stock.

What is the hip and valley factor?

On a regular hip roof, where equal pitches meet at a square corner, a hip or valley rafter runs on the diagonal, so its length per foot of common run is √(2 + (rise ÷ 12)²). At 6/12 the factor is 1.500: a 12 ft common run needs an 18 ft hip, before deductions for the ridge and the hip's own thickness.

What is the minimum roof pitch for asphalt shingles?

The International Residential Code (Section R905.2.2) allows asphalt shingles on slopes of 2/12 or steeper. From 2/12 up to 4/12 it requires two layers of underlayment, or one layer of self-adhering underlayment meeting ASTM D1970 (R905.1.1). Shingle manufacturers may be stricter; your local code and the manufacturer's instructions govern.

What is the minimum pitch for a metal roof?

It depends on the system. The IRC (R905.10.2) sets 1/4 in 12 for standing-seam panels, 1/2 in 12 for lapped, nonsoldered seams with lap sealant, and 3/12 for lapped seams without sealant. Metal roof shingles need 3/12 (R905.4.2). Manufacturers often require more, so check their instructions and your building department.

Is roof pitch the same as slope?

In everyday U.S. use, yes: both mean rise per 12 inches of run, such as 6/12. Some older carpentry texts, including the U.S. Army's carpentry manual, define pitch as rise divided by span (the full building width). Under that definition a "1/4 pitch" roof is 6/12 and a "1/3 pitch" roof is 8/12.

Sources

Reviewed by microplugins · Last updated

This is an educational tool, not engineering, building-code or construction advice. Code requirements vary by location and edition: check with your building department, follow the roofing manufacturer's installation instructions, and have a qualified professional size and check any framing.