By The Roofing Brief Team | Last reviewed: November 2026
Metal roof trim pieces are the formed steel shapes that close every edge and joint of a panel roof: eave trim (drip edge), rake or gable trim, ridge cap, hip cap, valley, sidewall and endwall flashing, transition and peak trim, plus foam closures and Z or J channels. A plain 30 x 40 ft gable roof needs only three of them (eave, rake, ridge), about 23 pieces of 10 ft 6 in stock, because Fabral’s 5 Rib guide sells trim “in 10’6″ sections only” and tells installers to “allow 6″ of overlap on all trims,” which leaves 10 ft of net coverage per piece.
Wall trim differs from roof trim; the base trim and closure details for walls are in can you use metal roofing as siding.
Everything below is compiled from maker documents: the Union MasterRib installation manual, the Fabral 5 Rib ordering and installation guide, the Metal Sales Panel Flashing Guide, the Tri-State Metal Roofing Supply standard trim chart and McElroy Metal’s trim details page. Piece names drift between makers, so the table lists the common aliases. For the panels, fasteners and underlayment that sit around the trim, see every metal roof component named.
Metal roof trim names: every piece and where it goes
The fastening column comes from the Union MasterRib manual, which gives a screw spacing for each trim detail on a 2.5 in rib exposed-fastener panel. Other panel makers publish their own spacing, so follow the manual for the panel you buy.

