By The Roofing Brief Team | Last reviewed: November 2026
To insulate a flat roof from the inside, spray closed-cell foam directly against the underside of the roof deck to at least the R-value in 2021 IRC Table R806.5 for your climate zone (R-5 in zones 1 to 3, rising to R-35 in zone 8), fill the rest of each joist bay with unfaced batts touching that foam, and close it with 1/2-inch drywall. Stuffing batts or blown fiber straight against the deck with no foam layer and no vent path is the version that rots decks, because the membrane on top keeps the deck from drying upward.
That rule comes from 2021 IRC Section R806.5, which governs “unvented enclosed roof framing assemblies created by ceilings that are applied directly to the underside of the roof framing members.” A flat roof with drywall nailed to the joists is exactly that assembly. The other legal route, a vented cold roof, is covered further down and rarely works on a flat roof. If your roof is due for replacement within a few years, insulating from the top is usually the better buy; our flat roof insulation guide compares warm, cold and inverted assemblies.
Why insulating a flat roof from the inside causes condensation
Insulating under the deck makes the deck colder in winter, and a cold deck is where indoor water vapor condenses. A typical low-slope membrane (EPDM, TPO, modified bitumen or built-up asphalt) blocks vapor on the top side, so moisture that reaches the plywood from below has nowhere to go except back down. IRC R806.5 controls this by requiring an airtight insulation layer against the deck that is thick enough to keep the deck surface warm.

