Code Minimum vs. Best Practice: Why "Up to Code" Isn't the Same as "Built Well"
A home can meet every building code minimum and still let rainwater run right down the top of your windows. That is not a contradiction. Building code is a floor, not a finish line, and the space between the two is where a lot of avoidable water damage gets its start.
When our inspector flags something like a missing head flashing over a window, we are not writing you a code violation. We are pointing out the gap between what a builder is required to do and what actually protects your home best. That gap is one of the most useful things a homeowner or buyer can understand, so let's break it down using a small, inexpensive piece of metal that provides protection but isn't always required.
Building code sets the minimum legal standard a home must meet to be built and occupied. Best practice goes further, using proven methods that add durability and protection beyond that minimum. Window head flashing (also called Z-flashing, cap flashing, or a drip cap) is a good example. Code requires water to be managed at the head of every window, and a single flanged window can meet that requirement with properly integrated flashing tape. In the field, builders often add a visible metal drip cap over wider double or mulled windows but skip it over single windows. Best practice is to install head flashing over every window, because it is inexpensive, adds little labor, and gives water an extra path off and away from the wall. Home inspectors do not enforce code. The local Authority Having Jurisdiction (AHJ) does. Inspectors report conditions and best-practice gaps so you can decide what to address.
What is the difference between code minimum and best practice?
Building code is the minimum legal standard. It is the bar a home has to clear to be legally built and occupied. Codes are written by model organizations (most residential construction here traces back to the International Residential Code, or IRC), then adopted and enforced locally. Two things about code are worth remembering. First, it is a minimum, not a target. Second, it changes over time and is not adopted the same way everywhere, so a 40-year-old home was built to the code of its era, not today's.
Best practice is how good builders and inspectors think about durability. It uses methods that have been proven to hold up, even when the minimum would technically pass. Meeting code means a home is legal to build. Best practice is aimed at keeping that home dry, safe, and sound for decades.
Think of it like a test. Code is the minimum passing score. Best practice is doing the work right. Both get you a passing grade, but only one of them tends to keep problems from showing up a few years down the road.
None of this means code is bad or that a code-built home is a problem. Code is a solid baseline, and we are glad it exists. The point is simply that "it passed" and "it was built to last without issues" are not always the same sentence.
Are home inspectors code inspectors?
No. A home inspection follows the InterNACHI Standards of Practice. It is a visual, non-invasive examination that looks for defects, safety issues, and conditions that could lead to problems. It is not a code-compliance inspection, and it is not meant to be one.
Code enforcement belongs to the Authority Having Jurisdiction (AHJ), which is your local building or permitting department. The AHJ reviews plans, pulls permits, and sends its own inspectors during construction to confirm the work meets the adopted code. That is a different job than ours, done at a different time, by a different office.
So where do we fit? We inspect to safety and best practice. When we find something that falls short of best practice, like a missing head flashing over a window, we document it, explain why it matters, and give you options. We are not handing you a citation. We are handing you information for your decision.
Here is why that is actually good news for you. Inspecting to best practice catches things that code minimum allows. If we only checked the legal minimum, we would walk right past details that can still let water in. Our goal is to protect your home and your wallet, not to grade a builder's paperwork.
What is window head flashing (Z-flashing, cap flashing, or a drip cap)?
Head flashing is a small piece of bent flashing, usually metal, installed over the top of a window or the trim above it. Its whole purpose is to catch water running down the wall and shed it out and down, away from the top of the window and the wall behind it.
The shape is what makes it work. The flashing bends into a "Z" or "L" profile so that the top leg tucks up behind the housewrap and siding above, while the bottom leg laps out over the window or trim below. Water always travels over the top of the next layer down, the same shingle-fashion logic that keeps a roof dry. Done right, water never gets a chance to sit on a flat edge or wick in behind.

