Where spray foam goes

Attic Spray Foam Insulation: Cost, Foam Types & Roof Deck Risks

Attic spray foam explained: attic floor vs roof deck, open- vs closed-cell, thickness, moisture risks, cost per board foot and what to ask before you hire.

  • 7 cited sources
  • Updated
  • 9 min read
An unfinished wooden attic under a pitched roof
An unfinished wooden attic under a pitched roof.

The short answer

Attic spray foam goes in one of two places: on the attic floor, air-sealing and insulating a vented attic, or under the roof deck, turning the attic into an unvented, conditioned space. The roof-deck approach can bring ducts and equipment inside the insulated envelope, but it needs a moisture plan, a roof in good repair and the code's thermal or ignition protection. Open-cell is cheaper per board foot; closed-cell adds vapor control in cold climates. Choose the assembly first, then the foam.

Both strategies can work. They solve different problems, carry different moisture and ventilation requirements, and can have very different costs.

Quick answer: If your attic is vented and the HVAC system and ducts are outside the attic, ceiling-level air sealing plus conventional attic insulation may be a more economical route. If ducts or equipment are inside the attic, a correctly designed unvented roof-deck assembly may be worth investigating. Neither choice should be made without inspecting the existing roof, ventilation, climate zone and mechanical system.

US guide reviewed October 19, 2026. This article is a decision guide, not a design specification. The product and assembly must be approved for the specific building and local code.

Attic Spray Foam at a Glance

QuestionPractical answer
Where can foam go?At the attic floor or on the underside of the roof deck, depending on the attic design
Main foam typesOpen-cell and closed-cell spray polyurethane foam
Approximate material R-valueOpen-cell commonly R-3.6 to R-4.5[1]/in; closed-cell commonly R-5.8 to R-6.9[1]/in
Installed unit-cost planning rangesOpen-cell $0.60–$1.60[2][3] per board foot; closed-cell $1.30–$3.10[2][3] (Angi and HomeAdvisor)
Big design decisionKeep a ventilated, unconditioned attic or create a compliant unvented roof assembly
Main risk areasRoof leaks, sheathing drying, humidity, blocked ventilation, inadequate thickness, fire protection
Quote essentialsFoam product, location, treated area, installed depth, ventilation/moisture plan and protection details

The published unit-cost figures are broad US planning benchmarks. The correct thickness depends on the specific material and building design.

Should Spray Foam Go on the Attic Floor or Roof Deck?

This choice comes before selecting open-cell or closed-cell foam.

Option 1: Insulate and Air-Seal the Attic Floor

In a typical vented attic, the thermal boundary is at the ceiling plane. The rooms below are conditioned, while the attic above remains outside the conditioned envelope and is ventilated to outdoors.

Air sealing at the ceiling addresses leaks around ceiling penetrations and attic hatches. Insulation is then installed on the attic floor. Foam may be used selectively for certain air-sealing details or as part of the insulation system; loose-fill cellulose or fiberglass is often a viable alternative.

The US Department of Energy explains that in ventilated attics the ceiling acts as the air barrier and insulation sits directly above it. See its Air Barriers in Ventilated Attics[4] guide.

This approach often suits homes where:

  • Existing attic ventilation is working correctly.
  • Ductwork and HVAC equipment are not exposed to extreme attic temperatures.
  • There is accessible attic-floor area for insulation.
  • The owner wants to avoid the larger scope of a roof-deck conversion.

Important: Do not indiscriminately foam over soffit vents, recessed fixtures, chimneys, electrical hazards or components requiring clearance or access.

Option 2: Insulate the Underside of the Roof Deck

In a designed unvented attic, spray foam is installed at the roofline, bringing the attic volume closer to the conditioned enclosure. The roof-deck insulation must be continuous and meet applicable provisions for condensation control, R-value, air sealing and fire protection.

This can be attractive when HVAC equipment or leaky ductwork is in the attic, or when the roof geometry makes ceiling-level insulation difficult.

But converting an existing vented attic is not simply spraying foam onto the plywood and blocking the vents. The attic’s moisture and conditioning strategy must change. The DOE Building America Solution Center’s below-deck spray foam retrofit guide[5] discusses pre-retrofit assessment, roof-deck insulation and the need for conditioning, dehumidification or controlled ventilation as appropriate.

