Skip to content

Roofing › Roof pitch calculator

Roof pitch calculator: rise and run to degrees, percent and slope factor

Enter a rise and a run you measured, a pitch written as x/12, an angle in degrees or a slope in percent, and the calculator returns every other way of saying the same roof pitch: the x/12 figure, the angle, the percent, the old span-fraction pitch, the slope factor, the hip and valley factor and the rafter inches per foot of run. Add the run of one rafter and it prints the rafter line length and the total rise. Every slope limit on the page is quoted from the 2021 IRC with its section number.

Roof pitch in the US is rise in inches per 12 inches of level run: pitch = rise ÷ run × 12. The angle is arctan(rise ÷ run), the percent slope is rise ÷ run × 100, and the slope factor that turns a level distance into a sloped one is √(rise² + 12²) ÷ 12. A 6 in rise over 12 in of run is a 6 / 12 pitch, 26.57°, a 50 % slope, a slope factor of 1.1180 and 13.416 in (13 7/16) of rafter per foot of run.

Rise and run must be in the same unit and the run must be level, not along the slope. The multiplier table lists every common pitch with its angle and factors, the minimum pitch table gives the IRC slope for each roof covering, and the FAQ answers the measuring and conversion questions that come up most.

Roof pitch calculator: rise and run, x/12, degrees, percent

Use it as a roof slope calculator, a rise over run calculator, a shed roof pitch calculator, a lean-to or patio pitch calculator, or a roof angle calculator: the same four conversions serve every roof, and the only choice is which figure you start from. It is free and needs no sign-up. The headline is the pitch as x/12, the form a framer, a roofer, a truss sheet and the IRC all use; the rows under it are the same slope in every other form, plus the two factors that turn a level measurement into a sloped one.

At its defaults, a 6 rise over a 12 run, the tool prints 6 / 12, 26.57°, 50 %, an exact rise of 6.000 in, a ratio of 1 : 2, a span-fraction pitch of 1/4, a slope factor of 1.1180, a hip and valley factor of 1.5000 and 13.416 in (13 7/16) of rafter per foot of run. Enter 14 ft as the run of one rafter and it adds a rafter line length of 15 ft 7 13/16 in and a total rise of 7 ft. Switch to the angle setting and type 30 and the headline becomes 6⅞ / 12 with an exact rise of 6.928 in and a nearest standard pitch of 7 / 12.

Roof pitch calculator inputs, what to enter and the default
InputWhat to enterDefault
I knowRise and run you measured; a pitch written as x/12; an angle in degrees; or a slope in percentrise and run
RiseVertical distance, on a plumb line. A bare number is feet (6 = 6 ft); write 6 in, 6" or 1' 3" for inches. Same unit as the run6
RunHorizontal distance on a level line, not along the slope; same unit as the rise. Over a 12 in level, enter 12 in12
Rise per 12 in of runShown for x/12: the top number of the pitch, in inches, in ⅛ in steps (3½/12 is 3.5)6
AngleShown for degrees: the roof plane's angle from horizontal, to 0.01°26.57
SlopeShown for percent: rise as a percentage of run (50 % is 6/12, 100 % is 12/12)50
Run of one rafterOptional: level distance from the outside of the wall plate to the ridge center line, half the span on a gable. Leave 0 to skip the rafter rows0

What each result row means

The rows are the same slope written six ways and then used three ways. Nothing on the card has waste or rounding in it except the headline, which snaps to an eighth of an inch so that it reads like a pitch on a plan; the exact figure sits two rows down.

Result rows of the roof pitch calculator and what they are, with the default 6/12 figures
RowMeaningAt 6/12
Roof pitchrise per 12 in of level run, rounded to the nearest ⅛ in6 / 12
Anglearctan(rise ÷ run), from horizontal26.57°
Sloperise ÷ run × 100, the grade50 %
Exact rise in 12the unrounded rise per 12 in, to 0.001 in; the headline rounds to an eighth6.000 in
Nearest standard pitchthe whole or half x/12 nearest to an angle or percent that lands between steps; shown only when the input is off a step7 / 12 (at 30°)
Ratio (rise : run)1 : how many units of run per unit of rise1 : 2
Span-fraction pitchthe old notation, rise over the full span: 6/12 is a quarter pitch1/4
Slope factor√(rise² + 12²) ÷ 12: sloped length per unit of level run; also the area multiplier1.1180
Hip / valley factor√(rise² + 288) ÷ 12: a hip or valley runs at 45° in plan, so its unit rise is in 17, not 121.5000
Rafter per ft of runslope factor × 12, as a decimal and a tape fraction13.416 in (13 7/16)
Rafter line lengthrafter run × slope factor, plate to ridge center, feet and sixteenths15 ft 7 13/16 in (14 ft run)
Total riserafter run × rise ÷ 127 ft (14 ft run)

How to calculate roof pitch by hand: rise over run

