Short answer: First identify where the roof meets the wall. If the wall runs alongside the sloping edge, it is a sidewall condition; asphalt-shingle roofs commonly use step flashing woven into the shingle courses. If the roof ends against the wall at its high edge, it is a headwall (or front-wall) condition, and the detail is different. In either case, the flashing must work with both the roof covering and the wall's water-drainage layer. Caulk alone is not a flashing system.
Safety and scope: This is a planning and inspection guide, not a universal installation drawing. Replacing roof-to-wall flashing often means disturbing shingles or panels and wall cladding. If the joint is hard to reach, the layers are unclear, the roof is leaking, or the repair requires removing cladding or roofing, have a qualified roofer inspect and specify the repair.
Sidewall or headwall? Identify the joint first
The phrase “roof-to-wall flashing” is a useful search term, but it does not identify one standard part. Look at the direction water travels down the roof and how that roof edge meets the wall:
- Sidewall: The wall follows the roof slope along one side. On many asphalt-shingle roofs, step flashing pieces are installed course by course with the shingles. The wall's drainage plane must be connected to the flashing so water can exit onto the roof.
- Headwall or front wall: The upper edge of the roof runs into a wall across the slope. That is not the same as sidewall step flashing. The 2024 IRC's asphalt-shingle provision for flashing against a vertical front wall points to the shingle manufacturer's instructions.
- Metal panels or other roof coverings: Use the exact roof-system manufacturer's sidewall or endwall detail. Do not transfer a shingle step-flashing sequence or dimensions to a metal-panel roof.
The 2024 International Residential Code (IRC) places flashing at roof-wall intersections and calls for water to be diverted away where a sloped roof's eave meets a vertical sidewall. It is a model code, not automatically the code adopted where your shed is built. Local editions, amendments, permits, and the roof system all matter.
Understand the water path before measuring
A roof-to-wall junction has at least two drainage paths to connect: water that runs down the roof covering and water that gets behind the wall cladding onto the wall's water-resistive barrier (WRB), housewrap, or other drainage plane. In a typical shingled sidewall, step flashing is interwoven with the shingles, while its upturned leg connects to the wall drainage layer. That is why simply fastening an L-shaped strip on top of the finished joint—or covering a gap with sealant—may leave water trapped behind the assembly.
Building Science Corporation describes step flashing as a transition between the wall's vertical drainage plane and the roof's drainage plane. It also identifies a kick-out flashing at the lower end of the sidewall run as a way to move concentrated roof runoff away from the wall. The correct bottom termination depends on where the roof drains, how the shed is guttered, and the wall assembly.
Watch the low end of the sidewall. At the eave, roof runoff can be concentrated against the wall or gutter if the run ends poorly. Check whether a diverter or kick-out is required by the geometry and applicable instructions, and verify where the water will discharge. Do not assume a caulk bead at the end will redirect it.
Dimensions and details to confirm for your shed
Before buying or bending metal, collect the product-specific values below. The measured roof-to-wall run and the flashing cross-section are different things; label them separately. Take photos from a safe location and record the roof and wall product names so a roofer or supplier can check the same assembly.
| What to document | Why it matters | Where to confirm it |
|---|---|---|
| Intersection type and run length Sidewall or headwall; measure along the actual roof edge, not the ground projection. |
Determines which flashing family and end details apply. | Roof geometry, roof-system manual, and a roofer if the junction is unclear. |
| Roof-side and wall-side leg dimensions Record the intended measuring reference and finished profile. |
Legs must fit the roof covering and connect to the wall drainage layer. More than one layer may cover or receive a leg. | Locally adopted code and the exact roofing and wall manufacturer's instructions. |
| Step-piece length and overlap For a shingled sidewall, record shingle exposure and the specified relation between flashing pieces and courses. |
Piece layout and overlap must work with the shingle pattern; a continuous length is not automatically interchangeable with step flashing. | Shingle maker's installation manual and local code provisions for that roof. |
| Wall-layer tie-in and cladding clearance Identify siding, masonry, stucco, panel cladding, WRB, and any counterflashing. |
Water that gets behind cladding must still drain over the flashing to the outside. Masonry and stucco need assembly-specific details. | Wall-system instructions; involve a roofer or building professional if the layer order is hidden. |
| Bottom termination, joints, and fasteners Note the eave, gutter, corners, seams, flashing material, and attachment locations. |
The water path must continue to a safe discharge point; exposed joints, incompatible metals, or misplaced fasteners can create a leak path. | Roof and trim manufacturer details, local requirements, and the fabricator's drawing if custom metal is involved. |
How to plan the repair without guessing
-
Identify the roof covering and the wall assembly.
Look for shingle or panel labels, leftover materials, manuals, invoices, and siding information. Note the roof pitch if known, the wall cladding, visible trim, gutter location, and whether the joint is a sidewall or headwall. Do not remove sound roofing or siding just to read a hidden layer.
-
Check for signs that the repair is larger than flashing.
From a safe position, look for lifted or missing shingles, loose panel trim, staining, soft or swollen siding, rotted wood, or dampness inside the shed. If water has reached wood framing, insulation, or sheathing, ask a qualified roofer to find and repair the source before new metal covers it.
-
Make a labeled sketch and record the dimensions in the table.
Separate the run along the roof from the profile's legs and bends. Add photos of both ends, the low-end discharge, the wall cladding, and any visible seams. Never use the old bent or corroded flashing as the only template; it may not show the original shape or correct overlap.
-
Compare the detail with the exact product instructions and local code.
For asphalt shingles, the code section and shingle-maker details are not interchangeable with metal-panel directions. For anchored masonry veneer, adhered veneer, stucco, or concealed cladding layers, ask a qualified professional to verify how the roof flashing integrates with the wall's water-control layer.
-
Decide who should open the roof or wall.
If the correct detail requires lifting shingles, removing panels, cutting cladding, or exposing the wall WRB, this is no longer just a surface measurement. Use a roofer who can restore the roof and wall layers in the correct sequence. A custom-bent part cannot fix damaged sheathing or a failed water-control layer.
-
Get a written part and installation detail before ordering custom metal.
Ask the roof-system supplier, roofer, or fabricator to confirm the flashing type, cross-section, material, piece lengths, joints, attachment method, and how the wall drainage layer will lap. Keep that written detail with your sketch and photos.
Why one set of dimensions does not fit every roof
The 2024 IRC is a model code whose local adoption must be checked. In its asphalt-shingle sidewall section, R905.2.8.3 allows continuous or step base flashing and specifies minimum height and width of 4 inches; it also says the vertical leg is continuous under siding. That scoped code text is not a universal custom-flashing specification for every roof covering, wall cladding, climate, or jurisdiction.
Manufacturer instructions can add conditions. For example, GAF's technical bulletin for its asphalt-shingle systems describes 5-inch-by-5-inch step flashing as its standard and permits a 4-inch-by-4-inch alternative only with a specified 36-inch-wide leak barrier at the roof-to-wall transition. This example applies to the GAF detail described in that bulletin—not to every asphalt shingle, metal panel, or shed. Use the current instructions for the actual products and ask the local building department which code edition and amendments apply.
The IRC separately addresses flashing at a vertical front wall against asphalt shingles by directing the installer to the shingle manufacturer's instructions. That is another reason to identify a headwall rather than reuse sidewall measurements.
When to stop and call a roofer
- You cannot reach the area without climbing onto a steep, wet, icy, windy, fragile, or otherwise uncertain roof.
- The repair would require removing shingles, metal panels, siding, stucco, or masonry to expose hidden flashing layers.
- The shed leaks, has soft wood, has visible rot, or has damage that could extend into sheathing or framing.
- The roof uses a proprietary metal-panel system, or the wall has masonry veneer, stucco, or a hidden drainage plane you cannot identify.
- You cannot verify the roof manufacturer's flashing detail, the wall-layer sequence, or the locally adopted code requirements.
OSHA's ladder guidance is written for construction work and is not a homeowner-specific fall-risk assessment. If you are not certain you can access and measure the joint safely, do not go onto the roof to collect dimensions. Have a roofer inspect it and provide the profile measurements.
Where Trimgy can help—and where it cannot
After a roofer, roof-system supplier, or fabricator confirms the required cross-section, Trimgy can help a signed-in user draw and price a custom sheet-metal trim profile. The drawing grid is in inches and snaps in quarter-inch increments. Use the confirmed dimensions and profile—not a guess based on the visible gap.
Trimgy does not identify whether a shed needs sidewall step flashing or a headwall detail, choose a roof-compatible flashing, design the wall-layer sequence, or certify code compliance or leak performance. In particular, do not use its profile drawing as a substitute for a step-by-step shingle assembly if the shingle maker specifies individual step-flashing pieces.
The online trim-price estimate is based on the drawn profile and selected order inputs; it excludes shipping and tax. Review the separate order flow for applicable shipping, tax, and the full total before payment. Save and order actions require signing in, and the order interface has its own material, edge, and footage requirements.
Good next step: Ask the roofer or supplier for a confirmed, labeled cross-section first. If they approve a custom profile, bring that drawing to Trimgy's drawing workspace (sign-in required). For a separate shed-edge project, see how to measure and order custom drip edge; drip edge is not a substitute for roof-to-wall flashing.
Related guide
This article covers the wall-to-roof joint. If your project also needs eave or rake trim, the separate shed drip-edge measurement guide explains how to record roof-edge runs and a trim cross-section without confusing those measurements with the roof-to-wall detail.
Sources and scope
- International Code Council, 2024 IRC, Section R903.2.1, Flashing locations. Model-code text on roof-wall intersections, metal flashing material, and diverting water at a sloped roof's eave-sidewall junction; verify local adoption and amendments.
- International Code Council, 2024 IRC, Section R905.2.8.3, Sidewall flashing. Asphalt-shingle sidewall provision covering continuous or step base flashing, scoped minimum dimensions, and continuity under siding.
- International Code Council, 2024 IRC, Section R905.2.8.4, Other flashing. The asphalt-shingle provision for flashing at a vertical front wall points to the shingle manufacturer's instructions.
- Building Science Corporation, Info-303: Common Flashing Details. Explains step flashing as a connection between wall and roof drainage planes, and describes the role of kick-out flashing; this is building-science guidance, not a project-specific installation detail.
- GAF Technical Advisory Bulletin R-173, The Use of 4" x 4" Step Flashing. Product-specific example of GAF step-flashing dimensions and an alternate detail condition; do not generalize it to other roof systems.
- OSHA Construction eTool: Ladder Safety. Worker guidance on portable ladders; it is not a substitute for a homeowner's safe-access plan or professional fall-protection advice.
Frequently Asked Questions
What is roof-to-wall flashing on a shed?
It is the flashing assembly where a sloped shed roof meets a vertical wall. When the wall runs alongside the roof slope, the condition is called a sidewall; where the roof ends against a wall at its high edge, it is a headwall or front-wall condition. The flashing must work with the roof covering and wall drainage layers to direct water out.
Is step flashing the same as sidewall flashing?
Not exactly. Sidewall describes the roof-to-wall location. For many asphalt-shingle sidewalls, individual step-flashing pieces are interwoven with the shingle courses. Other roof coverings use their own sidewall details, and a roof that ends at a wall uses a different headwall detail.
What dimensions should I check before ordering shed roof flashing?
Record the sidewall run, roof pitch and covering, the required roof-side and wall-side flashing legs, piece length and overlap, siding or cladding clearance, wall drainage-layer tie-in, and the low-end termination or diverter. Get each required value from the exact roof and wall system instructions, local code, or a qualified roofer; there is no single set of dimensions for every assembly.
Can I seal the roof-to-wall gap with caulk?
Caulk alone is not a replacement for flashing. A durable detail directs water over the roof and out of the wall drainage layer; sealant can age or separate and should only be used where the roof or wall manufacturer specifies it as part of the system.
Can Trimgy tell me which flashing detail my shed needs?
No. Trimgy can help draw and estimate a custom sheet-metal cross-section after a roofer, roof-system supplier, or fabricator confirms the required profile. It does not identify the roof-to-wall detail, create an installation sequence or cut list, or verify code compliance or compatibility.
When should I hire a roofer for a shed flashing repair?
Hire a qualified roofer if reaching the joint is unsafe, the roof or wall layers must be removed, the roof is leaking or the framing is damaged, the wall is masonry or stucco, the roof uses a proprietary metal-panel system, or you cannot confirm how the flashing joins the wall drainage layer. Do not walk on a wet, icy, or uncertain roof to measure it.