Knowing how to calculate roof pitch comes down to one ratio: the rise divided by the run, written as inches of rise per 12 inches of level run. Divide any rise by its run and multiply by 12, so a 10 in rise over a 24 in level is 10 ÷ 24 × 12 = 5, a 5/12 pitch. The angle is the arctangent of rise ÷ run: 5/12 is 22.62° and 6/12 is 26.57°.
The free Roof Pitch Calculator works from a level reading, a rise and span, a phone angle, a percent grade or a rafter, then adds rafter cuts, roof area, shingle bundles and the coverings the 2021 International Residential Code (IRC) allows at that slope. Nothing is uploaded.
How to calculate roof pitch from rise and run
Rise is the vertical climb and run is the level distance it covers. On a gable or hip roof the run is half the span (the wall-to-wall width), since each side climbs from its wall to the ridge; on a shed roof it is the whole span.
| To find | Formula | 5/12 example |
|---|---|---|
| Pitch (x/12) | rise ÷ run × 12 | 10 ÷ 24 × 12 = 5 |
| Angle | arctan(rise ÷ run) | arctan(0.4167) = 22.62° |
| Percent grade | rise ÷ run × 100 | 41.67% |
| Pitch from an angle | 12 × tan(angle) | 12 × tan(22.62°) = 5 |
| Slope multiplier | √(rise² + 144) ÷ 12 | √169 ÷ 12 = 1.0833 |
The slope multiplier turns level measurements into lengths along the roof: run into rafter length, plan area into roof area. A total rise and span work the same way: a 28 ft span with 9' 4" from the top of the wall plate to the ridge has a 14 ft run, so 112 in ÷ 168 in × 12 = 8, an 8/12 pitch.
How to use the Roof Pitch Calculator
- Open the Roof Pitch Calculator, pick Feet and inches or Metric under Units, and press Clear measurements to empty the example roof.
- Under What did you measure?, choose Rise and run, Rise and span, Angle, Percent grade or Rafter and run.
- Type numbers as the tape reads, such as 9 1/4 or 6' 4 1/2". A plain number is in the unit beside its label (inches for a level reading, feet for a span), and level buttons such as 24 in level fill in the run.
- Read the Result: the pitch to two decimals and to the nearest ¼ in, the angle, the percent grade, the Slope multiplier and a class.
- Check the coverings table, where each of 18 coverings is ✓ Allowed or ✗ Not allowed with its IRC section. My local code uses different minimum slopes lets you type local figures.
- Under Rafters, set the Roof shape, Building width (span), Building length, Ridge board thickness, Rafter depth, Eave overhang and Gable overhang. Roof area and shingles then fills in, ready for Copy summary, Download materials (CSV) or Print.
In the rafter results, Rafter length to cut is the Line length plus the overhang, and Shortest standard board also allows for the plumb cuts. Check the to-scale diagram against your roof before cutting.
How to measure roof pitch
Start with the methods that keep you off the roof, and read the safety notes below before you climb.
- In the attic. Touch one end of a level to the underside of a rafter, hold it level toward the ridge, and measure straight up from the 12 in mark to the rafter. That number over 12 is the pitch. Check two or three rafters in case one sags.
- On the roof or at the eave. Rest one end of the level on the roof, hold it level pointing downhill and measure straight down from the 12 in mark. From a ladder you can do this on the lowest courses.
- From the gable end. Take the rise and span from the plans, or measure the gable's height and its width at the same level on a straight-on photo, and choose Rise and span. Screen units work because only the ratio matters: 2.1 cm tall by 9 cm wide is 5.6/12. Treat photo and pitch-gauge readings as estimates.
- With a phone level. Lay the phone on a rafter in the attic or a straight board on the roof, and enter the reading under Angle, in decimal degrees or degrees and minutes.
- From a rafter and its run. If plans give a rafter's length from the wall line to the ridge, Rafter and run works backward with Pythagoras: a 13 ft rafter over a 12 ft run rises √(13² − 12²) = 5 ft, exactly 5/12.
Stay safe when you measure
Falls are the leading cause of death in construction, according to OSHA, so measure from the attic or the gable end when you can. On a ladder, set the foot about a quarter of the working length out from the wall and extend it at least 3 ft above the eave, as OSHA's ladder standard requires on job sites. Stay off wet, icy or mossy roofs, and don't work alone.
The calculator's classes describe roofing practice (which coverings and underlayment apply, and when roof jacks and extra labor become normal), not when fall protection is needed. OSHA calls any roof steeper than 4/12 a steep roof and requires workers on it 6 ft or more above a lower level to be protected by guardrails with toeboards, safety nets or personal fall arrest systems; lower roofs need fall protection too. Those rules bind employers, not homeowners, but above 4/12 hire a roofer unless you have that equipment.
Roof pitch to degrees chart
Every row comes from the calculator's own chart, which runs from 1/12 to 24/12 and downloads as CSV.
| Pitch | Angle | Percent grade | Slope multiplier |
|---|---|---|---|
| 1/12 | 4.76° | 8.33% | 1.0035 |
| 2/12 | 9.46° | 16.67% | 1.0138 |
| 3/12 | 14.04° | 25% | 1.0308 |
| 4/12 | 18.43° | 33.33% | 1.0541 |
| 5/12 | 22.62° | 41.67% | 1.0833 |
| 6/12 | 26.57° | 50% | 1.1180 |
| 7/12 | 30.26° | 58.33% | 1.1577 |
| 8/12 | 33.69° | 66.67% | 1.2019 |
| 9/12 | 36.87° | 75% | 1.2500 |
| 10/12 | 39.81° | 83.33% | 1.3017 |
| 11/12 | 42.51° | 91.67% | 1.3566 |
| 12/12 | 45° | 100% | 1.4142 |
| 24/12 | 63.43° | 200% | 2.2361 |
The angle does not grow in step with the pitch: doubling 6/12 to 12/12 takes it from 26.57° to 45°, not 53°, and 45° is a 100% grade. The calculator calls anything under 2/12 Flat, 2/12 to under 4/12 Low slope, 4/12 to 9/12 Conventional and steeper roofs Steep.
Minimum roof pitch for shingles, metal and tile
Section R905 of the 2021 IRC sets a minimum slope for each roof covering. The calculator applies these figures, checked in November 2026:
| Roof covering | Minimum | Angle | Section |
|---|---|---|---|
| Standing-seam metal panels | ¼/12 | 1.19° | R905.10.2 |
| Built-up roofing and membranes | ¼/12 | 1.19° | R905.9 to R905.15 |
| Lapped metal panels with lap sealant | ½/12 | 2.39° | R905.10.2 |
| Mineral-surfaced roll roofing | 1/12 | 4.76° | R905.5.2 |
| Asphalt shingles | 2/12 | 9.46° | R905.2.2 |
| Photovoltaic shingles, BIPV panels | 2/12 | 9.46° | R905.16, R905.17 |
| Clay and concrete tile | 2½/12 | 11.77° | R905.3.2 |
| Metal roof shingles | 3/12 | 14.04° | R905.4.2 |
| Wood shingles and shakes | 3/12 | 14.04° | R905.7, R905.8 |
| Lapped metal panels, no lap sealant | 3/12 | 14.04° | R905.10.2 |
| Slate | 4/12 | 18.43° | R905.6.2 |
Membranes here means modified bitumen, EPDM, TPO and PVC single-ply, sprayed foam and liquid-applied roofing; coal-tar built-up roofs may go down to ⅛/12. Two more rules depend on pitch:
- From 2/12 up to 4/12, asphalt shingles need two layers of underlayment (R905.2.2) or a self-adhered ASTM D1970 underlayment (R905.1.1). Tile and photovoltaic shingles also need two layers below 4/12.
- Where an ice barrier is required, it runs from the eave to at least 24 in inside the exterior wall, and at 8/12 and steeper it must also reach at least 36 in up the slope from the eave edge (R905.1.2).
The full text is in Chapter 9 of the 2021 IRC. Many states and cities adopt it with amendments, and manufacturers can be stricter, so ask your local building department which code applies and whether you need a permit, and follow the product's installation instructions. This is general information, not engineering or professional advice.
Worked example: rafter length, roof area and shingle bundles
A detached garage is 24 ft wide and 30 ft long, with a gable roof, 12 in overhangs on every side, a 1 1/2 in ridge board and 2x8 rafters (7 1/4 in deep). A 24 in level under a rafter shows a 10 in rise:
| Step | Arithmetic | Result |
|---|---|---|
| Pitch | 10 ÷ 24 × 12 | 5/12, 22.62° |
| Run less half the ridge board | 144 − ¾ in | 143¼ in |
| Line length | 143.25 × 1.0833 | 155 3/16 in |
| Rafter length to cut | 155.19 + 12 × 1.0833 | 168 3/16 in (14' 3/16") |
| Board to buy | add 7¼ × 5 ÷ 12 ≈ 3 in for plumb cuts | 16 ft |
| Plan area | 26 × 32 ft | 832 sq ft |
| Roof area | 832 × 1.0833 | 901 sq ft |
| Squares with 10% waste | 9.01 × 1.10 | 9.91 squares |
| Shingle bundles | 9.91 × 3, rounded up | 30 bundles |
A 14 ft board would be 3/16 in short even before the plumb cuts. The calculator also gives a 5' 0" ridge height above the wall plate, a 22.6° plumb cut and a 67.4° seat cut measured from square, and framing-square settings of 5 and 12 (5 and 17 for a hip or valley).
Waste defaults to 10% for gable and shed roofs and 15% for hip roofs, and most asphalt shingles come 3 bundles to a square (some heavy laminates take 4 or 5), so match Bundles per square to the wrapper. The area assumes one pitch for every plane; for a gambrel or mansard roof, measure each pitch and add up the planes' areas. Rafter size and spacing are not calculated: take them from your local code's span tables or an engineer.
Pricing the job? Put the materials list into the Invoice Generator (see how to make an invoice) and total crew time with the Work Hours Calculator. For a covered deck, the Deck Material Calculator handles the boards, joists and footings underneath, but it doesn't include the roof's weight, so posts and footings that carry the roof need their own design; see how to calculate deck materials.
Troubleshooting roof pitch measurements
The pitch reads lower than it should
The 12 in must be level distance. Measure it along the rafter instead and every roof reads flatter, more so as it gets steeper: a true 4/12 reads 3 13/16 in (about 3.8/12, low slope), a 6/12 reads 5 3/8 in and a 12/12 reads 8 1/2 in, about 35° instead of 45°.
A phone angle sits on a code minimum
The calculator checks every rule on the pitch rounded to two decimals, the figure it shows. 18.43° converts to 4/12, but 18.4° gives 3.99/12, which counts as low slope and calls for double underlayment under shingles. Near a minimum, confirm with a level and tape.
The calculator refuses a measurement
- Two numbers without marks, such as 6 4, show
Rise: add ' after feet and " after inches, for example 6' 4". - 1,500 is refused because the comma could be a thousands separator; type 1500 or 1.5.
Rafter length must be at least as long as the run.means the two values are swapped: a rafter is always longer than its run.
Frequently asked questions
Is roof pitch the same as roof slope?
In everyday use, yes: both mean rise per 12 in of run, written 6/12 or 6:12. Older carpentry books define pitch as rise divided by the full span, so "1/4 pitch" is 6/12, "1/3 pitch" is 8/12 and "1/2 pitch" is 12/12. Check which one an old plan means.
What pitch is a 30-degree roof?
Multiply the tangent of the angle by 12: 12 × tan(30°) = 6.93, so a 30° roof is 6.93/12, close to 7/12. A 45° roof is exactly 12/12, and a 20° roof is 4.37/12.
Does a steeper roof need more shingles?
Yes, because roof area is plan area times the slope multiplier. A 1,000 sq ft footprint with no overhangs needs 35 bundles at 4/12, 40 at 8/12 and 47 at 12/12, with 10% waste and 3 bundles per square.
Can you put asphalt shingles on a 3/12 roof?
Yes, under the 2021 IRC, with two layers of underlayment or a self-adhered ASTM D1970 underlayment, as on any shingle roof below 4/12. Below 2/12, choose roll roofing (from 1/12), standing-seam or sealed lapped metal, or a membrane. The code also requires following the shingle maker's instructions, which can be stricter.