What is roof pitch? The pitch of a roof is how steep it is, stated as the rise over the run, and a roof pitch diagram is a right triangle: the rise is the plumb leg, the run is the level leg and the rafter is the hypotenuse. Everything the tool prints comes from that one ratio and three functions of it, and calculating, figuring, finding or determining the pitch of a pitched roof is the same job whichever word a plan uses: find the rise, find the run, determine the ratio. The steps are shown for a 6/12 roof so you can check them with a tape and a phone.

Rise over run and the x/12 form

Measure the rise on a plumb line and the run on a level line, both in the same unit, then divide the rise by the run and multiply by 12. A 4 in rise over 12 in of run is 4 ÷ 12 × 12 = 4 / 12; a 5 ft rise over a 16 ft run is 5 ÷ 16 × 12 = 3.75, which the tool prints as 3¾ / 12 with an exact rise of 3.750 in; a 7 in rise over 24 in is 3½ / 12. The number is the same whether you measure over 12 in, 24 in or the whole rafter, because the roof plane has one slope. The trade writes it as 6/12, 6:12, 6-in-12, 6 on 12 or 6 and 12; the IRC writes it as 6 units vertical in 12 units horizontal. A pitch of 12/12 rises as much as it runs, which is 45°; 24/12 rises twice its run. Above 24/12 the tool warns that the rise and run may be swapped, because a plane that steep is a wall, not a roof: 12 ft of rise over 6 ft of run is 24 / 12 and 63.43°.

Pitch, slope, gradient and the span fraction

On a US job site pitch and slope mean the same x/12 figure, and the code uses only the word slope. The older meaning of pitch is different: rise over the full span, the width of the building, so a roof that rises 6 ft over a 24 ft span was called a quarter pitch, 8/12 a third pitch and 12/12 a half pitch. Old plans, old carpentry books and a few framers still use it, and it is the reason a "1/4 pitch" is not a 1/4-in-12 roof. The tool prints both: 6 / 12 is a span-fraction pitch of 1/4, 8 / 12 is 1/3, 12 / 12 is 1/2 and 4 / 12 is 1/6. Roof gradient is the British and Australian term for the same slope, usually given in degrees; percent slope, or grade, is rise over run times 100, so a 6/12 roof is a 50 % grade and a 12/12 roof is 100 %.

Roof pitch in degrees and percent

The angle is the arctangent of rise over run: arctan(6 ÷ 12) = 26.57°, arctan(4 ÷ 12) = 18.43°, arctan(12 ÷ 12) = 45.00°. Degrees do not scale with the rise: 12/12 is 45°, but 6/12 is 26.57° and not 22.5°, and 3/12 is 14.04° and not 11.25°. Going the other way, rise per 12 in = 12 × tan(angle): 30° is 12 × tan 30° = 6.928 in, which the tool rounds to 6⅞ / 12 and reads as nearest the standard 7 / 12; a 2° fall on a flat extension is 12 × tan 2° = 0.42 in per foot, about 7/16 in; 22.5° is 4.971 in, between 4/12 and 5/12. Percent is the plainest of the three: 33.3 % is 4 / 12, 50 % is 6 / 12 and 100 % is 12 / 12. Compute the angle from the ratio, not from a rounded decimal; 4/12 worked as arctan 0.333 gives 18.4178° where the true value is 18.4349°, and the tool prints 18.43°.

Roof pitch multiplier table: degrees, percent, slope factor, hip factor and rafter inches per foot

The slope factor, also called the roof pitch multiplier, roof slope factor or pitch factor, is the length of roof per unit of level distance: √(rise² + 12²) ÷ 12, which at 6/12 is √180 ÷ 12 = 1.1180. Multiply a level run by it for a rafter length, or a footprint by it for a roof area, so 1,000 sq ft of footprint is 1,118 sq ft of roof at 6/12 and 1,414 sq ft at 12/12. The hip and valley factor does the same for a hip or valley rafter, which runs diagonally across the plan at 45° and so rises the same amount over 17 in of its own run as the common rafter does over 12: √(rise² + 288) ÷ 12, 1.5000 at 6/12. The last column is the slope factor times 12, the inches of rafter for every foot of run that a framer steps off with a square.

