Exterior

Roofing Calculator

Enter the roof's length and width (or your measured plan area and edges) and its pitch. You get the true roof area, squares and shingle bundles, plus starter strip, hip and ridge cap, underlayment (including the high-wind options), ice barrier, drip edge, nails and an estimated material cost. The figures come from current GAF, Owens Corning and CertainTeed product data and the 2024 IRC.

Free, no sign-upFormulas & sources shownReviewed Oct 9, 2026
Roof input
Roof type
ft
Outside edge to outside edge, overhangs included
ft
Measured level, not along the slope
in/12
6 means 6:12. All planes the same pitch; minimum 2:12 for shingles
%
Planning rule of thumb, not a standard - more for hips, valleys, dormers and many cuts
Timberline HDZ and Duration: 98.4 sq ft per 3 bundles; Supreme: 100. Other brands differ - read the bundle label
Rolls: synthetic 48 in × 250 ft, felt-type 36 in × 144 ft, self-adhered 36 in × 66.7 ft. Two layers are counted below 4:12, and at any slope for the wind-design two-layer option
Wind design required (IRC Figure R301.2.1.1)?
Ice barrier required by your jurisdiction (Table R301.2)?
in
Outside of the wall to the eave edge
in
Outside to inside face (measure at a door); GAF and Owens Corning run the ice barrier 24 in past the inside of the wall
Starter, ridge cap, nails & prices
Nails per shingle
ft
Check what your store sells; must be longer than the 2 in lap

Prices are illustrative placeholders - enter your local prices. Leave a field empty if you don't know it.

$
$
$
$
$
$
$
Only used for the wind-design tape option
40 ft 30 ft 6:12 · 1,342 sq ft · 45 bundles · every 4th course
Shingle bundles45 bundles1,342 sq ft of roof (13.42 squares) + 10% waste ÷ 32.8 sq ft per bundle
Roof area
1,342 sq ft
Squares (100 sq ft)
13.42
Pitch factor
1.118
Starter bundles
2
Ridge cap bundles
2
Underlayment rolls
2
Ice barrier rolls
—
Drip edge pieces
18
Roofing nails (approx.)
4,326
Ridge cap nails
146
Seam tape rolls
—
Material cost
$2,751

6:12, wind design not required: one layer of underlayment, lapped at least 2 in at the sides and 4 in at the ends (IRC Table R905.1.1(2)); this roll count uses the product’s own laps (3 in and 6 in). Where wind design is required (Figure R301.2.1.1), answer “Yes / not sure” above - one layer is then not enough.

No ice barrier counted. It is required where your jurisdiction’s Table R301.2 says “YES” for ice barrier underlayment (IRC R905.1.2) - if you are not sure, choose “Yes / not sure” and confirm with your building department.

Nails: 4 per shingle (code minimum 4 per strip shingle; the makers’ standard pattern is 4, 6 where local code or a high-wind warranty requires it), counted for every shingle in the bundles you buy. Penetration - at least ¾ in into the deck or just through plywood decking (GAF, same as IRC R905.2.5). Hip & ridge cap nails are longer - they must still reach the same depth through the thicker cap; underlayment cap nails are not included.

Tear-off: A roof replacement removes the existing roof coverings down to the deck (IRC R908.3). Exceptions: an ice barrier membrane adhered to the deck, or a self-adhered underlayment, may stay if the sheathing is sound and it is covered as R908.3 requires (a new ice barrier layer where both manufacturers permit it, or code-compliant underlayment); a single self-adhered layer that cannot come off without damaging the deck may get a second layer over it, if both manufacturers permit it, the sheathing is not water-soaked or deteriorated, and no spot ends up with more than two layers. Check the decking before you install.

