Where spray foam goes

Spray Foam Roof Deck Insulation: How It Works, Costs & Risks

How spray foam under the roof deck works: unvented attic rules, open- vs closed-cell by climate, moisture and leak risks, thickness and retrofit planning.

  • 8 cited sources
  • Updated
  • 12 min read
An unfinished wooden attic under a pitched roof
An unfinished wooden attic under a pitched roof.

The short answer

Spraying foam on the underside of the roof sheathing makes the attic part of the conditioned house: the vents are closed and the foam becomes the air barrier and insulation. It works when the roof is sound and the assembly is designed for the climate. Building Science Corporation says only closed-cell foam should be used in climate zones 5 and higher, and DOE says open-cell under a deck in those zones needs a Class II vapor retarder. Fix leaks first; foam can hide them.

A roof-deck installation can bring ductwork and HVAC equipment into a less extreme attic environment, reduce air leakage and create a more continuous insulation boundary. But it can also change how the roof dries, how attic humidity is managed and how future leaks are detected.

The decision: Foam the roof deck only when the roof condition, climate zone, ventilation conversion, insulation thickness, vapor-control design and fire-protection details have been specified together. Merely spraying the underside of plywood and closing vents is not a complete system.

Reviewed October 19, 2026 for US homeowners. This is an educational installation guide, not a substitute for site-specific code and building-science design.

Roof Deck Spray Foam at a Glance

QuestionKey consideration
Where is it installed?On the underside of roof sheathing and at related roofline enclosure transitions
Main applicationAn unvented, insulated roofline/attic assembly
Product choicesOpen-cell or closed-cell polyurethane foam
Nominal insulation valueOpen-cell often around R-3.6 to R-4.5[1]/in; closed-cell around R-5.8 to R-6.9[1]/in
Typical budget unitInstalled cost per board foot = one square foot at one inch thick
National installed unit-rate benchmarksOpen-cell $0.60–$1.60[2][3]/bf; closed-cell $1.30–$3.10[2][3]/bf (Angi and HomeAdvisor)
Critical pre-installation stepInspect roof covering, flashing and sheathing; repair leaks and damage
Highest design risksMoisture accumulation, improper vapor control, neglected ventilation/conditioning, unsafe installation
Code issueUnvented-roof requirements vary by adopted code, climate, materials and assembly

For the broader decision of insulating an attic floor versus the roofline, read attic spray foam insulation.

What Happens When You Spray Foam the Underside of a Roof Deck?

Roof-deck spray foam adheres to the interior face of roof sheathing, usually between rafters or trusses. When installed continuously to its approved thickness and tied into adjoining air-control layers, it can restrict unwanted air movement and heat transfer across the roofline.

The big consequence is moving the thermal boundary. In a conventional ventilated attic, insulation generally sits at the ceiling plane. In an unvented roofline design, the attic becomes part of the more thermally controlled volume below the roof.

The US Department of Energy’s Building America guidance specifically describes below-deck spray foam as a way to convert an existing vented attic into an unvented, insulated one. It also calls for roof inspections, correct insulation levels, protection where required and conditioning, dehumidification or controlled ventilation of the attic. See DOE’s existing-roof retrofit guidance[4].

Roof Deck Foam Is Not the Same as Spray Foam Roofing

Roof-deck insulation is installed on the interior underside of a structural roof deck.

Spray polyurethane foam roofing is an exterior roof-covering system applied above the roof surface, generally with a protective coating. Its drainage, exposure, waterproofing and pricing details are entirely different.

If your contractor is discussing exposed exterior SPF roofing costs, that is not the same project covered by this article.

Should You Insulate the Roof Deck or Keep a Vented Attic?

Insulate the roof deck when ducts or equipment are in the attic, the roof is hard to vent, or you want the attic inside the conditioned space; keep a vented attic when the ceiling is easy to air-seal and nothing needs protecting up there. The full decision is on vented vs unvented attic.

Open-Cell vs Closed-Cell Spray Foam on Roof Decks

Both products can be used in suitable roof assemblies, but their moisture and thickness characteristics differ. Climate narrows the choice: Building Science Corporation says only closed-cell foam should be used under roof decks in climate zones 5 and higher[5], and DOE says open-cell foam under a deck in zones 5 to 8 needs a Class II vapor retarder, installed or applied as a coating[6].

