CalculateMyRoof

Roof Flashing Calculator

Drip edge for the eaves and rakes, step flashing for every wall and chimney side, and the crickets and kick-outs the code asks for, counted from your roof's edges and its shingle courses.

By Marko Visic, BSc Physics · Updated November 25, 2026

Roof edges and walls

Rakes and wall runs are measured along the roof, from the eave edge up. The gable and hip calculators give the eaves and rakes from a building's size.

Chimney, kick-outs, pipes and valleys

Enter 0 for a part the roof doesn't have.

Drip edge: 64 + 58.12 = 122.12 ft along the eaves and rakes, where a shingle roof needs it.[1] In 10 ft pieces lapped 2 in: (122.12 × 12 − 2) ÷ (10 × 12 − 2) = 12.4 → 13 pieces, with offcuts carried between edges.[1][2] Fasten it at no more than 12 in on center; it goes over the underlayment at the rakes and under it at the eaves.[1]

Step flashing at walls: one piece per shingle course, a course every 5.625 in (GAF Timberline HDZ): 12 × 12 ÷ 5.625 = 25.6 → 26 courses, so 26 pieces.[3][4] Each piece is at least 4 in high and 4 in wide and sheds water onto the roof.[1] GAF runs each 5 in up the wall and 5 in over the shingle, lapped 2 in, with 2 nails into the deck, not the wall: 2 × 26 = 52 nails.[4] Separate runs round up on their own, so add up to one piece for each run after the first.

Chimney: a 32 in chimney is wider than 30 in, so it needs a cricket on its ridge side, covered with sheet metal or the roof covering.[1] GAF runs a cricket at least 6 in up the back of the chimney and 12 in up the roof deck.[4] Up each side, 24 ÷ 5.625 = 4.27 → 5 courses, so 2 × 5 = 10 step flashing pieces for both sides, under metal counterflashing that laps them at least 4 in.[3][4] The front flashing follows the shingle maker's instructions.[1]

Kick-out flashing: 1 kick-out, one where each eave meets a sidewall, turning the water away from the wall.[1]

Pipes and vents: 3 pipe flashings, applied as the shingle maker's instructions say.[1]

Step flashing in all: 26 + 10 = 36 pieces.[3][4] Metal: corrosion resistant and at least 0.019 in thick (No. 26 galvanized sheet).[1]

No waste is added: the counts are what the runs need. Prices aren't given.

How much roof flashing do I need? Drip edge along every eave and rake, in 10 ft pieces lapped at least 2 in,[1][2] and one piece of step flashing for every shingle course where the roof meets a wall.[4] At GAF Timberline HDZ's 5 5/8 in exposure, a 12 ft wall takes 12 × 12 ÷ 5.625 = 25.6 → 26 pieces.[3] A chimney wider than 30 in also needs a cricket behind it, and an eave that ends at a sidewall a kick-out.[1]

A 12 ft roof-to-wall run seen from above: 26 step flashing pieces, one per 5 5/8 in shingle course, 144 ÷ 5 5/8 = 25.6 rounded up
The worked example's wall run, to scale: each shingle course gets its own piece of step flashing, each piece laps the one below it, and the count is the run divided by the exposure, rounded up.

Drawing: CalculateMyRoof · CC BY 4.0 · How to reuse

How it works

Enter the eaves and the rakes in feet, the rakes measured along the slope, and the length of roof that runs up against a wall. The shingle you pick sets the courses: its exposure is how far apart they are, and each course that meets a wall gets its own piece of step flashing.[3][4] Then add a chimney, the eaves that end at a sidewall, the pipes and vents, and any valleys. The calculator lays the drip edge in 10 ft pieces lapped 2 in, steps up each wall and each side of the chimney one course at a time, flags a cricket behind a chimney over 30 in wide and gives the metal the code asks for.[1][2]

No edges measured yet? The gable roof calculator gives a building's eaves and rakes from its size and pitch, and the hip roof calculator its eaves.

Worked example

