Short answer

A sealed (unvented) attic moves the insulation from the attic floor to the underside of the roof deck, so the attic ends up inside the heated part of the house. It pays off when ducts or a furnace sit in the attic, or when the roof is too chopped up to air seal at the ceiling. In Western Pennsylvania's climate zone 5, the code requires air-impermeable insulation, such as closed-cell foam, against the deck to control condensation. A simple, empty attic is usually cheaper to fix from the floor.

Key points

  • The IRC (Section R806.5) allows an unvented attic only when the attic sits completely inside the building's thermal envelope and the insulation meets its condensation-control rules.
  • In climate zones 5 through 8, foam against the roof deck has to be a Class II vapor retarder or be coated with one. Closed-cell foam gets there at about 2 inches. Open-cell needs a coating.
  • If you combine foam with batts or blown insulation below it, the foam layer has to be at least R-20 in zone 5. At about R-7 per inch, a typical aged value for HFO closed-cell, that is a little under 3 inches.
  • Sealed attics make the most sense with ducts or an air handler in the attic, complex roofs, and cathedral or finished attic areas.
  • An empty attic over a simple gable roof is usually better served by air sealing the attic floor and blowing in insulation.

What changes in a sealed attic with spray foam

In a vented attic, the insulation lies on the attic floor and the attic itself is outdoor space. Air comes in at the soffits and leaves at the ridge, carrying off heat and moisture that get past the ceiling.

A sealed attic with spray foam flips that. Foam goes on the underside of the roof sheathing and on the gable walls, the soffit and ridge vents are closed off, and the attic runs close to house temperature. The roof deck becomes the line between inside and outside, so anything in the attic, including ductwork, is now indoors.

Vented attic compared with a sealed (unvented) attic Two house cross-sections. Left: a vented attic with blown insulation on the attic floor, outside air entering at the soffits and leaving at the ridge, and a duct sitting in the cold attic outside the thermal boundary. Right: a sealed attic with closed-cell spray foam on the underside of the roof deck, soffits and ridge closed, the attic near house temperature, and the duct inside the thermal boundary. Vented attic Sealed (unvented) attic Blown insulation Ridge vent Soffit vents Cold attic, like outdoors Duct Heated house Insulation on the attic floor. Ducts are outside the envelope. Ridge closed Soffits closed Warm attic, inside the house Duct Heated house Foam on the roof deck and gables. Ducts are inside the envelope. Closed-cell foam Blown insulation Thermal boundary Outside air flow
A vented attic keeps the insulation on the attic floor and leaves the ducts outdoors; a sealed attic moves the insulation to the roof deck and puts the ducts inside.

What IRC Section R806.5 requires

Pennsylvania's Uniform Construction Code is now based on the 2021 International Residential Code (IRC) and energy code, with state amendments. Section R806.5 lists the conditions for an unvented attic. In plain terms:

  1. The attic space has to be completely within the building thermal envelope.
  2. No Class I vapor retarder, such as polyethylene sheeting, on the ceiling side of the attic floor.
  3. Wood shingles or shakes need a vented air space of at least 1/4 inch between them and the underlayment.
  4. In climate zones 5 to 8, any air-impermeable insulation must be a Class II vapor retarder, or have a Class II coating or covering on its underside.
  5. The insulation goes in one of the allowed arrangements: air-impermeable insulation (spray foam) directly against the underside of the sheathing; rigid board on top of the sheathing; or a hybrid with foam against the deck and air-permeable insulation (batts or blown) directly below it.

For hybrids, Table R806.5 sets a minimum R-value for the layer against the deck, by climate zone. That number is for condensation control. It is not the total R-value the energy code asks for.

Climate zone Minimum R-value against the deck (Table R806.5) Closed-cell at about R-7 per inch
4A, 4B R-15 about 2.2 in.
5 R-20 about 2.9 in.
6 R-25 about 3.6 in.

Erie and most of Western Pennsylvania are in climate zone 5. The thickness column assumes R-7 per inch; the product's data sheet gives the exact R-value at each thickness (see spray foam R-value per inch).

Why the foam has to go against the deck

In January the roof sheathing is the coldest surface in the attic. If warm, humid house air reaches it, water condenses on the wood. Foam bonded to the sheathing keeps air off it, and enough foam keeps the inside face of the foam warm enough that it doesn't become a condensing surface either. Building Science Corporation describes the closed-cell layer as the first condensing plane in a cold climate and says it has to be thick enough to keep condensation off its inside face.

That is also why the vapor rule matters for open-cell foam. Open-cell stops air but lets water vapor through, so in zone 5 it needs a vapor retarder coating to meet R806.5. Our closed-cell vs open-cell comparison covers the difference.

The total R-value is a separate question

