This guide is for homeowners pricing a re-roof, DIY builders framing a shed or garage, and anyone checking a roofer's takeoff. It covers three ways to measure pitch, converting it to an angle and a percent grade, and carrying it through to rafter length, sloped area, squares and a bundle count.
Each formula is taken apart term by term, and three examples — a low ranch, a steep hip roof and a phone angle reading — show the arithmetic with real dimensions. The roof pitch calculator runs the same math if you would rather type than multiply.
Measuring rise over 12 inches of run
In the US, slope is stated as the inches a roof climbs for every 12 inches it travels horizontally, so a 4/12 roof gains 4 inches of height per foot. You need one vertical and one horizontal measurement in the same unit.
On the roof surface
Rest one end of a level on the shingles and lift the other until the bubble centers. Mark the level 12 inches from the end that touches and measure plumb from the mark down to the roof; that gap is the rise per foot. Stay clear of the ridge, the eaves and any visible dip.
In the attic
The same reading works on the underside of a rafter and keeps you off the roof. A longer level is steadier: 8 inches of drop over a 24-inch level is the same ratio as 4 over 12, and the calculator returns 4/12 for a rise of 8 and a run of 24. Rafters bow, so check two or three.
From the gable end
Measure from the top of the wall plate up to where the rafters meet at the peak, then divide by half the building's width. A peak 4 feet 8 inches (56 inches) above the plate on a 28-foot-wide house gives 56 over 168, again 4/12. Spanning the whole rafter, it ignores local humps, which makes it a good cross-check.
How each number is calculated
Every result starts from one ratio. Write the pitch as x, meaning x inches of rise per 12 inches of run, so the ratio is x ÷ 12.
Pitch, angle and percent grade
angle = atan(x ÷ 12)
x = tan(angle) × 12
grade = x ÷ 12 × 100
The arctangent (tan⁻¹ on a scientific calculator) turns the ratio into an angle; the tangent turns an angle back into a ratio, and multiplying by 12 restates it per foot. Use degree mode, not radians. Percent grade is the ratio scaled to 100, as on road signs. A 4/12 roof is 18.43° and a 33.3% grade; the pitch-to-degrees chart lists both for every common pitch.
The pitch multiplier
multiplier = √(1 + (x ÷ 12)²)
This is the Pythagorean theorem with the run set to 1: the sloped length of a line whose level length is one. Multiply a level measurement by it — a rafter's horizontal run, or a footprint area — to get the true length or area on the slope. The extra surface grows faster than the pitch: a 4/12 roof has 5.4% more surface than its footprint, 8/12 has 20.2% more and 12/12 has 41.4% more.
The hip and valley factor
hip/valley factor = √(x² + 16.97²) ÷ 12
Where two planes of equal pitch meet at a regular hip or valley, the line crosses the corner at 45° in plan. Each foot of common run therefore puts 12 × √2, or 16.97 inches, of level travel under the hip — the constant behind the hip-and-valley tables in rafter books such as Swanson's. The hip still rises only x inches over that distance, so its length per foot of common run is the hypotenuse of x and 16.97, divided by 12.
Common rafter line length
rafter = (half the span − half the ridge thickness + overhang) × multiplier
- Half the span is one rafter's run: building width, outside wall to outside wall, divided by 2.
- Half the ridge thickness comes off because each rafter stops at the face of the ridge board: ¾ inch for a 1½-inch-thick 2× ridge, 0 with no ridge board.
- Overhang is the eave's projection past the wall, measured level so the same multiplier converts it.
This is a line length; plumb, seat and tail cuts come afterward. Ridge height above the plate uses the same ratio: half the span × x ÷ 12.
Roof area, squares, bundles and waste
roof area = plan area × multiplier
bundles = ⌈roof area ÷ 100 × (1 + waste) × 3⌉
Plan area is the footprint seen from above with overhangs on every side: (width + 2 × overhang) × (length + 2 × overhang). Since every plane of a single-pitch roof tilts by the same amount, this holds for gables and full hips alike. Roofing is sold by the square, 100 square feet of surface. Owens Corning's guidance (October 11, 2023) counts three bundles of standard shingles per square and 10 to 15 percent waste; the calculator defaults to 10% for plain gables, suggests 15% for hips and valleys, and rounds bundles up.
Minimum slope by material
Pitch also limits what can go on the roof. Chapter 9 of the 2021 International Residential Code (Section R905) lists these minimums; the National Roofing Contractors Association treats 3/12 and flatter as low slope.
| Material | Minimum pitch | Angle |
|---|---|---|
| Standing-seam metal panels | ¼/12 | 1.19° |
| Mineral-surfaced roll roofing | 1/12 | 4.76° |
| Asphalt shingles (double underlayment below 4/12) | 2/12 | 9.46° |
| Clay or concrete tile | 2½/12 | 11.77° |
| Metal shingles; wood shingles or shakes | 3/12 | 14.04° |
| Slate | 4/12 | 18.43° |
Example 1: a 4/12 ranch, 28 × 50 ft
A single-story ranch, 28 feet wide and 50 feet long, has a gable roof at 4/12, a 2× ridge board and 12-inch overhangs all around. Waste stays at 10%.
- Ratio = 4 ÷ 12 = 0.3333. Angle = 18.43°; grade = 33.3%.
- Multiplier = √(1 + 0.3333²) = 1.0541. Hip/valley factor = 1.4529, unused on a plain gable.
- Ridge height = 14 × 0.3333 = 4.67 ft (4′ 8″) above the plate.
- Common rafter = (14 ft − ¾″ + 12″) × 1.0541 = 15.75 ft, about 15′ 9″.
- Plan area = 30 × 52 = 1,560 sq ft. Roof area = 1,560 × 1.0541 = 1,644.4 sq ft.
- Squares = 16.44; with 10% waste, 18.09; bundles = ⌈18.09 × 3⌉ = 55.
Every material in the IRC table is allowed, slate included. Exactly 4/12 is the edge of the double-underlayment band; the calculator treats it as clear, but confirm locally before skipping the second layer.
Example 2: an 8/12 two-story hip roof, 32 × 40 ft
A two-story house, 32 feet wide and 40 feet long, has a full hip roof at 8/12, 18-inch overhangs and a 2× ridge. Hips mean more cut shingles, so waste goes to 15%.
- Ratio = 8 ÷ 12 = 0.6667. Angle = 33.69°; grade = 66.7%.
- Multiplier = 1.2019. Hip/valley factor = √(8² + 16.97²) ÷ 12 = 1.5634.
- Ridge height = 16 × 0.6667 = 10.67 ft (10′ 8″).
- Common rafter = (16 ft − ¾″ + 18″) × 1.2019 = 20.96 ft, about 20′ 11½″.
- Hip line length, corner to ridge, before deductions and overhang = 16 × 1.5634 = 25.01 ft.
- Plan area = 35 × 43 = 1,505 sq ft. Roof area = 1,505 × 1.2019 = 1,808.8 sq ft.
- Squares = 18.09; with 15% waste, 20.80; bundles = ⌈20.80 × 3⌉ = 63.
The slope adds 303.8 sq ft to this footprint versus 84.4 sq ft on the larger ranch. As a gable with the same pitch and overhangs the surface would still be 1,808.8 sq ft; only waste changes, and at 10% the order drops to 60 bundles.
Example 3: turning a 22.5° reading into a pitch
A phone angle app laid along a rafter in the attic reads 22.5°. Suppliers, inspectors and shingle instructions all use x/12, so it needs converting.
- Rise per unit of run = tan(22.5°) = 0.4142.
- Pitch = 0.4142 × 12 = 4.97, which the calculator labels ≈5/12.
- Grade = 41.4%; multiplier = 1.0824; hip/valley factor = 1.4736.
A true 5/12 roof is 22.62°, so the reading is 0.12° low. Rafters are laid out to a set rise per foot, so 4.97 almost certainly means 5/12, and 5/12's multiplier (1.0833) changes nothing that matters for an order. Small angle errors do matter: 22° gives 4.85/12 and 23° gives 5.09/12, about a quarter inch per foot per degree.
Common mistakes and what they cost
- Leaving overhangs out of the area. With no overhang, the Example 1 ranch drops to 1,475.7 sq ft and 49 bundles — 168.7 sq ft and 6 bundles short.
- Using the common multiplier on a hip. On the 8/12 roof, 16 ft × 1.2019 gives 19.23 ft, but the hip measures 25.01 ft. That hip would be cut nearly 6 feet short.
- Mixing inches and feet. A 4-inch rise over a 1-foot run is 4/12, but entered as rise 4 and run 1 it becomes 48/12, a 75.96° roof. Use inches for both.
- Misreading old pitch notation. Some older drawings divide the rise by the whole span instead of half of it. A "quarter pitch" roof is 6/12 in today's notation and a "third pitch" is 8/12.
- Skipping the ridge deduction. On the ranch, ignoring the ¾-inch allowance makes every rafter 0.79 inch too long, enough to lift the ridge and spoil the plumb-cut fit.
- Ordering straight from squares. The ranch's 16.44 squares × 3 = 49.32, rounded up to 50 bundles, five fewer than the 55 a 10% allowance calls for. Also check whether starter and ridge-cap shingles come from the field bundles or are separate products.
- Shingling below the minimum. The IRC bars asphalt shingles under 2/12 and requires double underlayment below 4/12 — easy to miss on a low porch tie-in.
When to use the calculator, and when it is not enough
By hand is fine for a single figure, such as one pitch-to-degrees conversion or a multiplier read off a chart to sanity-check a quote.
The roof pitch calculator pays off when the takeoff has several moving parts — overhangs on four sides, a ridge deduction, waste, bundles rounded up — because one early slip carries through every later line. It accepts lengths like 28' 6" and lists each step with your numbers, so a supplier can check the order.
It is not enough on its own when:
- The roof mixes pitches, dormers or a porch at a different slope. Split it into single-pitch sections, run each and add them.
- You need hip, valley or jack rafter cut lengths, side cuts or backing angles; the factor gives line length only.
- The question is structural: rafter sizing, snow and wind loads, trusses.
- The product or jurisdiction is stricter. Some shingles cover less than a third of a square per bundle, and local code can exceed the IRC minimums.
Sources
Every rate and rule in this guide comes from these official pages; the dates are when we last checked them.
Run your own numbers
More guides
Note. Guides explain how the numbers work using published rules and our own worked examples. They are not tax, legal, financial or engineering advice; fees and codes change, so check the current source before you rely on a figure.