Enter the pitch, the angle, or just a rise and a run, plus the width of the building. You get the pitch as a slope and an angle, the rise, the length of the common rafter with its cut angles, how many rafters to cut, the roof area and the bundles of shingles, with a drawing you can print. It is made for a simple gable roof. For the stairs that go inside, use the stair calculator.
Pitch is the rise in inches for every 12 in of level run. If p is the pitch, R the run (half the span) and O the overhang:
Worked example: a gable roof on a 24 ft wide building, 6 in 12, with a 12 in overhang, a 1½ in ridge board and a roof 32 ft long. The run is 12 ft and the rise is 6' 0". The rafter is 14' 5 9/16" long, so you buy 16 ft boards, and with rafters 16 in on center you cut 50. The roof has about 930 sq ft, or 9.3 squares.
For a common rafter. Multiply the length per foot of run by the run in feet to get the rafter length before the overhang. The hip or valley column is for a hip or valley rafter on the same common run.
| Pitch | Angle | Slope | Rafter per ft of run | Hip / valley per ft of run |
|---|---|---|---|---|
| 2 in 12 | 9.5° | 16.7% | 1' 3/16" | 1' 5 1/16" |
| 3 in 12 | 14° | 25% | 1' 3/8" | 1' 5 1/4" |
| 4 in 12 | 18.4° | 33.3% | 1' 5/8" | 1' 5 7/16" |
| 5 in 12 | 22.6° | 41.7% | 1' 1" | 1' 5 11/16" |
| 6 in 12 | 26.6° | 50% | 1' 1 7/16" | 1' 6" |
| 7 in 12 | 30.3° | 58.3% | 1' 1 7/8" | 1' 6 3/8" |
| 8 in 12 | 33.7° | 66.7% | 1' 2 7/16" | 1' 6 3/4" |
| 9 in 12 | 36.9° | 75% | 1' 3" | 1' 7 3/16" |
| 10 in 12 | 39.8° | 83.3% | 1' 3 5/8" | 1' 7 11/16" |
| 12 in 12 | 45° | 100% | 1' 5" | 1' 8 13/16" |
This tool gives estimates for planning. It does not design the roof framing or check its strength, and it assumes a symmetrical gable roof with level walls. Confirm the requirements with your local building department before you build.
Divide the rise by the run and multiply by 12. If a roof rises 6 in over a level run of 12 in, the pitch is 6 in 12 (6/12). If it rises 4 ft over a run of 8 ft, that is 48 ÷ 96 × 12 = 6 in 12. In the calculator, choose Rise & run and enter your two measurements.
A 6 in 12 pitch is 26.57°, a slope of 50%. The angle is the arctangent of rise ÷ run, so 6 ÷ 12 = 0.5 and atan(0.5) = 26.57°. A 12 in 12 pitch is exactly 45°.
Take half the building width (the run) and multiply it by √(1 + (pitch ÷ 12)²). For a 24 ft wide building at 6 in 12 the run is 12 ft and the factor is 1.118, so the rafter is about 13' 5" along the slope before the overhang. With a 12 in overhang and a 1½ in ridge board the calculator gives 14' 5 9/16" from long point to long point, so you buy 16 ft boards.
The IRC allows asphalt shingles on slopes of 2 in 12 or more. From 2 in 12 up to, but not including, 4 in 12 they need a double layer of underlayment. At 4 in 12 and steeper, one layer is enough. Metal, tile and other coverings have different minimums, so read the maker's instructions.
Shingles are sold by the square, 100 sq ft of roof, and most products come in 3 bundles per square. Measure the roof surface (not the footprint), divide by 100, add 10% or more for waste, and multiply by 3. The 24 × 32 ft example above has about 930 sq ft of roof, so 31 bundles with 10% waste.
In the attic, hold a level against a rafter, mark 12 in along the level, and measure straight up (or down) to the rafter at that mark. That number is the pitch in 12. From outside, you can use a pitch gauge or a phone level app on the rafter tail, then convert the angle with this calculator. Do not climb a roof that is wet, steep or icy.
Put the pivot point on the edge of the board and rotate the square until the edge of the board lines up with the pitch number on the Common scale. The straight edge then gives you the plumb cut, and the seat cut is square to it. The video on this page shows it step by step.
Read the guides how to calculate roof pitch how to calculate rafter length and how many bundles of shingles you need. See also the deck calculator.