Roof pitch multiplier table: angle, percent slope, slope factor, hip and valley factor and rafter length per foot of run, flat to 24/12
PitchAngleSlopeSlope factorHip / valley factorRafter per ft of run
Flat (0/12)0.00°0 %1.00001.414212.000 in
½/122.39°4.2 %1.00091.414812.010 in
1/124.76°8.3 %1.00351.416712.042 in (12 1/16)
1½/127.13°12.5 %1.00781.419712.093 in (12 1/16)
2/129.46°16.7 %1.01381.424012.166 in (12 3/16)
2½/1211.77°20.8 %1.02151.429512.258 in (12 1/4)
3/1214.04°25 %1.03081.436112.369 in (12 3/8)
3½/1216.26°29.2 %1.04171.444012.500 in (12 1/2)
4/1218.43°33.3 %1.05411.453012.649 in (12 5/8)
4½/1220.56°37.5 %1.06801.463112.816 in (12 13/16)
5/1222.62°41.7 %1.08331.474313.000 in
5½/1224.62°45.8 %1.10001.486613.200 in (13 3/16)
6/1226.57°50 %1.11801.500013.416 in (13 7/16)
6½/1228.44°54.2 %1.13731.514413.647 in (13 5/8)
7/1230.26°58.3 %1.15771.529813.892 in (13 7/8)
7½/1232.01°62.5 %1.17921.546214.151 in (14 1/8)
8/1233.69°66.7 %1.20191.563514.422 in (14 7/16)
8½/1235.31°70.8 %1.22551.581714.705 in (14 11/16)
9/1236.87°75 %1.25001.600815.000 in
9½/1238.37°79.2 %1.27541.620715.305 in (15 5/16)
10/1239.81°83.3 %1.30171.641515.620 in (15 5/8)
10½/1241.19°87.5 %1.32881.663015.945 in (15 15/16)
11/1242.51°91.7 %1.35661.685316.279 in (16 1/4)
11½/1243.78°95.8 %1.38511.708316.621 in (16 5/8)
12/1245.00°100 %1.41421.732116.971 in
14/1249.40°116.7 %1.53661.833318.439 in (18 7/16)
16/1253.13°133.3 %1.66671.943720.000 in
18/1256.31°150 %1.80282.061621.633 in (21 5/8)
20/1259.04°166.7 %1.94372.185823.324 in (23 5/16)
24/1263.43°200 %2.23612.449526.833 in (26 13/16)

Angles are computed from the ratio to two decimals and factors to four, the way the tool prints them, so the table doubles as a roof pitch chart for the multiplier. For the full roof pitch chart in degrees and percent, in both directions and with every pitch answered as an angle, use the roof pitch to degrees chart (planned); for roof area and squares from a footprint, the roof area calculator (planned); for hip rafter length and the two hip planes, the hip roof area calculator (planned).

How to measure roof pitch: on the roof, in the attic, from the ground

Any line parallel to the roof plane gives the same ratio, so it does not matter whether you measure at the eave, at the ridge, on a rafter or on the rake board, as long as the rise is plumb and the run is level. The overhang does not change the pitch for the same reason. Measure over the longest level you can hold flat, because the error in the drop is divided by the run: a ¼ in misread over a 12 in level is a quarter pitch, over 48 in it is 1/16. The five methods below each give the rise and run the calculator wants; the step-by-step with photographs is in how to calculate roof pitch.

Five ways to measure roof pitch and the formula each one feeds
MethodWhereWhat you measureFormulaExample
Level and tape on the roofon the roof surface, or on the rake board from a ladderhold a 24 in level flat with one end on the roof, measure down from the far end to the roofrise ÷ 24 × 12a 12 in drop over 24 in is 6/12; over a 12 in level, 6 in is 6/12 but a ¼ in error is a quarter pitch
In the atticthe underside of a rafter, or the top of the ridge and the platesame level method against the rafter, or total rise from the plate top to the ridge over the level run to the ridge centerrise ÷ run × 127 ft of rise over 14 ft of run is 6/12
Speed squareon a rafter, rake board or fasciapivot the square on the edge until the level reads plumb and read the common scalethe scale reads rise in 12 directlythe common scale at 6 is 6/12; the hip-val scale reads the same roof for a hip
From the ground at the gablesquare-on to a gable end, from a distancesight a straightedge or a pitch gauge card along the rake, or count siding courses between the eave line and the ridge and multiply by the exposure for the rise over half the widthrise ÷ half width × 12a 7 ft rise over a 28 ft wide gable is 7 ÷ 14 × 12 = 6/12; a photo works only taken square-on with the width known
Phone level appon the roof, a rafter, or a straightedge laid on the surfacelay the phone or a board along the slope and read the anglerise per 12 in = 12 × tan(angle)26.6° is 6/12; 30° is 6.93 in, a 7/12 for the plans

A pitch gauge, a slope gauge or a pitch card is the same tool as the speed square's scale on a card: it is laid on the rake and read directly. Photo estimates from the street are guesses, since perspective flattens a roof seen from below; the same gable photographed off-square was read as 4/12, 6/12 and 7/12 by four people answering the same question. A phone's level app held along a rafter is accurate to the degree it displays; held on a shingle surface it reads the shingle, so lay a straightedge first.

Minimum roof pitch by roofing material under the 2021 IRC

There is no single minimum roof pitch. The 2021 International Residential Code sets a slope for each roof covering in its own section of R905, from a quarter inch per foot for membranes and standing seam to 4:12 for slate, and the pitch you calculate decides which coverings the code allows. The figures below are read from the Seattle SDCI 2021 Chapter 9 reprint of the code, with the section and page for each; none of these sections carries a Washington or Seattle amendment mark. The slope rules sit in the deck-slope sections numbered .x.2, while the .x.1 sections are deck requirements. The manufacturer's instructions and your local amendments can be stricter than the code and govern where they are.

