Exterior

Roof Pitch Calculator

Enter a rise and run, a known pitch or a measured angle. You get the roof pitch in x:12, the angle in degrees, the percent grade and the pitch multiplier. Add the building span to get the ridge rise and rafter line length, and see which roof coverings meet their minimum slope in the 2024 International Residential Code.

Free, no sign-upFormulas & sources shownReviewed Oct 9, 2026
I know the
in
Vertical drop measured from a level
in
Horizontal length of the level (12 in is standard)
Roof type
ft
Wall line to wall line, measured level, perpendicular to the ridge. Optional
in
Measured level, beyond the wall line
in
Actual thickness; 0 = no deduction
Wind design required?

Wind design is required in the high-wind regions mapped in IRC Figure R301.2.1.1 - your building department can tell you. It changes the required underlayment.

24 ft span 6:12 · 26.6° · 6 ft rise
Roof pitch6:1226.57° · 6 in rise per 12 in run
Angle
26.57°
Percent grade
50%
Pitch multiplier
1.118
Rise over the run
6 ft
Rafter line length
13 ft 5 in
With overhang
14 ft 6 3/8 in
With overhang, less ½ ridge
14 ft 5 5/8 in

Hip/valley factor (equal pitches): 1.5 ft of hip per ft of common run. Roof surface area = plan area × pitch multiplier.

A 6:12 roof rises 6 in for every 12 in of horizontal run - 26.6° or a 50% grade. Over a 12 ft run it rises 6 ft, and the rafter line length to the ridge center is 13 ft 5 in. Taking half the 1 1/2 in ridge board (3/4 in, measured level) off the run shortens the rafter by 0.84 in along the slope, to 13 ft 4 1/8 in (14 ft 5 5/8 in with the overhang) - before plumb-cut and tail-cut allowances. 18 of 18 roof coverings listed below meet their IRC minimum slope at this pitch.

Roof coverings allowed at this pitch (2024 IRC, Chapter 9)
  • OK Asphalt shingles - Minimum 2:12 met (R905.2.2). Where wind design is not required, one layer of underlayment, shingle fashion, is enough at 4:12 and steeper (Table R905.1.1(2)).
  • OK Clay or concrete tile - Minimum 2 1/2:12 met (R905.3.2). Fastening depends on slope and sheathing (R905.3.8) and on the tile manufacturer’s instructions.
  • OK Metal roof shingles - Minimum 3:12 met (R905.4.2).
  • OK Mineral-surfaced roll roofing - Minimum 1:12 met (R905.5.2).
  • OK Slate and slate-type shingles - Minimum 4:12 met (R905.6.2). Minimum headlap at this slope: 4 in (Table R905.6.6).
  • OK Wood shingles - Minimum 3:12 met (R905.7.2). Use the 4:12-and-steeper exposures in Table R905.7.6(1).
  • OK Wood shakes - Minimum 3:12 met (R905.8.2). Exposure per Table R905.8.7 (4:12 and steeper).
  • OK Metal panels - standing seam - Minimum 1/4:12 met (R905.10.2).
  • OK Metal panels - lapped, non-soldered seams with lap sealant - Minimum 1/2:12 met (R905.10.2).
  • OK Metal panels - lapped, non-soldered seams without lap sealant - Minimum 3:12 met (R905.10.2).
  • OK Built-up roofing (other than coal-tar) - Minimum 1/4:12 met (R905.9.1).
  • OK Coal-tar built-up roofing - Minimum 1/8:12 met (R905.9.1).
  • OK Modified bitumen - Minimum 1/4:12 met (R905.11.1).
  • OK Single-ply membrane (TPO, EPDM, PVC) - Minimum 1/4:12 met (R905.12.1).
  • OK Sprayed polyurethane foam - Minimum 1/4:12 met (R905.13.1).
  • OK Liquid-applied roofing - Minimum 1/4:12 met (R905.14.1).
  • OK Solar (BIPV) shingles - Minimum 2:12 met (R905.15.2).
  • OK Solar (BIPV) roof panels - Minimum 2:12 met (R905.16.2).

Minimum slopes only. The covering manufacturer’s installation instructions also apply (IRC R905.1), and your state or city may have adopted a different edition or amendments - check with the building department.

  • Steeper than 4:12 is a “steep roof” under OSHA 29 CFR 1926.500(b). For workers on construction jobs, edges 6 ft or more above a lower level need guardrails with toeboards, safety nets or a personal fall arrest system (1926.501(b)(11)). These rules bind employers, not homeowners, but the hazard is the same - consider hiring a roofer.

How to use this calculator

  1. Pick what you know. Use Rise & run for a measurement you took yourself. Use Pitch for a number from plans or a building permit (for example 6 for 6:12). Use Angle for a reading from a digital level or angle finder.
  2. Choose the roof type. On a gable roof, two slopes meet at a centered ridge, so each rafter covers half the span. On a shed roof, one slope covers the whole span.
  3. Enter the building span and overhang if you want the rise and rafter length. The span runs from outside wall line to outside wall line, measured level and perpendicular to the ridge. The overhang is measured level, from the wall line out to the rafter tail.
  4. Enter the ridge board thickness (gable roofs) to get the rafter length to the face of the ridge board. Enter 0 to skip it.
  5. Say whether wind design is required where you build (IRC Figure R301.2.1.1). In those high-wind regions the underlayment rules change.