Table R806.5 is titled “Insulation for condensation control,” and its footnote b states the target: keep “the monthly average temperature of the underside of the structural roof sheathing above 45°F (7°C),” assuming 68°F inside and the average of the three coldest months outside. The colder the climate, the more foam it takes to hold the deck above 45°F, which is why the minimum climbs from R-5 to R-35. Our explainer on warm deck vs cold deck flat roofs covers the same physics for vented assemblies.
Before the ceiling comes down, a thermal roof inspection can show whether the existing insulation above is already wet.
The two code-legal ways to insulate a flat roof from below
The 2021 IRC allows two inside-only assemblies under a flat roof: an unvented assembly under R806.5 with air-impermeable insulation (closed-cell foam or sealed rigid board) against the deck, or a vented assembly under R806.1 to R806.3 with a 1-inch air channel above the insulation and outside air moving through every bay. A third R806.5 path, air-permeable insulation with a vapor diffusion port, is off the table because Item 5.2.7 requires a roof slope of at least 3:12.
| Assembly (inside only) | What goes against the deck | Key code numbers | Fit for a flat roof | Source |
|---|---|---|---|---|
| Unvented, all foam | Closed-cell spray foam filling the bay | R806.5 Item 5.1.1; Class II vapor retarder required in zones 5 to 8 (Item 4) | Works at any slope; highest cost per sq ft | 2021 IRC R806.5 |
| Unvented hybrid (“flash and batt”) | Closed-cell foam to the Table R806.5 R-value, batts directly below | R806.5 Item 5.1.3; R-5 (zones 1 to 3) to R-35 (zone 8) | Works at any slope; best R per dollar from inside | 2021 IRC R806.5, Table R806.5 |
| Unvented, sealed rigid board | Foam board cut to fit, perimeter of each sheet sealed | R806.5 Item 5.3; board must meet Table R806.5 | DIY possible; air-sealing every edge is the weak point | 2021 IRC R806.5 Item 5.3 |
| Vented cold roof | Nothing: 1 in air space, then insulation | R806.3 1 in space; R806.2 net free vent area 1/150 of the vented area | Needs cross vents at both ends of every bay; hard with parapets | 2021 IRC R806.2, R806.3 |
| Air-permeable with vapor diffusion port | Batts or blown fiber | R806.5 Item 5.2.7: slope at least 3:12 | Not allowed on a flat roof | 2021 IRC R806.5 Item 5.2 |
The unvented rules also carry two vapor limits. R806.5 Item 2 bars an interior Class I vapor retarder (polyethylene sheet, unperforated foil) on the ceiling side, so the assembly can dry inward. Item 4 requires the air-impermeable insulation in Climate Zones 5, 6, 7 and 8 to be a Class II vapor retarder or carry a Class II coating. The IRC classes, per ICC Tech Note TN06, are Class I at 0.1 perm or less, Class II above 0.1 up to 1.0 perm, and Class III above 1.0 up to 10 perms, tested under ASTM E96.
Minimum foam against the deck by climate zone (Table R806.5)
The foam thickness is the number that decides whether the job works. The left two columns below are 2021 IRC Table R806.5 as printed; the thickness column converts each minimum into inches of one named product, Natural Polymers Ultra-Pure Closed Cell, whose July 2026 data sheet lists R-7.2 at 1 inch, R-14 at 2 inches, R-25 at 3.5 inches, R-28 at 4 inches and R-35 at 5 inches, with vapor permeance under 1.0 perm (Class II) above 1.1 inches.
| Climate zone | Table R806.5 minimum R-value against the deck | Closed-cell thickness that meets it (Ultra-Pure CC sheet) | Class II needed (Item 4)? |
|---|---|---|---|
| 2B and 3B, tile roof only | 0 (none required) | Not applicable to membrane flat roofs | No |
| 1, 2A, 2B, 3A, 3B, 3C | R-5 | 1 in (R-7.2) | No |
| 4C | R-10 | 2 in (R-14) | No |
| 4A, 4B | R-15 | 2.5 in (about R-17) | No |
| 5 | R-20 | 3 in (about R-21) | Yes: met above 1.1 in |
| 6 | R-25 | 3.5 in (R-25) | Yes |
| 7 | R-30 | 4.5 in (about R-31) | Yes |
| 8 | R-35 | 5 in (R-35) | Yes |
“About” values are Roofing Brief interpolations between the thicknesses the data sheet lists, at roughly R-7 per inch. Other closed-cell brands rate differently, so size the foam from your installer’s own sheet. Look up your zone on the DOE/PNNL IECC climate zone map. The full Table R806.5 conditions, including the 45°F alternative, are unpacked in our IRC R806.5 unvented assembly guide.
Worked R-value math by joist depth
Flat roofs on houses and garages are usually framed with 2×8, 2×10 or 2×12 joists, which are 7.25, 9.25 and 11.25 inches deep. Subtract the foam from the depth, then fit the thickest standard batt that does not need compressing. Batt sizes come from an Owens Corning EcoTouch data sheet: R-13 at 3.5 in, R-21 at 5.5 in, R-19 at 6.25 in and R-30C at 8.25 in.
| Zone (foam layer) | 2×8 (7.25 in) | 2×10 (9.25 in) | 2×12 (11.25 in) |
|---|---|---|---|
| 4A/4B: 2.5 in foam, about R-17 | 4.75 in left: R-13 batt; total about R-30 | 6.75 in left: R-19 batt; total about R-36 | 8.75 in left: R-30C batt; total about R-47 |
| 5: 3 in foam, about R-21 | 4.25 in left: R-13; total about R-34 | 6.25 in left: R-19 (exact fit); total about R-40 | 8.25 in left: R-30C (exact fit); total about R-51 |
| 6: 3.5 in foam, R-25 | 3.75 in left: R-13; total R-38 | 5.75 in left: R-21; total R-46 | 7.75 in left: R-21; total R-46 |
| 7: 4.5 in foam, about R-31 | 2.75 in left: no standard batt fits; fill with foam to 7 in for R-49 | 4.75 in left: R-13; total about R-44 | 6.75 in left: R-19; total about R-50 |
| All closed-cell, full bay | 7 in: R-49 | 9 in: R-63 | 10 in: R-70 |
These are center-of-bay nominal values; wood joists at about R-1.25 per inch bridge every 16 or 24 inches, so the whole-assembly number lands lower. For comparison, the 2021 IECC Table R402.1.3 sets new-construction ceiling minimums of R-30 in zone 1, R-49 in zones 2 and 3 and R-60 in zones 4 to 8, and ENERGY STAR uses the same targets for retrofits. Only the all-foam 2×10 and 2×12 bays clear R-60 from the inside. Sloped cathedral ceilings use the same R806.5 rules with a vent-channel option that flat roofs lack; see our guide to insulation for a ceiling with no attic.
Two code provisions soften that gap. 2021 IECC R402.2.2 (“ceilings without attic spaces”) lets a roof/ceiling that lacks room for the full value drop to R-30, limited to 500 sq ft or 20% of the total insulated ceiling area, whichever is less. For remodels, IECC R503.1.1 Exception 2 lets existing ceiling cavities exposed during construction comply by being filled with insulation. How a given jurisdiction applies either exception varies, so ask the building department which one it accepts before you buy material.
Step by step: the hybrid method from inside