Minimum roof slope by covering in the 2021 IRC, with the section and the page of the Seattle reprint
Roof coveringMinimum slopeIRC 2021 sectionPage
Asphalt shingles2:12; two underlayment layers from 2:12 up to 4:12R905.2.2; Table R905.1.1(2)9-5; 9-3
Clay and concrete tile2½:12; two underlayment layers from 2½:12 to 4:12R905.3.29-7
Metal roof shingles3:12R905.4.29-8
Mineral-surfaced roll roofing1:12R905.5.29-8
Slate shingles4:12R905.6.29-8
Wood shingles3:12R905.7.29-9
Wood shakes3:12R905.8.29-10
Built-up roofs¼:12 design slope; coal-tar ⅛:12R905.9.19-12
Metal roof panels, lapped nonsoldered seams, no lap sealant3:12R905.10.29-12
Metal roof panels, lapped nonsoldered seams, with lap sealant½:12R905.10.29-12
Standing-seam metal roof systems¼:12R905.10.29-12
Modified bitumen¼:12 design slopeR905.11.19-13
Thermoset single-ply (EPDM)¼:12 design slopeR905.12.19-14
Thermoplastic single-ply (TPO, PVC)¼:12 design slopeR905.13.19-14
Sprayed polyurethane foam¼:12 design slopeR905.14.19-14
Liquid-applied roofing¼:12 design slopeR905.15.19-14
Photovoltaic shingles2:12R905.16.29-14
Building-integrated photovoltaic roof panels2:12R905.17.29-15

Asphalt shingles: 2:12, and two layers of underlayment up to 4:12

R905.2.2 reads: "Asphalt shingles shall be used only on roof slopes of 2 units vertical in 12 units horizontal (17-percent slope) or greater. For roof slopes from 2 units vertical in 12 units horizontal (17-percent slope) up to 4 units vertical in 12 units horizontal (33-percent slope), double underlayment application is required in accordance with Section R905.1.1." Table R905.1.1(2) gives the two methods: one for "roof slopes from 2 units vertical in 12 units horizontal (2:12), up to 4 units vertical in 12 units horizontal (4:12)" and one for "roof slopes of 4 units vertical in 12 units horizontal (4:12) or greater." So 3/12 and 3½/12 are legal shingle roofs with two layers, 2/12 is the floor, and 4/12 is where one layer starts; the common claims of a 3/12 or 4/12 minimum are not the code. The calculator prints the two-layer note from 2/12 up to 4/12 and the not-permitted note below 2/12: a 3 ft rise over 12 ft is 3 / 12, 14.04°, with the note. Ice barrier, where Table R301.2 calls for it, runs 24 in inside the exterior wall line, and R905.1.2 adds that "On roofs with slope equal to or greater than 8 units vertical in 12 units horizontal (67-percent slope), the ice barrier shall also be applied not less than 36 inches (914 mm) measured along the roof slope from the eave edge of the building." The shingle quantities for a given pitch are on the shingle calculator.

Metal roofs: three minimums by seam

R905.10.2 sets three slopes for metal roof panels: "The minimum slope for lapped, nonsoldered-seam metal roofs without applied lap sealant shall be 3 units vertical in 12 units horizontal (25-percent slope)," ½:12 for the same panels with applied lap sealant, and "The minimum slope for standing-seam roof systems shall be 1/4 unit vertical in 12 units horizontal (2-percent slope)." A ribbed panel on a patio cover at half an inch per foot is inside the code only with the sealant the manufacturer specifies, and most panel makers publish their own minimum, often 3:12, which then governs. Metal roof shingles are a separate covering at 3:12 (R905.4.2). Panel counts by pitch are on the metal roofing panel calculator (planned).

Flat, low-slope, conventional and steep roof pitch: what the categories mean

The IRC never labels a roof low-slope or steep; it only sets a slope per covering, so the categories below are drawn from where those slopes fall. A standard roof pitch does not exist in the code either. Most new US houses are framed between 4/12 and 9/12, with 4/12 to 6/12 common where snow is light and 6/12 to 9/12 where it is not; that is a trade generalisation, and the pitch a given house needs comes from its covering, its attic use, its snow and wind design and the look its plans call for. The one hard line is OSHA's: 29 CFR 1926.500(b) defines a "Low-slope roof" as "a roof having a slope less than or equal to 4 in 12 (vertical to horizontal)" and a "Steep roof" as "a roof having a slope greater than 4 in 12 (vertical to horizontal)."

Roof pitch categories, their pitch range and what applies in each
CategoryPitch rangeWhat applies
Flat and low slope¼:12 up to 2:12membranes, built-up, standing seam, roll roofing from 1:12; no asphalt shingles
Low-slope shingle roof2:12 up to 4:12asphalt shingles with two underlayment layers; tile from 2½:12; OSHA low-slope roof up to and including 4 in 12
Conventional4:12 up to 9:12one underlayment layer; wood shingles and shakes from 3:12, slate from 4:12; the range most new US houses are framed in, a rule of thumb and not a code figure; OSHA steep roof from just over 4 in 12
Steep9:12 and upice barrier 36 in along the slope from 8:12; common on cape, A-frame, gambrel and mansard upper slopes; 12:12 is 45°, 24/12 is 63.43°