The 3D view draws the roof at your true pitch, span and overhang. Wall height and building length are only illustrative. The Section tab shows the rise-over-12 triangle, the angle, the rise and the rafter line.

How to measure roof pitch

From the attic or a rafter tail. Hold a level against the underside of a rafter and mark 12 inches along the level from where it touches. Measure straight up from that mark to the rafter. That distance is the pitch: 6 inches means 6:12. With a 24-inch level, measure over 24 inches and enter both numbers. The calculator scales them to 12.

From the roof surface. Lay the level on the shingles with one end touching, hold it level, and measure the gap from the 12-inch mark down to the roof. Shingle thickness hardly changes the result, because the roof surface runs parallel to the rafters.

With an angle finder. A digital level or angle-finder app on the rafter or roof surface reads the angle directly. Switch to Angle mode and enter it.

Only go on the roof if you can do it safely. See the safety section below.

The formulas

Pitch (x:12) = 12 × rise ÷ run

Angle = arctan(pitch ÷ 12)

Percent grade = pitch ÷ 12 × 100

Pitch multiplier = √(12² + pitch²) ÷ 12

Rafter line length = horizontal run × pitch multiplier

Hip or valley length = common run × √(2 × 12² + pitch²) ÷ 12 (both roof planes at the same pitch)

The pitch multiplier is the rafter’s sloped length for each foot of level run. It works for roof area too: a roof plane’s area equals its plan (footprint) area times the multiplier.

The IRC also measures rafter spans along the horizontal projection of the rafter (R802.4.1). That is the run used here.

Worked example: 24-foot gable at 6:12

You measure 6 inches of rise over a 12-inch level. The house is 24 feet wide, the eaves overhang 12 inches and the ridge board is 1 1/2 inches thick.

  • Pitch: 12 × 6 ÷ 12 = 6:12
  • Angle: arctan(6 ÷ 12) = 26.57°
  • Percent grade: 6 ÷ 12 × 100 = 50%
  • Pitch multiplier: √(144 + 36) ÷ 12 = 1.1180
  • Run per rafter: 24 ÷ 2 = 12 ft, so the rise to the ridge line is 12 × 6 ÷ 12 = 6 ft
  • Rafter line length: 12 × 1.1180 = 13.42 ft = 13 ft 5 in
  • With the 12-inch overhang: 13 × 1.1180 = 14.53 ft = 14 ft 6 3/8 in
  • Half the ridge board, 3/4 inch, is measured level, so it comes off the run before the multiplier: 0.75 × 1.1180 = 0.84 in shorter along the slope
  • Rafter to the ridge-board face: (12 ft - 3/4 in) × 1.1180 = 13 ft 4 1/8 in, or 14 ft 5 5/8 in with the overhang

These are line lengths. If you subtract the 3/4 inch straight from the sloped length, the rafter ends up too long. The steeper the roof, the bigger the gap: at 12:12 the true deduction is 1.06 inches. The plumb cut and tail cut need extra length too, so buy boards longer than this. Rafter size, spacing and spans come from the IRC rafter tables or an engineer, not from this calculator.

Common roof pitches

Pitch Angle Grade Pitch multiplier Hip/valley factor
1:12 4.76° 8.3% 1.0035 1.4167
2:12 9.46° 16.7% 1.0138 1.4240
3:12 14.04° 25.0% 1.0308 1.4361
4:12 18.43° 33.3% 1.0541 1.4530
5:12 22.62° 41.7% 1.0833 1.4743
6:12 26.57° 50.0% 1.1180 1.5000
7:12 30.26° 58.3% 1.1577 1.5298
8:12 33.69° 66.7% 1.2019 1.5635
9:12 36.87° 75.0% 1.2500 1.6008
10:12 39.81° 83.3% 1.3017 1.6415
12:12 45.00° 100.0% 1.4142 1.7321

What is the minimum slope for each roof covering?

Chapter 9 of the 2024 International Residential Code sets a minimum slope for each roof covering:

Roof covering Minimum slope 2024 IRC section
Asphalt shingles 2:12; double underlayment from 2:12 up to 4:12* R905.2.2
Clay and concrete tile 2 1/2:12; double underlayment from 2 1/2:12 up to 4:12* R905.3.2
Metal roof shingles 3:12 R905.4.2
Mineral-surfaced roll roofing 1:12 R905.5.2
Slate and slate-type shingles 4:12 R905.6.2
Wood shingles 3:12 R905.7.2
Wood shakes 3:12 R905.8.2
Metal panels, lapped non-soldered seams 3:12 without lap sealant; 1/2:12 with lap sealant R905.10.2
Metal panels, standing seam 1/4:12 R905.10.2
Built-up roofing (other than coal-tar) 1/4:12 R905.9.1
Coal-tar built-up roofing 1/8:12 R905.9.1
Modified bitumen, single-ply, sprayed foam, liquid-applied 1/4:12 R905.11.1-R905.14.1
Solar (BIPV) shingles and roof panels 2:12 R905.15.2, R905.16.2