FactorOpen-cell foamClosed-cell foam
DensityLower, typically around half-pound classHigher, typically around two-pound class
Nominal R-value per inchApproximately R-3.6 to R-4.5[1]Approximately R-5.8 to R-6.9[1]
Installed cost per board footGenerally lowerGenerally higher
Water-vapor permeabilityHigherLower
TextureSofterRigid
Sheathing drying implicationsCan allow more inward vapor diffusion, but may require separate vapor controlCan limit inward drying and demands reliable roof water management
Roof deck suitabilityClimate, design and product dependentClimate, design and product dependent

Open-Cell Foam Against Roof Sheathing

Open-cell spray foam can provide air sealing at product-specific approved depths, but its higher vapor permeability means that the assembly may need additional vapor control, particularly in colder climates.

Do not confuse “vapor-permeable” with “moisture-proof.” Warm indoor air leaking toward cold sheathing, humidity accumulation or bulk roof leaks can still cause damage. The roof must be designed for the local conditions.

Closed-Cell Foam Against Roof Sheathing

Closed-cell spray foam delivers higher R-value per inch and lower vapor permeability. In suitable unvented roof designs this can help condensation control, particularly when the foam meets the applicable air-impermeable-insulation requirements.

However, because it restricts inward drying, wet roof sheathing may dry more slowly. That makes pre-installation inspection and watertight roof details especially important.

Neither product should be selected from a generic “best foam” list. Ask for an assembly-specific explanation of temperature control, vapor diffusion and drying.

The open-cell vs closed-cell spray foam comparison covers their wider material differences.

Moisture Control: The Most Important Roof Deck Decision

An unvented insulated roof must prevent problematic moisture accumulation in the structural sheathing. That involves more than foam thickness.

Roof Leaks and Bulk Water

Water entering around roofing penetrations, flashing, valleys or damaged roof coverings has to be controlled by the roof’s exterior water-management system. Spray foam is not a roof repair.

DOE guidance says to inspect the existing roof for deficiencies and correct leaks and related damage before insulating below the deck. If roofing is at the end of its useful life, replacement before foaming may be the more sensible option. Source: DOE Building America[4].

Condensation on Cold Roof Sheathing

Indoor air and water vapor can reach cold parts of an improperly detailed assembly. Condensation risk depends on indoor humidity, outdoor climate, insulation placement, air leakage and vapor resistance.

Air-impermeable insulation can be used below the sheathing as part of an unvented assembly. Some hybrid assemblies use rigid insulation above the sheathing and other insulation below; the proportions needed for condensation control vary by climate. See DOE’s unvented attic insulation guidance[7].

Inward and Outward Drying

A roof deck sometimes needs to dry after minor wetting or seasonal moisture events. Low-permeance closed-cell foam can restrict inward drying. Highly vapor-permeable insulation changes the moisture profile in other ways.

The correct solution depends on the full roof build-up: shingles or roof covering, underlayment, sheathing, foam, additional insulation, interior finishes and the local climate. A contractor must be able to explain which direction the assembly can dry and what prevents wetting.

Existing Wet or Damaged Sheathing

Never use spray foam to conceal a soft, moldy, visibly wet or structurally compromised roof deck. Have the cause diagnosed and the affected material repaired or replaced.

Can Spray Foam Hide Roof Leaks?

It can complicate visual inspection and leak tracing because the underside of the sheathing is covered. That does not mean every sprayed roof fails or that moisture is inevitably trapped.

The risk is manageable only when the roof is watertight and the assembly has a sound moisture-control and maintenance plan. Homeowners should consider the age and condition of the roof covering before paying to foam underneath it.

Roof Deck Spray Foam Thickness and R-Value

There is no universal “two inches is enough” or “five inches is enough” rule for every roof deck.

Applicable code provisions can address both the total insulation performance and the minimum portion that must be air-impermeable for condensation control. Those requirements depend on the jurisdiction’s adopted code version, climate zone and roof assembly.

Illustrative material-only R-values:

Installed thicknessOpen-cell at example R-3.7/inClosed-cell at example R-6.2/in
2 inchesR-7.4R-12.4
3 inchesR-11.1R-18.6
3.5 inchesR-13.0R-21.7
5.5 inchesR-20.4R-34.1
7 inchesR-25.9R-43.4

These are simple arithmetic illustrations, not installed thickness recommendations. Product-specific aged R-values, installation limitations and full-assembly requirements govern the specification.

Can You Combine Spray Foam and Other Insulation?

Yes. A designed hybrid assembly can use spray foam in the needed location and other insulation to reach the target assembly performance.

