Short answer
Spray foam is combustible, so the residential code (IRC Section R316) requires it to be covered. Where it faces living space, basements and attached garages, that means a 15-minute thermal barrier such as ½-inch drywall. In attics and crawlspaces entered only for service, a lighter ignition barrier is enough, or none if the foam passed fire testing for that use; rim joists can be left bare up to 3¼ inches thick.
Key points
- Thermal barrier (R316.4): ½-inch gypsum board or an approved equivalent between the foam and the inside of the house.
- Ignition barrier (R316.5.3 attics, R316.5.4 crawlspaces): allowed only where code-required access exists and the space is entered just for service. Examples include 1½-inch mineral fiber, ¼-inch wood structural panel and ⅜-inch gypsum board.
- Foams fire-tested for the actual use (R316.6), such as under ICC-ES AC377 Appendix X, or covered with a tested intumescent coating like DC 315, can skip the prescriptive barrier within the limits of their evaluation report.
- Rim joists (R316.5.11): foam may stay exposed up to 3¼ inches thick if its density and fire ratings are in range.
- Pennsylvania's UCC moved to the 2021 IRC on January 1, 2026. These sections carry the same numbers in the 2018 edition.
Thermal barrier vs ignition barrier: what each one does
Cured spray foam "will burn when exposed to direct flame," as the industry's Center for the Polyurethanes Industry (CPI) puts it, and that is true of every brand, open-cell or closed-cell. The code handles it with two levels of protection.
A thermal barrier is the heavier one. It's rated to protect the foam for 15 minutes of fire exposure, so the foam behind it doesn't feed a room fire early. The prescriptive choice is ½-inch gypsum wallboard; other materials can qualify if they're tested and approved as equivalent.
An ignition barrier is lighter. Its job is to keep a small flame or spark from igniting the foam, and the code allows it only in spaces people don't live in or use for storage: attics and crawlspaces entered for service.
Which code applies in Pennsylvania
Pennsylvania enforces the International Residential Code through the Uniform Construction Code (UCC). The 2021 I-codes took effect statewide on January 1, 2026. A project with a design or construction contract signed before that date could still use the 2018 code if its permit application went in by June 30, 2026.
The foam sections covered here, R316.4, R316.5.3, R316.5.4, R316.5.11 and R316.6, carry the same numbers in the 2018 and 2021 IRC. Your municipality's building code official, or its third-party inspection agency, makes the call on your project.
Where each barrier goes
| Area | What IRC R316 asks for | Common ways to meet it |
|---|---|---|
| Walls and ceilings of living space | 15-minute thermal barrier (R316.4) | ½-inch drywall |
| Basement walls, finished or not | Thermal barrier (R316.4) | Drywall over a framed wall, or a coating approved in the foam's evaluation report |
| Rim joist and sill plate | No barrier up to 3¼ inches, within density and fire limits (R316.5.11) | Keep the foam at 3¼ inches or less; thicker needs a barrier |
| Attic entered only for service | Ignition barrier (R316.5.3), or foam tested for the use | 1½-inch mineral fiber, ¼-inch wood structural panel, ⅜-inch gypsum board, or an Appendix X-tested foam |
| Attic used for storage or living | Thermal barrier | Drywall |
| Crawlspace entered only for service | Ignition barrier (R316.5.4), or foam tested for the use | Same list as attics |
| Attached garage | Thermal barrier (R316.4) | Drywall, which also serves the garage-to-house separation rules in R302.6 |
Attics and crawlspaces
The ignition-barrier option comes with conditions. The attic or crawlspace must have access the code requires, and it can be entered only for repairs, maintenance or servicing utilities. The ignition barrier materials the code lists include:
- 1½-inch mineral fiber insulation
- ¼-inch wood structural panels
- ⅜-inch particleboard
- ¼-inch hardboard
- ⅜-inch gypsum board
- 0.016-inch (16 mil) corrosion-resistant steel
Storage is the line. A floored attic invites boxes, and North Carolina's Office of State Fire Marshal, for example, treats a floored attic area as storage that rules out the ignition-barrier option, with a narrow exception for a marked service walkway. Pennsylvania officials may read it differently, but once an attic holds belongings or becomes a bonus room, plan on a full thermal barrier. Crawlspaces have their own decisions to make first, covered in crawl space spray foam.
Skipping the barrier: Appendix X and intumescent coatings
R316.6 lets a foam go without the prescriptive barrier when it is specifically approved based on fire tests of the actual end-use configuration, at the maximum thickness intended. In practice that approval lives in the foam's evaluation report.
For attics and crawlspaces, the usual test is ICC-ES AC377 Appendix X, which CPI describes as a large-scale fire test based on a modified NFPA 286 room-corner test. Many current closed-cell foams list Appendix X approval for attics and crawlspaces on their data sheets. The foam's evaluation report then attaches conditions, and reports from different manufacturers list much the same ones:
- Entry only to service utilities, and no storage.
- No interconnected attic or crawlspace areas, and no circulating that air to the rest of the house.
- Ventilation where the code requires it, unless the attic is an approved unvented design.
- Combustion air for any appliances.
- Maximum foam thicknesses listed in the report.
- An installation certificate posted at each entrance.
For living space, an intumescent coating is the alternative to drywall. It's a paint-like coating that swells into an insulating char when heated; DC 315 is a common example. The approval covers a specific foam and coating tested together, and the numbers differ between products. One HFO closed-cell data sheet lists DC 315 at 18 mils wet (12 mils dry). Another manufacturer's evaluation report calls for 4 wet mils of DC 315 primer plus 16 wet mils of DC 315, and limits that foam to 5½ inches in walls.
A coating only works at full thickness. Ask for the coating product, the required wet-mil thickness and the evaluation report that pairs it with your foam. A coating listed with one foam isn't automatically approved over another.
Rim joists: the 3¼-inch exception
The rim joist is the band of framing that sits on the foundation wall, and it's one of the leakiest spots in most houses. R316.5.11 lets spray foam on sill plates, joist headers and rim joists stay exposed with no thermal barrier, as long as:
- The foam is no more than 3¼ inches thick.
- Its density is between 0.5 and 2.0 pounds per cubic foot.
- It has a flame spread index of 25 or less and a smoke-developed index of 450 or less.
Check the foam's data sheet against all three. Density deserves a look: most 2-lb closed-cell foams sit at or near the 2.0 lb/ft³ limit, and some list more, such as 2.2 lb/ft³. A foam outside the range can still be left exposed at the rim if its evaluation report specifically allows it, and some reports do. Spray past 3¼ inches on the rim and the exception no longer applies. For how much foam a rim joist actually needs, see rim joist spray foam.
Mistakes to watch for
- Foam left bare on basement walls because "it's just a basement." See basement wall insulation for the options.
- Rim joists sprayed well past 3¼ inches and left exposed.
- An attic treated as service-only that has a floor and a pile of boxes.
- An intumescent coating rolled on thin, or one that isn't listed with that foam.
- Exposed foam in an attached garage.
For how cured foam behaves in a fire and why the code treats it this way, see is spray foam flammable.
Want a number for your own project? Price My Project or call (814) 208-3478.
FAQ
Does open-cell foam need a thermal barrier too?
Yes. R316 covers foam plastic in general, open-cell or closed-cell, and both need a thermal barrier facing living space unless an evaluation report allows otherwise.
Is drywall the only thermal barrier?
No. Half-inch gypsum board is the prescriptive choice, but tested equivalents and coating systems approved in a foam's evaluation report can also qualify.
Do pole barns and detached shops need a barrier?
The IRC covers houses. Detached shops, pole barns and commercial buildings may fall under different rules, so ask your local code official before deciding to leave foam bare.
Who checks this?
Your municipality's building code official or its third-party agency, at inspection. Where foam is left exposed in an attic or crawlspace under an evaluation report, the report typically requires an installation certificate posted at each entrance.
Sources
- City of York, PA: 2021 UCC Code Update and Implementation
- Pennsylvania Housing Research Center (Penn State): Code Update Training
- PHRC webinar: Spray Foam Requirements for Thermal Barriers and Ignition Barriers in the IRC
- Center for the Polyurethanes Industry: Know the Code, Using Spray Foam Insulation in Attics and Crawl Spaces
- Huntsman Building Solutions: HEATLOK HFO High Lift Technical Data Sheet (rev. 11.25.24)
- ICC-ES ESR-4073: HEATLOK HFO High Lift Spray Foam Insulation
- ICC-ES ESR-2642: WALLTITE LWP, WALLTITE Max and WALLTITE One (BASF, reissued January 2026)
- North Carolina Office of State Fire Marshal: Determining Attic Storage and Use of Spray Foam Insulation Ignition or Thermal Barriers
- Center for the Polyurethanes Industry: Homeowner Frequently Asked Questions