Insulation Guide

Spray Foam Insulation: Where It Pays, Fire Code, Safety and Cost

Spray foam insulation starts as two liquids mixed at the tip of a spray gun. They expand into foam, stick to whatever they hit and harden in place, so one pass both insulates and air seals. That is why it earns its price at rim joists, roof decks, crawl space walls and cathedral ceilings. On an open attic floor, blown-in insulation does the job for far less, and a wall that is already closed up usually needs a different method altogether.

What decides whether the money is well spent: the right foam for the spot, the fire barrier the code calls for, a day out of the house while it cures, and a crew that keeps every pass within the manufacturer’s limits.

What is spray foam insulation and how is it installed?

Spray polyurethane foam starts as two components. The EPA describes the A side as isocyanates, very reactive chemicals, and the B side as a polyol blended with other chemicals; together they make polyurethane. In a professional rig, a proportioner heats and pressurizes both sides, which the Spray Polyurethane Foam Alliance puts at 800 to 1,500 psi and 100 to 140°F, and sends them through heated hoses to the gun, where they mix.

The foam rises in seconds. A Building America guide published by the Department of Energy puts closed cell expansion at about 35 to 50 times its liquid volume and open cell at up to 150 times. Foam can feel hard, or “tack-free,” within seconds to minutes, but the EPA notes it is still curing and still holds unreacted chemicals at that stage. How the job goes:

  1. Prep. Mask floors, windows and finished surfaces; the Alliance says overspray can’t be completely removed from most porous surfaces. Shut down the heating and cooling and seal vents in the work area.
  2. Check the surfaces. Clean, dry wood, sheathing or masonry. One manufacturer’s guidelines flag frost, dew, dust and wood above 18 percent moisture content, and bar spraying within 5 degrees of the dew point.
  3. Clear the house. The EPA says occupants leave; only workers in respirators and protective clothing stay.
  4. Spray in passes, each within the product’s maximum thickness, with the required wait between.
  5. Trim, ventilate, clean, in protective gear, since the EPA notes trimming dust can carry isocyanates. Then the fire barrier the code requires.

Where spray foam earns its price

Spray foam costs more than batts or blown-in insulation. It pays where air sealing and insulation have to happen in the same place, where there is little depth to work with, or where moisture rules out fiber.

Rim joists

The rim joist, the band of framing on top of the foundation, is full of small gaps. The Building America spray foam guide calls it notoriously difficult to insulate, notes batts usually get stuffed in with no regard for air sealing, and rates closed cell the preferred material. The 2024 IECC wants an air barrier at the rim, sealed joints to the sill plate and subfloor, and insulation in contact with the rim board. Rim joist foam can stay exposed if it is no more than 3 1/4 inches thick, 0.5 to 2.0 pounds per cubic foot, with a flame spread index of 25 or less and a smoke-developed index of 450 or less (IRC Section R316.5.11 in the 2021 edition, R303.5.11 in 2024).

Roof decks and unvented attics

Foam sprayed on the underside of the roof sheathing makes the attic part of the house. The Department of Energy’s Building America insulation guide lists good reasons: ducts in the attic, a complex roof that is hard to ventilate, or an attic you want to use. Section R806.5 of the International Residential Code allows an unvented attic when, among other conditions, it sits completely inside the thermal envelope and foam used alone is in direct contact with the underside of the sheathing. Outside hot, dry climates, the same guide warns that fiber insulation against the underside of the roof deck could lead to moisture problems, so foam goes against the deck.

The limit is depth. The energy code’s ceiling requirement is R-49 in New Jersey’s 2024 code and New York’s 2025 code, and R-60 in Connecticut’s 2021 IECC. R-49 takes about 7 inches of closed cell or about 11 3/4 to 12 1/2 inches of open cell, and a 2x8 rafter is only 7 1/4 inches deep. Deep requirements in shallow rafters are why many roof decks get closed cell, or a hybrid with fiber under the foam.

Crawl space walls

On the walls of a sealed crawl space, closed cell foam insulates and air seals rough block and stone in one pass. The Department of Energy’s guide lists 3 inches of closed cell for crawl space walls, against 10 inches of open cell, and says fiberglass and cellulose should not be used against a crawl space wall because fiber collects and holds moisture. More in crawl space insulation.

Cathedral ceilings

A cathedral ceiling packs drywall, insulation and roof into one rafter bay with no attic above. Building America researchers don’t recommend fiberglass or cellulose in a cathedral ceiling or flat roof unless rigid or spray foam sits above the fiber as an air and moisture barrier. The catch is access: getting into the cavity means removing the ceiling or the roof, so the time to foam a cathedral ceiling is a reroof, a gut renovation or an addition. If there is no room for the full code R-value, Section R402.2.2 accepts R-30 (R-38 in New York), but only over 500 square feet or 20 percent of the ceiling area, whichever is less.

