Chapter 26 of 39
Spray foam around wiring, lights, ducts and pipes
Short answer
Yes. Spray foam insulation can surround standard NM-B cable, the electrical manufacturers' trade group says, with ampacity adjusted for bundled cables. Heat and old wiring are the limits: keep insulation away from non-IC can lights, flues and chimneys, and in Washington, foam may not be used with knob-and-tube wiring. Your electrical inspector has the final say.
On this page
Can spray foam touch electrical wires?
Yes, standard cable can be encased in spray foam insulation. A 2006 bulletin from the National Electrical Manufacturers Association says the National Electrical Code doesn't prohibit installing Type NM-B cable (often called Romex) in spray foam, and that its makers allow encasing it in foam. In a 1985 University of Toronto test it cites, foam-encased cable carrying full load for 10 hours peaked at 48.8 C and 53.9 C, far below its conductors' 90 C rating.1 Your electrical inspector has the final say. See our attic insulation page, and our new construction page for walls still open.
The catch is bundles. Under Washington's electrical rules, when more than two NM-B cables, each with two or more current-carrying conductors, run without spacing through one hole in wood framing that will be sealed with insulation, caulk or sealing foam, or lie together in insulation, their ampacity, the current they're sized to carry, gets adjusted.2 Your electrical inspector has the final say.
Heat is the other limit. UL wrote in 2011 that it hasn't specifically investigated spray foam on NM cable, that cured foam is an inert solid not expected to affect the cable's plastic, and that reported jacket damage may come from spraying more foam in one pass than recommended, which can raise the curing heat.3 The data sheet for the closed-cell foam we spray sets a maximum pass thickness and warns that foam applied too hot or too thick will overheat.4
| Around | What the sources say |
|---|---|
| NM-B cable | Allowed; bundled cables get their ampacity adjusted1,2 |
| Holes for wires and pipes | Expanding foam seals them5 |
| IC-rated can light | Rated for insulation contact; check the fixture's label and the foam maker's limits before foam touches it4,6 |
| Non-IC can light | No: insulation at least 3 inches away, no foam on the can6,7 |
| Flue or chimney | No: 1 or 2 inches of clearance, no spray foam5,8 |
| Knob-and-tube wiring | No foam, in Washington9 |
| Ducts in an attic or crawl space | On the outside, within fire limits10 |
| Pipes in an outside wall | Foam behind the pipe; protect from freezing11,12 |
| CPVC pipe | Ask the foam's maker; limit each pass13 |
Romex, boxes and keeping things serviceable
Around wiring, spray foam is an air sealer too. ENERGY STAR's attic steps say to fill wiring and plumbing holes with expanding foam and caulk around electrical boxes,5 and the Building America Solution Center seals the holes drilled through studs and plates so air can't follow the wire through the wall.14 But the code report for the closed-cell foam we spray says it "must not be used in electrical outlet or junction boxes," or where the maximum in-service temperature is over 180 F.15 Washington's residential energy code wants electrical boxes in the thermal envelope sealed, tested to NEMA OS 4 and marked "OS 4."16 Your building department has the final say.
What needs reaching has to stay reachable. The Department of Energy's work specifications for spray foam call for checking that no electrical junction in the area is left uncovered, and for keeping utility junctions accessible as local code requires.17 Washington law says electrical work can't be concealed until the inspector approves it, and must be accessible enough to test.18 Your electrical inspector has the final say.
Recessed lights, flues and chimneys
ENERGY STAR says never to lay insulation over recessed light fixtures, and to keep insulation at least 3 inches from cans that aren't rated IC (Insulated Ceiling).6 For older non-IC cans, the Solution Center calls insulation contact a fire hazard; its fix is a fire-rated cover with at least 3 inches of clearance, sealed with foam kept off the can and anything hot, or a new IC-rated, airtight fixture.7 Washington's residential energy code requires recessed lights in the thermal envelope to be IC-rated, tested airtight to ASTM E283, labeled and sealed to the ceiling.16 Your building department has the final say.
Flues and chimneys get no foam. ENERGY STAR notes that codes usually require 1 inch of clearance from metal flues and 2 inches from masonry chimneys to anything combustible, insulation included, and seals the gap with flashing and high-temperature caulk: "Do not use spray foam."5 The residential code says a masonry chimney's airspace "shall not be filled," except for fireblocking, and lists narrow exceptions, such as some listed chimney liners.8 Your building department has the final say.
Knob-and-tube wiring in Washington
ENERGY STAR lists knob-and-tube wiring (pre-1930), "which can be a fire hazard when in contact with insulation," among the things to have a professional fix before insulating.6 Washington's rule, WAC 296-46B-394, allows loose or rolled insulation in spaces with existing knob-and-tube wiring provided all three conditions are met:9
- A licensed electrical contractor surveys the wiring and certifies in writing to L&I that it's in good condition, with no improper overcurrent protection, failed or deteriorated conductor insulation, or improper connections or splices.
- The insulation meets Class I, with a flame spread of 25 or less. "Foam insulation may not be used with knob-and-tube wiring."
- The circuits have overcurrent protection by circuit breakers or Type S fuses, sized as the rule specifies.
So with knob-and-tube wiring, spray foam is out and an electrician comes first; blown-in loose fill, which our crew also does, is possible when those conditions are met. Your electrical inspector has the final say. More in our chapter on roof deck or blown-in.
Here in Eastern Washington
- Spokane, Stevens and every other Eastern Washington county are in Climate Zone 5B under Washington's residential energy code.19
- The energy code's outdoor heating design temperature is 4 F at Spokane's airport and -2 F at Colville's.20
- Washington's residential code leaves electrical work to the state electrical rules or a local code, and plumbing to the state plumbing code.21 The electrical rules adopt the 2023 National Electrical Code, and the 2026 edition takes effect December 31, 2026.22 Your electrical inspector has the final say.
Ducts and pipes
Ducts. The 2021 residential code allows spray foam on the outside of ducts in attics and crawl spaces when, among its conditions, the foam has a flame spread index of 25 or less and a smoke-developed index of 450 or less at the installed thickness, and an ignition barrier where those spaces require one.10 Washington's amendment to that chapter changes a different section.23 Washington's residential energy code lets air-impermeable spray foam serve as the duct joint seal, still requires leak tests, and wants ducts 3 inches and larger outside conditioned space insulated to at least R-8.24 Your building department has the final say.
The Solution Center's first choice is ducts inside the conditioned space. For ducts that must stay in a vented attic, it starts with ducts insulated to at least R-8, fastens and mastic-seals the joints, tests for leaks, then encapsulates them in at least 1.5 inches of closed-cell foam; its example gives an effective R-12.7 for an 8-inch round duct encapsulated with 1.5 inches of closed-cell foam. A sealed attic counts as inside.25 A 2009 guide from the Department of Energy's Building America program rates closed-cell foam preferred on ducts and open-cell not acceptable, since condensation on cooling ducts can wet open-cell foam.26 More in our chapter on sealed attics.
The higher the R-value, the greater the insulating power. Ask your seller for the fact sheet on R-values.
Pipes. Washington's plumbing code bars water, soil and waste pipes in attics, crawl spaces or outside walls unless they're protected from freezing where necessary.11 The Solution Center says to keep water pipes out of outside walls; where they must go, put as much insulation as possible between the pipe and the outside, which spray foam fills easily, and seal the cavity so cold air can't flow around the pipe.12 CPVC is a special case: a pipe maker's 2025 bulletin reports that curing foam can heat dry CPVC past its softening point, that thin passes with a wait between them let the foam tested cool, and that the foam's maker should confirm compatibility.13 Your building department has the final say.
Who comes first: the electrician, the plumber or the foam?
The residential code calls for rough inspection of plumbing, mechanical and electrical systems before they're covered or concealed.27 Your building department has the final say.
Washington's electrical law bars concealing wiring before the inspector approves it.18 Your electrical inspector has the final say.
The Solution Center seals around wires after they're in and before drywall,14 and tests ducts for leaks before they're encapsulated.25 On spray day, the foam's data sheet keeps other trades out while it's sprayed and lets them back in without protective gear after 2 hours of ventilation.4
More in our chapters on new walls, existing buildings and thermal and ignition barriers. Our crew is based in Ford, WA, and works across Spokane, Stevens County and all of Washington.
Questions
Can you spray foam over Romex?
Can you spray foam around can lights?
Can you spray foam over ductwork?
Can you spray foam around knob-and-tube wiring?
Not in Washington: "Foam insulation may not be used with knob-and-tube wiring."9 Your electrical inspector has the final say.