Nails & Numbers

HomeRoofing › Roofing Calculator

Roofing Calculator

Slope factor computed, not tabulated. IRC R905 requirements by pitch

Every roofing calculator takes your pitch and uses it for exactly one thing: multiplying the footprint to get the area. IRC Section R905 hangs three more decisions on that same number. Below 2:12 asphalt shingles are not permitted at all, between 2:12 and 4:12 the underlayment is doubled, and the ice barrier is measured to a point 24 inches inside your wall, which on most houses is wider than the roll.

Roof quantities and the code requirements at this pitch

ft
ft
in
in
%
no.
in
in
in

Plain roof planes only. Hips, valleys, dormers and ridge cap are extra, and valley cut waste is much higher than the flat allowance.

Specification summary

Generated from on . Reopen that address to reproduce these figures exactly.

Entered

Result

This figure is drawn from the roof you type in above.
A gable section, and where R905.1.2 puts the barrier

Worked example

A 40 ft by 28 ft house at 6:12 with a 24 in overhang, 10% waste, 3-bundle squares, 36 in strip shingles at 5 in exposure, in an area where an ice barrier is required and the roll is 36 in.

  1. Slope factor. √(144 + 36) / 12 = 1.1180, so 11.8% more roof than ground.
  2. Plan area. The overhang adds 2 ft each side: 44 × 32 = 1,408 sq ft covered.
  3. Roof area. 1,408 × 1.1180 = 1,575 sq ft, which is 15.75 squares, or 17.32 with waste.
  4. Bundles. 17.32 × 3 = 52 bundles.
  5. Fasteners. Each shingle covers 36 × 5 / 144 = 1.25 sq ft, so 1,387 shingles, and R905.2.6's four per strip is 5,548 nails.
  6. Ice barrier. 24 in overhang plus 24 in inside the wall is 48 in horizontal, times 1.1180 = 53.7 in up the slope. A 36 in roll gives one course, so you need two.

The ice barrier is the line worth re-reading. R905.1.2 measures to a point 24 inches inside the exterior wall line, not 24 inches up from the eave, so the overhang is added before the slope factor is applied. A 36 in roll covers only 32 inches of horizontal run at this pitch. Almost every house with a normal overhang needs two courses, and the second one is the one nobody orders.

The formula

One piece of trigonometry, then four code checks against the same number:

A = (L + 2o)(W + 2o) × √(144 + r²) / 12    squares = A / 100
L, W
building footprint, ft, measured to the wall line
o
eave overhang, converted to ft. It is roof area too
r
pitch as rise per 12 in of run
√(144 + r²)/12
the slope factor. The hypotenuse over the base, exactly
100
square feet in a roofing square. A definition

The overhang is inside the area term, not outside it, because eaves are roof. On the worked example the 24 in overhang adds 232 sq ft of plan area, which is 16% of the roof, and leaving it out is the commonest way a roof order comes up short.

The pitch is the input, and it decides four things

Ask a roofing calculator for a quantity and it wants a footprint and a pitch. It uses the pitch once, as a multiplier, and hands you a number of squares.

That multiplier is right and it is exact: a roof plane is the hypotenuse of a triangle whose base is the footprint, so the area is the footprint times the square root of 144 plus the rise squared, over 12. No table is needed and none is used here.

But IRC Section R905 reads the same pitch and makes three more decisions with it. It refuses asphalt shingles below 2:12 outright. It doubles the underlayment between 2:12 and 4:12. And above 21:12 it stops prescribing attachment and hands you back to the manufacturer. None of those change the area, and all of them change the order.

Then there is the ice barrier, which does not depend on pitch alone but on pitch and overhang together, and which is the one requirement on this page that people measure wrong with a tape in their hand.

Slope factor by pitch, and what R905 attaches to each
PitchSlope factorAngleArea over footprintWhat R905 says at this pitch
1:121.00354.8°0.3%below the 2:12 minimum for asphalt shingles
2:121.01389.5°1.4%double underlayment required
3:121.030814.0°3.1%double underlayment required
4:121.054118.4°5.4%
5:121.083322.6°8.3%
6:121.118026.6°11.8%
7:121.157730.3°15.8%
8:121.201933.7°20.2%
9:121.250036.9°25.0%
10:121.301739.8°30.2%
12:121.414245.0°41.4%
15:121.600851.3°60.1%
18:121.802856.3°80.3%
21:122.015660.3°101.6%
24:122.236163.4°123.6%manufacturer's instructions govern

Read 2026-09-08. The factor is sqrt(144 + rise squared) divided by 12, computed rather than tabulated.