Walkable pitch and the OSHA steep-roof line

Walkable is a crew's word, not a rule: on a dry asphalt roof most roofers work without staging up to about 6/12, use roof jacks and planks from 7/12 or 8/12, and call anything steeper a harness job; a wet, mossy, metal or tile surface moves every one of those lines down. OSHA's rule is for employers and starts at 6 ft: under 1926.501(b)(11), each employee on a steep roof with unprotected sides and edges 6 ft or more above lower levels shall be protected by guardrail systems with toeboards, safety net systems or personal fall arrest systems, and a steep roof is anything over 4 in 12. Low-slope roofs under (b)(10) allow warning lines and safety monitoring as well. A 4¼/12 roof is a steep roof to OSHA and a one-layer roof to the IRC, which is why the two 4:12 boundaries matter more than any walkability figure.

Rafter length and total rise from the roof pitch and the run

Enter the run of one rafter, the level distance from the outside of the wall plate to the center line of the ridge, and the tool multiplies it by the slope factor for the rafter line length and by the rise per foot for the total rise. On a gable the run is half the span of the building: a 28 ft wide house has a 14 ft run, and at 6/12 the rafter line length is 14 × 1.1180 = 15.652 ft, printed as 15 ft 7 13/16 in, with a total rise of 14 × 6 ÷ 12 = 7 ft. The same arithmetic answers the shed and lean-to questions: at 4/12 a wall 16 ft out from the high wall sits 4 × 16 = 64 in, or 5 ft 4 in, lower; a 3/12 fall over 9 ft is 27 in; a 26 ft wide garage at 6/12 has a 13 ft run and a total rise of 6 ft 6 in above the plate, which is what sets the height at the peak for a lift.

Rafter line length and total rise from the roof pitch calculator at five pitches
PitchRafter runRafter line lengthTotal rise
4/1212 ft12 ft 7 13/16 in4 ft
6/1214 ft15 ft 7 13/16 in7 ft
8/1215 ft 6 in18 ft 7 9/16 in10 ft 4 in
12/1213 ft18 ft 4 5/8 in13 ft
3/1216 ft16 ft 5 15/16 in4 ft

Overhang and ridge thickness

The line length stops at the ridge center and the plate. The overhang is added along the slope, not level: a 2 ft level overhang at 6/12 adds 2 × 1.1180 = 2.24 ft of rafter, and a 24 in overhang at 4/12 adds 25.30 in, where adding the level figure leaves the tail short. At the ridge, subtract half the ridge thickness along the slope: half of a 1½ in ridge is ¾ in, which at 6/12 is ¾ × 1.1180 = 0.84 in off the line length. The plumb cut at the ridge and the seat cut of the bird's mouth at the plate are the pitch angle and its complement, 26.57° and 63.43° at 6/12. The rafter length calculator (planned) works all of that with the overhang and the cuts, shed roof rafter calculator (planned) does the single-slope case, and whether a 2x8 can span that run is a different question answered by the rafter span calculator from the IRC rafter tables; the method in prose is in how to figure rafter length and spacing.

Worked roof pitch examples: inches, feet, degrees and percent

Each row is one run of the calculator with the inputs as typed, so the table doubles as a check on the tool. The nearest standard pitch appears only when the input lands between the whole and half pitches a plan would show.

Roof pitch calculator results for seven inputs
What you knowEnterPitchAngleNearest standardSlope factor
4 in rise over a 12 in level, measured on the roofrise 4 in, run 12 in4 / 1218.43°—1.0541
5 ft rise over a 16 ft run, from the atticrise 5, run 163¾ / 1217.35°3½ / 121.0477
7 in drop over a 24 in levelrise 7 in, run 24 in3½ / 1216.26°—1.0417
3 ft of fall over a 12 ft lean-torise 3, run 123 / 1214.04°—1.0308
30° from a phone levelangle 306⅞ / 1230.00°7 / 121.1547
33.3 % grade from a plan noteslope 33.34 / 1218.42°—1.0540
12 ft entered as rise and 6 ft as run, by mistakerise 12, run 624 / 1263.43°—2.2361

The last row is the one to notice: 12 over 6 gives 24/12 and 63.43° with no warning, because a 24/12 roof exists; at 30/12 the tool prints that the plane is 68.2° and asks whether the rise and run are swapped. The 5 ft over 16 ft row prints 3¾ / 12 with the exact 3.750 in beside it and 3½ / 12 as the nearest standard pitch, because a plan is drawn at whole and half pitches; the 30° row lands at 6.928 in and the nearest standard 7 / 12.

Seven ways a roof pitch measurement goes wrong

Each row is a mistake that appears on calculator pages and in roofing questions, with the arithmetic that catches it.

