Skip to the content
House and Yard MathThe numbers for every house and yard job

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

What's going on the roof?

How will you give the size?

An L or T house, a cross-gable, a garage or a porch roof: one section for each rectangle of the floor plan.

Section 1

You'll find it on: your plans, or a tape along the outside walls, from the ground. Feet, or feet and inches (40' 6").

Roof shape
Pitch (rise in 12: angle and the area multiplier we use)

You'll find it on: your plans (the roof plan or an elevation), or 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.

You'll find it on: your plans' eave detail, or measure level from the wall to the edge of the eave, standing on the ground. Enter 0 if there's none.

Your products and extras
Shingles

You'll find it on: the bundle wrapper or the maker's product sheet.

Not sure? Use a typical one: architectural 98.4 sq ft per 3 bundles (makers print 98.4 to 100); 3-tab 96.9 (makers print 96.9 to 100); designer shingles take 4 to 6 bundles a square, so type yours. Leave the box empty to use it.

Underlayment

Not sure? Use a typical one: #15 felt 400 sq ft, #30 felt 200 sq ft, synthetic 900 sq ft a roll, laps allowed for. Leave the box empty to use it.

Does your area need an ice barrier?

Your building department decides whether your area needs one. Not sure? We include it.

Not sure? Use a typical one: 195 sq ft a full roll (makers print 195 to 225; short rolls, such as 97.5, exist); side lap 6 in (makers give 3 to 6). Leave the box empty to use it.

The roof

Not sure? Use a typical one: 10% on gable and shed roofs, 15% on hip and gambrel roofs, roofs with valleys or dormers and roofs in several sections (makers advise 10 to 15%). Leave the box empty to use it.

Starter, ridge cap and drip edge

You'll find it on: each bundle's wrapper and the maker's instructions.

Not sure? Use a typical one: starter 100 ft a bundle (makers print 100 to 120.33); ridge cap 20 ft (makers print 20 to 45; our figure dates from 2019); 4 nails a cap piece (2 to 4); a starter nail every 10 in; drip edge in 10 ft pieces. Cap pieces a bundle: no typical figure, makers differ too much. Leave the box empty to use it.

Roof sheathing

Sheathing waste

We found no published waste allowance for roof sheathing, so 0% is added for cuts unless you type your own.

Not sure? Use a typical one: 4 x 8 ft sheets. Leave the box empty to use it.

Tested against 14 figures printed in makers' sheets and 197 rule checks.

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.

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.

    Where it holds
    asphalt shingle roofs
    Edition
    International Residential Code, section R905.2.2. Quoted from the 2018, 2021 and 2024 editions.
    Inspected on
    11/19/2026

    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.

    Where it holds
    asphalt shingle roofs on low slopes, where the code doesn't call for wind design
    The 2024 code also allows
    “A single layer of self-adhering polymer modified bitumen underlayment complying with ASTM D1970”
    Edition
    International Residential Code, section R905.2.2 and Table R905.1.1(2). Quoted from the 2021 edition (2/12 to under 4/12, 19 in laps); the 2024 edition (half the sheet plus 2 in). 2021 code: 19 in laps; 2024 code: half the sheet plus 2 in. We count the larger.
    Inspected on
    11/19/2026

    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.

    Where it holds
    areas your building department marks for ice dams
    The code's exception
    “Detached accessory structures not containing conditioned floor area” (the 2021 and 2024 editions)
    Edition
    International Residential Code, section R905.1.2. Quoted from the 2021 and 2024 editions (24 in, 36 in); the 2021 edition (8/12).
    Inspected on
    11/19/2026

    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.

    Where it holds
    asphalt shingle roofs
    Edition
    International Residential Code, section R905.2.8.5. Quoted from the 2018, 2021 and 2024 editions (2 in lap); the 2021 edition (12 in nailing).
    Inspected on
    11/19/2026

    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.

    Where it holds
    asphalt strip shingles
    Edition
    International Residential Code, sections R905.2.6 and R905.2.5. Quoted from the 2018, 2021 and 2024 editions (4 nails); the 2018 and 2024 editions (12 gauge, 3/8 in head, 3/4 in into the deck); the 2021 edition (the nail metals).
    Inspected on
    11/19/2026

    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.

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.