* Only where wind design is not required. Where IRC Figure R301.2.1.1 requires wind design, Table R905.1.1(2) calls for one of three wind-design underlayments at any slope (see the asphalt shingle question in the FAQ). That applies to asphalt shingles, tile, metal roof shingles, mineral-surfaced roll roofing, slate, wood shingles and shakes, metal panels and BIPV shingles.

A few details also change with the slope. Slate needs less headlap as the roof gets steeper (Table R905.6.6), and wood shingles have shorter maximum exposures between 3:12 and 4:12 (Table R905.7.6(1)). Where your area requires an ice barrier at the eaves, it must reach at least 24 inches inside the exterior wall line. On roofs of 8:12 or steeper, it must also reach at least 36 inches up the slope from the eave edge (R905.1.2). Rafter-framed roofs flatter than 3:12 need the ridge, hips and valleys designed as beams (R802.4.4).

These are minimums. The IRC also requires roof coverings to be installed per the manufacturer’s instructions (R905.1), and a product’s instructions may call for a steeper minimum slope than the code. States and cities adopt different code editions and amend them, so confirm with your building department.

Safety on the roof

Roof work is work at height. OSHA treats any roof steeper than 4:12 as a steep roof (29 CFR 1926.500(b)). On construction jobs, workers on a steep roof with edges 6 feet or more above a lower level need guardrails with toeboards, safety nets or a personal fall arrest system (1926.501(b)(11)). Low-slope roofs need fall protection at that height too (1926.501(b)(10)). These rules apply to employers, but the hazard is the same for a homeowner.

Measure pitch from the attic or from a ladder at the eave where you can. Keep off wet, icy or mossy roofs, and hire a roofer for work on steep or high roofs.

Frequently asked questions

What is a 6/12 roof pitch in degrees?

A 6/12 roof pitch is 26.57 degrees. A 6:12 (or 6/12) roof rises 6 inches for every 12 inches of horizontal run, so the angle is arctan(6 ÷ 12). The grade is 50 percent and the pitch multiplier is √(12² + 6²) ÷ 12 = 1.118, so every foot of horizontal run takes 1.118 feet of rafter.

How do I convert a roof angle to pitch?

Multiply the tangent of the angle by 12: pitch = 12 × tan(angle). A 30-degree roof is 12 × 0.5774 = 6.93 inches of rise per foot, or about 6 15/16:12. A 45-degree roof is exactly 12:12.

What is the minimum roof pitch for asphalt shingles?

The minimum is 2:12: the 2024 IRC (R905.2.2) allows asphalt shingles on slopes of 2:12 or more. Where wind design is not required, Table R905.1.1(2) calls for double underlayment from 2:12 up to 4:12 (or a single self-adhering ASTM D1970 layer), and one layer applied shingle fashion at 4:12 and steeper. In high-wind regions where IRC Figure R301.2.1.1 requires wind design, you need one of three underlayments at any slope: two mechanically fastened layers, 4-inch self-adhering ASTM D1970 strips over all deck joints plus underlayment over the whole roof, or one full self-adhering ASTM D1970 layer. The shingle manufacturer's installation instructions may be stricter, so check them too.

How high is the ridge on a 30-foot-wide house with a 4/12 roof?

The ridge sits 5 feet above the top of the wall plates, measured along the rafter line. On a gable roof each rafter runs half the span, 15 feet, and at 4 inches of rise per foot that is 15 × 4 ÷ 12 = 5 feet. The actual ridge height also depends on the rafter depth and the heel (seat cut) height.

How long is a rafter for an 8/12 roof with a 14-foot run?

The line length is 16.83 feet, or 16 ft 9 7/8 in: the 14-foot run times the 8:12 pitch multiplier, 1.2019. That is the theoretical length from the wall line to the center of the ridge. Half the ridge board's thickness is a level measurement, so take it off the run before you multiply, or multiply it by 1.2019 too. For a 1 1/2-inch ridge board that is 0.75 × 1.2019 = 0.90 inch off the rafter, leaving 16 ft 9 in. Add the overhang and cut allowances before you buy lumber.

What counts as a steep roof?

OSHA defines a steep roof as one with a slope greater than 4 in 12 (29 CFR 1926.500(b)). On construction jobs, workers on a steep roof with edges 6 feet or more above a lower level must be protected by guardrails with toeboards, safety nets or personal fall arrest systems (1926.501(b)(11)). A lower level is any surface they could fall to, such as the ground, a floor or a lower roof (1926.500(b)). OSHA rules bind employers, not homeowners working on their own house, but the fall risk is the same.

Sources

Last reviewed Oct 9, 2026. See how we calculate. Results are planning estimates - confirm with your supplier and local code.