Roof pitch mistakes: the wrong figure and the right one
MistakeWrongRight
The sloped length used as the runa 12 ft panel over a 10 ft deck, 2 ft drop, called 4/12run is the level 10 ft: 2 ÷ 10 × 12 = 2.4/12; the panel is the hypotenuse
Rise and run in different units1½ ft of fall over 12 ft entered as 1.5 over 12 insame unit both ways: 1.5 ft over 12 ft is 1.5/12, and 18 in over 12 ft is the same 1.5/12
Degrees scaled with the rise12/12 is 45°, so 6/12 must be 22.5°arctan: 6/12 is 26.57°; 22.5° is 4.971 in per foot
Old span-fraction pitch read as x/12a quarter pitch read as ¼/12a quarter pitch is rise over span: 6/12
Total drop given as the pitch16 ft out and 5 ft 4 in lower, called a 5/12rise ÷ run × 12: 64 ÷ 192 × 12 = 4/12
Overhang added level to the rafter13.42 ft of rafter plus a 2 ft overhang = 15.42 ftthe overhang runs at the slope: 2 × 1.1180 = 2.24 ft, 15.66 ft in all
Angle from a rounded ratioarctan 0.333 = 18.4178° for 4/12arctan(4 ÷ 12) = 18.4349°, printed 18.43°

Which roofing calculator do you need?

This page converts a slope and gives the two factors. The measuring walk-through with photographs is in how to calculate roof pitch. A roofing calculator for quantities starts from the pitch found here. The tools below are planned and not yet live where marked.

Roofing calculators on this site and what each one adds
JobUseWhat it adds
Every pitch as an angle, and degrees or percent back to x/12Roof pitch to degrees chart (planned)the full conversion table and the converter
Rafter length with overhang, plumb cut and bird's mouthRafter length calculator (planned)common rafter from span, pitch and overhang
Roof area and roofing squares from a footprintRoof area calculator (planned)plan area times the slope factor, squares and overhang
Shingles for the pitchShingle calculatorsquares, bundles, nails and the two-layer underlayment rule
Whether a 2x8 rafter spans the runRafter span calculatorIRC rafter span tables by species, grade, spacing and load
Hip rafter length and hip roof planesHip roof area calculator (planned)the hip factor and both hip-roof areas
Metal panels at a low pitchMetal roofing panel calculator (planned)panels and screws with the R905.10.2 minimums
A single-slope shed or lean-to roofShed roof rafter calculator (planned)rafter length and the high-wall height
Trusses instead of raftersRoof truss calculator (planned)truss count, spacing and the pitch they are ordered at
Every roofing toolRoofing calculators hub (planned)all roofing calculators on the site

Roof pitch calculator FAQ

How do I calculate roof pitch?

Divide the rise by the run and multiply by 12, with both in the same unit and the run measured level. A 6 in rise over 12 in of run is 6 / 12; a 5 ft rise over a 16 ft run is 5 ÷ 16 × 12 = 3.75, printed 3¾ / 12. The angle is arctan(rise ÷ run), 26.57° at 6/12, and the percent slope is rise ÷ run × 100, 50 %. The rise is measured plumb, the run on a level line and never along the slope, and any line parallel to the roof gives the same answer, at the eave, the ridge, a rafter or the rake board. Enter the two measurements in the calculator and it prints every form at once with the slope factor and the hip factor.

How do I calculate roof pitch from rise and run?

Rise divided by run, times 12: 4 in over 12 in is 4 / 12, 7 in over 24 in is 3½ / 12. The measuring methods, with photographs, are in how to calculate roof pitch.

What angle is a 4/12 pitch, and 6/12 and 12/12?

18.43° for 4/12, 26.57° for 6/12 and 45.00° for 12/12, from arctan(rise ÷ 12). Every pitch as an angle, and degrees back to x/12, is on the roof pitch to degrees chart (planned).

What is the difference between roof pitch and roof slope?

On a US job site, nothing: both mean rise in inches per 12 in of level run, and the IRC uses only the word slope, written as units vertical in 12 units horizontal. The older meaning of pitch is rise over the full span of the building rather than over the run, so a roof that rises 6 ft across a 24 ft wide house is a quarter pitch, which is a 6/12 slope; 8/12 is a third pitch and 12/12 a half pitch. Old plans, framing books and some inspectors use that fraction, and it is why a quarter pitch is not a quarter-inch-per-foot roof. The calculator prints the x/12 figure first and the span-fraction pitch beside it, so a plan written either way can be read.

What is the roof pitch multiplier and how do I use it?

The slope factor, √(rise² + 12²) ÷ 12: 1.1180 at 6/12, 1.0541 at 4/12, 1.4142 at 12/12. It is the sloped length per unit of level length, so a level run times the factor is a rafter length and a footprint times the factor is a roof area; 1,000 sq ft of footprint at 6/12 is 1,118 sq ft of roof. The hip and valley factor, √(rise² + 288) ÷ 12, does the same for a hip or valley rafter, which runs diagonally and rises in 17 rather than 12: 1.5000 at 6/12. The multiplier table on this page lists both for every common pitch, and the calculator prints both for any pitch you enter.

