Roof Pitch Calculator
Convert a roof pitch (x in 12) to degrees and percent, and find the rafter length, the roof area and the number of roofing squares from the building size and overhang.
How it works
The roof pitch is the rise in inches per 12 inches of run. Enter the pitch (or the rise over the run), the building width, length and overhang. The calculator returns the angle, the rafter length, the sloped roof area and the roofing squares (100 ft² each) for a simple gable roof.
angle = atan(rise ÷ run)
rafter = (width ÷ 2 + overhang) ÷ cos(angle)
roof area = 2 × rafter × (length + 2 × overhang)
squares = area ÷ 100 ft²
| Symbol | Meaning | Unit |
|---|---|---|
| pitch | Rise per 12 units of horizontal run (a 6:12 roof rises 6 in per 12 in) | in per 12 in |
| span | Building width between the exterior walls | ft or m |
| overhang | Eave overhang beyond the wall (horizontal) | ft or m |
| length | Building length along the ridge | ft or m |
| rafter | Sloped length from the ridge to the eave | ft or m |
The slope factor (multiplier of the plan area) is √(1 + (pitch ÷ 12)²): 1.118 for 6:12, 1.202 for 8:12, 1.414 for 12:12. Shingles need a minimum pitch of 2:12 (with special underlayment) or 4:12 normally; metal roofs can go as low as ½:12 to 3:12 depending on the seam type. Add 10 percent for waste and 15 percent for hips and valleys. This is a simple gable roof; hips, valleys, dormers and penetrations need more.
Related: Slope Calculator, Stair and Ramp Calculator, Square Footage Calculator.
Worked example
A 6:12 roof on a 28 ft × 40 ft building with a 1 ft overhang: the angle is atan(0.5) = 26.57° (50 percent), the slope factor is 1.1180, the rafter is (14 + 1) × 1.1180 = 16.77 ft and the ridge stands 7.0 ft above the walls.
The roof surface is 2 × 16.77 × 42 = 1,409 ft², which is 14.1 squares; with 10 percent waste order 15.5 squares (about 47 bundles of shingles at 3 bundles per square).
Things to know
The rafter length is measured along the slope from the ridge to the outer edge of the overhang. Subtract half the ridge board thickness and add the tail cut for the real cut length.
Roofing is sold by the square (100 ft² of roof). Remember that the area is measured on the slope, not the plan: a steeper roof needs more material for the same footprint.
Local codes limit the minimum pitch for each roof covering and the maximum for walking on it safely; steep roofs (above 8:12) need safety equipment.
Another worked example: measuring the pitch yourself
In the attic, hold a level against the underside of a rafter, mark 12 in along the level, and measure straight up from that mark to the rafter. Say it reads 4½ in. The pitch is 4.5:12, the angle is atan(4.5 ÷ 12) = 20.56° and the slope factor is √(1 + 0.375²) = 1.0680.
For a 24 ft × 36 ft building with a 1.5 ft overhang all round: the rafter is (12 + 1.5) × 1.0680 = 14.42 ft and the roof surface is 2 × 14.42 × (36 + 3) = 1,125 ft², which is 11.2 squares. With 10 percent waste order 12.4 squares.
Roof pitch to angle and slope factor
| Pitch | Angle | Slope | Slope factor |
|---|---|---|---|
| 2:12 | 9.46° | 16.7 % | 1.014 |
| 3:12 | 14.04° | 25.0 % | 1.031 |
| 4:12 | 18.43° | 33.3 % | 1.054 |
| 5:12 | 22.62° | 41.7 % | 1.083 |
| 6:12 | 26.57° | 50.0 % | 1.118 |
| 7:12 | 30.26° | 58.3 % | 1.158 |
| 8:12 | 33.69° | 66.7 % | 1.202 |
| 9:12 | 36.87° | 75.0 % | 1.250 |
| 10:12 | 39.81° | 83.3 % | 1.302 |
| 12:12 | 45.00° | 100.0 % | 1.414 |
Multiply the plan (footprint) area, including overhangs, by the slope factor to get the roof surface area of a simple gable or hip roof with one pitch.
Common mistakes
- Using the full width as the run. On a gable roof the run is half the building width (plus the overhang), not the whole width.
- Measuring area on the plan. Shingles cover the sloped surface. A 12:12 roof has 41 percent more surface than its footprint.
- Forgetting the overhangs at the eaves and at the gable ends. On a small building they add 10 percent or more.
- Confusing pitch with degrees. A 6:12 roof is 26.6°, not 6° and not 50°. (50 is its slope in percent.)
Common questions
How do you calculate roof pitch?
Pitch is rise ÷ run, normally stated as inches of rise per 12 inches of run (6:12). The angle is atan(rise ÷ run); a 6:12 roof is 26.57°.
How do you find the rafter length?
Rafter = run ÷ cos(angle), where the run is half the building width plus the overhang. Equivalent: run × √(1 + (pitch ÷ 12)²).
How many shingles do I need?
Roof area ÷ 100 gives squares; add 10 percent waste and 3 bundles per square for standard architectural shingles.
What is a 4:12 roof pitch in degrees?
18.43°, or a 33.3 percent slope. A 12:12 roof is 45°.
Is roof pitch the same as roof slope?
In everyday use, yes: both mean the rise per 12 units of run. Strictly, older carpentry texts define pitch as rise over the full span, so a 6:12 slope would be a “1/4 pitch”. The X:12 form is the one used on plans and by roofers today.
How can I measure roof pitch without going on the roof?
From the attic with a level and tape as in the example above, or from the gable end outside by holding a level against the rake board. Phone angle apps also work: convert the angle with pitch = 12 × tan(angle).
What roof pitch can you walk on?
Roofers generally treat roofs up to about 6:12 as walkable with care, and use roof jacks, planks or harnesses above that. Any roof can be slippery when wet, dusty or frosty, and fall-protection rules apply to work at height whatever the pitch.
Sources
- International Residential Code R905: requirements for roof coverings.
- Asphalt Roofing Manufacturers Association (ARMA): residential asphalt roofing manual.
Last reviewed: November 10, 2026
