Editor’s note: This article originally appeared in Fine Homebuilding #221. It has been updated for publication on Green Building Advisor to reflect current building-code requirements.
Roof venting has been discussed so often that it is easy to get lost in the details. Still, one point is worth making up front: a vented attic, with insulation installed on an air-sealed attic floor, is one of the most underrated building assemblies in the history of building science. It is difficult to get wrong, and it works in hot, mixed, and cold climates alike. Done properly, it works in the Arctic, the Amazon, and everywhere in between.
In practice, though, this simple approach is often mishandled. When an attic or roof assembly is built poorly, the result can be high energy loss, ice dams, mold, rot, and plenty of frustration for the homeowner.
This article explains how to build a vented attic correctly. It also covers when it makes sense to move the thermal, moisture, and air-control layers to the roof plane, and how to detail both vented and unvented roofs the right way.
Theory behind venting
The purpose of roof ventilation depends on climate, but the basic idea is the same whether the entire attic is vented or only the roof deck is vented.
In cold climates, ventilation is mainly used to keep the roof cold enough to reduce ice dams caused by melting snow and to remove moisture that migrates from the conditioned living space into the attic. (See Martin Holladay’s Ice Dam Basics for more on ice dams.)
In hot climates, ventilation helps remove solar-heated air from the attic or roof, lowering cooling demand and easing the burden on air-conditioning systems. In mixed climates, it serves either purpose depending on the season.
Vent the attic
One major advantage of venting the attic is that the approach does not depend on roof complexity. Since the roof itself is not part of the thermal strategy, it makes little difference whether the house has hips, valleys, dormers, or gables. It is also usually easier and less expensive to place fiberglass or cellulose insulation on the attic floor than to achieve the same insulation level in the roof plane.
The method works only if the ceiling of the top floor is made completely airtight before insulation is installed. (See Ceiling Air-Sealing.) It is also important that the attic contain nothing but insulation and air—not storage boxes, holiday decorations, or anything else. Storage can be allowed only if an elevated platform is built above the insulation; otherwise, the insulation gets compressed or disturbed and loses performance. Attic hatches are also a common source of leakage. An attic entry can be built to be airtight, but the more often it is used, the leakier it tends to become.
So how do people get this straightforward approach wrong? They ignore the rules. They cut too many holes in the ceiling, install recessed lights that leak air, and place air handlers and ductwork in the attic. Those leaks are a major cause of ice dams in cold regions and humidity problems in warm regions. They are also an enormous waste of energy almost everywhere.
Do not assume ductwork in an unconditioned attic is acceptable just because the attic has been sealed and insulated. Duct sealing is imperfect work. Even when done carefully, a system with 20% leakage may only be brought down to about 5%, and that is still not ideal. The same caution applies to recessed lights and other ceiling penetrations: in theory, the builder should air-seal them all properly, but in reality there is no guarantee that will happen. That means some of the responsibility has to shift away from the builder, and alternative strategies need to be considered.
If mechanical equipment or ductwork must be located in the attic, or if the ceiling below has many penetrations, the better solution is to bring the entire attic inside the thermal envelope. That way, ceiling leaks and duct leaks are far less problematic.
Vent the roof deck
If the attic is intended to be conditioned space, whether for occupants or mechanical equipment, or if the design includes a vaulted ceiling, the International Residential Code calls for the roof deck above that space to be vented continuously from eave to ridge. This is simple in uncomplicated roof shapes, but it becomes difficult or impossible when hips, valleys, dormers, or skylights interrupt the rafter bays.
If you choose to vent the roof deck, do it fully. The code requires at least 1 in. of airspace between the top of the insulation and the back of the roof sheathing, but that is not enough for best performance. A 2-in.-deep ventilation channel is better. Unless you are filling rafter bays between 2x8 or 2x10 framing with closed-cell spray foam, you will likely need to fur out the rafters to make room for enough insulation while still leaving the required airspace. That can be inconvenient, but it avoids the problems caused by inadequate airflow beneath the roof. Proper ventilation can be verified with simple calculations.
Editor’s note: The IRC generally requires 1 sq. ft. of net free ventilating area (NFVA) for every 150 sq. ft. of vented space. The code permits this to be reduced to 1:300 when specific conditions are met, including locating 40% to 50% of the required ventilation high in the attic and the balance low. In Climate Zones 6 through 8, the 1:300 exception also requires a Class I or II vapor retarder on the warm-in-winter side of the ceiling.
Venting the attic or roof deck does have drawbacks beyond the loss of some insulation space. In cold climates, snow can enter soffit and ridge vents, melt, and create rot. In coastal areas or places with frequent wind and rain, moisture can be driven into the vents and into the roof assembly. In hurricane-prone regions, vented-soffit collapse can pressurize the building enough to blow out windows or even lift off the roof. In wildfire zones, embers can enter vents and ignite the roof. When those risks matter, another option is available.
Create an unvented roof
The IRC also permits unvented roof assemblies under provision R806.5. These work especially well on complex roofs that are difficult or impossible to vent properly, or where a vented design would make insulation difficult.
There is one important caveat: in areas with heavy snow loads, a vented over-roof is still needed to control ice damming. In effect, that creates a hybrid vented and unvented system. The aim of an unvented roof is to keep the roof deck, which is the main condensing surface in the assembly, warm enough throughout the year to avoid condensation. In most climates, that means insulating the roof sheathing to the proper level. Hot-dry climates such as Phoenix are a notable exception, because condensation is less of a concern there.
Condensation control is usually achieved by installing rigid foam above the roof deck or by applying air-impermeable spray foam directly to the underside of the roof deck. The code also allows air-permeable insulation such as fiberglass or cellulose below the roof deck, provided rigid foam is installed above the sheathing.
Flash-and-batt, or flash-fill, assemblies are also permitted. Any of these methods can prevent condensation effectively, as long as the rigid foam or spray foam is installed at the correct thickness.
If spray foam is used on the underside of the roof deck, the right product matters. Closed-cell spray foam performs well in all climates, and especially in climate zones 5 through 8, where high R-values are needed and the insulation also has to act as a vapor retarder. Low-density open-cell foam is allowed, but in climate zones 5 and above it must be protected by a vapor-retarding layer, such as rigid foam or painted drywall.
Roofing materials also deserve attention. Asphalt shingles need special consideration when they are installed over unvented roof assemblies in hot-humid, mixed-humid, and marine climates because of inward vapor drive. To limit moisture entry, a roofing underlayment with a perm rating of 1 or less, functioning as a Class II vapor retarder, must be installed beneath the shingles. It is also important to confirm that the installation complies with the shingle manufacturer’s warranty terms, since some manufacturers do not warrant, or only partially warrant, products used over unvented roofs.
Shingles on unvented roof assemblies run slightly warmer, by about 2°F to 3°F, than shingles on vented roofs. That can shorten service life by roughly 10%. It is possible to vent the roof cladding, which may extend shingle life, but the added cost of battens and a second plywood layer for fastening shingles may not be worth it. Shingle color and roof orientation usually matter more to longevity anyway.
Editor’s note: Climate zones 1, 2, and 3 have the option of a vapor diffusion port, which was first introduced in the 2018 IRC. The complexity of this option falls outside the intent of this article. You can read more about vapor diffusion ports in Martin Holladay’s article about the topic.
Prevent condensation with the right amount of insulation
An unvented roof assembly works only if the roof sheathing stays warm enough to prevent indoor air from condensing on it. The map above, based on Table R806.5 of the IRC, shows the minimum R-values needed to prevent condensation in unvented assemblies across different climate zones. Required thickness will vary by insulation type. These R-value targets are meant only to control condensation and do not replace the code-mandated R-values for energy efficiency, which are also shown.
Extra credit: Site-built or prefab baffles?
The performance of a vented attic or roof deck depends on airtightness. The area above the top plate of exterior walls, at the bottom of each rafter bay, is especially important. Baffles in this location direct intake air into the attic or vent channels and keep insulation from falling into the soffits and blocking airflow.
One site-built option is to cut 1-in.-thick rigid polyiso into 2-in.-wide spacer strips and glue them to the inside face of each rafter with a spray-foam adhesive such as Todol’s Pur Stick. The polyiso can then be cut to fit tightly in each rafter bay and foamed in place against the spacer to form a 2-in. chute or baffle.

The AccuVent soffit insulation baffle is made from rigid recycled plastic. It is more durable than foam-based alternatives and installs quickly with staples. It should still be air-sealed with spray foam, but it is a solid stock-product option.
More from Digilifetrends
Why You May Not Need To Wrap Your HVAC Unit For Winter
As cooler weather arrives, homeowners often start working through a seasonal checklist to protect their homes from winter damage. That can mean simple steps like adding draft…
2 min read · Published 2026-11-08When to Hold Off on Home Renovations—and Which Repairs Shouldn’t Wait
Spending on home improvements and repairs is projected to rise only modestly, by 1.5%, by the third quarter of 2027, according to Harvard University Joint Center for Housing…
4 min read · Published 2026-11-07Homeowner fears hail damage could spoil rooftop solar savings plans
Severe weather is making it harder for one U.S. homeowner to decide whether rooftop solar can help cut summer electricity costs.
2 min read · Published 2026-11-07