Floor vs Roof Deck Comparison

IssueAttic-floor insulationRoof-deck insulation
Typical attic typeVentedDesigned unvented
Thermal boundaryCeiling/attic floorRoofline and associated enclosure
Attic relationship to outdoorsUsually outside conditioned enclosureTypically more thermally connected to conditioned space
Existing roof ventingMaintainedReconfigured under an approved design
HVAC ducts in atticMay remain in hot/cold attic spaceCan gain a less extreme environment if the design works
CostOften less expensive with conventional insulationOften more labor/material and design complexity
Moisture considerationsCeiling air leakage and ventilationRoof sheathing drying, humidity, condensation and roof leaks

What not to do: Mix both strategies casually. A heavily insulated attic floor plus newly foamed roofline can create a confusing and potentially moisture-sensitive thermal boundary unless a designer has deliberately specified that arrangement.

Open-Cell vs Closed-Cell Spray Foam for Attics

Either can work on an attic floor or roof deck; the climate decides more than the price. Open-cell costs less per board foot and suits warmer climates; Building Science Corporation says only closed-cell should go under roof decks in climate zones 5 and higher, because a vapor retarder over open-cell is hard to get right there[6]. The roof-deck page covers open- vs closed-cell on roof decks by climate.

How Much Does Attic Spray Foam Insulation Cost in 2026?

Attic foam is priced by the board foot (area × inches). Angi and HomeAdvisor give national installed ranges of $0.60–$1.60 per board foot for open-cell and $1.30–$3.10 for closed-cell[2][3], so 1,200 square feet of roof deck at 5.5 inches of open-cell (6,600 board feet) works out to about $3,960–$10,560 before minimums and extra work. A roof deck usually has more area than the attic floor; DOE says an unvented attic can have 10% to 60% more surface to insulate[7]. Run your own numbers in the cost calculator.

How Thick Should Attic Spray Foam Be?

There is no single safe or code-compliant thickness for all attics. Insulation requirements vary with jurisdiction, climate zone, product properties and whether the assembly includes other insulating layers.

As illustrations only:

ThicknessOpen-cell at assumed R-3.7/inClosed-cell at assumed R-6.2/in
2 inchesR-7.4R-12.4
3.5 inchesR-13.0R-21.7
5.5 inchesR-20.4R-34.1
7 inchesR-25.9R-43.4

These represent nominal foam-only R-values, not the whole roof’s performance or code compliance. Framing, continuous insulation, ventilation details and thermal bridges matter.

A contractor quoting “R-38 attic foam” should identify the product, installed depth, climate-zone requirement and how the full roof or ceiling assembly meets it. A thermal layer at the roofline is not automatically designed the same way as insulation at the ceiling.

Can Spray Foam Cause Roof Rot or Hide Leaks?

Foam doesn’t cause leaks, but under a roof deck it can hide one and slow drying, so a small leak can rot sheathing before anyone sees it. Repair the roof first and agree how the deck will be inspected later. The roof-deck moisture section explains the risks by foam type and climate.

Do You Need to Remove Existing Attic Insulation?

Not always. The answer depends on which thermal boundary you are creating, what material is already present and whether there are moisture, pest or contamination issues.

For a vented attic-floor retrofit, existing insulation may be lifted or moved to enable ceiling air sealing and then supplemented or replaced.

For an unvented roof-deck conversion, the designer needs to address whether old attic-floor insulation should remain. Leaving a high-R barrier on the attic floor may interfere with the intended thermal and humidity relationship between the living space and the newly insulated attic, depending on the design.

Do not approve automatic removal without understanding why it is necessary; equally, do not insist that the old material stays when there is contamination or a documented design conflict.

Attic Ventilation After Spray Foam: What Changes?

Vented attic: Preserve properly designed soffit, ridge and other ventilation pathways; keep insulation out of required air channels.

Unvented attic: The roofline insulation and enclosure must meet code provisions for an unvented design. That does not mean humidity and air quality manage themselves. Depending on the building, controlled ventilation, conditioning or dehumidification may be needed.