But mixing air-impermeable and air-permeable insulation requires a suitable condensation-control ratio and air/vapor strategy. DOE’s unvented-attic guidance notes that batt and loose-fill insulation can supplement an air-impermeable layer where code permits.

Don’t let “we’ll top it up with fiberglass” replace a documented roof-assembly specification.

How Much Does Spray Foam Roof Deck Insulation Cost in 2026?

Measure the roof deck, not the floor below. At Angi’s and HomeAdvisor’s national installed ranges of $0.60–$1.60 per board foot for open-cell and $1.30–$3.10 for closed-cell[2][3], 1,200 square feet of deck at 3 inches of closed-cell (3,600 board feet) is about $4,680–$11,160, and at 5.5 inches of open-cell (6,600 board feet) about $3,960–$10,560, before minimums, repairs and barriers. Run your own deck area in the cost calculator.

How a Roof Deck Spray Foam Retrofit Should Be Planned

1. Inspect the Roof Before Insulating

Check roof age, covering condition, flashings, penetrations, previous leaks, deck staining, softness and moisture concerns. Repair problems first. An aging roof close to replacement deserves special scrutiny.

2. Confirm an Unvented Assembly Is Appropriate

A qualified designer or installer should establish the applicable code path and whether the attic will be sufficiently conditioned, ventilated or dehumidified after the conversion.

3. Specify the Full Air, Thermal and Vapor Boundary

The proposal should show where the foam starts and stops, how gable ends and transitions are sealed, the target thickness and R-value, and how air control layers join around penetrations and framing.

4. Detail Soffit and Ridge Vent Changes

Converting to an unvented attic normally means deliberately sealing exterior attic vents as part of the approved design. Do not close vents in advance and assume the attic will manage its own humidity.

5. Select the Foam Using Product Data

Ask for manufacturer, full product designation, technical data sheet, declared R-value, air-barrier requirements, vapor performance and code approvals. Specify how thickness will be checked.

6. Plan Occupant Safety and Re-Entry

Professional SPF application requires work-area isolation, appropriate protective equipment and ventilation. The EPA’s ventilation guidance[8] explains that safe re-entry varies with product, mixing, ventilation rate and environmental conditions. There is no universal safe waiting period for every job.

7. Install and Inspect the Finished Assembly

The contractor should follow product requirements for substrate conditions, lift thickness, mixing, temperatures and curing. Inspect continuity, missed areas and any required protective coatings before access is closed.

8. Document the Job

Keep the product records, photographs, installed depth verification, code and fire-protection details, warranties and re-occupancy instructions. These matter during future roof repairs and property transactions.

Do You Need to Remove Attic-Floor Insulation When Foaming the Roof?

Maybe. Once the roofline becomes the primary thermal boundary, leaving a substantial insulation layer on the attic floor can affect how the new attic interacts thermally and with moisture relative to the rooms below.

That doesn’t mean every attic-floor insulation material must always be removed. The decision depends on the intended conditioning strategy, existing material, air-sealing details and applicable design.

Ask the contractor to explain what happens to the old thermal boundary rather than accepting either automatic removal or automatic retention.

Will Roof Deck Foam Make the Attic Conditioned?

Not automatically. Insulating the roof deck reduces heat flow through the roof, but it does not by itself guarantee the attic has suitable air exchange, temperature control or humidity management.

The DOE retrofit guidance specifically calls for conditioning, dehumidification or controlled ventilation of the attic. This is especially important when the attic contains mechanical equipment, ductwork or moisture sources.

In humid regions, a foam roofline without a thought-through humidity plan can leave owners with a new problem despite reduced temperature swings.

Does Spray Foam Under Roof Sheathing Damage Shingles?

A sprayed roofline can change temperatures in the roof assembly. Whether it affects shingle performance, warranties or roof service life depends on the roofing product and design details.

Do not assume all shingle warranties are voided, and don’t accept a blanket promise that foam has no possible effect. Have your roofer check the specific shingle manufacturer’s documentation, the roof assembly and any warranty terms.

Roofing service life is more strongly influenced by multiple factors, including product quality, installation, exposure, weather and maintenance. Foam selection alone cannot predict it.

Spray Foam Roof Deck Pros and Cons

Potential advantageMeaningful trade-off
Can create a continuous air and thermal boundaryRequires a full roofline assembly design
Can reduce temperature extremes around attic ductworkTypically higher initial cost than simple ceiling insulation
May help with complex roof geometriesMoisture and sheathing drying must be engineered
May reduce reliance on conventional attic venting in a compliant designAttic conditioning and humidity control still matter
Can provide high R-value per inch with closed-cellFoam can complicate leak detection and future repairs
Can suit a hybrid insulation designFire protection and installer safety add requirements