- Confirm the zone and the permit. Find the climate zone on the PNNL map and read the Table R806.5 minimum for it. Removing a ceiling and re-insulating usually needs a building permit and an insulation inspection before drywall; the inspector will check foam depth against R806.5.
- Fix every roof leak first. Closed-cell foam glued to the deck hides future leaks, and the Ultra-Pure CC sheet requires wood substrates under 18% moisture. Check the deck and joists with a pin moisture meter after removing the ceiling, and replace any soft or delaminated plywood from above before spraying.
- Strip the bay. Remove drywall or plaster and pull out old batts. Batts left against the deck would sit between the plywood and the new foam, and Item 5.1.3 requires the foam in direct contact with the sheathing. Swap any recessed cans for IC-rated, airtight fixtures and re-route wiring now.
- Spray the foam layer. Apply closed-cell foam to the Table R806.5 thickness in passes. The Ultra-Pure CC sheet calls for 2 to 3 inch passes, a 5 to 10 minute wait between lifts, substrate temperatures of 40°F to 120°F, and no spraying above 85% relative humidity. The sheet recommends at least 10 air changes per hour during spraying, 2 hours before trade workers re-enter and 24 hours before re-occupancy.
- Check depth before batts. Probe the foam at 3 or more points per bay with a marked wire or depth gauge. Thin spots near joists and blocking are where the deck stays cold, and Item 5.1.3 requires the foam itself to meet the Table R806.5 value.
- Install unfaced batts touching the foam. Item 5.1.3 says the air-permeable insulation “shall be installed directly under the air-impermeable insulation,” so press batts up against the foam with no gap. Use unfaced batts: R806.5 Item 2 bars a Class I layer on the ceiling side, and kraft facing (Class II) adds nothing useful here.
- Skip the polyethylene. Do not staple 6-mil poly under the joists. It is a Class I vapor retarder, which R806.5 Item 2 does not allow on the ceiling side of an unvented enclosed roof assembly.
- Cover with 1/2-inch drywall. IRC R316.4 requires foam plastic to be separated from the interior by a thermal barrier of at least 1/2-inch gypsum wallboard or an approved equivalent. Batts between foam and drywall do not count as that barrier, so the ceiling has to go back on before the room is used.
Spray foam, rigid board or batts: which insulation works best from inside
Closed-cell spray foam is the only material that does the deck-side job in one step at any slope, because it is air-impermeable, sticks to the plywood and turns Class II above about 1.1 inches on the Ultra-Pure CC sheet. Open-cell foam fails the zone 5 to 8 vapor rule on its own: Ultra-Pure Open Cell, per its July 2026 data sheet, rates more than 30 perms at 1 inch and R-3.8 per inch, so it would need a Class II coating to qualify there.
| Material against the deck | R per inch | Vapor class at working thickness | Inside-only role on a flat roof | Source |
|---|---|---|---|---|
| Closed-cell spray foam (Ultra-Pure CC) | 7.2 at 1 in; 25 at 3.5 in | Class II above 1.1 in | Primary deck layer, any zone | Natural Polymers data sheet, July 2026 |
| Open-cell spray foam (Ultra-Pure OC) | 3.8 at 1 in; 20 at 5.5 in | Over 30 perms at 1 in (not Class II) | Zones 1 to 4 only, or with a Class II coating in 5 to 8 | Natural Polymers data sheet, July 2026 |
| Rigid foam board, cut and sealed | Product specific | Varies by facing and thickness | DIY deck layer under Item 5.3 if every sheet perimeter is sealed | 2021 IRC R806.5 Item 5.3 |
| Fiberglass or mineral wool batts | R-21 in 5.5 in (EcoTouch) | Unfaced: vapor open | Only below the foam layer, never alone against the deck | Owens Corning EcoTouch sheet |
For board-by-board R-values and fire rules on EPS, XPS and polyiso, see our foam board insulation guide. Foil-faced polyiso (foil is Class I at 0.1 perm or less) glued to the underside of a membrane-covered deck puts a vapor-closed foil on one side of the plywood and a near-impermeable membrane on the other, so many designers avoid foil facings in this spot. For a broader material comparison, read spray foam vs blown-in insulation.
The vented option, and why it rarely works on a flat roof
A vented cold roof keeps the deck dry with moving outside air instead of foam. 2021 IRC R806.3 requires at least a 1-inch space between the insulation and the roof sheathing at the vent locations, and R806.2 sets the net free vent area at 1/150 of the vented area. On a 12 by 20 ft flat roof that is 240 sq ft divided by 150, or 1.6 sq ft (230 sq in) of net free vent area, split between opposite ends of every joist bay.
One route to the 1/300 reduction in R806.2 places 40% to 50% of the vent area in the upper portion of the space, no more than 3 ft below the ridge or highest point, and a flat roof has no height to work with. Bays that dead-end at a parapet, a blocked rim or a wall below get no cross flow at all. A 2×8 bay that gives up 1 inch to the air channel leaves 6.25 inches, enough for an R-19 batt and no more. The vent layouts that do work are drawn out in our flat roof ventilation guide.
What it costs to insulate a flat roof from inside
Spray foam is sold by the board foot (1 sq ft at 1 inch thick). Fixr (updated January 31, 2025) lists closed-cell material at $1.00 to $1.50 per board foot, open-cell at $0.44 to $0.65, labor at $50 to $100 per hour, and $3.15 to $7.50 per sq ft installed in existing walls; Fixr does not price closed roof bays separately. Those are national figures and can move with local labor rates and minimum job charges.
| Worked example: 12 x 20 ft room, 2×10 joists, zone 5 | Board feet | Closed-cell material at $1.00 to $1.50/bd ft |
|---|---|---|
| Hybrid: 3 in foam (Table R806.5 R-20) + R-19 batts | 240 sq ft x 3 in = 720 | $720 to $1,080, plus batts |
| All foam: 9 in, about R-63 | 240 sq ft x 9 in = 2,160 | $2,160 to $3,240 |
| Fixr installed range for existing walls, applied to the same area | 240 sq ft | $756 to $1,800 at $3.15 to $7.50/sq ft |
The material math is a Roofing Brief estimate built only from Fixr’s per-board-foot prices. Ceiling demolition, disposal, drywall, tape and paint and any deck repair sit on top, and those trades usually cost more than the foam on a small room. A reroof with tapered polyiso above the deck avoids the ceiling work entirely but costs a full membrane replacement; our flat garage roof replacement page prices that route.
Inside or wait for the reroof: decision table
| If your situation is | Then do this | Rule behind it |
|---|---|---|
| Membrane is due for replacement within a few years | Wait and add polyiso above the deck at the reroof (warm roof) | Above-deck board satisfies R806.5 Item 5.1.2 and keeps the deck warm |
| Deck reads 18% moisture or higher, or plywood is soft | Repair leaks and deck from above before any insulation | Ultra-Pure CC sheet: wood under 18% moisture |
| Zones 1 to 4, ceiling already open | Hybrid: 1 to 2.5 in closed-cell plus unfaced batts | Table R806.5: R-5 to R-15 |
| Zones 5 to 8, 2×8 joists | Fill the bay with closed-cell or add above-deck board later; batt room is 2.75 to 4.25 in | Table R806.5: R-20 to R-35; Item 4 Class II |
| You want to keep the ceiling and blow fiber in through holes | Do not: air-permeable fill against the deck with no foam or vents is not a listed assembly | R806.5 Items 5.1 and 5.2.7 (3:12 minimum) |
| Bays open at both ends with soffit or fascia access | A vented cold roof is possible: 1 in channel, 1/150 vent area | IRC R806.2, R806.3 |
Garage and porch roofs follow the same 2021 IRC R806.5 rules once the space below is heated and inside the thermal envelope (Item 1). For deeper context on the membrane above, see our guide to the best flat roof systems for cold climates.
Frequently asked questions
Can you insulate a flat roof from the inside without removing the ceiling?
Not in a code-listed way for most homes. Blowing cellulose or fiberglass through holes puts air-permeable insulation against the deck with no foam layer and no vent channel, which 2021 IRC R806.5 does not permit, and the vapor diffusion port option needs a 3:12 slope. The ceiling has to come down for spray foam or sealed board against the deck.
Do I need a vapor barrier when insulating a flat roof from inside?
Not a polyethylene one. 2021 IRC R806.5 Item 2 bars an interior Class I vapor retarder, such as 6-mil poly, on the ceiling side of an unvented roof assembly. In Climate Zones 5 to 8, Item 4 instead requires the foam against the deck to be a Class II vapor retarder (above 0.1 up to 1.0 perm), which closed-cell foam meets at about 1.1 inches or more.
What type of insulation is best for a flat roof from the inside?
Closed-cell spray foam against the deck, at least to the 2021 IRC Table R806.5 value for your zone (R-5 to R-35), with unfaced batts below it. Natural Polymers Ultra-Pure Closed Cell lists R-25 at 3.5 inches and under 1.0 perm above 1.1 inches. Open-cell foam rates over 30 perms at 1 inch, so it needs a Class II coating in zones 5 to 8.
Can I screw foam board to the ceiling under a flat roof instead?
Foam board fixed under the joists leaves the joist bays and deck colder, and foil-faced board on the ceiling side is a Class I vapor retarder that 2021 IRC R806.5 Item 2 bars in an unvented roof assembly. If the bays above hold old batts against the deck, condensation risk at the deck goes up rather than down.