The DOE roof-deck retrofit guidance explicitly calls for attention to the attic’s conditioning, dehumidification or controlled ventilation strategy. A contractor who cannot explain the plan is not ready to spray the attic.

Spray Foam Installation Process: What Should Happen?

A good attic job starts with a roof and deck inspection, leak repairs, a written thickness plan, protection of ducts and equipment, isolation and ventilation of the work area, thickness checks, and the required ignition or thermal barrier. The step-by-step plan is in how a roof-deck retrofit should be planned.

Does Spray Foam Attic Insulation Reduce Energy Bills?

It can, mainly by stopping air leaks and, with roof-deck foam, by bringing attic ducts inside the insulated envelope. Savings depend on the house and aren’t a fixed percentage. See does an unvented attic save more energy?.

Spray Foam vs Fiberglass or Blown Insulation for Attics

For a vented attic with an accessible floor, air sealing plus blown-in insulation is often the cheaper route; spray foam earns its price when ducts are in the attic, the roof shape makes venting hard, or air sealing is difficult. Compare spray foam vs blown-in and spray foam vs fiberglass.

Questions to Ask Before Hiring an Attic Spray Foam Contractor

Request a written proposal that answers:

  1. Are you insulating the ceiling plane or converting the roof deck to an unvented assembly?
  2. Which climate-zone requirements and code provisions apply?
  3. What is the exact manufacturer’s foam product and technical data sheet?
  4. What thickness, R-value and coverage will be installed and verified?
  5. What will happen to soffit/ridge ventilation, existing floor insulation and attic hatches?
  6. How will roof sheathing dry, and what happens if a future leak occurs?
  7. How will attic humidity and any HVAC/ductwork be managed?
  8. What fire or ignition barrier protection is required and included?
  9. What preparation, moisture repairs, removal and cleanup are excluded?
  10. What are the occupant isolation, ventilation and product-specific re-entry instructions?
  11. Who supplies the warranty, and what workmanship documentation will you receive?

Compare two or three proposals with equivalent scopes. The lowest board-foot quote is not necessarily the lowest cost to build a functioning attic assembly.

Use our contractor-selection guide for a fuller hiring checklist.

Questions owners ask

Is spray foam insulation good for attics?

It can be an effective insulation and air-sealing solution when installed in a suitable attic assembly. The key is choosing the correct thermal boundary and specifying appropriate moisture, ventilation and fire-protection details.

Should spray foam go on the attic floor or roof deck?

A conventional vented attic usually has insulation at the ceiling plane. An unvented attic places the thermal boundary at the roofline. Choose based on HVAC placement, roof condition, climate, cost and code-compliant design.

Can you spray foam an existing vented attic roof?

Yes, some vented attics can be converted, but only through a proper unvented roof-deck design. It requires more than simply blocking existing vents and spraying foam underneath the sheathing.

Does spray foam eliminate attic ventilation?

A compliant unvented roof-deck assembly changes the attic's exterior ventilation approach, but humidity, indoor air quality and mechanical system needs still require deliberate design. In a vented attic-floor system, existing required vent paths should remain open.

Can I leave old attic insulation in place after roofline foam?

Possibly, but the answer depends on whether it interferes with the newly designed thermal boundary and whether the material is dry and uncontaminated. Get the designer's rationale in writing.

Is attic spray foam insulation safe?

Proper application requires professional exposure controls, ventilation, and manufacturer-specific curing and re-entry procedures. Follow current EPA guidance and the specific product's safety information.

Does attic spray foam prevent mold?

No insulation product alone prevents mold. Moisture leaks, condensation, humidity and ventilation problems still require diagnosis and control.

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. Air Barriers in Ventilated Attics, U.S. Department of Energy, Building Science Education. Accessed October 19, 2026. DOE educational page. No date shown.
  5. 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.
  6. BSI-116: Interior Spray Foam, Building Science Corporation (Joseph Lstiburek). Accessed October 19, 2026. Building science newsletter, effective April 15, 2020.
  7. Vented versus Unvented Attic, U.S. Department of Energy, Building America Solution Center. Accessed October 19, 2026. DOE guide comparing the two attic designs. No date shown.