| Trim piece | Also called | Where it goes | What it does | Fastening (Union MasterRib manual) |
|---|---|---|---|---|
| Eave trim | Drip edge, eave drip, eave flashing | Bottom edge of each slope, under the panels | Kicks runoff off the fascia; panels overhang it at least 1 in | Pancake screws 12 in apart; butt ends; butyl tape 1 in up from the face |
| Rake trim | Gable trim, gable rake, rake and corner | Sloped side edges of a gable | Caps the cut panel edge and blocks wind lift at the gable | Wood screws 12 in apart; ends overlap 4 in |
| Ridge cap | Ridge roll, ridge/hip cover, universal ridge | Peak where two slopes meet | Covers the ridge gap; vented versions pass attic air through a vent closure | Wood screws 18 in apart through the rib, over outside closures |
| Hip cap | Hip trim | Sloped outside corner where two slopes meet | Covers the hip seam over self-sealing closures | Wood screws 18 in apart through the rib |
| Valley | Preformed valley, W-valley, valley pan | Inside corner where two slopes meet | Carries the heaviest water on the roof; panels stop 3 in short of the center diverter | Pancake screws 12 in apart; ends overlap 4 in |
| Sidewall flashing | Side wall trim, side ridge | Where a slope runs parallel to a wall | Turns up the wall and lies over the last panel rib | Wood screws 24 in apart; ends overlap 4 in; counterflashing above |
| Endwall flashing | Headwall, end wall trim | Where the top of a slope dies into a wall | Turns up the wall and over the panel ends | Wood screws 18 in apart through the rib; ends overlap 4 in |
| Transition trim | Pitch break, pitch change, slope transition | Where a steep slope meets a shallower one (porch tie-in) | Bridges the two pitches over inside and outside closures | Pancake screws 12 in apart, plus wood screws 18 in apart through the rib |
| Peak trim | High side peak, high side ridge, high side eave | Top edge of a single-slope (lean-to) roof | Caps a shed roof where there is no opposite slope | Wood screws 24 in apart |
| Gambrel trim | Gambrel flashing | The outward break on a barn-style gambrel roof | Same job as transition trim, bent the other way | Fabral estimates 3 screws per ft |
| Inside closure | Eave closure, foam closure | Under the panel at the eave and below transitions | Fills the rib voids against insects, birds and wind-driven rain | Panel wood screw on each side of the major ribs |
| Outside closure | Ridge closure, top closure | On top of the panel under ridge, endwall and transition trim | Seals the ribs under the cap | Held by the trim screws through the rib |
| Z-closure / Z-flashing | Z-bar, Z-trim | On standing-seam panels at ridge, transition and endwall | Gives the cap trim something to fasten to without piercing the panel flat | Fastened through the seam per the standing-seam maker |
| J-channel | J-trim, J-mold | Panel ends at walls, soffits, doors and windows | Receives and hides a cut panel edge | Per the siding or soffit maker |
Two pieces get mixed up the most. Rake trim covers the roof edge; corner trim covers the wall corner, and Tri-State and Buchheit’s both sell a combined “rake and corner” shape for post-frame buildings. On houses, the details for a gable are on our page on metal roof rake trim, and vented versus solid caps are covered in the metal roof ridge cap guide. Inside and outside closure profiles are compared in our guide to foam closure strips for metal roofing.
Metal roofing trim details: sizes from three maker charts
The flange sizes below are the face dimensions printed on each maker’s chart. They are standard shapes; all three makers also bend custom trim. Lengths differ too: Tri-State says “All Trim Comes in 10′ Lengths,” Fabral’s 5 Rib guide says 10 ft 6 in only, and McElroy says most makers run trim from 10 ft 3 in to 20 ft 3 in, with its own plants producing up to 20 ft 3 in.
| Piece | Tri-State standard chart | Metal Sales Panel Flashing Guide | Source note |
|---|---|---|---|
| Eave / drip edge | 3 in on deck, 2-1/2 in face, 1/2 in kick | Eave 4 x 3 in; Extended Eave also listed | Tri-State #7; Metal Sales Residential Trims |
| Rake / gable | 2-1/2 in top, 3-3/8 in face (standing-seam rake: 3 x 4 in) | Rake 4 x 5 in; Rakewall 3.5 x 4 in | Tri-State #2A and 2B |
| Ridge cap | Single-break cap 7 in each side | 11 in and 13 in Ridge/Hip; Vented Ridge Cover | Tri-State #1B; Metal Sales lists 26 and 24 ga |
| Valley | 9 in each side plus two 1 in center ribs | 20 in Valley | Tri-State #6 |
| Sidewall | 3 in and 3 in legs | Sidewall 4 x 6 in | Tri-State #4A |
| Endwall | 4 in up the wall, 8 in on the roof | Endwall 4 x 6 in | Tri-State #5 |
| Transition | 4 in and 8 in legs | Pitch Break 4 x 6 in | Tri-State #9 |
| Peak (lean-to) | 4 in and 3-3/8 in legs | Peak 6 x 5 in | Tri-State Peak Flashing |
Rib height decides which base and closure trims fit. McElroy notes that a base trim with a 1 in seat is built for panels with major ribs of 3/4 in or less, while a 1-3/4 in seat fits ribs up to 1-1/4 in. That is the practical reason every maker in this table tells buyers to order trim from the same company as the panels.
What trim do you need for a metal roof? A decision table
| If your roof has… | Then order… | Why (source) |
|---|---|---|
| Eaves (every roof) | Eave trim plus inside closures | Union details eave trim under every panel run; Fabral estimates 0.33 inside closures per ft of eave |
| Gable ends | Rake trim on all four rake edges | Union: rake trim protects against uplift; Fabral estimate: gable ft x 2 screws per ft |
| Two slopes meeting at a peak | Ridge cap plus outside closures, or a vented closure for a vented ridge | Fabral: 0.67 outside closures per ft of non-vented ridge |
| A single slope (shed, lean-to) | Peak (high side) trim instead of ridge cap | Union “High Side Peak” detail |
| Hips | Hip cap over self-sealing closure strip | Union hip detail; Fabral: 1 x 1 x 19.68 ft sealer strip, (hip + valley ft) divided by 9.8 |
| Valleys | Preformed valley | Union: valley ends overlap 4 in; panels stop 3 in from the diverter |
| A wall running along a slope | Sidewall flashing plus counterflashing | Union sidewall detail |
| A wall at the top of a slope | Endwall flashing over outside closures | Union endwall detail |
| A porch or addition at a lower pitch | Transition trim; gambrel trim if the break bends outward | Southeastern Metals: angle = 180 minus (A minus B) |
| Standing-seam panels | Z-closures at ridge, endwall and transition, plus cleats for concealed trim | McElroy: architectural trim uses cleats and zee flashing, standard 24 ga |
| A pitch under 3:12 with lapped exposed-fastener panels | Sealant in the side laps, or a different panel | 2021 IRC R905.10.2: 3:12 minimum without lap sealant, 1/2:12 with it |
If you are still choosing between profiles, our standing seam vs exposed fastener comparison covers the panel side of that choice. Shed and lean-to roofs, which use peak trim instead of a ridge cap, are covered in our guide to a metal roof on a lean-to.
Bend angles change with roof pitch
A ridge cap, valley or eave flashing is bent to match the slope, which is why Metal Sales tells buyers to “specify roof slope/pitch/angle” when ordering Eave, Extended Eave, Ridge, Peak, Valley, Pitch Break and Endwall trim. The Southeastern Metals corrugated installation guide (a Gibraltar Building Products brand) prints the bend for each pitch in its Flashing Angle Specifier Chart:
| Roof pitch | Ridge cap | Hip cap | Preformed valley | High side ridge | Eave flashing / drip |
|---|---|---|---|---|---|
| 3:12 | 152° | 160° | 152° | 76° | 104° |
| 4:12 | 143° | 154° | 144° | 71° | 108° |
| 6:12 | 127° | 143° | 128° | 63° | 116° |
| 8:12 | 113° | 133° | 114° | 56° | 123° |
| 10:12 | 100° | 126° | 104° | 50° | 128° |
| 12:12 | 90° | 120° | 90° | 45° | 135° |
The chart’s stock bends are 135° for ridge cap, 148° for hip cap and 136° for valley, which match roughly a 5:12 roof. On a 10:12 roof a stock 135° ridge cap sits 35° too open, leaving a gap that widens toward the outer edge of each leg, so the closures cannot seat. For transition and gambrel trim the same guide gives a formula: 180° minus (A minus B), where A and B are the angles of the two roof planes.
Worked takeoff: trim for a 30 x 40 gable roof
Inputs: a 30 x 40 ft footprint, 6:12 pitch, 1 ft overhang at the eaves and the gables, exposed-fastener panels, no hips, valleys or walls. The quantity rules are Fabral’s 5 Rib estimating formulas, which assume 10 ft 6 in trim with a 6 in lap. Round up per run, not per roof, because an offcut from one rake rarely fits another.