Take the eaves and rakes from the gable roof calculator's worked example, 64 ft and 58.12 ft, and roof it in GAF Timberline HDZ.[3] Add a 12 ft run where a lower roof meets a wall, with an eave at its foot, a chimney 32 in wide and 24 in up the slope, and 3 pipes.

  • Drip edge: 64 + 58.12 = 122.12 ft, in 10 ft pieces lapped 2 in: (122.12 × 12 − 2) ÷ (10 × 12 − 2) = 12.4 → 13 pieces, the offcuts going on to the next edge.[1][2]
  • Step flashing at the wall: 12 × 12 ÷ 5.625 = 25.6 → 26 pieces,[3][4] and 1 kick-out at the eave.[1]
  • Chimney: 32 in is wider than 30 in, so it takes a cricket.[1] Up each side, 24 ÷ 5.625 = 4.27 → 5 courses, so 2 × 5 = 10 pieces of step flashing under the counterflashing.[3][4]
  • In all: 26 + 10 = 36 pieces of step flashing, 13 pieces of drip edge, 1 kick-out and 3 pipe flashings.[2][4]

How to calculate step flashing

One piece per shingle course: divide the wall's run along the slope, in inches, by the shingle's exposure and round up.[4] GAF sets each piece just up the slope from a shingle's exposed edge, 5 in over the shingle below and 5 in up the wall, overlaps the pieces 2 in and nails each with 2 nails into the deck, never into the wall.[4] The 2024 IRC sets the floor: base flashing at a sidewall at least 4 in high and 4 in wide, sending the water onto the roof or into the gutter, with its vertical leg running unbroken under any siding.[1] GAF keeps the siding at least 2 in above the roof, covering the flashing by at least 2 in.[4]

Step flashing per foot of wall, one piece per course
ShingleExposurePieces per foot, calculated
GAF Timberline HDZ5 5/8 in[3]12 ÷ 5.625 = 2.13
Owens Corning Duration5 5/8 in[5]12 ÷ 5.625 = 2.13
CertainTeed Landmark5 5/8 in[6]12 ÷ 5.625 = 2.13
IKO Cambridge5 7/8 in[7]12 ÷ 5.875 = 2.04
GAF Royal Sovereign (3-tab)5 in[8]12 ÷ 5 = 2.4

Round up each run on its own, since each starts its own count. Two 8 ft dormer cheek walls take 8 × 12 ÷ 5.625 = 17.07 → 18 pieces each, 2 × 18 = 36 in all, where one 16 ft wall takes 16 × 12 ÷ 5.625 = 34.13 → 35.[3][4] The calculator works on the total you enter, so add up to one piece for each run after the first.

How much drip edge do I need?

Add the eaves to the rakes, measuring each rake along the slope from the eave to the ridge. On a shingle roof the 2024 IRC requires drip edge at both, reaching at least 1/4 in below the roof sheathing and 2 in back onto the deck, fastened at no more than 12 in o.c. and lapped at least 2 in where pieces meet.[1] The underlayment goes over the drip edge at the eaves and under it at the rakes.[1]

Gibraltar's pieces are 10 ft long, so each covers 10 × 12 − 2 = 118 in once lapped.[1][2] The count is the edges' total in inches, less one lap, divided by that, rounded up. For a whole-roof estimate with the shingles, underlayment and drip edge together, the roofing calculator does the takeoff.

Does a chimney need a cricket?

It does when it is more than 30 in wide across the slope: the 2024 IRC then requires a cricket, or saddle, on its ridge side, covered with sheet metal or the roof covering.[1] The same goes for any other penetration that wide, though unit skylights flashed to their maker's instructions are exempt.[1] GAF runs a cricket at least 6 in up the back of the chimney and at least 12 in up the roof deck, the flange of a shop-made metal cricket at least 18 in up the deck, and treats a large wood cricket as a roof of its own, with its own valleys, shingles and step flashing.[4]

Up the chimney's sides it is one piece of step flashing per course, each sealed to the shingle over it with asphalt plastic cement, under metal counterflashing that laps the base flashing at least 4 in.[4] The code leaves the rest of a chimney's flashing to the shingle maker's instructions.[1]

Where does kick-out flashing go?

Wherever the eave of a sloped roof meets a sidewall: the IRC calls for a flashing there that turns the water away from the wall.[1] That is one at the foot of each roof-to-wall run that starts at an eave, so enter how many eaves end at a wall. A dormer's cheek wall starts partway up the roof, with no eave at its foot.

Valleys, pipes and vents

