Roof calculator
Numbers checked 11/19/2026
Put in each part of the roof: its size, shape and pitch. You get the roof area, the squares and everything to order, rounded up, never down.
House and Yard Math roof calculator
Dormer 1
You'll find it on: your plans (the roof plan and an elevation). Never go on the roof.
Tested against 14 figures printed in makers' sheets and 197 rule checks.
Saved on this device, ready for your next visit.
Your numbers are saved on this device when you run them, ready for your next visit.
Cleared from this device.
(kept on this device only)
Your measurements from last time are still in this browser. Keep them, or clear them?
Keep your feet on the ground. Measure from the ground, from plans, in the attic or on the map. Never go on the roof. In the attic, step only on the joists or boards.
A calculator can't sign this off. Ask a structural engineer, your building department or a roofer.
Where these numbers come from
How the list is worked out
We start from the outside walls you measured and add the overhangs. That gives the plan area: the roof seen from above. Each part is multiplied by its pitch multiplier, the extra a sloping roof has over its plan (a 6/12 roof has 1.118 times its plan area). A square is 100 sq ft of roof.
Shingles get an allowance for cuts. Makers advise 10 to 15%, more on complicated roofs, so our choice is 10% on gable and shed roofs and 15% on hip and gambrel roofs, on roofs with valleys or dormers and on any roof in several sections, because sections meet in valleys. Type your own if your roofer uses another figure.
The rest is counted from the edges and the area: starter along the eaves and rakes, ridge cap along the ridge and hips, drip edge run by run with the code's 2 in overlap, underlayment and ice barrier rolls with their laps, nails for every shingle, and sheathing sheets. Each line says what it covers, and the fold-out under the list gives the working and the source of every figure.
L-shaped, T-shaped and porch roofs
Split the house into rectangles and give each its own section: the main roof, a wing, a garage, a porch. Each section has its own size, shape, pitch and overhang, so a shallow porch beside a steep main roof is counted the way it is built.
A section below 2/12 still counts toward the roof area, but gets no shingle materials, because asphalt shingles need 2/12 at least. Where two sections meet, a little overhang and edge is counted twice, so the list leans high, never low. Valley lining isn't counted: ask your supplier.
Pitch, and what the code says about it
Pick your pitch from the squares in the calculator. Each one shows its angle and the multiplier the list uses.
- Below 2/12: no asphalt shingles, so no shingle count. Low-slope roofing is a job for a roofer.
- From 2/12 to under 4/12: two layers of underlayment (the 2024 code also allows one layer of self-adhering membrane, ASTM D1970).
- From 8/12: where an ice barrier is needed, it reaches at least 36 in up the slope.
- Above 21/12: follow the shingle maker's steep-slope instructions; we count 6 nails a shingle there.
Where to measure from
From the ground, from your plans, in the attic or on the map. A tape along the outside walls gives the length and the width. The overhang can be measured level from the wall to the edge of the eave, standing on the ground. The pitch can be read in the attic, on a rafter, with a level and a tape. In the attic, step only on the joists or boards. Never go on the roof.
By the book
Asphalt shingles: a slope of 2/12 at least.
How we checked this number
The research holds quotes from 4 documents for this, 3 of them official (the code text or a government page). The exact words, as printed:
“Asphalt shingles shall be used only on roof slopes of 2 units vertical in 12 units horizontal (17 percent slope) or greater.”
2024 International Residential Code, Chapter 9 (ICC Digital Codes) (2024 edition)
“Asphalt shingles shall be used only on roof slopes of 2 units vertical in 12 units horizontal”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.2.2 (2021 edition)
“shall be used only on roof slopes of two units vertical in 12 units horizontal”
2018 International Residential Code, Chapter 9 (Seattle's copy) (2018 edition)
Two layers of underlayment from 2/12 to under 4/12.
How we checked this number
The research holds quotes from 5 documents for this, 4 of them official (the code text or a government page). The exact words, as printed:
“overlapping successive sheets half the width of a full sheet plus 2 inches”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), Table R905.1.1(2) (2024 edition)
“A single layer of self-adhering polymer modified bitumen underlayment complying with ASTM D1970”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), Table R905.1.1(2) (2024 edition)
“2 units vertical in 12 units horizontal (17-percent slope) up to 4 units vertical”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.2.2 (2021 edition)
“apply 36-inch-wide sheets of underlayment, overlapping successive sheets 19 inches”
2021 International Residential Code, Chapter 9 (Seattle's copy), Table R905.1.1(2) (2021 edition)
Ice barrier: from the eave edge to at least 24 in inside the outside wall line, and at least 36 in up the slope on 8/12 and steeper.
How we checked this number
The research holds quotes from 5 documents for this, all of them official (the code text or a government page). The exact words, as printed:
“to a point not less than 24 inches (610 mm) inside the exterior wall line of the building”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.1.2 (2024 edition)
“the ice barrier shall be applied not less than 36 inches (914 mm) measured along the roof slope from the eave edge of the building”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.1.2 (2024 edition)
“Detached accessory structures not containing conditioned floor area.”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.1.2 (2024 edition)
“not less than 24 inches (610 mm) inside the exterior wall line of the building”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.1.2 (2021 edition)
“the ice barrier shall also be applied not less than 36 inches (914 mm) measured along the roof slope”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.1.2 (2021 edition)
“On roofs with slope equal to or greater than 8 units vertical in 12 units horizontal (67-percent slope)”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.1.2 (2021 edition)
“Exception: Detached accessory structures not containing conditioned floor area.”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.1.2 (2021 edition)
Drip edge at the eaves and rakes, lapped at least 2 in and nailed no more than 12 in apart.
How we checked this number
The research holds quotes from 3 documents for this, all of them official (the code text or a government page). The exact words, as printed:
“Adjacent segments of drip edge shall be overlapped not less than 2 inches (51 mm)”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.2.8.5 (2024 edition)
“Adjacent segments of drip edge shall be overlapped not less than 2 inches (51 mm).”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.2.8.5 (2021 edition)
“mechanically fastened to the roof deck at not more than 12 inches (305 mm) o.c.”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.2.8.5 (2021 edition)
“overlapped not less than 2 inches (51 mm)”
2018 International Residential Code, Chapter 9 (Seattle's copy), R905.2.8.5 (2018 edition)
At least 4 nails a strip shingle, or the maker's number if it's higher; galvanized steel, stainless steel, aluminum or copper roofing nails, at least 12 gauge, with a 3/8 in head, 3/4 in into the deck, or right through thinner sheathing.
How we checked this number
The research holds quotes from 3 documents for this, all of them official (the code text or a government page). The exact words, as printed:
“not less than four fasteners per strip shingle or two fasteners per individual shingle”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.2.6 (2024 edition)
“minimum 12-gage [0.105 inch (3 mm)] shank with a minimum 3/8-inch-diameter (9.5 mm) head”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.2.5 (2024 edition)
“not less than 3/4 inch (19.1 mm) into the roof sheathing. Where the roof sheathing is less than 3/4 inch (19.1 mm) thick, the fasteners shall penetrate through the sheathing.”
2024 International Residential Code, Chapter 9 (ICC Digital Codes), R905.2.5 (2024 edition)
“not less than four fasteners per strip shingle or two fasteners per individual shingle”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.2.6 (2021 edition)
“Fasteners for asphalt shingles shall be galvanized steel, stainless steel, aluminum or copper roofing nails,”
2021 International Residential Code, Chapter 9 (Seattle's copy), R905.2.5 (2021 edition)
“not less than four fasteners per strip shingle or two fasteners per individual shingle”
2018 International Residential Code, Chapter 9 (Seattle's copy), R905.2.6 (2018 edition)
“minimum 12-gage [0.105 inch (3 mm)] shank with a minimum 3/8-inch-diameter (9.5 mm) head”
2018 International Residential Code, Chapter 9 (Seattle's copy), R905.2.5 (2018 edition)
“not less than 3/4 inch (19.1 mm) into the roof sheathing”
2018 International Residential Code, Chapter 9 (Seattle's copy), R905.2.5 (2018 edition)
Questions
How many bundles of shingles are in a square?
Most architectural and 3-tab shingles come 3 bundles to the square, but the wrapper's coverage varies: 98.4 to 100 sq ft per 3 bundles for architectural shingles and 96.9 to 100 for 3-tab in the makers' sheets we read. Designer shingles take 4 to 6 bundles a square. The calculator uses the low end unless you type your wrapper's figure.
Do I need two layers of underlayment?
On asphalt shingle roofs from 2/12 to under 4/12, where the code doesn't call for wind design, yes: the code asks for two layers. The 2021 code laps them 19 in; the 2024 code laps them half the sheet plus 2 in, which takes more. We count the larger. The 2024 code also allows, instead, “A single layer of self-adhering polymer modified bitumen underlayment complying with ASTM D1970” (Table R905.1.1(2)). From 4/12 up, one layer.
How much waste should I add for shingles?
Makers advise 10 to 15%, more on complicated roofs. Our choice inside that range: 10% on gable and shed roofs and 15% on hip and gambrel roofs, roofs with valleys or dormers, and roofs in several sections. If your roofer uses another figure, type it in.
Does every roof need an ice barrier?
No. Your building department decides whether your area needs one, from its record of ice dams. The code also leaves out detached buildings with no heated or cooled space: its exception reads “Detached accessory structures not containing conditioned floor area” (R905.1.2). When you're not sure, the calculator includes it, so you won't come up short.
The paper trail (44 sources)
Every source this page names for a figure, in the order list's working and in By the book, each listed once, official ones first. Official means the code text or a US government page; Other source means a maker or an industry body.
- Official 2024 International Residential Code, Chapter 9 (ICC Digital Codes) (new tab) (2024 edition). Cited for R905.1.2, R905.2.2, R905.2.5, R905.2.6, R905.2.8.5, Table R905.1.1(2).
- Official ICC, Significant Changes to the 2024 IRC (slides) (new tab) (2/21/2024). Cited for Table R905.1.1(2).
- Official 2021 International Residential Code, Chapter 9 (Seattle's copy) (new tab) (2021 edition). Cited for R905.1.2, R905.2.2, R905.2.5, R905.2.6, R905.2.8.5, Table R905.1.1(2).
- Official 2018 International Residential Code, Chapter 9 (Seattle's copy) (new tab) (2018 edition). Cited for R905.2.2, R905.2.5, R905.2.6, R905.2.8.5, Table R905.1.1(2).
- Other source APA, The Engineered Wood Association: OSB (new tab) (undated web page, read 11/12/2026).
- Other source APA, The Engineered Wood Association: plywood (new tab) (undated web page, read 11/12/2026).
- Other source APOC 42 No. 15 felt product data (new tab) (undated).
- Other source Atlas No. 15 felt product data (new tab) (undated).
- Other source Atlas Summit 60 product data (new tab) (undated, read 11/18/2026).
- Other source Atlas WeatherMaster Ice & Water technical data (new tab) (October 2016).
- Other source CertainTeed accessories catalog (new tab) (January 2019).
- Other source CertainTeed WinterGuard technical data (new tab) (November 2024).
- Other source CertainTeed XT 25 product data (new tab) (May 2021).
- Other source Englert drip edge sheet (new tab) (undated web page, read 11/12/2026).
- Other source GAF Camelot II installation instructions (new tab) (September 2025).
- Other source GAF Pro-Start installation instructions (new tab) (November 2022).
- Other source GAF Pro-Start product page (new tab) (undated web page, read 11/12/2026).
- Other source GAF Pro-Start starter strip sell sheet (new tab) (March 2025).
- Other source GAF Royal Sovereign product page (new tab) (undated web page, read 11/12/2026).
- Other source GAF Timberline installation instructions (new tab) (April 2023).
- Other source GAF: How many bundles of shingles are in a square? (new tab) (8/24/2026).
- Other source GAF: How to measure a roofing square (new tab) (3/23/2021).
- Other source GCP Ice & Water Shield data sheet (new tab) (3/20/2026).
- Other source Gibraltar Award Metals 2026 catalog (new tab) (2026).
- Other source IKO Cambridge technical data sheet (new tab) (November 2023).
- Other source IKO GoldShield product data (new tab) (March 2026).
- Other source IKO Leading Edge Plus application instructions (new tab) (April 2020).
- Other source IKO Marathon Plus AR technical data sheet (new tab) (April 2026).
- Other source Malarkey starter shingles installation guide (new tab) (August 2025).
- Other source Malarkey Vista technical data sheet (new tab) (February 2026).
- Other source Owens Corning DIY roofing guide (new tab) (undated web page, read 11/12/2026).
- Other source Owens Corning RIZERidge installation instructions (new tab) (undated web page, read 11/13/2026).
- Other source Owens Corning Starter Strip Plus installation instructions (new tab) (undated web page, read 11/12/2026).
- Other source Owens Corning Titanium UDL30 product data (new tab) (August 2025).
- Other source Owens Corning Titanium UDL50 installation instructions (new tab) (undated web page).
- Other source Owens Corning TruDefinition Duration COOL product data (new tab) (September 2026).
- Other source Owens Corning Woodcrest and Woodmoor product data (new tab) (January 2026).
- Other source Swanson Tool: 6/12 rafter reference (new tab) (undated web page).
- Other source TAMKO 10-inch starter data sheet (new tab) (10/1/2021).
- Other source TAMKO Elite Glass-Seal data sheet (new tab) (1/19/2026).
- Other source TAMKO No. 15 felt data sheet (new tab) (May 2012).
- Other source TAMKO No. 30 felt product data (new tab) (4/30/2019).
- Other source TRI-BUILT No. 15 felt product data (new tab) (February 2023).
- Other source TRI-BUILT No. 30 felt product data (new tab) (February 2023).
Use this calculator on your site
Copy the code below onto your own web page, where the calculator should sit. It comes with its safety line and the full order list, and keeps nothing on your visitors' devices.