Download this table as CSV. Same cells as printed above, nothing added.

The slope factor, which is the only exact thing on a roof

A roof plane is the hypotenuse of a right triangle whose base is the footprint it covers. So its area is the footprint times:

slope factor = √(144 + rise²) / 12

That is trigonometry, not a table, and it is exact. A 6:12 roof is √(144+36)/12 = 1.1180, so 11.8% more area than the ground it covers. A 12:12 is 1.4142, over 41% more.

Which is the whole of what most roofing calculators do with the pitch you give them. The code does considerably more with it, and the last column of the table below is the part they leave out.

What the code hangs on the same number

Pitch is not just an area multiplier. Four requirements in IRC Chapter 9 change with it, and three of them change what you buy:

R905.2.2
Asphalt shingles shall be used only on roof slopes of two units vertical in 12 units horizontal (17-percent slope) or greater. For roof slopes from two units vertical in 12 units horizontal (17-percent slope) up to four units vertical in 12 units horizontal (33-percent slope), double underlayment application is required in accordance with Section R905.1.1.
R905.2.5
Fasteners for asphalt shingles shall be galvanized steel, stainless steel, aluminum or copper roofing nails, minimum 12-gage [0.105 inch] shank with a minimum 3/8-inch-diameter head, complying with ASTM F1667, of a length to penetrate through the roofing materials and not less than 3/4 inch into the roof sheathing. Where the roof sheathing is less than 3/4 inch thick, the fasteners shall penetrate through the sheathing.
R905.2.6
Asphalt shingles shall have the minimum number of fasteners required by the manufacturer's approved installation instructions, but not less than four fasteners per strip shingle or two fasteners per individual shingle. Where the roof slope exceeds 21 units vertical in 12 units horizontal (21:12, 175-percent slope), shingles shall be installed in accordance with the manufacturer's approved installation instructions.
R905.1.2
In areas where there has been a history of ice forming along the eaves causing a backup of water as designated in Table R301.2(1), an ice barrier shall be installed for asphalt shingles, metal roof shingles, mineral-surfaced roll roofing, slate and slate-type shingles, wood shingles and wood shakes. The ice barrier shall consist of not fewer than two layers of underlayment cemented together, or a self-adhering polymer-modified bitumen sheet shall be used in place of normal underlayment and extend from the lowest edges of all roof surfaces to a point not less than 24 inches inside the exterior wall line of the building.

Quoted from 2018 Seattle Residential Code, Chapter 9 Roof Assemblies. Read 2026-09-08.

R905.2.2 is the one that costs money. Between 2:12 and 4:12 the underlayment is doubled. That is not a recommendation and it is not in the shingle manufacturer's literature, it is the code, and a calculator that hands you one roll for a 3:12 porch roof has given you half the material.

Below 2:12 asphalt shingles are not permitted at all, whatever the manufacturer says. That is a different roof covering, not a thinner one.

The overhang is roof, and it is bigger than it looks

The footprint you measure is to the wall line. The roof is bigger, by the overhang, on every side it has one.

A 24 in overhang on a 40 by 28 ft house turns a 1,120 sq ft footprint into 44 by 32 ft, which is 1,408 sq ft of plan area. That is 232 sq ft more, 21% on top, before the slope factor touches it. Multiply by 1.1180 and the overhang alone is 259 sq ft of roof, more than two and a half squares.

Rake overhangs at the gable ends work the same way and are counted here, because the input adds the overhang on all four sides. If your roof only overhangs at the eaves, reduce the width input accordingly.

Waste, valleys, and why the flat allowance is not enough

The 10% default here is ours, and it covers ordinary cutting on plain planes: starter courses, ridge, and the ends of runs.

It does not cover valleys. A valley is cut on both sides at an angle, and the offcut is usually unusable, so a roof with several valleys can run well past 15%. Nor does it cover hips, which need cap shingles cut from field bundles at roughly one bundle per 35 linear feet depending on exposure.

A simple gable roof is the case the 10% is written for. A cut-up roof with dormers and returns is a different estimate and the honest thing to do is add the valley and hip lengths and allow for them separately.

Ridge cap is not in the bundle count above either. It is usually a separate product and it is sold by the linear foot.

Fasteners, and the number that is a floor rather than an answer

R905.2.6 sets a minimum of four fasteners per strip shingle, or two per individual shingle, and then says the manufacturer's approved instructions govern the actual number.

In practice many manufacturers specify six per strip in high-wind areas, and a warranty is void without them. Six against four is a 50% increase in nails, which on the worked example is 8,322 rather than 5,548.