New construction and gutted walls

Open stud bays are the easiest place to spray. Under the prescriptive R-value table in New Jersey’s 2024 energy code, Connecticut’s 2021 code and New York’s 2025 code, a wood-framed wall needs R-30 of cavity insulation, or R-20 in the cavity plus R-5 continuous insulation, or R-13 plus R-10, or R-20 continuous alone. Closed cell reaches R-30 in about 4 1/4 to 4 1/2 inches of a 2x6 bay. A full 2x6 bay of open cell is about R-21 to R-23, and batts fall short too, so those walls add continuous insulation outside. Other compliance paths exist; the project’s energy calculations decide.

Where cheaper insulation does the job

  • The floor of a vented attic. Air seal, then blow in cellulose or fiberglass. The Building America spray foam guide notes open cell’s R-value per inch is not much higher there than far less expensive cellulose and fiberglass, and the Department of Energy says an attic that ventilates well without moisture problems may be best left vented. See attic insulation.
  • Gutted walls with no moisture problem. The Department of Energy calls fiberglass or cellulose the inexpensive fill; foam costs much more for better air sealing and moisture resistance.
  • Floors over a dry, vented crawl space, and dry basement ceilings. Batts tight to the subfloor, after air sealing. See basement ceiling insulation.

Most houses end up with both: foam at the rim joists or the roof line, blown-in or batts across the open areas, and air sealing everywhere the foam isn’t.

Open cell or closed cell, in brief

  • Open cell: R-3.9 to R-4.2 per inch, about half a pound per cubic foot, soft. An air barrier at enough thickness, but vapor-open, and it soaks up water. Cheaper per inch. Above-grade walls and roof decks with room for the depth.
  • Closed cell: R-6.9 to R-7.1 per inch, about 2 pounds per cubic foot, cures rigid. A vapor retarder at about 1 1/2 inches, water resistant, stiffens framing. Costlier per inch. Rim joists, crawl space and basement walls, below grade, shallow rafters.

Vapor rules, sound, strength and a spot-by-spot comparison are in open cell vs closed cell spray foam.

Is spray foam safe? Curing, odor and re-occupancy

The EPA says spray foam that is correctly applied and fully cured is typically considered relatively inert. The risk is during and for a period after installation, when isocyanates and other chemicals in the vapor, aerosol and dust can cause asthma, sensitization, lung damage and skin and eye irritation. So the house stays empty until the foam has cured and the space has been ventilated and cleaned.

  • How long to stay out. The EPA reports some manufacturers recommend 24 hours after professional high-pressure foam before residents return, and says the time may vary; the Alliance says re-occupancy is typically 24 hours. Settle the time with the contractor before the job, and take extra care with children, especially children with asthma, as the EPA advises.
  • Odor. The Alliance says some foams smell for several days, usually from unreacted amine catalysts, and ventilation helps. Persistent odor, or discolored, sticky or crumbly foam, signals an improper install.
  • What spoils the cure. The EPA lists temperature, humidity, HVAC left running, and improper mixing, proportioning and thickness, which can leave unreacted chemicals that off-gas over time. Later, don’t heat or grind foam; the EPA warns it can release toxic chemicals.

The EPA also says the potential for off-gassing from spray foam is not fully understood and needs more research. More detail in is spray foam safe.

Fire code: thermal barriers and ignition barriers

Spray foam is combustible. The International Residential Code requires foam plastic to be separated from the inside of the house by a thermal barrier: at least 1/2-inch gypsum wallboard, 23/32-inch wood structural panel, or a material that passes the NFPA 275 fire tests. That is Section R316.4 of the 2021 IRC, which Connecticut uses, and R303.4 of the 2024 IRC, adopted in New Jersey and New York.

Attics and crawl spaces get a lighter rule, but only when all of the following apply (R316.5.3 and R316.5.4 in 2021; R303.5.3 and R303.5.4 in 2024):

  • The space has the access the code requires and is entered only for repairs or maintenance. An attic or crawl space used for storage doesn’t qualify.
  • The foam is covered by an ignition barrier, such as 1 1/2-inch mineral fiber insulation, 1/4-inch wood structural panel, 3/8-inch gypsum board or 1/4-inch fiber-cement board (in attics, 1 1/2 inches of cellulose also counts), or the foam has passed a fire test for that use.