My recommendation for homeowners: Compare the roof-deck design against an air-sealed, vented attic-floor option whenever both are feasible. The cheaper finished solution may not involve roof-deck foam at all.

Questions to Ask a Roof Deck Spray Foam Contractor

Before accepting a proposal, get clear written answers to the following:

  1. Have you inspected the roofing, roof sheathing and signs of existing leakage?
  2. Are you proposing an unvented attic under the locally adopted code?
  3. Why is roof-deck insulation a better option than attic-floor insulation for this property?
  4. Which exact open-cell or closed-cell foam product will be installed?
  5. What minimum thickness and thermal performance will be verified?
  6. How does the roof assembly manage condensation and provide drying potential?
  7. What will happen to soffit, ridge and gable ventilation?
  8. How will attic conditioning, ventilation or dehumidification work?
  9. Will any existing attic-floor insulation remain, and why?
  10. What thermal or ignition barriers are required and included?
  11. What are the occupant protection, curing and re-entry instructions?
  12. Who handles moisture repairs, cleanup, warranties and future roof access?

For the broader hiring process, use our spray foam insulation contractor guide.

Questions owners ask

Can you spray foam directly onto the underside of roof decking?

Yes, in a suitable, code-compliant unvented roof assembly. The deck must be in acceptable condition, leaks repaired and foam installed as part of a complete moisture and ventilation strategy.

Should a roof deck use open-cell or closed-cell foam?

Neither is universally best. Open-cell is generally more vapor-permeable and less expensive; closed-cell has higher R-value per inch and lower vapor permeability. Climate, decking, roof layers and drying potential determine suitability.

Does roof-deck spray foam eliminate the need for attic ventilation?

A properly designed unvented attic intentionally changes the exterior venting approach, but the attic may still require conditioning, dehumidification or controlled ventilation. “Unvented” does not mean uncontrolled humidity is safe.

Does spray foam make roof leaks worse?

Foam is not the cause of all leaks, but it can obscure moisture evidence and restrict drying depending on the assembly. Repair roof defects first and establish a moisture management plan.

How thick should spray foam be under the roof deck?

There is no single thickness for every climate or roof. Select the product and full-assembly insulation requirements under the local adopted code, then verify installed depth.

Can spray foam roof decking cause mold or rot?

A poorly designed assembly, existing roof leaks or uncontrolled condensation can lead to moisture damage. Correct waterproofing, insulation location, vapor strategy and maintenance are essential.

Does spray foam void a roof warranty?

Not automatically in every case. Verify the specific roofing manufacturer and warranty documents rather than relying on universal claims.

Sources

  1. Frequently Asked Questions, Spray Polyurethane Foam Alliance (SPFA). Accessed October 19, 2026. Industry trade association. Page metadata shows modified April 27, 2026. Typical density, R-value per inch, air-barrier thickness and vapor permeance ranges.
  2. How Much Does Spray Foam Insulation Cost?, Angi. Accessed October 19, 2026. National consumer cost guide from a survey of Angi customers. No update date shown; title says "2025 Data". Its installed per-board-foot ranges match HomeAdvisor's page updated June 17, 2026.
  3. How Much Does Spray Foam Insulation Cost?, HomeAdvisor. Accessed October 19, 2026. National consumer cost guide, updated June 17, 2026. Installed cost per board foot; national ranges, not quotes.
  4. Below Deck Spray Foam Insulation for Existing Roofs, U.S. Department of Energy, Building America Solution Center. Accessed October 19, 2026. DOE retrofit guide. No date shown.
  5. BSI-116: Interior Spray Foam, Building Science Corporation (Joseph Lstiburek). Accessed October 19, 2026. Building science newsletter, effective April 15, 2020.
  6. Unvented Conditioned Attic with Spray Foam Insulation Below Roof Deck, U.S. Department of Energy, Building America Solution Center. Accessed October 19, 2026. DOE guide for new homes. No date shown.
  7. Unvented Attic Insulation, U.S. Department of Energy, Building America Solution Center. Accessed October 19, 2026. DOE guide to insulating at the roof deck. No date shown.
  8. Ventilation Guidance for Spray Polyurethane Foam Application, U.S. Environmental Protection Agency (archived). Accessed October 19, 2026. Last updated November 5, 2020; archived EPA page.