Drip Edge & Roof Trim Calculator

</> Embed this calculator on your site

This free drip edge calculator works out how many pieces of drip edge your roof needs for its eaves and rakes, using roof size, pitch, overhang, lap length and a waste allowance. It also estimates nails and material cost.

Calculate Your Drip Edge

Wall length parallel to the ridge
Eave wall to eave wall
6 means a 6/12 pitch
2 in lap per joint is deducted
0%25%

Estimates only. By using this calculator you agree to our Terms.

</> Embed this calculator on your site

Free for any website, blog, classroom or intranet. No sign-up, no ads inside the embed. Copy the code and paste it into your page.

Preview the embed

How to Use This Drip Edge & Roof Trim Calculator

Choose your roof style, then enter the building length (the wall parallel to the ridge), the width between eave walls, the pitch as rise per 12 inches of run, and your eave and rake overhangs. Add any dormer or porch edges in the extra fields, pick a piece length and a waste allowance, and press Calculate. You get linear feet for eaves and rakes, the number of pieces to buy, nails, an optional cost, and a table comparing different waste levels.

Why This Matters

Drip edge is the thin, L-shaped metal flashing that sits along the eaves and rakes of a shingle roof. It pushes water away from the fascia and rake board, keeps shingles from curling over the edge, and blocks wind-driven rain and insects from getting under the sheathing. It is cheap compared with the rest of a re-roof, but running short on installation day costs a trip to the supply house and sometimes a mismatched profile or color.

Typical users are homeowners ordering materials for a tear-off, roofers writing quotes, and builders ordering for new construction. A 40 × 28 ft gable house with 12 inch overhangs and a 6/12 pitch has about 151 linear feet of edge. That is 16 pieces before waste and 18 after, or roughly $171 at $9.50 a piece. Add a dormer and a garage and the total can climb past 25 pieces. Rakes are longer than most people expect because they follow the slope, not the horizontal run. Measuring the ground footprint alone undercounts them by 10 to 40 percent on steep roofs.

How It's Calculated

The calculator converts your pitch to a slope factor, finds the sloped length of one rake edge, then adds up eave and rake runs for the chosen roof style.

Slope factor = √(1 + (pitch ÷ 12)²)
Slope length = (run + eave overhang) × slope factor
Gable: eaves = 2 × (L + 2 × rake overhang); rakes = 4 × slope length
Hip: eaves = 2 × (L + 2 × o) + 2 × (W + 2 × o); rakes = 0
Shed: eaves = L + 2 × rake overhang; rakes = 2 × slope length
Pieces = ROUNDUP(length × (1 + waste) ÷ (piece length − 2 in lap))
Nails = ROUNDUP(length × 12 ÷ spacing) + 2 per piece

Run is half the width for gable and hip roofs and the full width for a shed roof. Eaves and rakes are rounded up separately, because they are often different profiles and offcuts cannot always be reused. Every result is rounded up, never down. The defaults follow the IRC R905.2.8.5 rule of thumb: drip edge at eaves and rakes of shingle roofs, at least 2 inch laps, and fasteners no more than 12 inches on center. We default to 10 inches, which is tighter than the code maximum. Codes vary by jurisdiction and edition, and this tool is a material estimate. It is not engineering, permit or inspection approval.

Worked Example

Gable roof, 40 ft long, 28 ft wide, 6/12 pitch, 12 inch overhangs on eaves and rakes, 10 ft pieces, 10% waste, nails at 10 inches.

Tips & Common Mistakes

Frequently Asked Questions

How much drip edge do I need for my roof?

Add the length of all eaves and all rake edges, then divide by the usable piece length and round up. A simple 40 × 28 ft gable roof with 12 inch overhangs needs about 151 linear feet, or 18 ten-foot pieces with 10% waste.

Is drip edge required by building code?

The IRC has required drip edge at the eaves and rakes of shingle roofs since the 2012 edition (R905.2.8.5), but local adoption differs. Check with your building department, and note that many shingle warranties also call for it.

Does drip edge go over or under the underlayment?

Common practice is to put drip edge directly on the deck at eaves, with underlayment over it, and over the underlayment at rakes. Water then flows over the metal at the eave and cannot get beneath it at the rake. Follow your manufacturer's installation instructions.

Do I need drip edge on a hip roof?

Yes, along all four eaves. A hip roof has no rake edges, so the calculator returns zero rake length for it. Hips and ridges are covered by cap shingles or ridge vent, not drip edge.

How much should drip edge pieces overlap?

Overlap adjoining pieces by at least 2 inches. The calculator deducts a 2 inch lap from every piece, so a 10 ft piece covers 9.83 ft of roof edge.

Should I round up or down when ordering?

Always round up. A short piece is hard to fix on installation day, while a spare piece is cheap and handy for repairs.

Related Tools