The code requirement
IRC R905.2.8.5 (2021): a drip edge shall be provided at eaves and rake edges of shingle roofs. Adjacent pieces overlap at least 2 in; the drip edge extends at least ¼ in below the sheathing and at least 2 in back onto the deck; fasteners at no more than 12 in on center. Underlayment goes over the drip edge along eaves and under it along rakes.

Formula
pieces = ⌈ (eaves + rakes) ÷ (10 ft − 2 in) ⌉
rake length = (W + 2e) ÷ 2 × slope factor, × 4 on a gable roof50 × 30 ft gable, 6/12
Eaves 2 × 52 = 104 ft; rakes 4 × 16 × 1.118 = 71.6 ft; total 175.6 ft ÷ 9.83 = 18 pieces. Using the plan width for the rakes (16 ft instead of 17.9 ft) would leave you about 8 ft short.
Types and price
Common profiles are the L-shaped edge, the T-shaped (“D-style”) edge with a kick-out at the bottom, and the gutter apron for eaves with gutters. Material and color are your choice; the code sets dimensions, not a profile. HomeGuide (Nov 2025) puts drip edge at $1.50–$3.00 per linear foot installed. A hip roof has no rakes, so it needs only eave drip edge.
Questions
Is drip edge required by code?
Yes for shingle roofs under the 2021 IRC: at eaves and rake edges (R905.2.8.5). Check which IRC edition your jurisdiction adopted.
Does drip edge go over or under the underlayment?
Under it along the eaves, over it along the rakes (R905.2.8.5).
Sources
- International Code Council, 2021 International Residential Code, Chapter 9 Roof Assemblies (R905, R908) – 2021 edition.
- HomeGuide, Average cost to tear off and replace a roof – November 7, 2025.
All sources checked on November 28, 2026.