The short answer
Roof pitch is the inches of rise for every 12 inches of run. Divide the rise by the run and multiply by 12: 4 in of rise over a 12 in level is 4/12, and 9 in over a 24 in level is 4-1/2/12. The angle is arctan(pitch / 12), so 6/12 is 26.57 degrees, and the percent slope is rise over run times 100, so 6/12 is 50%.
Roof pitch is how steep a roof is, written as the inches it rises for every 12 inches it runs level. A roof pitch calculator saves the trigonometry: enter what you can measure and read the pitch, the angle and the slope. The same number decides the roofing you can use and how much of it to buy.
Calculator
Roof pitch calculator
Measure the roof one of three ways: rise over a run you marked with a level, the angle from a phone or a digital level, or the height of the ridge over the width of the building. The calculator turns any of them into the pitch, the angle and the slope.
Roof pitch
- Roof angle
- 26.57°
- Slope, percent grade
- 50.0%
- Ratio
- 1:2.00
- Slope factor, roof area over footprint
- 1.118
- Rafter length per foot of run
- 13.42 in
- Nearest quarter pitch
- 6/12
Pitch = rise / run x 12. Angle = arctan(pitch / 12). Percent grade = rise / run x 100. Slope factor = the square root of 1 + (pitch / 12) squared: multiply a footprint area by it to get the roof surface, or a horizontal run by it to get the rafter line. The covering limits are the 2021 International Residential Code model text (R905.2.2, Table R905.1.1(2) and R905.10.2); your adopted code and the product instructions decide.
How to Measure Roof Pitch
Rise over a level
From inside the attic or under an overhang, hold a level against the bottom edge of a rafter so the bubble is centered. Mark 12 in along the level from where it touches the rafter, then measure from that mark straight up to the rafter. That is the rise in 12. With a 24 in level, measure at the 24 in mark and halve it: 9 in over 24 in is 4-1/2/12.
An angle from a phone or a digital level
Lay the phone or the level on a rafter or on the roof surface and read the angle. Choose Angle in the calculator. A shingled roof reads a little high because of the shingle butts, so take the reading on the rafter if you can.
Ridge height and building width
On a shed you are planning, or a roof you can see from the ground, you can work from heights. For a gable, the run is half the width wall to wall: a ridge 30 in above the top of the walls on a 10 ft wide shed is 30 / 60 x 12 = 6/12. For a single-slope roof the run is the whole depth, so the same 30 in over 10 ft is 3/12.
Roof Pitch Chart
Each row is a whole pitch. The slope factor is the roof length along the slope for every foot of level run, so it is also the roof area over the footprint.
| Pitch | Angle | Slope | Slope factor | Rafter per foot of run |
|---|---|---|---|---|
| 1/12 | 4.76° | 8.3% | 1.003 | 12.04 in |
| 2/12 | 9.46° | 16.7% | 1.014 | 12.17 in |
| 3/12 | 14.04° | 25.0% | 1.031 | 12.37 in |
| 4/12 | 18.43° | 33.3% | 1.054 | 12.65 in |
| 5/12 | 22.62° | 41.7% | 1.083 | 13.00 in |
| 6/12 | 26.57° | 50.0% | 1.118 | 13.42 in |
| 7/12 | 30.26° | 58.3% | 1.158 | 13.89 in |
| 8/12 | 33.69° | 66.7% | 1.202 | 14.42 in |
| 9/12 | 36.87° | 75.0% | 1.250 | 15.00 in |
| 10/12 | 39.81° | 83.3% | 1.302 | 15.62 in |
| 11/12 | 42.51° | 91.7% | 1.357 | 16.28 in |
| 12/12 | 45.00° | 100.0% | 1.414 | 16.97 in |
Pitch, angle and percent are three ways to say one thing
The pitch is a ratio over 12. The angle is the same ratio as degrees: arctan(pitch / 12). The percent slope is the ratio times 100, the way grades are written for roads and drains. A 12/12 roof is 45 degrees and a 100% slope. Some plans write the ratio the other way, as 1:2 for 6/12, which the calculator shows as well.
What Pitch Means for the Roofing
The 2021 International Residential Code1 sets the floor for each covering, and the product instructions can only add to it:
- Asphalt shingles: 2/12 or steeper. From 2/12 up to 4/12, two layers of underlayment over the whole deck (R905.2.2 and Table R905.1.1(2)).
- Lapped metal panels: 3/12 or steeper without lap sealant, down to 1/2/12 with sealant in the laps (R905.10.2).
- Standing seam metal: down to 1/4/12 (R905.10.2).
The shed designer draws gable sheds at 4/12, 5/12 and 6/12 and lean-tos at 2/12, 3/12 and 4/12, and it refuses shingles below 2/12 and exposed-fastener metal below 3/12. For the shed-specific choice, with snow and the rafter tie, read the shed roof pitch guide.
- 1International Code Council 2021 International Residential Code, Chapter 8: Roof-Ceiling Construction
- 2International Code Council 2021 International Residential Code, Chapter 9: Roof Assemblies
From Pitch to Rafters and Materials
Rafter length
The rafter line is the run times the slope factor. For a 10 ft gable at 6/12 with a 6 in overhang, the run is 65-1/4 in and the line is about 6 ft 1 in. The rafter length calculator adds the board to buy, the size the span needs and the count.
Roof area and shingles
Multiply the footprint with its overhangs by the slope factor to get the roof surface. Divide by 100 for squares. The shingle calculator does that and counts the bundles, starter, ridge cap, underlayment and drip edge.
Rafter spans are measured level
The 2021 IRC1 rafter tables give spans on the horizontal projection, not along the slope (R802.4.1). So a steeper pitch makes a longer rafter but does not change the span the table checks. The shed designer sizes the rafters for your snow load at any pitch it draws.
- 1International Code Council 2021 International Residential Code, Chapter 8: Roof-Ceiling Construction
- 2International Code Council 2021 International Residential Code, Chapter 9: Roof Assemblies
Sources
Every number in this guide that does not come from our own shed designer was checked against these 2 documents, numbered in the order the text first cites them and read between Sep 29, 2026 and Sep 30, 2026. 2 are codes, agencies, makers and stores.
- 1International Code Council2021 International Residential Code, Chapter 8: Roof-Ceiling Construction
- 2International Code Council2021 International Residential Code, Chapter 9: Roof Assemblies




