Attic rafter insulation stops heat loss through your roof and reduces the work your heating and cooling systems have to do
Insulating roof rafters means placing insulation material between the rafters themselves — the angled wooden beams that form the roof structure. This is different from insulating the attic floor, which sits below the rafters. Rafter insulation is necessary when you have finished living space in the attic, a cathedral ceiling, or when you want to condition (heat or cool) the attic itself rather than just the rooms below it.
The most common materials are fiberglass batts, mineral wool batts, spray foam, and rigid foam boards. Each has different R-values (a measure of insulating power), costs, and installation requirements. The depth of your rafters and the climate where you live determine how much insulation you need and which type works best.
Key Takeaways
- Rafter insulation requires material that fits snugly between the wooden beams, with an air gap left between the insulation and the roof sheathing to prevent moisture buildup.
- Fiberglass and mineral wool batts are the cheapest option and work in most climates, but spray foam provides better air sealing and works in tight spaces.
- You need to know your rafter depth and your local climate zone to determine the R-value required, which varies by region and building code.
- Installation involves measuring, cutting material to fit, securing it in place, and installing a vapor barrier on the warm side of the insulation.
Rafter depth and R-value requirements vary by climate
Standard roof rafters are typically 2×6, 2×8, or 2×10 lumber, which gives you 5.5, 7.5, or 9.5 inches of space to work with. The deeper the rafter, the more insulation you can fit. Your local building code specifies a minimum R-value based on your climate zone — this is not optional. The U.S. Department of Energy divides the country into eight climate zones, and each has different requirements. For example, a cold climate like Minnesota or Maine requires R-38 to R-49 in the roof, while a warm climate like Florida or Arizona requires R-30 to R-38.
You can find your climate zone and required R-value through your local building department or by entering your zip code on the Department of Energy website. Once you know the R-value you need, you can calculate how much insulation depth is required. Fiberglass batts provide roughly R-3.2 per inch, mineral wool provides R-3.6 per inch, and closed-cell spray foam provides R-6 to R-7 per inch. This means a 2×6 rafter in a cold climate may not be deep enough for fiberglass alone — you would need to add rigid foam on top of the batts or use spray foam instead.
Fiberglass and mineral wool batts are the most common and affordable choice
Fiberglass batts come in standard widths (16 or 24 inches) to fit between rafters spaced 16 or 24 inches apart. They are sold in rolls or pre-cut lengths, cost between $0.50 and $1.50 per square foot, and require no special equipment to install. Mineral wool batts are slightly more expensive ($0.75 to $2 per square foot) but perform better in fire and provide better sound dampening. Both materials come with a kraft paper vapor barrier on one side, which should face the warm side of the roof (the interior of your home).
The main drawback of batts is that they do not seal air leaks — gaps around electrical wires, pipes, or irregular rafter spacing allow warm air to escape. They also require careful installation to avoid compression, which reduces their R-value. If your rafters are not evenly spaced or if you have many penetrations (holes for vents, wires, or pipes), batts become time-consuming to fit properly.
Spray foam and rigid boards work when rafter depth is limited
Closed-cell spray foam is applied as a liquid that expands to fill the entire rafter cavity, sealing air leaks as it hardens. It costs $1.50 to $3.50 per square foot installed and achieves high R-values in shallow spaces — a 2×6 rafter can be filled with 5.5 inches of spray foam for an R-value of roughly R-33 to R-38, depending on the product. Spray foam also acts as its own air barrier and vapor barrier, so you do not need to add separate materials.
Rigid foam boards (polyiso, XPS, or EPS) are cut to fit between rafters and then sealed with caulk or tape. They cost $0.75 to $2 per square foot and provide R-values of R-4 to R-6.5 per inch depending on the type. Rigid boards are often used in combination with batts — you install batts first, then add rigid boards on top of the rafters (on the exterior side) to reach the required R-value without exceeding rafter depth. This approach requires careful attention to vapor barriers and air sealing at seams.
Installation requires an air gap between insulation and roof sheathing
The most important rule in rafter insulation is leaving a 1 to 1.5 inch air gap between the top of the insulation and the underside of the roof sheathing (the plywood or OSB layer directly under the roofing material). This gap allows moisture that enters the roof cavity to dry out, preventing rot and mold. Without this gap, moisture gets trapped and degrades the wood structure over time.
To maintain this gap with batts, you install the insulation so it sits 1 to 1.5 inches below the roof sheathing. This means a 2×6 rafter with 5.5 inches of space gets 4 inches of insulation, leaving 1.5 inches for air. If you need more R-value, you add rigid foam boards on the exterior side of the rafters (between the rafters and the roof sheathing) rather than trying to cram more batts into the cavity. With spray foam, the contractor leaves the gap intentionally during process.
Installation steps for batt insulation
Start by measuring your rafter spacing and the distance from the rafter bottom to the roof sheathing. Order batts in the correct width (16 or 24 inch) and cut them to length as needed. Unroll the batts and position them between the rafters with the vapor barrier (kraft paper side) facing down toward the living space. The batts should fit snugly but not be compressed — compressed insulation loses R-value.
find the batts by stapling the flanges (the paper edges) to the sides of the rafters. Space staples 6 to 8 inches apart. If your rafters have electrical wiring or pipes running through them, cut the batts around these penetrations rather than compressing them. Once all batts are in place, install a continuous vapor barrier (6-mil polyethylene sheeting) over the entire rafter cavity, sealing seams with tape. This second vapor barrier prevents warm, moist air from the living space from entering the insulation.
Finally, install drywall or other finished ceiling material over the vapor barrier. Leave the 1 to 1.5 inch air gap at the top untouched — do not fill it with insulation or seal it. If your attic has soffit vents (openings in the eaves), make sure they are not blocked by insulation. Some builders install baffles (plastic or foam channels) between rafters at the eaves to keep insulation away from vents and maintain airflow.
Spray foam and rigid board installation requires professional equipment or careful planning
Spray foam must be applied by a contractor with specialized equipment — the foam is mixed on-site and sprayed into the cavity where it expands. The contractor controls the thickness to leave the required air gap. This method is faster than batts but costs more and requires hiring a professional. Rigid boards can be cut and fitted by a homeowner but require precision cutting, careful sealing of seams with caulk or tape, and attention to vapor barrier placement on the correct side.
If you combine rigid boards with batts, install batts first in the rafter cavity, then measure and cut rigid boards to fit on top of the rafters (on the exterior side, between the rafters and roof sheathing). Seal all seams and edges with caulk or specialized tape rated for the foam type. This layered approach adds labor but allows you to meet high R-value requirements in shallow rafter spaces.
Frequently Asked Questions
Do I need to remove old insulation before adding new insulation?
If the old insulation is in good condition and not wet or moldy, you can add new insulation on top of it. However, if it is compressed, wet, or infested with pests, remove it first. Removing old insulation is labor-intensive but prevents moisture and pest problems from spreading to new material.
What happens if I do not leave an air gap between insulation and roof sheathing?
Moisture that enters the roof cavity cannot dry out, leading to rot in the wood rafters and roof sheathing. This damage is expensive to repair and can compromise the structural integrity of your roof. The air gap is not optional — it is required by building code.
Can I use faced batts (with vapor barrier) and then add another vapor barrier on top?
Yes, this is standard practice. The kraft paper on the batts faces the warm side (interior), and a second vapor barrier layer goes over the rafters to create a continuous seal. This double layer prevents warm, moist air from reaching the insulation.
What if my rafters are not evenly spaced or are irregular?
Spray foam is the best option for irregular rafter spacing because it fills gaps and conforms to the space. With batts, you will need to cut and fit pieces around irregular areas, which is time-consuming. Rigid boards can also work if you measure and cut carefully.
How much does rafter insulation cost?
Fiberglass batts cost roughly $0.50 to $1.50 per square foot of material. Spray foam costs $1.50 to $3.50 per square foot installed. Rigid boards cost $0.75 to $2 per square foot. Labor costs vary by region and complexity — hiring a contractor typically doubles the total cost.