Quick answer
Metal roof trim is the bent sheet metal that finishes and seals every edge and joint of a metal roof. A simple gable roof needs eave trim, rake trim, a ridge cap and foam closures. More complex roofs add hip caps, valleys, sidewall and endwall flashing, transition trim, Z-flashing and pipe boots. Trim should come from the same maker as the panels so it fits the rib profile.
- A basic gable roof needs eave trim, rake trim, ridge cap and inside and outside closures
- Most stock trim comes in 10 ft 6 in lengths, with 6 in reserved for overlap
- Panels typically overhang eave trim by at least 1 inch so water drips clear
- 2021 IRC R903.2.1 sets 0.019 in (No. 26 galvanized) as the minimum for metal flashing
- One retailer's galvalume ridge cap runs about $22 per 10 ft 6 in piece (Nov 2026)
On this page
A metal roof is only as watertight as its trim. The panels shed water well across the field, but every edge, peak, valley and wall joint needs a shaped piece of metal to cover the gap. Those pieces have names that can be confusing on a quote or a supply-store order sheet, and many of them have two or three aliases.
The quick glossary
| Trim piece | Also called | Where it goes | What it does |
|---|---|---|---|
| Eave trim | Eave drip, drip edge | Bottom edge, over the fascia | Kicks water off the fascia and into the gutter |
| Rake trim | Gable trim | Sloped edges at gable ends | Caps the cut panel edge and resists wind lift |
| Ridge cap | Ridge roll | Peak, where two slopes meet | Covers the ridge gap; vented versions let attic air out |
| Hip cap | Hip ridge | Sloped outside corners of hip roofs | Covers the hip seam over closures |
| Valley | W-valley, valley pan | Inside corners where two slopes meet | Carries the heaviest water flow off the roof |
| Sidewall flashing | Side wall trim | Where the side of a panel run meets a wall | Turns up the wall over the last rib |
| Endwall flashing | Headwall, apron flashing | Where the top of a roof meets a wall | Turns up the wall over the panel ends |
| Transition trim | Pitch break | Where a steeper slope meets a shallower one | Bridges the change in pitch, high over low |
| Peak trim | High-side trim | Top of a single-slope (shed) roof | Caps the upper edge |
| Gambrel trim | Gambrel flashing | Outward pitch break on gambrel roofs | Bridges the break where the lower slope is steeper |
| Z-flashing | Z-closure, Z-bar | Under caps on standing seam panels | Gives the cap something to fasten to and seals the seam |
| J-channel | J-trim | Walls, soffits, openings | Receives and hides cut panel ends |
| Pipe boot | Pipe flashing | Around plumbing and vent pipes | Seals the penetration and conforms to the ribs |
| Foam closures | Inside and outside closures | Under trim at eaves, ridges, walls | Fill the gaps under the panel ribs |
Edge trim
Eave trim (drip edge)
Eave trim goes on first, fastened over the fascia along the bottom edge of the roof. The Roofing Brief notes that panels should overhang the eave trim by at least 1 inch so runoff drips clear rather than running back under. It also lists typical sizes from manufacturer charts, such as a 3-inch deck leg with a 2-1/2 inch face and a 1/2 inch kick.
Allsteel’s FAQ adds a practical ordering tip: if you want a separate fascia trim, size it so the eave drip hides its top edge.
Rake (gable) trim
Rake trim covers the sloped gable edges from the eave up to the ridge. It hides the cut edge of the last panel, keeps wind from getting under it and keeps water out of the gap. Allsteel recommends butyl tape between the trim and the panel and says the rake should match the eave drip so the corners look finished.
Rake trim and corner trim are different shapes, although some suppliers sell a combined rake-and-corner piece for post-frame buildings.
Ridge and hip caps
The ridge cap seals the peak where two slopes meet. Allsteel says it is fastened through the panel ribs with wood-grip or self-drilling screws, and that closures are required underneath to fully or partly seal the opening. Solid closures make the ridge airtight; vented closures let attic air escape while keeping out rain and insects. Our foam closure strips guide covers the difference.
Hip caps do the same job on the sloped outside corners of a hip roof. Because each hip crosses the ribs at an angle, roofers usually use flexible hip tape or cut closures underneath. Ridge and hip caps must be bent to the roof’s pitch, so give the supplier the pitch when ordering. For shingle roofs, see ridge cap shingles.
Valley flashing
Valleys carry more water than any other part of the roof. A pre-formed W-valley has a raised center diverter that keeps water from one slope from running across and under the panels on the other side. The Roofing Brief says panels typically stop about 3 inches short of the diverter, and Allsteel notes expanding foam closures are often used to seal the panel ends along the valley.
Valley flashing goes on over the underlayment before the panels.
Wall flashings
Sidewall flashing
Sidewall flashing runs up the slope where the side of a panel run meets a wall, such as a dormer cheek or a porch roof against siding. One leg sits on the roof over the last rib and the other turns up the wall, where siding or counterflashing covers it. Allsteel calls for butyl tape where the flashing foot meets the panel.
Endwall flashing
Endwall flashing, also called headwall or apron flashing, sits where the top of a roof section meets a wall. It laps over the panel ends, with outside foam closures sealing the ribs underneath and siding or counterflashing covering the wall leg. For leaks at these joints, see roof flashing repair.
Transition, peak and gambrel trim
Transition trim covers a change in pitch, such as a main roof breaking to a shallower porch roof. The upper panel laps over the transition piece, which laps over the lower panel, so water always flows high over low. Allsteel recommends sealing the lower side with outside closures and, optionally, the underside of the upper panels with inside closures.
Gambrel trim handles the opposite break, where the lower slope is steeper than the upper one. Peak trim caps the high edge of a single-slope roof.
Z-flashing and J-channel
On standing seam roofs, the panels have no exposed ribs to screw a cap through. Z-flashing, also called a Z-closure, is fastened along the panel and gives ridge caps, endwall flashing and transition trim something to attach to. The Roofing Brief notes that standing seam systems need Z-closures at the ridge, endwalls and transitions, plus cleats for concealed trim. See standing seam metal roof.
J-channel is a simpler piece that receives and hides cut panel ends. Allsteel lists it around doors and windows and at the top of skirting, where runoff is not a concern. On homes it is more common on walls and soffits than on the roof itself.
Pipe boots
A pipe boot seals around plumbing vents and other round penetrations. Metal roof boots have a flexible base that conforms to the panel ribs and comes in several sizes. Allsteel says they are sealed with caulk. Boots are one of the most common leak points on older exposed-fastener roofs; see metal roof repair.
What trim a typical roof needs
| Roof | Trim needed |
|---|---|
| Simple gable | Eave trim, rake trim, ridge cap, inside and outside closures |
| Hip roof | Eave trim, ridge cap, hip caps, closures or hip tape |
| Roof with valleys | Add W-valley flashing and closures |
| Roof meeting a wall | Add sidewall and/or endwall flashing |
| Porch with lower pitch | Add transition trim |
| Shed roof | Eave, rake and peak trim |
| Standing seam | Add Z-flashing at ridge, endwalls and transitions |
The Roofing Brief works through a 30 by 40 foot gable at 6/12 pitch with 1-foot overhangs. Using 10 ft 6 in trim with a 6-inch lap, it comes to 10 eave pieces, 8 rake pieces and 5 ridge pieces, or 23 trim pieces in total, plus closures, screws and butyl tape.
Metal roof trim prices
The Roofing Brief collected these posted retail prices from one farm and building supplier in November 2026. They are material only and vary by color, gauge and region.
| Piece | Length | Price per piece | Per foot |
|---|---|---|---|
| Ridge cap, galvalume | 10 ft 6 in | $21.99 | about $2.09 |
| Valley flashing, galvalume | 10 ft 6 in | $51.99 | about $4.95 |
| Rake and corner, galvalume | 10 ft 1 in | $21.99 | about $2.18 |
| Endwall trim, galvalume | 10 ft 1 in | $21.99 | about $2.18 |
| Eave trim, painted white | 10 ft 1 in | $10.99 | about $1.09 |
For the 30 by 40 foot example, that works out to roughly $400 in trim before screws, closures and tape. On a professionally installed roof, trim and flashing are part of the overall installed price, which our metal roof cost guide puts at roughly $4.50–$11 per square foot for exposed-fastener panels and $10–$18 for standing seam steel (2026 national estimates). Complex roofs with many valleys, walls and penetrations need more trim and more labor.
Estimate your roof replacement costEnter your home size, roof pitch and material to get a realistic price range in 30 seconds.Gauge and code notes
Trim is usually the same gauge as the panels or a little heavier. The Roofing Brief reports that McElroy uses 29 gauge for post-frame trim, 26 gauge for residential and commercial trim, and 24 gauge for concealed-fastener architectural trim. It also cites 2021 IRC R903.2.1, which sets 0.019 inch (No. 26 galvanized) as the minimum for metal flashing. Check your local code and the panel maker’s details.
Installation order
Roofers generally install trim in this order:
- Eave trim over the fascia, lapped with the underlayment per the manufacturer.
- Valley flashing over the underlayment, before panels.
- Panels, with inside closures at the eave.
- Sidewall and endwall flashing as the panels go up.
- Transition trim at pitch changes.
- Rake trim at the gables.
- Ridge and hip caps last, over outside or vented closures.
Getting the laps wrong, especially at transitions and walls, is the most common reason a new metal roof leaks. Our types of metal roofing guide and PBR vs R panel explain how panel choice affects which trim you need.
Frequently asked questions
What is the trim at the bottom of a metal roof called?
It is called eave trim, eave drip or drip edge. It is fastened over the fascia before the panels go on, and it directs water off the panel ends and into the gutter instead of behind the fascia.
What is the difference between rake trim and eave trim?
Eave trim runs along the bottom, horizontal edge where water leaves the roof. Rake trim, also called gable trim, caps the sloped edges at each gable end, covering the cut edge of the last panel and helping resist wind uplift. They should be the same color and usually the same face height so the corners look clean.
Can I use trim from a different manufacturer?
It is not recommended. Rib height and spacing differ between profiles, so ridge caps, closures and wall flashings from another maker may not seat correctly and can leak. Manufacturers also tend to tie their warranties to their own trim and installation details.
What gauge should metal roof trim be?
Trim usually matches the panel gauge or is slightly heavier. The Roofing Brief reports that McElroy uses 29 gauge trim for post-frame buildings, 26 gauge for residential and commercial work, and 24 gauge for concealed-fastener architectural trim. Check local code, since 2021 IRC R903.2.1 sets a minimum thickness for flashing.
Is J-channel used on metal roofs?
J-channel is mostly a wall and siding trim. It caps raw panel edges where water runoff is not a concern, such as around doors, windows and the top of skirting. On roofs, it shows up mainly at soffits or where a roof panel meets a wall in some post-frame details.
Sources
- Allsteel Metal — Metal Roof Trim & Flashing FAQ
- The Roofing Brief — Metal Roof Trim Pieces: Names, Sizes and Takeoff
Costs are 2026 national estimates, not quotes. Prices vary by region, roof size and complexity — get at least three written quotes from licensed, insured local contractors. How we estimate costs.
Written by
ABC Roofing Guide Editorial TeamResearch & editing
Our editors research every guide from manufacturer installation instructions, building-code references, insurance-industry sources and published cost surveys, then rewrite it in plain English for homeowners. We do not sell roofing work. Cost figures are national estimates and are re-checked at least once a year.