Why is the top of a window such a weak spot? Because water runs down a wall, and when it reaches the horizontal top edge of a window or a trim board, it wants to stop, pool, and find a way behind. Head flashing gives that water somewhere to go.
Keep in mind, water always follows the path of least resistance. Properly installed flashing provides that path.
What does building code actually require for window flashing?
More than most people assume. Under the IRC (Section R703.4), corrosion-resistant flashing is required at the head and sides of every exterior window and door opening, integrated with the water-resistive barrier so water drains back to the outside. The same section also calls for flashing continuously above all projecting wood trim. In other words, code already expects water to be managed at the top of every window.
Here is the nuance that explains everything that follows. The "flashing" at a window head does not have to be a metal cap. A flexible flashing or flashing tape applied over the head flange, then lapped under the housewrap and tied into the water-resistive barrier, is an accepted method. Windows are generally required to be installed and flashed according to the manufacturer's instructions, and those instructions usually spell out this tape approach.
So a single window with a nailing flange can be properly flashed at the head with tape alone, integrated behind the siding, and satisfy the requirement without a visible metal drip cap.
In Missouri reality, codes are adopted and enforced locally, and not every jurisdiction is on the same edition of the IRC. Treat the details above as the widely used national standard for how window flashing should be handled, not a promise about exactly what your specific town required on the day your home was built. The AHJ determines that, and codes are always changing and AHJ's adopt different versions at different points in time.
So why do "double" windows get flashing and singles often don't?
This is where the code minimum versus best practice idea overlaps. The pattern of "doubles get a metal drip cap, singles don't" is a common builder practice, not a code rule.
There is a real reason double units reliably get a metal head flashing. When two windows are joined together (called a mulled or combination unit), the nailing flange is interrupted at the mullion joint where the two windows meet. That seam creates a channel for water to enter the building envelope, and a rigid metal head flashing is a common, appropriate way to protect it.
A single window has a continuous flange with no such seam. That is why builders often rely on the flange plus head flashing tape and skip the visible metal cap, which saves a little material and a little labor. On a single window, that can meet code minimum.
The result is the pattern we see in the field all the time: metal drip caps over doubles, mulled units, and doors, and tape only (or sometimes just a bead of caulk at the header trim) over single windows.
Why we recommend head flashing over every window
Because it is cheap protection against the most expensive enemy your home has: water.
The metal head flashing itself costs very little, and installing it adds only a small amount of labor. In exchange, you get a guaranteed, visible path for water to shed off the top of the window and away from the wall, sitting on top of whatever tape is hidden behind the siding. That is belt and suspenders, and when it comes to keeping water out, we will take belt and suspenders every time.
A few reasons this matters more than it might sound:
Water is the number one thing we tell homeowners to manage. Across our reports, anything that lets water into the structure, or fails to move water away from it, gets our highest urgency. A window head is exactly the kind of spot where water tries to get in.
Missouri weather is hard on walls. Those big, wind-driven spring and summer rains push water sideways against the house, not just straight down. An extra layer over the window head earns its keep here.
Caulk is not a long-term plan. When a header joint is only sealed with a bead of caulk, that caulk will crack and shrink over the years. A properly installed metal head flashing keeps working long after caulk would have failed.
So even when a single window meets code minimum with tape alone, we still recommend adding the head flashing. Small cost today, real protection for years.
Something to be aware of is that, some building materials like James Hardy siding, requires metal head or z flashing as part of the installation over every window or door. Depending on the siding installation instructions, you may be required.
A real example from a pre-drywall inspection
On a new-construction pre-drywall inspection, we get to see the flashing before the drywall and siding cover everything up. On this home, the builder had installed a metal head flashing over the wider double window. On the single window right next to it, there was none.