The energy code sets how much insulation the roof or ceiling needs overall. Under the 2018 code Pennsylvania used before its 2021 update, the prescriptive ceiling value for zone 5 was R-49. ENERGY STAR recommends R-60 for an uninsulated attic in zone 5. Pennsylvania amended the 2021 energy provisions, so get the target for your permit from your code official or designer before you compare quotes.

When a sealed attic makes sense

  • Ducts, a furnace or an air handler in the attic. Building Science Corporation notes that ducts in a vented attic can see temperature differences of up to 150°F between the air inside them and the attic around them. Sealing the attic puts that equipment indoors, and any duct leakage stays in the house.
  • Complex roofs. Hips, valleys, dormers and several ceiling heights make the ceiling very hard to air seal, and they leave small attic pockets that don't ventilate well.
  • Cathedral ceilings and finished attic rooms. Where there is no room for both a vent channel and enough insulation, foam against the deck solves both. Rooms with knee walls are a common case; see why bonus rooms over garages run cold.
  • Attics you can't get into, where ceiling leaks would otherwise stay open.

When the attic floor is the better choice

If the attic has no ducts or equipment, the roof is a simple gable and you can get into it, air seal the attic floor and blow in cellulose or fiberglass. You insulate a flat floor instead of a larger sloped roof plus two gable walls, and blown insulation costs less per R-value than closed-cell foam. The air sealing does most of the work; see air sealing before insulation.

Here is the foam math for a hypothetical 30 × 50 foot ranch with a 6/12 roof. The roof deck and gables come to roughly 1,900 square feet, against a 1,500 square foot attic floor.

Option Closed-cell thickness Board feet Foam cost at $1.50–$2.25 per board foot
All foam on the deck, R-49 target about 7 in. about 13,300 about $20,000–$29,900
Hybrid: R-20 of foam, batts or blown below about 2.9 in. about 5,500 about $8,300–$12,400, plus the insulation below

Those prices use the published per-board-foot range and vary by job. Fixing the same house from the floor means air sealing plus about 1,500 square feet of blown insulation, which is a smaller job. If moving the insulation to the roof doesn't buy you something you need, such as ducts indoors or a usable attic, choose the floor.

Details that decide whether it works

  • Close the soffit and ridge vents and foam the gable walls. A half-sealed attic is neither vented nor sealed.
  • Run bath fans, the dryer and the kitchen hood to the outdoors, not into the attic.
  • Any fuel-burning appliance in the attic should be a sealed-combustion unit. Have an HVAC contractor review it before the vents are closed.
  • Foam left exposed in an attic has to meet the IRC's foam-plastic rules. Depending on how the attic is used and the product's evaluation report, that means an ignition-barrier coating, a covering, or a product approved without one. Ask which applies.
  • Look at the roof first. Replace bad sheathing and fix leaks before foaming. If the shingles are near the end of their life, reroof first.

What shingle manufacturers say about warranties

GAF's technical bulletin TAB-R-135 says its shingle limited warranty against manufacturing defects stays in effect when foam is sprayed on the underside of the deck. The same bulletin excludes damage it attributes to the foam or to a lack of ventilation, and tells owners to meet code. Other manufacturers publish their own positions, and some bulletins still in circulation are many years old. Before you foam, get your shingle maker's current statement in writing and keep it with your foam warranty.

Want a number for your own attic? Price My Project or call (814) 208-3478.

FAQ

Does a sealed attic need its own heat or supply air?

Not under R806.5 for a zone 5 attic with foam against the deck. The supply-air requirement in that section belongs to the vapor-diffusion-port option, which is only allowed in climate zones 1 through 3.

Can open-cell foam be used to seal an attic in Western PA?

Yes, if it is covered with a Class II vapor retarder coating as R806.5 requires in zones 5 to 8. At about R-3.5 to R-3.8 per inch it also needs much more depth to reach the energy code value, so most zone 5 roof decks use closed-cell or a closed-cell hybrid.

Will a sealed attic stop ice dams?

A well-sealed, well-insulated roof deck keeps most house heat off the shingles, which removes the usual cause. In very heavy snow-load areas, Building Science Corporation adds a vented layer above the roof deck as well. Our ice dam guide covers the options.

Sources

  1. ICC 2021 International Residential Code, Chapter 8: Roof-Ceiling Construction (Section R806.5 and Table R806.5)
  2. Building Science Corporation, BSD-149: Unvented Roof Assemblies for All Climates
  3. GAF Technical Advisory Bulletin TAB-R-135: Under Deck Sprayed-In-Place Foam Insulation
  4. ENERGY STAR: Recommended Home Insulation R-Values
  5. Penn State PHRC: 2021 PA UCC Residential Code Update (webinar handout)
  6. U.S. DOE Building Energy Codes Program: Pennsylvania status
  7. Building Science Corporation, BSI-046: Dam Ice Dam