Shopping list
  • 45 bundles of GAF Timberline HDZ shingles (15 squares at 3 bundles per square)
  • 2 bundles of GAF Pro-Start starter strip (50 pieces for 147.1 ft of eaves and rakes in 6 runs)
  • 2 bundles of GAF Seal-A-Ridge hip & ridge cap (73 pieces incl. one starter per run, for 40 ft of ridge)
  • 2 rolls of synthetic underlayment (48 in × 250 ft, 10-square roll)
  • 18 pieces of metal drip edge, 10 ft long (147.1 ft of eaves and rakes, 2 in laps, counted per run)
  • ≈ 4,326 roofing nails (3,960 for 990 shingles, 200 starter, 166 drip edge) - check the count per box
  • ≈ 146 longer nails for the hip & ridge cap
  • Not counted: valley lining, step and wall flashing, vents, pipe boots, roof cement and cap nails for the underlayment

Shingles $2,025 · starter $120 · ridge cap $150 · underlayment $240 · drip edge $216. Excludes nails, flashing, vents, pipe boots, decking repairs, tear-off and disposal, tax and delivery.

Before you go up
  • OSHA calls falls the leading cause of death in construction; anyone 6 ft or more above a lower level is at risk of serious injury or death. Plan the job, use the right equipment (fall protection, a sound ladder or scaffold) and know how to use it.
  • A ladder used to reach the roof should extend at least 3 ft above the roof edge, with its foot set out about one-quarter of its working length (OSHA 1926.1053).
  • Our general caution: work only on a dry roof, in calm weather and not alone; if the roof is steep or high, or you are not comfortable at height, hire a professional.
  • Ask your building department about permits, whether wind design is required and an ice barrier is required where you live, and inspections.
  • Not sure you want to do it yourself? A contractor quote is the alternative - this list helps you compare quotes line by line.

How to measure your roof

  1. Measure length and width at the edges. Take the outline at the eave edges, meaning the house plus the overhangs. Measure level, on the ground, never along the slope. The pitch takes care of that.
  2. Find the pitch. Pitch is the rise in inches per 12 in of level run: 6:12 means 6 in up for every foot. Use a level and tape at a rake, or the roof pitch calculator.
  3. Pick gable or hip. A gable roof has two sloped planes, and a hip roof slopes on all four sides. For other shapes, choose Measured roof and enter the plan area (footprint with overhangs), the edge totals and how many separate runs each total has.
  4. Ask your building department two questions: is wind design required where you live (IRC Figure R301.2.1.1), and does the local Table R301.2 require an ice barrier? Both change the underlayment.
  5. Pick your shingle. The list shows the products whose label figures are built in. For any other product, choose Other and type in the coverage and shingle count from its bundle label.

The formulas

Roof area. Every plane of a roof with one pitch tilts by the same amount, so the true area is the plan area times the pitch factor:

Pitch factor = √(12² + rise²) ÷ 12

Roof area = length × width × pitch factor

That works for gable and hip roofs alike. On a gable roof, the ridge equals the length and each of the four rakes is half the width × pitch factor. On a hip roof with length L ≥ width W, the ridge is L - W and each of the four hips is (W ÷ 2) × √(2 + (rise ÷ 12)²). At 6:12 that comes to 1.5 × half the width.

Pitch 3:12 4:12 5:12 6:12 7:12 8:12 9:12 10:12 12:12
Pitch factor 1.031 1.054 1.083 1.118 1.158 1.202 1.250 1.302 1.414

Bundles. A square is 100 sq ft, but the bundle label is what counts. GAF Timberline HDZ and Owens Corning Duration both list 98.4 sq ft per 3 bundles (64 pieces of 39⅜ in at a 5⅝ in exposure), so one bundle covers 32.8 sq ft:

Bundles = ⌈roof area × (1 + waste %) ÷ sq ft per bundle⌉

Edges, run by run. Every separate edge starts with a fresh piece, so starter, drip edge, ice barrier and cap are counted run by run. Starter strip goes along the eaves and the rakes, since GAF and Owens Corning both start the rakes with it. The first piece of each run is trimmed (3 in for Pro-Start, 6½ in for Owens Corning). Hip and ridge cap needs one starter piece per hip or ridge plus one cap per exposure. Drip edge goes on eaves and rakes (IRC R905.2.8.5). The first piece covers its full length, and each further piece loses 2 in to the lap.

