Roof Flashing Calculator: Linear Feet and Pieces
Estimates linear feet of roof flashing for the ridge, valleys, walls, chimney and eaves, with a waste allowance and the number of pieces to order.
A gable roof with a 33 ft ridge, a chimney measuring 3 ft by 2 ft and 26 ft of wall flashing needs 69 linear feet of flashing before waste. With a 10% allowance, order about 76 linear feet, which means eight pieces of 10 ft. This example has no valleys and no eave drip edge. The calculator walks through every flashing point on the roof (ridge, valleys, walls, chimney and eaves), applies your waste percentage and returns the total length and the number of pieces to order.
Roof flashing is the bent metal that seals every place where the roof covering stops or changes direction. Where shingles or tiles meet a wall, a chimney, a valley or the ridge, an unsealed gap becomes the entry point for water. Water that gets past the roofing can rot the roof deck and rafters, and it often shows up first as a stain on an interior ceiling. That is why flashing deserves as much care as the roofing itself.
The length you need depends on the shape of the roof, not its area. Each element is measured separately. The ridge is measured from end to end, valleys and wall flashing are measured along the slope rather than across the plan, and a chimney's perimeter is counted on all four sides. Enter 0 for any element the roof does not have, and the calculator skips it. The result is in linear feet, because flashing is ordered by length, while shingles are counted by area.
This calculator suits homeowners planning a reroof, roofers checking a materials order and anyone comparing quotes. It is a planning tool. It estimates lengths for a roof that has already been measured, and it does not replace the flashing details your roofer or the manufacturer specifies.
The explanation below uses US units; the calculator works in either system.
The result updates automatically.
Measured along the ridge; includes ridge cap flashing
Valleys are where two roof planes meet (optional, enter 0 if none)
Length of flashing where the roof meets a side or front wall
Sum of the perimeter of all chimneys and skylights: 2 × width + 2 × depth each
Length of flashing at the roof eave (optional, enter 0 if not applicable)
Typically 10% for simple roofs; 15% with lots of corners and transitions
Optional. Enter the price per unit length of flashing to get an estimated material cost
Flashing needed
Total with 10% margin; flashing sold in 6.5 ft (2 m) pieces
- Ridge
- 26.2 ft
- Gross total
- 26.2 ft
- Waste margin
- 10 %
- Pieces of 6.5 ft (2 m) needed
- 5 pieces
How it works
Formula
How the calculation works
What roof flashing does and why it matters
Roof flashing is sheet metal, bent to shape, that seals the joints where the roof covering meets anything that interrupts it: the ridge at the top, the valleys where two roof planes meet, walls, chimneys, skylights and the eave at the bottom. Shingles and tiles shed water well across a flat field, but every junction is a place where water can run sideways or pool and find a way under the roofing. Flashing closes those gaps. When it is missing, undersized or badly fitted, water reaches the roof deck, rafters and sheathing, and the damage often appears first as a stain on an interior ceiling.
The International Residential Code (IRC), adopted in some form by most states, sets weather protection requirements for roof assemblies in its Chapter 9, Roof Assemblies. These provisions call for flashing at wall and roof intersections, at changes in roof slope and around roof openings. Local jurisdictions frequently adopt their own amendments, so check with your building department before you finalize the details of a project.
How the formula works
The calculation is linear. You add up the length of every flashing point on the roof and then multiply the total by a waste factor:
L_total = (L_ridge + L_valleys + L_wall + L_chimney + L_eave) × (1 + d/100)
Each term is a length, so the units must match. The formula's variables are in metres, and the calculator converts automatically, so you can enter feet directly and read the result in linear feet. The examples on this page use feet. The waste factor (1 + d/100) turns a percentage into a multiplier: a 10% allowance gives 1.10, so the total is raised by one tenth. Its purpose is to cover cuts, overlaps and fitting errors, not to make up for poor measurement. The calculator then divides the total by the length of one piece and rounds up to whole pieces.
Measuring each flashing point
Ridge. Measure along the top of the roof, from one end to the other. On a simple gable roof, the ridge length matches the length of the building, plus any overhang if the ridge cap extends past the gable ends.
Valleys. A valley is the inside corner where two roof planes meet. Its true length follows the slope, so it is always longer than the horizontal distance it covers in plan. If you know the horizontal run and the rise, calculate the true length as the square root of (run² + rise²). For a valley with a 13 ft horizontal run and a 5 ft rise, the true length is the square root of 194, or about 13.9 ft. Enter 0 for roofs that have no valleys, such as a plain gable.
Walls. Where the roof runs into a wall, as at a dormer or a rear addition built against an existing wall, the flashing runs from the eave to the ridge along the wall on each side. Measure along the roof slope, not the horizontal distance, for the same reason as the valley.
Chimneys and skylights. Add the perimeter of the penetration: 2 × width + 2 × depth. A chimney that measures 3 ft by 2 ft has a perimeter of 10 ft. Flashing is needed on all sides, and the pieces must overlap the roofing on the upslope and downslope edges. Allow the overlap that the flashing manufacturer's instructions specify, and include it before you enter the perimeter.
Eave. The eave length is the roof edge where a metal drip edge goes. Enter it only if drip edge is part of this job.
Materials and their effect on the result
The material changes the cost, the appearance and the service life of the flashing, but not the length you need. Galvanized steel, painted or coil-coated steel, aluminum, copper and zinc are all used. Painted steel is a common, lower-cost option for standard reroofing work, while copper and zinc are usually chosen for premium or long-life projects. Compatibility with other metals, with concrete and mortar, and with coastal exposure is covered in the flashing manufacturer's installation guidance, so check that guidance before you choose a metal or mix materials.
Common mistakes
The most frequent error is leaving chimney flashing off one or more sides. Each side needs its own piece: base flashing on the downslope side, step flashing along the sides, and counterflashing set into the masonry at the top. Count all four sides, even when you can only see two of them from the ground.
On roofs with several planes, valleys are often underestimated. Using the horizontal run instead of the true diagonal length makes the valley total come out short, and a short order delays the job.
Mixing units is another common problem. Entering a value in inches where the calculator expects feet, or the reverse, changes the result by a factor of twelve. Check each field before you read the total.
The waste allowance is also easy to set too low. A simple gable with a single ridge can be ordered with a modest allowance, but a roof with chimneys, valleys and several wall transitions has more cuts and more fitting, so it needs more than the minimum.
Finally, rounding up to whole pieces covers most of the waste, but a bent or damaged piece in a short run can still hold up the job. Keep a spare piece on site for the complicated details.
Flashing is ordered by length, shingles by square
Flashing is sold and ordered by the linear foot, which is why the calculator reports length. Shingles and other roof coverings are counted in squares, where one square is 100 sq ft of roof area. Do not mix the two when you estimate a roof. The roof area tells you how much shingle to buy, and the flashing length tells you how much metal to buy.
When to use this calculator
Use it for any pitched roof with a ridge and at least one other point of interruption, such as a wall, chimney, skylight or valley. It is most useful at the planning stage of a reroof, when you need quantities for a quote, and when you are checking an order from a roofer or a supplier before the materials arrive. It also works for a simple gable on its own, where it confirms the ridge and eave lengths.
When not to rely on it
The calculator estimates lengths. It does not design the flashing. Do not treat it as the final word on a roof with multiple hips, dormers, rooftop equipment or unusual geometry, where a drawing and a detail from a professional are needed. Flat and low-slope roofs use different membranes and flashing systems, and the lengths here do not apply to them. Metal roof panels and edge systems with custom profiles also need the manufacturer's own details.
Local rules and references
The IRC is the baseline for residential roofs in most of the United States, and the International Building Code (IBC) covers commercial buildings. Adoption varies by state, and local amendments can change the requirements for flashing and weather protection. Manufacturers publish installation details for their flashing systems, and those details specify the overlap, the counterflashing and the fastening, which this calculator does not consider. Where a project specifies a metal standard, use the one named in the project documents or required by the local building department.
When to hire a roofer
Installing flashing requires cold bending the metal and fitting it accurately under shingles and into masonry. A simple gable with no chimney can be handled by someone with some roofing experience. Hire a roofer when the pitch is steep, the roof has several planes, chimneys or skylights, the existing roof is deteriorated, or the work is at a height that calls for proper fall protection. The quality of the installation matters as much as the material, because poorly fitted flashing leaks regardless of how good the metal is.
Frequently asked questions
What is the difference between flashing and counterflashing?
Flashing is the metal piece laid over the roof covering at a junction, such as the base of a chimney or a wall. Counterflashing is the piece set into the masonry or the wall surface above the flashing, which directs water down and onto the flashing rather than behind it. On a chimney, the two work together: the counterflashing overlaps the upper edge of the flashing, so rain runs off the outside of the assembly even in wind-driven rain. Counterflashing should be fixed into a reglet or a cut joint in the masonry, not just surface-mounted, so the seal stays watertight over time. Check the flashing manufacturer's details for the required overlap.
Are copper and zinc flashings worth it compared with painted steel?
Painted steel is the usual choice for standard reroofing work, where cost and availability are the main factors. Copper and zinc are usually specified for premium or long-life projects, such as historic homes or roofs where a repeat installation would be difficult. The right metal depends on your climate, your exposure to salt air, the roof covering and the flashing manufacturer's specification, so there is no simple ranking. Ask your roofer which metals your roof system allows and what the manufacturer specifies for your site.
How do I measure the length of a valley?
Measure the valley along the diagonal line where the two roof planes meet, because that is its true length. If you cannot reach it, measure the horizontal run and the rise, then calculate the true length as the square root of (run² + rise²). For a valley with a 13 ft run and a 5 ft rise, the true length is the square root of (13² + 5²), which is the square root of 194, or about 13.9 ft. Use the true length, not the run, to avoid ordering too little flashing. Enter 0 if the roof has no valleys.
Does every pitched roof need flashing?
Yes, wherever the roof has a junction or a penetration. A plain gable with no chimney, skylight or wall contact still needs ridge flashing or a ridge cap, depending on the roof system, and the eaves need drip edge to direct water away from the fascia. Roofs with valleys, chimneys, skylights or walls meeting the roof need more flashing, and the total grows quickly as the roof gets more complex. The IRC roof assembly provisions (Chapter 9) call for flashing at wall and roof intersections, at changes in roof slope and around openings. Check local code amendments before you finalize the work.
How many pieces should I order for a 25 ft ridge?
Start with the total length. A 25 ft ridge with a 10% allowance needs 27.5 ft (25 × 1.10). If you buy 10 ft pieces, divide 27.5 by 10 to get 2.75 and round up, so you order 3 pieces, which gives 30 ft of material. The calculator adds all the elements of the roof, applies the allowance and rounds up to whole pieces. If your supplier sells a different piece length, divide by that length instead.
When should I hire a roofer instead of installing flashing myself?
Consider a professional when the roof is steep, when it has several planes, valleys, chimneys or skylights, or when the existing structure is old or deteriorated. Work at height also calls for proper fall protection and experience. Flashing installation depends on bending the metal cold and fitting it accurately under shingles and into masonry, so a leak is often the first sign of a poor fit. For a long-term weathertightness guarantee, look for a roofer with documented experience on the same roof type. A simple gable with no chimney is a reasonable project for an experienced homeowner.
Related calculators
By RivoCalc · Reviewed under our editorial methodology · Updated July 1, 2026
These results are planning estimates. Actual quantities depend on your roof layout, the flashing profiles you choose and local code requirements, so confirm the final order with a licensed roofer or your local building department before you buy materials.