What is the minimum roof pitch for asphalt shingles?

2:12, with two layers of underlayment from 2:12 up to 4:12. IRC R905.2.2 allows asphalt shingles "only on roof slopes of 2 units vertical in 12 units horizontal (17-percent slope) or greater" and requires double underlayment from 2:12 up to 4:12 as Table R905.1.1(2) describes; at 4:12 and steeper one layer is applied shingle fashion. So 3/12 is a code-legal shingle roof with two layers, not a violation, and 4/12 is where the second layer stops being required; the 3/12 and 4/12 minimums repeated on many pages are not the code. The calculator prints the two-layer note from 2/12 up to 4/12 and a not-permitted note below 2/12. Below 2:12 the choices are roll roofing from 1:12, a membrane or a metal system with sealed laps.

What is the minimum pitch for a metal roof?

It depends on the seam. IRC R905.10.2 sets 3:12 for lapped, nonsoldered-seam panels without applied lap sealant, ½:12 for the same panels with lap sealant applied as the manufacturer specifies, and ¼:12 for standing-seam roof systems. Metal roof shingles are a separate covering with a 3:12 minimum under R905.4.2. A ribbed panel on a patio cover at ½ in per foot is therefore inside the code only with the sealant, and most panel manufacturers publish their own minimum, often 3:12, which governs the warranty. The metal roofing panel calculator (planned) counts panels and screws at any of the three slopes.

How do I measure roof pitch from the ground?

Stand square-on to a gable end and count the siding courses between the eave line and the ridge, multiply by the exposure for the rise, and divide by half the width of the house for the run: a 7 ft rise over a 28 ft wide gable is 7 ÷ 14 × 12 = 6/12. A straightedge or a pitch gauge card sighted along the rake board gives the angle directly, and a phone level app held against a straightedge aligned with the rake does the same. Photographs taken from below the eave flatten the roof, so a photo is only usable square-on and with a known width. For a hip roof or a roof you cannot see end-on, the attic method is better.

Does the overhang change the roof pitch, and where do I measure?

No. Pitch is a ratio, and every line parallel to the roof plane has the same one, so the overhang, the eave, the ridge, a rafter and the rake board all give the same number. Measuring from the wall or from the eave makes no difference as long as the rise is plumb and the run is level. What the overhang changes is length: it is added to the rafter along the slope, so a 2 ft level overhang at 6/12 is 2.24 ft of rafter. A roof with two pitches, a gambrel, a mansard or a cross gable, is measured one plane at a time; a wedge-shaped building with unequal spans has one pitch and two different runs, so measure the run under the plane you are on.

How do I convert degrees to roof pitch?

Rise per 12 in of run = 12 × tan(angle). At 30° that is 6.928 in, which the tool prints as 6⅞ / 12 and reads as nearest the standard 7 / 12; 45° is exactly 12 / 12; 18.43° is 4 / 12; 22.5° is 4.971 in, between 4/12 and 5/12. A 2° fall on a flat extension is 12 × tan 2° = 0.42 in per foot, about 7/16 in. The conversion is not linear: halving 45° gives 22.5° and 4.971 in, not 6/12. Pick the angle setting in the calculator, type the degrees, and read the x/12 headline, the exact rise and the nearest standard pitch; the full table in both directions is on the roof pitch to degrees chart.

What is a standard or common roof pitch?

There is no standard pitch in the IRC; the code sets a minimum slope per roof covering and nothing above it. Most new US houses are framed between 4/12 and 9/12, with 4/12 to 6/12 common in warm, low-snow regions and 6/12 to 9/12 where snow and attic space matter; that is a trade generalisation and not a figure from any code or survey. Sheds and garages are often built at 3/12 to 5/12, porches and lean-tos lower, cape and A-frame roofs at 9/12 to 12/12 and more. What decides it is the covering's minimum, the attic use, the snow and wind design the plans are drawn to, and matching the existing house when adding on.

What roof pitch is walkable, and when does OSHA call a roof steep?

Walkable is a crew's judgement: on a dry asphalt roof most roofers walk up to about 6/12, use roof jacks and planks from 7/12 or 8/12, and treat anything steeper as a harness job, with wet, metal, tile or mossy surfaces moving every line down. OSHA's rule is the hard one and it applies to employers: 29 CFR 1926.500(b) defines a steep roof as "a roof having a slope greater than 4 in 12" and a low-slope roof as 4 in 12 or less, and 1926.501(b)(11) requires guardrails with toeboards, safety nets or personal fall arrest for each employee on a steep roof 6 ft or more above lower levels. A 4¼/12 roof is a steep roof to OSHA; figures of 7/12, 8/12 or 9/12 quoted as the OSHA line are not in the rule.

How long is a rafter for a 6/12 roof over a 14 ft run?

