Most attics are insulated at the floor, with a thick blanket of loose fill over the ceiling joists. That works until you want to use the attic as living space, store things up there without heat damage, or house HVAC equipment and ductwork inside the thermal envelope. Then the insulation needs to move up into the roof slope, and choosing the best insulation for attic rafters becomes a balance of R-value per inch, rafter depth, moisture control, and budget. Rafter bays are shallow compared with an open attic floor, so the material that packs the most R-value into the least space often wins, but it is not the only factor.
- Finding the Best Insulation for Attic Rafters: What Matters
- Vented vs. Unvented Rafter Assemblies
- Insulation Options Compared
- Closed-Cell Spray Foam
- Open-Cell Spray Foam
- Rigid Foam Board
- Fiberglass and Mineral Wool Batts
- Which Is the Best Insulation for Attic Rafters in Your Home
- Cost Comparison for a Typical Attic
- When to Call a Licensed Professional
- Frequently Asked Questions
Finding the Best Insulation for Attic Rafters: What Matters
Before comparing materials, measure what you have. A 2×6 rafter is 5-1/2 inches deep, a 2×8 is 7-1/4 inches, a 2×10 is 9-1/4 inches, and a 2×12 is 11-1/4 inches. Energy codes based on the International Energy Conservation Code call for ceiling or roof insulation from about R-30 in the warmest climate zones up to R-49 or R-60 in colder zones, depending on the edition your jurisdiction has adopted. Hitting those numbers inside a 2×6 or 2×8 rafter is impossible with low-density materials alone, which is why the choice of product matters so much.
Four factors decide the right product:
- R-value per inch relative to rafter depth.
- Air sealing ability, since air leaks undercut any R-value on paper.
- Vented or unvented roof design, which controls whether an air gap is required under the roof deck.
- Installed cost and whether the work is DIY-friendly.
Vented vs. Unvented Rafter Assemblies
This decision comes before the material choice. In a vented assembly, air flows from soffit vents to a ridge vent through a channel between the insulation and the roof deck. You install baffles (rafter vents) against the underside of the sheathing to keep that channel open, then insulate below them. The vent channel is often at least 1 inch deep, which reduces the space available for insulation.
In an unvented, conditioned attic, there is no vent channel. The International Residential Code allows this approach when air-impermeable insulation, such as closed-cell or open-cell spray foam or rigid foam board, is placed in direct contact with the underside of the roof deck or above it, in amounts that satisfy climate-zone requirements for controlling condensation. Air-permeable batts alone against the deck are not allowed in an unvented assembly in most cases because warm, humid indoor air can condense on cold sheathing.
Your local building official interprets these rules, so confirm the approach before buying materials.
Insulation Options Compared
| Material | Approx. R-Value per Inch | Relative Installed Cost |
|---|---|---|
| Closed-cell spray foam | R-6 to R-7 | High |
| Open-cell spray foam | R-3.5 to R-3.8 | Moderate |
| Polyiso rigid board | About R-5.5 to R-6.5 | Moderate to high |
| XPS rigid board | About R-5 | Moderate |
| EPS rigid board | About R-3.6 to R-4.2 | Low to moderate |
| Mineral wool batts | About R-4 to R-4.3 | Moderate |
| High-density fiberglass batts | About R-3.7 to R-4.3 | Low |
Values vary by manufacturer and temperature; polyiso in particular loses some effective R-value in very cold conditions. Always check the product’s labeled R-value.
Closed-Cell Spray Foam
Closed-cell foam delivers the most R-value per inch, doubles as an air barrier, and at around 2 inches or more typically acts as a vapor retarder. In a 2×6 rafter, a full-depth application reaches well over R-30. It also adds some racking strength to the roof deck. The downsides are cost, the need for a trained installer, occupancy restrictions during and after application, and difficulty of future removal if a roof leak develops. Installed costs are often quoted per board foot (1 square foot at 1 inch thick) and commonly land in the range of roughly $1 to $2 or more per board foot, so a full-depth application in a large attic adds up quickly.
Many installers use a flash-and-batt strategy: 2 to 3 inches of closed-cell foam to seal and control condensation, then fiberglass or mineral wool batts below to fill the rest of the cavity at lower cost.
Open-Cell Spray Foam
Open-cell foam is lighter and less expensive per board foot, and it expands to fill irregular cavities and seal air leaks well. At about R-3.7 per inch, a 2×10 rafter filled to depth provides roughly R-34. It is vapor-permeable, so in colder climate zones it may require a vapor retarder coating on the interior face to meet code. Open-cell foam also absorbs water, which can hide roof leaks for longer. Many homeowners choose it in mild and hot-humid climates where cost per R-value matters most.
Rigid Foam Board
Rigid foam is a strong option for the DIYer who wants foam-like performance without a spray rig. Two common approaches:
- Cut-and-cobble: Foam boards cut to fit between rafters, edges sealed with canned foam. Inexpensive, but labor-intensive, and gaps from wood shrinkage can open over time. Some building scientists recommend limiting this method in cold climates because air leaks at the edges can lead to condensation.
- Continuous layer under the rafters: Sheets of polyiso screwed across the underside of the rafters with seams taped. This breaks thermal bridging through the wood, which otherwise accounts for a meaningful share of heat loss, and adds R-value without deeper framing.
The best results often combine batts in the cavity with a continuous rigid layer below. Foam board must be covered with an approved thermal barrier, usually 1/2-inch drywall, in habitable spaces.
Fiberglass and Mineral Wool Batts
Batts are the lowest-cost route and easy to install, but they require a vented assembly with baffles and a careful interior air barrier. High-density fiberglass products are made for rafters: R-21 fits a 2×6, and higher-density R-30 and R-38 products fit 2×10 and 2×12 cavities. Mineral wool is fire-resistant, water-repellent, holds its shape well friction-fit between rafters, and is easier to cut cleanly. It also offers better sound dampening, which is useful in a bonus room under a roof.
Batts perform only as well as the air sealing behind them. Seal top plates, penetrations, and the drywall perimeter, and never compress batts to squeeze them into a shallow bay, since compression lowers R-value.
Which Is the Best Insulation for Attic Rafters in Your Home
Matching the product to the situation makes the decision easier:
- Shallow 2×4 or 2×6 rafters, cold climate: Closed-cell spray foam, or flash-and-batt plus a continuous rigid layer under the rafters.
- Deeper 2×10 or 2×12 rafters, mild climate: Open-cell spray foam or high-density batts with baffles.
- DIY bonus room on a budget: Baffles, mineral wool batts, and a continuous polyiso layer taped at seams, finished with drywall.
- HVAC equipment in the attic: An unvented conditioned attic with spray foam or rigid foam at the roof deck brings ducts inside the envelope.
- Planning a re-roof soon: Consider rigid insulation installed above the roof deck during the re-roof, which keeps rafters and the interior untouched.
Cost Comparison for a Typical Attic
For about 1,000 square feet of roof slope, rough installed ranges illustrate the spread:
- High-density fiberglass batts with baffles: often a few thousand dollars installed.
- Mineral wool batts with baffles: moderately more than fiberglass.
- Open-cell spray foam to full rafter depth: frequently mid four figures to low five figures depending on depth.
- Closed-cell spray foam to code R-values: typically the highest cost, often reaching five figures.
Local labor rates, access, and required thermal or ignition barriers move these figures, so get itemized quotes that list the R-value and thickness to be installed. Check for utility rebates or federal energy tax credits that may offset part of the cost, but confirm eligibility directly with the program before counting on it.
When to Call a Licensed Professional
Spray foam should be installed only by a trained, certified applicator who follows the manufacturer’s ventilation and re-occupancy guidance. Consult a licensed contractor, energy auditor, or building official before converting a vented attic to an unvented one, since mistakes can cause condensation, rot, and shingle warranty issues. Hire a licensed electrician to address any knob-and-tube wiring or recessed lights not rated for insulation contact before covering them, and have fuel-burning appliances in the attic checked by a licensed HVAC technician so combustion air and venting remain safe after the space is sealed.
Frequently Asked Questions
Do I need an air gap between rafter insulation and the roof deck?
In a vented assembly using batts, yes, baffles maintain a ventilation channel under the sheathing. In an unvented assembly using air-impermeable insulation against the deck, no gap is used.
Can I put fiberglass batts directly against the roof sheathing?
Not in most unvented designs. Without air-impermeable insulation at the deck, moist interior air can condense on cold sheathing and cause rot.
Is spray foam always the best insulation for attic rafters?
No. It is often the best performer per inch, but deeper rafters, a tighter budget, or a DIY plan can make batts plus rigid foam the smarter choice.
The best insulation for attic rafters is the one that reaches your climate’s required R-value within the depth you have, controls moisture correctly for your roof design, and fits your budget, and for many homes that means a hybrid rather than a single product.