Underlayment. What you need depends on the slope and on whether wind design is required where you live:

  • Wind design not required, 4:12 and steeper: one layer, lapped at the sides and ends.
  • Wind design not required, 2:12 up to 4:12: two layers. Start with a half-width strip at the eave, then lay full sheets that each overlap the one below by half a sheet plus 2 in. That way a 48 in roll shows only 22 in per course.
  • Wind design required, any slope: IRC Table R905.1.1(2) gives three options: two layers of mechanically fastened underlayment, a 4 in self-adhered (ASTM D1970) strip over every deck joint plus underlayment over the whole roof, or self-adhered membrane over the whole roof.

Seam tape is estimated at 0.375 ft of joint per sq ft of roof, assuming 4 × 8 ft deck panels. GAF warns that the tape retards vapor, so a design professional must address moisture entrapment and condensation.

Ice barrier. The code wants it to reach 24 in inside the exterior wall line (IRC R905.1.2), and at least 36 in up the slope at 8:12 and steeper. GAF and Owens Corning measure the 24 in from the inside face of the wall. So the calculator takes overhang + wall + 24 in, measured level, times the pitch factor. It counts 36 in courses, cut into pieces of up to 20 ft with 6 in end laps.

Nails. Four per shingle is the IRC minimum and every maker’s standard pattern. Use six if your code or wind warranty requires it, and on slopes above 21:12. Nails are counted for every shingle in the bundles you buy: 22 per Timberline bundle, the larger of its 20/22 packs. Starter nails are counted per piece and drip edge nails at 12 in on center. Longer cap nails are listed separately.

Worked example

A 40 × 30 ft gable roof (overhangs included) at 6:12, Timberline HDZ, 10% waste, no wind design:

  • Roof area: 40 × 30 × 1.118 = 1,342 sq ft = 13.42 squares
  • Bundles: 1,342 × 1.10 ÷ 32.8 = 44.99 → 45 bundles (15 “squares” of shingles)
  • Starter: two 40 ft eaves (13 strips each) and four 16.8 ft rakes (6 each) = 50 strips → 2 bundles of GAF Pro-Start (38 strips each)
  • Ridge cap: 1 starter + 72 caps at 6⅔ in = 73 pieces → 2 bundles of Seal-A-Ridge (45 each)
  • Underlayment: 1 layer, 5 courses of 40 ft on each side = 400 ft → 2 synthetic rolls (48 in × 250 ft)
  • Drip edge in 10 ft pieces: 5 per eave, 2 per rake → 18 pieces
  • Nails: 45 × 22 = 990 shingles × 4 = 3,960, plus 200 starter and 166 drip edge → about 4,326, plus 146 longer cap nails

The same house with a hip roof has the same area, but a 10 ft ridge and four 22.5 ft hips: 100 ft of cap. With a starter piece on each of the five runs, that takes 187 pieces, or 5 bundles rather than the 4 per 100 ft on the label. The eaves run 140 ft and there are no rakes. With 15% waste it takes 48 bundles.

If wind design is required, the same gable needs 3 synthetic rolls for two layers (option 1), or 2 rolls plus about 503 ft of 4 in seam tape, which is 8 rolls of 67 ft (option 2).

Tips

  • Measure the roof, not the floor plan. Overhangs add a lot: 1 ft all around a 38 × 28 ft house turns 1,064 sq ft of footprint into 1,200 sq ft of roof plan.
  • Read the bundle label. Coverage differs between brands. The waste percentage is a rule of thumb that depends on how many cuts your roof needs.
  • Ice barrier zones are set locally. With a 12 in overhang and a 6 in wall at 6:12, the membrane reaches 47 in up the slope, which takes two 36 in courses.
  • Nail length: the code wants nails ¾ in into the deck or through it. Owens Corning wants them through by at least ¼ in.
  • Not counted: valley lining, step and wall flashing, vents, pipe boots and underlayment cap nails. Cap nails are required in a grid in wind-design areas (Table R905.1.1(3)). Valleys and flashing follow IRC R905.2.8 and the shingle instructions.
  • Getting a contractor quote instead? This list lets you compare quotes item by item: squares, underlayment type and layers, ice barrier and tear-off.

Frequently asked questions

How many bundles of shingles do I need for a 2,000 sq ft roof?