An open valley under asphalt shingles takes a metal lining at least 24 in wide, of a metal from the code's valley table, laid before the shingles by the maker's instructions.[1] The valley rafter calculator gives a valley's length on the roof and the lining under every covering, and the ice and water shield calculator the leak barrier up it. Vent pipe and soil stack flashing go on by the shingle maker's instructions as well, so the calculator counts them and leaves the fitting to the maker.[1]

What gauge should roof flashing be?

Where flashing is metal, the 2024 IRC asks for a corrosion-resistant metal at least 0.019 in thick, which it gives as No. 26 galvanized sheet.[1] For open valley linings its table lists galvanized steel at least 0.0179 in thick (26 gage, zinc-coated G90), aluminum at least 0.024 in and cold-rolled copper at 0.0216 in nominal (16 oz per square foot).[1] The code also wants flashing at every wall and roof intersection, wherever the roof changes slope or direction, and around every opening in it.[1]

Common questions

How far out should the drip edge be?

At least 1/4 in below the roof sheathing, with its flange at least 2 in back onto the deck, by the 2024 IRC.[1]

What size drip edge do I need?

One that reaches what the code asks: a face that drops at least 1/4 in below the sheathing and a flange at least 2 in onto the deck.[1] Gibraltar sells it in 10 ft pieces.[2]

How many pieces of step flashing per foot?

Divide 12 in by the exposure: 12 ÷ 5.625 = 2.13 at GAF Timberline HDZ's 5 5/8 in, 12 ÷ 5 = 2.4 at GAF Royal Sovereign's 5 in.[3][8] Count each run on its own and round up.

What roof slope is 22.5 degrees?

A 22.5° roof rises 12 × tan 22.5° = 4.97 in per foot of run, a 4.97:12 pitch. Pitch doesn't change the step flashing count, which follows the courses along the slope; it sets how long the rakes are. The roof pitch calculator converts any angle.

Methodology & sources

The flashing rules are the 2024 IRC's, from its roof assemblies chapter. The step flashing, wall and chimney details are GAF's Timberline installation instructions, the drip edge length is Gibraltar's and each shingle's exposure is from its maker's data sheet. The rest is the arithmetic above, tested on every build.

Assumptions: a shingle roof, since the code's drip edge rule is written for shingles; the rakes and wall runs measured along the slope; drip edge offcuts carried to the next edge; a whole piece of step flashing for a run's last part course; no waste added. The calculator counts pieces, not their cost, and leaves the front-wall and pipe flashings to the shingle maker's instructions, as the code does.

Sources

  1. [1] International Code Council. 2024 International Residential Code, Chapter 9: Roof Assemblies (Oct 2026 version). Sections R903.2.1, R903.2.2, R905.2.8.2, R905.2.8.3, R905.2.8.4, R905.2.8.5. Retrieved Nov 20, 2026. codes.iccsafe.org
  2. [2] Gibraltar Building Products. Flashings product listings (drip edge). Retrieved Oct 21, 2026. gibraltarbuildingproducts.com
  3. [3] GAF. Timberline HDZ shingles spec sheet (RESGN467HDZ-0526). Retrieved Oct 22, 2026. gaf.com
  4. [4] GAF. Timberline installation instructions for HDZ, UHDZ, ASII and CS (RESTL622-0423). Chimney Flashing and Crickets, p. 8, Wall Flashing (Sloped Roof to Wall), p. 7. Retrieved Nov 20, 2026. gaf.com
  5. [5] Owens Corning. TruDefinition Duration Shingles data sheet (Pub. No. 10024201-E, Aug 2026). Retrieved Oct 28, 2026. owenscorning.com
  6. [6] CertainTeed. Landmark Shingles technical data sheet (CTRCOMM-015, 08/24). Retrieved Oct 28, 2026. certainteed.widen.net
  7. [7] IKO. Cambridge shingle technical data sheet (11/2023). Retrieved Oct 9, 2026. iko.com
  8. [8] GAF. Royal Sovereign Shingles Data Sheet, English size (10/18/2016). Product/System Specifics. Retrieved Nov 18, 2026. gaf.com

Change log: first published November 25, 2026.

Related

By Marko Visic, BSc Physics. Updated November 25, 2026.