To reach R-30 in an open rafter cavity, plan on roughly 4.5 to 5 inches of closed-cell spray foam (tested around R-6.0 to R-7.0 per inch) or roughly 8.5 to 9 inches of open-cell spray foam (tested around R-3.5 to R-3.6 per inch). Closed-cell foam packs more R-value into less depth, so it's the common choice when rafter depth is limited, while open-cell foam usually needs a cavity close to a full 2x10 to hit R-30. The exact thickness depends on your specific foam product's tested R-value, and if you're building an unvented (cathedral) roof assembly, your local code may also require a minimum ratio of closed-cell foam for condensation control — confirm that with your building department before spraying.
What "R-30 in Rafters" Actually Requires
R-value measures a material's resistance to heat flow — the higher the number, the better the insulating performance. R-30 is a target total resistance for the insulated assembly, not a thickness. Spray foam manufacturers publish an R-value per inch for each product, and you reach your target R-value by installing enough inches of that specific foam to add up to R-30.
This matters most in attic rafters because rafter cavities are shallower and more constrained than an open attic floor. A standard attic floor can carry 12+ inches of loose-fill or batt insulation with no structural limit. A rafter bay is boxed in by the rafter depth itself — typically 5.5 to 11.25 inches for common framing sizes — so the insulation's R-value per inch determines whether R-30 is even physically achievable in that cavity.
This is also why the closed-cell vs. open-cell decision is the single biggest variable in this calculation. Both are spray polyurethane foam, but they behave very differently per inch.
Closed-Cell vs. Open-Cell: R-Value Per Inch
Closed-cell spray foam (ccSPF) is a higher-density foam (typically about 2 pounds per cubic foot) where the cell structure is fully closed and filled with a low-conductivity blowing gas. That gas — not the plastic foam itself — is largely responsible for the higher R-value per inch. Open-cell spray foam (ocSPF) is a lower-density foam (typically about 0.5 pounds per cubic foot) with an open cell structure that fills with ordinary air, which conducts heat more readily than the gas trapped in closed-cell foam.
| Foam Type | Density | R-Value per Inch | Other Properties |
|---|---|---|---|
| Closed-cell (ccSPF) | ~2.0 lb/ft³ | R-6.0 to R-7.0 | Rigid, adds structural racking strength, acts as a vapor retarder, air-impermeable |
| Open-cell (ocSPF) | ~0.5 lb/ft³ | R-3.5 to R-3.6 | Soft/spongy, better sound dampening, vapor-permeable, air-impermeable at typical thickness |
These per-inch values are typical ranges, not universal constants. Every foam system has its own tested R-value, published either as an initial R-value (measured shortly after spraying) or as a long-term thermal resistance (LTTR) value that accounts for gradual gas diffusion in closed-cell foam over time. Code compliance calculations generally rely on the LTTR value for closed-cell products, which is usually a few points lower per inch than the initial number printed in marketing material.
How Much Thickness You Need for R-30
The calculation is straightforward division: target R-value ÷ R-value per inch = required thickness in inches. Because closed-cell and open-cell foam have very different per-inch values, they require very different cavity depths to reach the same R-30 target.
- Get the manufacturer's tested R-value per inch for the specific foam being sprayed, from the product's ICC-ES report or technical data sheet — not a generic industry average.
- Divide your target R-value (30) by that per-inch value to get the required thickness in inches.
- Measure your actual rafter depth and subtract any required ventilation air space if you're using a vented roof assembly.
- Compare the required foam thickness to the available cavity depth. If the numbers don't fit, consider a hybrid closed-cell/open-cell layer, a deeper rafter (if this is new construction), or adding rigid foam above the roof deck instead.
| Foam Type | R-Value per Inch Used | Thickness for R-30 |
|---|---|---|
| Closed-cell (lower end) | R-6.0/in | 5.0 inches |
| Closed-cell (higher end) | R-6.7/in | ~4.5 inches |
| Open-cell (lower end) | R-3.5/in | ~8.6 inches |
| Open-cell (higher end) | R-3.6/in | ~8.3 inches |
In practice, most closed-cell installations targeting R-30 land in a 4.5 to 5-inch range, and most open-cell-only installations targeting R-30 need close to 8.5 to 9 inches — which is why open-cell alone is often impractical in anything shallower than a 2x10 rafter.
Does R-30 Actually Fit in Your Rafter Bay?
Rafter depth is fixed once the roof is framed, so the real-world question is whether R-30 worth of foam physically fits in the cavity you have. Nominal lumber sizes are larger than actual dimensional depth — a "2x10" rafter, for example, is actually 9.25 inches deep.
| Nominal Rafter Size | Actual Depth | Closed-Cell Only (~4.5-5 in) | Open-Cell Only (~8.5-9 in) |
|---|---|---|---|
| 2x6 | 5.5 in | Fits, with 0.5-1 in to spare | Does not fit |
| 2x8 | 7.25 in | Fits comfortably | Does not fit |
| 2x10 | 9.25 in | Fits with room left over | Fits, with very little clearance |
| 2x12 | 11.25 in | Fits with substantial room to spare | Fits, with room for a vent channel if desired |
This is the practical reason closed-cell foam is the default choice in shallow rafter bays. If your rafters are 2x6 or 2x8 and you want R-30, open-cell alone almost never gets there — you either need closed-cell foam, a hybrid layered system, or supplemental rigid insulation above the roof deck.
The Hybrid Approach: Closed-Cell Plus Open-Cell
A common strategy in mid-depth rafter bays combines a base layer of closed-cell foam directly against the roof deck with a fill layer of open-cell foam over it. The closed-cell layer controls moisture and air movement at the cold roof-deck surface, while the cheaper open-cell layer adds the remaining bulk R-value at lower material cost than filling the whole cavity with closed-cell foam.
Example Hybrid Calculation
2 inches of closed-cell foam at R-6.5/inch ≈ R-13. Remaining target: R-17. At R-3.6/inch, open-cell needs about 4.75 inches. Total thickness: about 6.75 inches — fitting inside a 2x8 or 2x10 rafter.
Why Contractors Use This
It reduces material cost compared to an all-closed-cell fill, while keeping enough closed-cell foam against the deck to meet condensation-control expectations in many climates and code jurisdictions.
This is an illustrative example, not a fixed formula — the exact split depends on your climate, the specific foam products used, and any minimum closed-cell ratio required by your locally adopted building code for unvented assemblies.
Vented vs. Unvented Rafter Assemblies and Code Ratios
If your rafter cavity will be built as a vented roof assembly, you need to preserve an open air channel (commonly maintained with rigid foam or plastic baffles) between the roof deck and the top of the insulation, which reduces the usable depth for foam. If it's built as an unvented, or "compact," roof assembly — foam sprayed directly against the underside of the roof deck with no vent channel — building codes generally require a minimum amount of air-impermeable insulation (such as closed-cell foam) at the roof deck to keep the deck warm enough to avoid condensation inside the assembly.
The exact ratio of air-impermeable insulation to total insulation R-value in unvented assemblies is climate-zone dependent under the International Residential Code's provisions for unvented attic and rafter assemblies, and the specific ratio your inspector will enforce depends on which edition of the IRC or IECC your jurisdiction has adopted.
Ignition Barrier and Thermal Barrier Requirements
Spray foam is combustible and is generally required by code to be separated from occupied interior space by an approved thermal barrier — commonly 1/2-inch drywall or an equivalent 15-minute-rated material. In attics and crawlspaces that are accessed only for storage or equipment servicing rather than occupied as living space, codes typically allow a lighter-duty ignition barrier instead of a full thermal barrier, but foam left completely exposed with no barrier at all is a common code violation in finished or storage attics alike.
If your rafter cavity foam will remain exposed (for example, in an unfinished attic used for HVAC equipment), confirm with your contractor and local building department which barrier — ignition or thermal — applies to your specific space and whether the foam product itself carries an approved exposed-application rating.
Common Mistakes and Red Flags
- An installer quotes "R-7 per inch" for closed-cell foam without referencing a specific product's ICC-ES report or LTTR value — ask which number is being used before calculating thickness.
- The proposal says foam will "fill the cavity" without specifying a target R-value, thickness, or foam type — filling a cavity and reaching R-30 are not the same thing if the wrong foam type is used.
- An unvented rafter assembly is proposed with open-cell foam only and no closed-cell layer, with no discussion of condensation control at the roof deck.
- Exposed foam in an accessible attic has no ignition barrier or thermal barrier discussed in the scope of work.
- The quote does not distinguish between initial R-value and aged R-value for closed-cell foam, which can overstate how much thickness is actually needed.
Cost Implications of Each Approach
Closed-cell foam typically costs more per board foot installed than open-cell foam, but because it requires roughly half the thickness to reach the same R-value, the material cost gap for hitting R-30 in a rafter bay is often smaller than the per-board-foot price difference alone would suggest. Open-cell foam can still be the more economical choice when rafter depth is generous enough (2x10 or deeper) to accommodate the extra thickness it needs. A hybrid layer is frequently the middle-cost option: it uses less expensive closed-cell foam than an all-closed-cell fill while still meeting deck-side moisture control expectations.
Get itemized bids that state the foam type, target thickness, and calculated R-value per layer — a bid that only lists a total price with no thickness or R-value specified makes it difficult to confirm you're actually getting R-30.
Before You Hire: Your Verification Checklist
- Confirm the exact foam product being used and request its ICC-ES report or technical data sheet.
- Confirm whether the quoted R-value per inch is initial or aged (LTTR), and use the aged value for closed-cell thickness planning.
- Measure your actual rafter depth (not the nominal lumber size) before assuming R-30 will fit.
- Confirm whether your assembly will be vented or unvented, since this changes how much cavity depth is available for foam.
- If unvented, confirm the required closed-cell/total-R ratio with your local building department for condensation control.
- Confirm what thermal barrier or ignition barrier will be used over any exposed foam.
- Get the target thickness and calculated total R-value in writing in the contract, not just a lump-sum price.
Frequently Asked Questions
What is the R-value per inch of closed-cell spray foam?
Closed-cell spray polyurethane foam typically tests at roughly R-6.0 to R-7.0 per inch, depending on the manufacturer's formulation and whether the figure is the initial R-value or the aged long-term thermal resistance (LTTR) value used for code compliance. Ask your installer which value they used to calculate your target thickness.
What is the R-value per inch of open-cell spray foam?
Open-cell spray polyurethane foam typically tests at roughly R-3.5 to R-3.6 per inch. Because the cells are open and filled with air rather than a low-conductivity gas, open-cell foam needs more than double the thickness of closed-cell foam to reach the same R-value.
Can closed-cell and open-cell foam be combined in the same rafter bay to reach R-30?
Yes. A common hybrid approach applies a layer of closed-cell foam directly against the roof deck first, then fills the remaining rafter depth with lower-cost open-cell foam. For example, roughly 2 inches of closed-cell foam plus about 4.75 inches of open-cell foam can approximate R-30 in about 6.75 inches of total cavity depth, which fits inside a standard 2x8 or 2x10 rafter.
Does R-30 in rafters automatically meet current energy code?
Not necessarily. Prescriptive ceiling and cathedral-ceiling insulation minimums in the International Energy Conservation Code vary by climate zone, and the locally adopted code edition may differ from the current model code. Unvented rafter assemblies can also require a minimum ratio of air-impermeable insulation for condensation control. Confirm the applicable requirement with your local building department before finalizing a thickness.
Do I need a ventilation air space above spray foam applied in rafters?
It depends on whether the roof assembly is designed as vented or unvented. A vented assembly keeps an open air channel between the roof deck and the insulation, which reduces how much cavity depth is available for foam. An unvented (compact) assembly fills the full rafter depth without a vent channel but generally requires code-recognized air-impermeable insulation, which is why closed-cell foam is common in unvented designs.
Does spray foam's R-value stay the same years after installation?
Open-cell foam's R-value is generally stable over time. Closed-cell foam can experience gradual R-value drift as the low-conductivity gas in the cells slowly diffuses and is partially replaced by air, which is why code compliance calculations typically use the aged long-term thermal resistance (LTTR) value rather than the higher initial R-value measured right after spraying.