Neither of these is necessarily a code violation. That is the whole point. It is a clear picture of code minimum and best practice sitting a few feet apart on the same wall.
It also shows exactly why a pre-drywall inspection is so valuable on new construction. Once the drywall goes up on the inside and the siding goes on outside, you can no longer see how any of this was flashed. A pre-drywall inspection is your one chance to look behind the walls while they are still open.
And if you want to see what happens when head flashing is missing and water gets in and stays in, we documented a case where missing Z-flashing over a garage door led to wood rot in the framing above the opening. Read that here: https://www.techinspecthome.com/post/z-flashing-water-damage-case-study
REPORT LANGUAGE — real example from a Tech Inspect report (garage door head, verbatim): Finding: Z-flashing is missing at the header of the garage door openings. This omission has allowed water to penetrate the exterior trim and reach the structural framing. Implication: Z-flashing is a critical drip edge that directs water away from the horizontal gaps in the siding and trim. Without it, water remains trapped against the wood. The rot identified in the truss chord can compromise the structural integrity of the garage door opening over time if left unaddressed. Recommendation: A licensed contractor should remove the exterior trim to determine the full extent of the rot within the truss system. All decayed wood must be replaced, and proper Z-flashing must be installed above the door trim to prevent future water intrusion.
In Summary
Code minimum is the legal floor. Best practice is how you keep water out and keep your home sound for the long run. A home inspection is not a code inspection, and the AHJ is the office that enforces code. What we do is report the gap between the minimum and best practice, so you can make an informed call about what to fix, what to ask about, and what to plan for.
Window head flashing is a tiny, inexpensive detail, but it captures the whole idea. Meeting code and being built well are not always the same thing, and knowing the difference puts you in a much stronger position, whether you are buying, selling, or just taking care of the home you are in.
See how we document it
The clearest way to understand how we report on a home is to open a real report. We have published three full sample reports you can click through just like a client would, including a new-construction pre-drywall inspection in St. Charles County where this kind of detail is visible before the walls close up.
When you are ready, see everything inside a Tech Inspect report or schedule your inspection. Same-week availability, weekend appointments, and a report delivered within 24 hours.
Selling instead of buying? A pre-listing inspection lets you find best-practice gaps like this on your own terms, before a buyer's inspector does.
Frequently asked questions
What is the difference between code minimum and best practice? Code minimum is the lowest legal standard a home must meet to be built and occupied, adopted and enforced locally. Best practice uses proven methods that go beyond the minimum to add durability and protection. A home can meet code and still fall short of best practice in places, which is why those spots are worth understanding.
Are home inspectors code inspectors? No. A home inspection follows the InterNACHI Standards of Practice and is a visual, non-invasive review for defects, safety issues, and conditions that could cause problems. It is not a code-compliance inspection. Code enforcement is the job of the local Authority Having Jurisdiction (AHJ), your building or permitting department.
What is Z-flashing, head flashing, or a drip cap on a window? They are different names for the same thing: a small bent piece of flashing, usually metal, installed over the top of a window or its trim to shed water out and away from the wall. It tucks up behind the housewrap and siding above and laps out over the window below, so water always travels over the top of the next layer down.
Does building code require head flashing over windows? Yes, in a sense. The IRC requires corrosion-resistant flashing at the head and sides of every exterior window and door opening, integrated with the water-resistive barrier, plus flashing continuously above projecting wood trim. That flashing does not have to be a metal cap. Flashing tape at the head flange, tied into the water-resistive barrier, is an accepted method, which is why single windows can meet code without a visible metal drip cap.
If a single window meets code without a metal drip cap, why add one? Because it is cheap, easy, and it adds a second, visible layer of water protection on top of whatever tape is hidden behind the siding. A metal head flashing keeps shedding water long after a bead of caulk would have cracked, and window heads are exactly where water tries to get in. We consider it best practice on every window.
Who enforces building code? The Authority Having Jurisdiction (AHJ), which is the local building or permitting department. The AHJ reviews plans, issues permits, and inspects work during construction to confirm it meets the adopted code. Home inspectors do not enforce code.
Does a missing window head flashing mean the house failed the inspection? No. Homes do not pass or fail a home inspection. We document conditions and best-practice gaps so you can decide what matters to you. A missing head flashing is worth addressing, but whether and when to fix it is your call, ideally with input from your agent and, for anything already showing water damage, a qualified contractor.
Should I get a pre-drywall inspection on new construction? It is worth considering. A pre-drywall inspection lets an inspector see the framing, flashing, and other details before drywall and siding cover them up. Window flashing is a perfect example: after the walls close in, you can no longer see how it was done.
Ready for an inspection that looks beyond the minimum?
We inspect to safety and best practice, not just the legal floor, and we document what we find with photos, video, and plain-English explanations. See three full sample reports, explore everything inside the report, or schedule your inspection.
Tech Inspect Home Services LLC · 3580 Highway T, Marthasville, MO 63357 · 636-201-6366 · sean@techinspecthome.com