That test route is how some foams stay bare in attics: manufacturers list intumescent coatings, sprayed at a set thickness, that their foam passed with, plus conditions such as no storage. Two more checks: the Department of Energy says active knob-and-tube wiring must be replaced before insulating, and one manufacturer notes wiring and plastic pipe can be rated for as little as 140°F, so a thin first coat keeps the reaction’s heat off them.

Problems with bad spray foam installs

Spray foam is made on site, so the chemistry depends on the crew, the rig and the day’s conditions.

  • Off-ratio foam. When the A and B sides aren’t proportioned correctly, the foam doesn’t cure properly; the EPA names improper mixing and proportioning among the causes of poor curing. The Alliance’s warning signs are odors that persist and foam that is discolored, sticky or friable.
  • Passes that are too thick. The reaction gives off heat. The Alliance says closed cell sprayed thicker than the manufacturer allows can trap enough heat to form poor foam, lose R-value or shrink, and in extreme cases self-ignite. Limits differ by product: one closed cell data sheet allows up to 4 inches in a pass, another up to 3, with 30-minute waits between lifts on the thickest work.
  • Shrinkage and gaps. Foam that shrinks and pulls away from the framing leaves cracks that, the Alliance says, compromise air sealing and can cause condensation in cold climates. Extensive shrinkage should be repaired.
  • Poor adhesion. Foam bonds to clean, dry surfaces. The Alliance notes it may not stick well to polyethylene sheeting, under-cured concrete or some metals.

What a careful installer does

  1. Names the product, its re-occupancy time and the ventilation plan before the job.
  2. Checks surface moisture, temperature and humidity against the data sheet, and the rig’s temperature and pressure.
  3. Sprays a test patch first. The Alliance’s adhesion check: tear off a piece; well-bonded foam tears within itself and leaves residue behind.
  4. Keeps every pass within the limit, including thick pockets in rim joists, corners and wall intersections, and measures depth as it goes.

Can spray foam go over old insulation?

Not on top of it. Foam has to bond to clean, dry sheathing, framing or masonry; sprayed onto batts or loose fill, it has nothing to grip and can’t seal the gaps behind them.

  • Between the rafters: it comes out. In an unvented roof, the code requires foam used alone to be in direct contact with the underside of the roof sheathing (R806.5).
  • On the attic floor, when the roof line is foamed: the Department of Energy’s guidance is to remove the old floor insulation so the living space below can condition the attic. A plastic vapor retarder on the attic floor has to go; the code doesn’t allow a Class I vapor retarder on the floor of an unvented attic.
  • On the floor of a vented attic: dry, clean insulation can stay. Air seal, then add blown insulation over it.
  • In rim joist bays and on crawl space walls: batts come out so foam reaches the wood or masonry.
  • Wet, moldy or rodent-fouled insulation, or vermiculite: we take the wet, settled or rodent-soiled material out first, bagged under containment with a HEPA insulation vacuum, and clean the deck before foam goes on. Mold goes to a remediation company, and the EPA says to leave vermiculite undisturbed; treat it as asbestos until a licensed professional tests it.

Spray foam in existing walls: the honest limits

Standard open cell and closed cell spray foam are made for open cavities. Foam that sets in seconds can’t be spread evenly through a hole into a closed bay full of wires and blocking; the Department of Energy notes slow-expanding foams exist for existing walls to reduce the chance of the foam damaging the wall. A finished wall has three options:

  • Open it. A gut renovation, or re-siding with the sheathing off, exposes the bays for spray foam.
  • Drill and fill. Holes about 2 inches across go into each stud bay from outside or inside, and cellulose or fiberglass is blown in, ideally dense-packed. The Department of Energy calls the method popular and time-proven, and notes the walls must be strong enough to take the added pressure. See wall insulation.
  • Injection foam. A separate slow-expanding product for closed cavities, not the spray foam described here.

Two stop signs for any method: active knob-and-tube wiring, which has to be replaced first, and plaster and lath walls, where the Department of Energy warns drilling can break the plaster keys. See insulation for older homes.

Spray foam or rigid foam board?

Both are foam plastic under the same fire rules. Board comes in sheets: a continuous layer over studs or a foundation wall, or on top of the roof deck during a reroof, and it depends on sealed seams; as the air-impermeable layer in an unvented roof, the code requires each sheet sealed at its perimeter. Spray foam fills rough, irregular surfaces board can’t meet. The Department of Energy found spray foam the most successful and practical way to insulate the inside of masonry walls, because board is hard to seal and bond at every point and small gaps let moisture condense. We install both: board on flat surfaces with sealable seams, foam at rim joists, stone and block walls and roof decks.

What spray foam insulation costs