- Measure each eave: 40 ft plus two 1 ft gable overhangs = 42 ft per side, 84 ft total.
- Measure each rake: the horizontal run is 15 ft plus the 1 ft overhang = 16 ft; a 6:12 slope multiplies run by 1.118, so each rake is 17.89 ft, and four rakes total 71.55 ft.
- Measure the ridge: 42 ft, matching the eave.
- Divide each run by 10 ft of net coverage and round up: eave 4.2 to 5 pieces per side, rake 1.79 to 2 pieces each, ridge 4.2 to 5 pieces.
- Apply Fabral’s accessory multipliers to the same footage: 1 in screws, closures and butyl tape, as in the table below.
- Specify 127° ridge cap and 116° eave trim for 6:12, per the angle chart above.
| Item | Footage | Rule (Fabral 5 Rib guide) | Order |
|---|---|---|---|
| Eave trim, 10 ft 6 in | 2 x 42 ft | ft per run divided by 10, round up | 10 pieces |
| Rake trim, 10 ft 6 in | 4 x 17.89 ft | ft per run divided by 10, round up | 8 pieces |
| Ridge cap, 10 ft 6 in | 42 ft | ft divided by 10, round up | 5 pieces |
| 1 in trim screws | 84 ft eave, 71.55 ft gable | eave x 1 per ft + gable x 2 per ft = 227.1 | 228 |
| 1-1/2 in trim screws | 42 ft ridge | ridge x 2.67 per ft = 112.1 | 113 |
| Inside closures | 84 ft eave | x 0.33 per ft = 27.7 | 28 |
| Outside closures | 42 ft ridge | x 0.67 per ft = 28.1 | 29 |
| Butyl tape, 1/4 x 3/16 in x 40 ft rolls | eave x 2.1 + ridge x 4.2 + gable x 1 = 424.4 ft | divide by 40 ft per roll = 10.6 | 11 rolls |
The total is 23 trim pieces. Adding a 12 ft valley would add 2 valley pieces, 36 one-inch screws (3 per ft), 56 ft of butyl tape (4.67 ft per ft) and part of a 19.68 ft sealer strip under the same formulas. Panel counts are a separate calculation, covered in our metal roofing calculator.
Metal roof trim prices per piece, as listed November 2026
Trim is usually quoted per piece, not per foot. The listings below are from Buchheit’s online store, a Missouri and Illinois farm and home retailer that publishes SKUs and prices for stock post-frame trim. Prices were checked on November 21, 2026 and can change by store and date.
| Piece (as listed) | Length | SKU | Price per piece | Price per ft |
|---|---|---|---|---|
| Ridge Cap Galvalume | 10 ft 6 in | 428200 | $21.99 | $2.09 |
| Valley Flashing Galvalume | 10 ft 6 in | 428140 | $51.99 | $4.95 |
| Rake & Corner Galvalume | 10 ft 1 in | 427900 | $21.99 | $2.18 |
| Endwall Trim Galvalume | 10 ft 1 in | 428320 | $21.99 | $2.18 |
| Eave Trim Alamo White | 10 ft 1 in | 429900 | $10.99 | $1.09 |
| House Rake Galvalume | 16 ft 1 in | 440470 | $39.99 | $2.49 |
At those listings, the 30 x 40 takeoff costs about $396 in trim before screws, closures, tape and tax: 10 eave pieces at $10.99 ($109.90), 8 rake pieces at $21.99 ($175.92) and 5 ridge caps at $21.99 ($109.95). The 10 ft 1 in eave and rake stock nets 9 ft 7 in after a 6 in lap, which still rounds to the same piece counts on this roof. Painted colors and 26 gauge trim may price differently from galvalume. Panel prices for the same stock length are in our 10 ft metal roofing price breakdown. For whole-roof budgets, the 2026 roofing cost report is the site baseline.
Gauge, length and the IRC flashing minimum
McElroy’s house standards are 29 gauge for post-frame trim, 26 gauge for residential and commercial trim (“to help reduce oil canning”) and 24 gauge for concealed-fastener architectural trim. McElroy also says it inventories 37,000 psi steel for its 29 gauge trims, rather than the 80,000 psi coil used for its 29 gauge panels, because high-strength steel “can microfracture at tight bends and hems.” Panel-side gauge tradeoffs are in our 26 vs 29 gauge metal roofing comparison.
The code side is short. 2021 IRC R903.2.1 requires flashing “at wall and roof intersections, wherever there is a change in roof slope or direction and around roof openings,” and says that where flashing is metal it “shall be corrosion resistant with a thickness of not less than 0.019 inch (0.5 mm) (No. 26 galvanized sheet).” The IRC’s 2 in drip-edge overlap and 12 in fastener rule, R905.2.8.5, sits in the asphalt-shingle section, so for metal panels the maker’s manual sets the eave details. Before ordering 29 gauge sidewall, endwall, valley or transition pieces, ask the supplier for the base-metal thickness and ask the local building department whether it treats those pieces as R903.2.1 flashing.
Frequently asked questions
What is the trim on a metal roof called?
The edge pieces are eave trim (also called drip edge) along the bottom, rake or gable trim along the sloped sides, and ridge cap along the peak. Joints get hip cap, valley, sidewall flashing, endwall flashing and transition trim. Foam closures fill the panel ribs under the eave and ridge trim.
How do you finish the edges of a metal roof?
Install eave trim before the panels and let the panels overhang it at least 1 in, then fasten rake trim over the panel edge at the gables with screws 12 in apart and 4 in end overlaps, as the Union MasterRib manual details. Inside closures and butyl tape seal the rib voids at the eave.
What trim is needed for a metal roof?
A simple gable roof needs eave trim, rake trim and ridge cap, plus inside and outside closures. Each hip, valley, wall, pitch change or shed-roof peak adds its own piece: hip cap, preformed valley, sidewall or endwall flashing, transition trim or peak trim.
How many pieces of trim do I need?
Divide each run’s length in feet by 10 and round up per run, which is Fabral’s rule for 10 ft 6 in trim with a 6 in overlap. A 30 x 40 ft gable roof at 6:12 with 1 ft overhangs works out to 10 eave pieces, 8 rake pieces and 5 ridge caps.