R905.2.5 is equally specific about the nail itself: 12-gauge shank, 3/8 in head, ASTM F1667, long enough to penetrate 3/4 in into the sheathing or all the way through if the sheathing is thinner. That last clause is the one that catches people re-roofing over 3/8 in plywood.

The ice barrier is measured from inside the house, and that is the trap

Read R905.1.2 again, slowly. The barrier runs from the lowest edge of the roof to a point not less than 24 inches inside the exterior wall line.

Not 24 inches up the roof. Not one roll. Twenty-four inches past the wall, measured horizontally, which means the width you need is:

width = (overhang + 24 in) × slope factor

On a house with a 24 in overhang at 6:12, that is (48 in) × 1.1180 = 53.7 in of barrier measured up the slope. A 36 in roll does not reach. You need two courses with a lap, and the second course is the one everybody forgets to order.

The overhang is what drives it. A 12 in overhang at the same pitch needs 40.2 in, still over a single 36 in roll. A house with no overhang at all needs 26.8 in, and one roll does it.

Whether you need one at all is not a national question. R905.1.2 applies in areas with a history of ice damming as designated in Table R301.2(1), which is a jurisdiction-by-jurisdiction table. It is a question for your building department, and this calculator asks you rather than guessing.

Where the code text came from

Read 2026-09-08. 2018 Seattle Residential Code, Chapter 9 Roof Assemblies, Seattle Department of Construction and Inspections. Prints IRC Chapter 9 in full, including R905.1.2 ice barriers and R905.2 asphalt shingles. Used because codes.iccsafe.org returns HTTP 403 and cannot be read.

It is one city's adopted code printing the model text, which is the best that can be done from here, and your jurisdiction may have amended any of it. The ice barrier requirement in particular is triggered by a table of local values, so the answer to whether you need one is local by construction.

Frequently asked questions

How do I calculate roof area from the footprint?
Multiply the plan area, overhangs included, by the slope factor, which is the square root of 144 plus the rise squared, all over 12. A 6:12 roof has a factor of 1.1180, so 11.8% more area than the ground it covers. A 12:12 is 1.4142, over 41% more.
How many bundles of shingles do I need for a 40x28 house?
At 6:12 with a 24 in overhang, about 1,575 sq ft of roof, which is 15.74 squares. With a 10% waste allowance that is 17.32 squares, so 52 bundles at three bundles to the square. Check the wrapper: not every product is three to the square.
What is the minimum roof pitch for asphalt shingles?
Two units vertical in 12 horizontal, per IRC R905.2.2. Below that asphalt shingles are not permitted at all and you need a different roof covering. Between 2:12 and 4:12 they are permitted but the underlayment must be doubled.
How far does ice and water shield have to go up the roof?
R905.1.2 requires it from the lowest edge of the roof to a point not less than 24 inches inside the exterior wall line. That is measured horizontally and inside the wall, so you add the overhang before applying the slope factor. A 24 in overhang at 6:12 needs 53.7 in up the slope, which a 36 in roll does not cover.
Do I need two rows of ice and water shield?
On most houses with a normal overhang, yes. A 36 in roll covers only about 32 inches of horizontal run at 6:12, and the requirement is the overhang plus 24 inches. Only a house with little or no overhang gets away with a single course.
How many nails per shingle does code require?
Not fewer than four per strip shingle or two per individual shingle, per R905.2.6, and the manufacturer's approved instructions govern above that. Six per strip is common in high-wind areas and is often a warranty condition. Above 21:12 the code stops prescribing and defers entirely to the manufacturer.
Does the roof overhang count in the area?
Yes, and it is substantial. A 24 in overhang on a 40 by 28 ft house adds 232 sq ft of plan area, 21% on top of the footprint, before the slope factor is applied. Leaving it out is the commonest reason a shingle order comes up short.

Check these numbers yourself

How every figure here is verified: Sources & Method. Who builds this: About. Found something wrong? Tell us and it gets fixed or removed.

Figures on this page last checked against the source documents on 2026-09-08. Codes are amended locally; confirm against the edition your jurisdiction enforces.

Related calculators

Plain roof planes, and one city's adopted code. IRC Chapter 9 was read from the 2018 Seattle Residential Code on 8 September 2026 because codes.iccsafe.org returns HTTP 403. Hips, valleys, dormers and ridge cap are not counted. Whether an ice barrier is required at all is set by Table R301.2(1), which is jurisdiction by jurisdiction, so this page asks you rather than assuming.