15 ft 7 13/16 in to the ridge center line, from 14 ft × the slope factor 1.1180 = 15.652 ft, with a total rise of 7 ft; the tool prints both when you enter 14 as the run of one rafter. That is the line length: add the overhang along the slope, 2.24 ft for a 2 ft level overhang at 6/12, and take half the ridge thickness off at the plumb cut. A 16 ft span with a 2 ft overhang at 4/12 is a 96 in run, 101.19 in of line length and 25.30 in of overhang. Stock lengths and the plumb and seat cuts are on the rafter length calculator (planned), and whether the rafter size spans the run is on the rafter span calculator.

Is a 2/12 pitch enough for a shed roof?

For asphalt shingles, 2:12 is the exact IRC floor and it needs two layers of underlayment; many builders go to 3/12 or 4/12 on a shed so that one layer and ordinary flashing work. For a metal panel roof, 2/12 is above the ½:12 the code allows with lap sealant but below the 3:12 for lapped panels without it, so it depends on the sealant and the manufacturer's minimum. Roll roofing is allowed from 1:12 and a membrane from ¼:12. A fall of 1½ in per foot is 1½/12, below the shingle floor; 5 in over 14 ft is 0.36/12, a membrane slope only. Enter the rise and run and the calculator prints the shingle note for the pitch you have.

Does a steeper roof pitch help with snow?

It helps snow slide off a smooth roof and it does not change the ground snow load the roof is designed for. The IRC takes the ground snow load from Table R301.2 as your building department fills it in, and the structural design of rafters and trusses for snow follows the code's tables or an engineer; the slope factor in that design is an ASCE 7 matter and not something a pitch calculator decides. Metal sheds snow at pitches where shingles hold it, so a 6/12 metal roof can clear itself while a 6/12 shingle roof carries the load. Steeper roofs also dump snow onto decks, walks and lower roofs, which the plan has to allow for. Choose the pitch for the covering and the look; size the framing for the load.

How much rise does a shed roof need over 16 ft at 4/12?

64 in, or 5 ft 4 in: rise = pitch × run ÷ 12, so 4 × 16 ft = 64 in. The high wall sits that much above the low wall, plus the thickness of whatever the rafters bear on at each end if it differs. Enter 16 as the run of one rafter at 4/12 and the tool prints the total rise and the rafter line length together; at 12 ft it is 4 ft and 12 ft 7 13/16 in. The same arithmetic runs backwards: a wall 16 ft out that must be 5 ft lower is 60 ÷ 192 × 12 = 3.75, printed 3¾ / 12 with 3½ / 12 as the nearest standard pitch. A greenhouse with a 7 ft and a 5 ft 6 in wall 20 ft 6 in apart has an 18 in rise over a 20 ft 6 in run.

What does a quarter pitch or a third pitch mean?

Rise over the full span, not over the run: a quarter pitch rises one quarter of the building's width, which is 6/12 in modern notation; a third pitch is 8/12; a half pitch is 12/12; a sixth pitch is 4/12 and an eighth pitch is 3/12. The calculator prints this as the span-fraction pitch, 1/4 at 6/12, and gives a decimal when the pitch is not a tidy fraction, 0.156 at 3¾ / 12. The notation turns up on old plans, in older carpentry books and in some inspection courses, where a 2 ft rise over a 24 ft span works out as 1/12 pitch even though the slope is 2/12. A plan note of "3-4 pitch" is something else again: 3/12 to 4/12.

Can I measure roof pitch with my phone?

Yes, with its level or inclinometer app, if the phone is laid on something straight along the slope: a rafter in the attic, a straightedge on the roof surface, or the rake board. Read the angle and enter it in the calculator's angle setting; 26.6° is 6/12, and 30° is 6.928 in, a 7 / 12 for the plans. Laid directly on shingles the phone reads the shingle it sits on, and held in the air sighting along the rake it reads your hand, so the straightedge matters. Phone readings are accurate to about the degree displayed, which is about a quarter pitch; for the eighth-inch figure a framer wants, measure rise and run with a level and a tape.

Source and verification of these roof pitch figures

Every pitch, angle, percent, factor and rafter length on this page is regenerated from the arithmetic the calculator runs and checked by script against both the copy and the figures the tool displays at the same inputs; if a number here disagrees with the tool, that is a fault to report through the contact page. The slope minimums were read from the 2021 Seattle Residential Code, Chapter 9, pages 9-2 to 9-15, which reproduces the 2021 IRC with Washington and Seattle amendments marked; none of the sections quoted here carries one, and each is cited by its own number so it can be checked against the code adopted where you build. The OSHA definitions are quoted from 29 CFR 1926.500 and 1926.501. Walkability and the common pitch range are labelled as trade rules of thumb. How sources are chosen and checked is set out in the methodology.

This calculator converts the slope you enter and computes rafter line length and rise from it. It does not design a roof, size a rafter or truss, check a roof for snow or wind, put a dollar figure on anything, or know your local amendments or your roofing product's instructions. Confirm minimum slopes, underlayment, ice barrier and fall protection with the manufacturer, your building department and the applicable OSHA rules before you build. Full terms in the disclaimer.