Skip to content
Design free

Roof Slope Calculator

Roof Pitch Calculator: Pitch, Angle and Slope

Measure the roof the way you can: rise over a level, an angle from a phone, or the ridge height over the building width. The calculator turns it into the pitch, the angle, the percent slope and the slope factor, then says which roofing the model code allows at that pitch.

By The Shed PlannerUpdated 7 min readChecked against 2 sources

Roof pitch calculator check: a 24 in level held against a shed rafter with a tape reading the rise at the 12 in markIllustration

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.

What you measured
run 12rise 626.6°

Roof pitch

6/12
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

    Count the shingles for this pitch or cut the rafters

    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.

    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.

    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.

    1. 1International Code Council2021 International Residential Code, Chapter 8: Roof-Ceiling Construction
    2. 2International Code Council2021 International Residential Code, Chapter 9: Roof Assemblies

    Questions

    Anything else? Write to us or browse every guide.

    Questions people ask

    Hold a level flat against the underside of a rafter or on the roof, mark 12 in along it, and measure straight up from that mark to the roof. That height in inches is the pitch: 5 in means 5/12. If you cannot reach the roof, measure the ridge height above the top of the wall and half the building width, then divide and multiply by 12.

    The roof rises 10 in for every 12 in it runs level. That is 39.81 degrees, an 83.3% slope, and a slope factor of 1.302, so the roof surface is about 30% larger than the footprint it covers.

    There is no single cutoff in the model code; the lines are drawn by covering. Asphalt shingles stop at 2/12 and need two layers of underlayment below 4/12. Lapped metal panels need sealant in the laps below 3/12 and stop at 1/2/12, and standing seam goes down to 1/4/12 (2021 IRC R905.2.2 and R905.10.2).

    Multiply the footprint, overhangs included, by the slope factor for the pitch. A 30 by 40 ft house with 1 ft overhangs covers 32 by 42 ft, or 1,344 sq ft; at 6/12 the factor is 1.118, so the roof is about 1,503 sq ft. The shingle calculator does this for you and counts the bundles.

    Divide the pitch by 12 and take the arctangent. 4/12 is arctan(0.333), 18.43 degrees; 8/12 is 33.69 degrees; 12/12 is 45 degrees. Going the other way, pitch = tan(angle) x 12, so 30 degrees is 6.93/12.

    Design it, then build it

    Your backyard deserves a shed that fits.

    Change the size, the roof, the doors and the windows. The span checks, the wall bracing and the materials list follow every change. Free, no account.

    Design my shed, free
    Designing
    Free
    Builder's plan
    $35 once
    Account
    Not needed
    A finished board-and-batten gable shed with double doors at sunsetIllustration