You need 68 bundles of architectural shingles, such as GAF Timberline HDZ or Owens Corning Duration, for 2,000 sq ft of actual roof surface plus 10% waste. Both makers say 3 bundles cover 98.4 sq ft, not a full 100, so 2,200 ÷ 32.8 = 67.1, rounded up to 68. The flat '3 bundles per 100 sq ft' rule would give 66. Make sure the 2,000 sq ft is the sloped roof area, not the house footprint: multiply the footprint (with overhangs) by the pitch factor first.

What is a roofing square?

A square is 100 sq ft of roof area, a 10 × 10 ft patch. Most asphalt shingles come 3 bundles to a square, but always read the bundle label. GAF and Owens Corning list 98.4 sq ft per 3 bundles for their laminated shingles, while Owens Corning Supreme 3-tab covers 100 sq ft per 3 bundles. Heavier specialty shingles can come 4 or 5 bundles to a square.

How much waste should I add for shingles?

Start at 10% for a simple gable and raise it for hips, valleys, dormers and other cut-up roofs. There is no code or standard figure: 10% is a common planning rule of thumb, and the real waste depends on how many cuts your roof needs, so check with your supplier or roofer. Waste is added to the shingles only. Starter, ridge cap and drip edge are counted piece by piece from the edge runs.

What is the minimum pitch for asphalt shingles?

2:12. The 2024 IRC (R905.2.2) allows asphalt shingles only on slopes of 2 units vertical in 12 horizontal or more, and GAF, Owens Corning and CertainTeed say the same. From 2:12 up to 4:12 the code requires two layers of underlayment (or one layer of self-adhered membrane), and the calculator counts them automatically. Below 2:12 you need a low-slope roofing system instead.

Is one layer of underlayment enough at 4:12 and steeper?

Only where wind design is not required. IRC Table R905.1.1(2) has a second column for areas where wind design is required (IRC Figure R301.2.1.1), and your building department can tell you if you're in one. There, at any slope, you need two layers of mechanically fastened underlayment, or a 4 in self-adhered (ASTM D1970) strip over every deck joint plus underlayment over the whole roof, or self-adhered membrane over the whole roof. Pick 'Yes' for wind design and the calculator counts the option you choose.

How many nails per shingle?

Four for a standard installation. The IRC (R905.2.6) requires the manufacturer's number of fasteners but never fewer than four per strip shingle, and the GAF, Owens Corning and CertainTeed instructions all show a 4-nail pattern. Some local codes and some enhanced wind warranties (GAF) require six, and Owens Corning and CertainTeed require six nails plus roof cement on slopes steeper than 21:12. The code wants nails ¾ in into the deck, or through a thinner deck (R905.2.5). Owens Corning is stricter: through the deck by at least ¼ in. Hip and ridge caps need longer nails (CertainTeed: at least 1¾ in).

Do I need an ice and water barrier?

Only where your jurisdiction requires it. Each building department fills in IRC Table R301.2 with 'YES' where ice dams have caused damage. There, IRC R905.1.2 requires an ice barrier from the eave edge to at least 24 in inside the exterior wall line, and at least 36 in up the slope on roofs of 8:12 or steeper. GAF and Owens Corning are stricter: they measure 24 in past the inside face of the wall, so the wall thickness counts too, and Owens Corning notes most applications need two courses of 36 in membrane. If you're not sure, pick 'Yes / not sure' so the calculator counts it, enter your overhang and wall thickness, and confirm with your building department.

Can I put new shingles over my old roof?

Sometimes. The IRC (R908.4) allows a new roof over an existing one only where the shingle maker's instructions allow it and the old roof isn't water-soaked or deteriorated, and never over two or more existing layers. A roof replacement removes the old roof coverings down to the deck (R908.3). The exception: an ice barrier membrane adhered to the deck or a self-adhered underlayment may stay on sound sheathing under the conditions R908.3 lists. GAF's instructions allow new shingles over old asphalt shingles if loose or curled ones are fixed and the nails reach ¾ in into the deck or just through plywood.

Sources

Last reviewed Oct 9, 2026. See how we calculate. Results are planning estimates - confirm with your supplier and local code.