Most of our projects run between $3,500 and $12,500. On a spray foam job the number moves with:

  • Volume. Area times thickness, counted in board feet, one square foot one inch thick. An R-49 roof deck takes many times the foam of a rim joist.
  • Open or closed cell. Closed cell is about four times denser, so each inch uses more material, and it costs more; open cell needs more inches for the same R-value.
  • Passes, access and prep. Thick closed cell goes on in several passes with waits between; low crawl spaces, tight eaves and masking take time.
  • The fire barrier. An intumescent coating, an ignition barrier or drywall where the code requires one.
  • Removal and other trades. Taking out old insulation is our own line item, priced with the job. Replacing knob-and-tube wiring or fixing roof leaks is priced separately by the contractors who do it.

Rebates exist through state and utility programs; see New York and New Jersey insulation rebates and Connecticut insulation rebates. The federal 25C tax credit ended for anything placed in service after 31 December 2025. Price detail: spray foam insulation cost.

Common questions about spray foam insulation

Is spray foam insulation safe?

Correctly applied, fully cured foam is typically considered relatively inert, according to the EPA. The hazard is isocyanate vapor, aerosol and dust during and shortly after spraying, so the house stays empty until the foam cures and the space is ventilated and cleaned. Persistent odor, or sticky or discolored foam, points to a bad install.

How long do you have to stay out of the house after spray foam?

Plan on at least a day. The EPA reports that some manufacturers recommend 24 hours after professional high-pressure foam before residents return, and the Spray Polyurethane Foam Alliance says re-occupancy is typically 24 hours, but the time varies with the product and conditions. Get the manufacturer’s time from the installer before the job starts.

Does spray foam insulation need to be covered?

In living space and basements, yes: the building code requires a thermal barrier such as 1/2-inch drywall. In an attic or crawl space entered only for repairs or maintenance, an ignition barrier or a foam tested for that use is enough. Rim joist foam up to 3 1/4 inches thick that meets the code’s density and flame-spread limits can stay exposed.

Can you spray foam insulation into existing walls without removing drywall?

Not with standard open cell or closed cell spray foam, which is made for open cavities. Closed walls are usually insulated by drilling holes and blowing in dense-packed cellulose or fiberglass. Slow-expanding injection foams exist for closed walls, but they are a different product. Spray foam goes in when the drywall or the sheathing is off.

Do you need attic ventilation with spray foam insulation on the roof deck?

No. With foam against the roof sheathing, the attic is inside the house, and IRC Section R806.5 allows it to be unvented when its conditions are met. The Department of Energy’s guidance is to seal the ridge, gable and soffit vents without blocking bath, kitchen, furnace or water heater exhausts, and to remove any plastic vapor retarder from the attic floor.

Can spray foam rot your roof?

Foam doesn’t rot wood; water does. Closed cell keeps humid indoor air off the roof sheathing but can hide a roof leak, because water won’t pass through it. Open cell lets a leak show but is vapor-open, so in climate zone 5 and colder the code requires a vapor retarder coating on it under a roof. Fix roof leaks before any foam goes on.

Can I do spray foam insulation myself?

Only small jobs. The EPA says two-component high-pressure foam is for trained applicators. Cans and low-pressure kits are sold to homeowners but need the same precautions, including a respirator, chemical-resistant gloves and clothing, and ventilation, and the EPA notes do-it-yourselfers often don’t know the hazards. Cans seal gaps; a roof deck is professional work.

Can spray foam insulation be removed?

It can be cut and scraped out, slowly, but the EPA says it knows of no standard accepted removal practice and warns against heating or grinding foam. If the problem is odor from a bad install, the EPA notes removal may not fix it, because chemicals can migrate to other surfaces. Have the contractor, manufacturer or an indoor air quality consultant diagnose it first.

How much does spray foam insulation cost?

Most of our projects run between $3,500 and $12,500. The price follows the volume of foam, open or closed cell, the number of passes, access, prep, and the fire barrier the code requires. Removing old insulation is our own line item; replacing wiring is priced separately by that trade.

Where we install spray foam

We spray foam across all of New Jersey and Connecticut, in New York’s Hudson Valley, Westchester and Rockland included, and on Long Island; see our service area. Before we quote, we look at the space: what is in the rafters or rim bays now, water or roof leaks, wiring, how the attic or crawl space is used, and whether foam is the right material at all. The energy audit is free.

Call 914-554-2289 or use the contact form, 8am–8pm, seven days. The Home Insulators is family-owned, based in New Rochelle, NY since 2015, with a 100-plus-person in-house crew that never subcontracts.

Learn more

Get your free energy audit