Insulating a shipping container isn't optional — it's the single most important modification you'll make to any container intended for human use. Steel conducts heat and cold at a rate that makes an uninsulated container unusable in most climates. More importantly, without a proper vapor barrier, steel containers sweat — creating condensation that leads to mold within months. Here's how to do it right.
In this guide
The condensation problem — why it matters first
Steel containers are airtight when sealed, and steel has high thermal conductivity. When warm, humid interior air meets the cold steel walls, moisture condenses on the steel surface — the same way a cold glass sweats on a warm day. In a container, this happens inside the wall cavity where you can't see it.
Condensation on steel = rust. Condensation on wood (the floor) = rot. Condensation in air gaps = mold. This isn't a slow process — in a humid climate, a poorly insulated container with no vapor barrier can develop significant mold problems within a single summer season.
The solution isn't just adding insulation — it's adding insulation that also acts as a vapor barrier. This is why closed-cell spray foam is the gold standard for container insulation: it insulates and provides an air/vapor barrier in a single application, with no air gaps where condensation can form.
Batt insulation in a container requires a separate vapor barrier
Fiberglass or mineral wool batt insulation has air gaps between the steel and the insulation where condensation can form on the metal. If you use batt insulation, you must install a continuous vapor barrier between the steel and the batt — and the installation must be airtight with no gaps or tears. This is harder to do correctly than spray foam and more prone to long-term failure.
Three insulation methods compared
Closed-cell spray polyurethane foam (SPF)
Best for containersR-value per inch
R-6 to R-7
Highest of any common method
Cost installed (20ft)
$4,000–$9,000
Walls, ceiling, floor
Vapor barrier
Yes
Built-in, no gaps
Closed-cell spray foam is sprayed directly onto the steel interior surfaces and expands to fill every gap, bonding to the metal. It provides the highest R-value per inch of any common insulation type, acts as a complete air and vapor barrier, and adds structural rigidity to the container walls.
Why it's right for containers: The complete air seal eliminates the gap where condensation forms on the steel. You don't need a separate vapor barrier, and there's no way for moisture to get between the insulation and the metal. Once properly installed, the condensation problem is solved.
Downsides: Requires professional installation — spraying requires specialized equipment and training, and improper application creates serious problems. Cost is higher than batt alternatives. The foam is not removable if you need to access the walls later. Also reduces interior space more than external insulation methods.
Rigid foam board (exterior or interior)
R-value per inch
R-3.8 to R-6.5
Varies by product type
Cost installed (20ft)
$2,000–$5,000
Interior framing + board
Vapor barrier
Partial
Requires careful sealing
Rigid foam boards (XPS, EPS, or polyisocyanurate) can be installed on the interior walls with adhesive or mechanical fasteners, or on the exterior of the container under cladding. Exterior installation is preferable because it keeps the thermal mass of the steel on the warm side of the insulation, improving performance.
Why it works: Less expensive than spray foam, good R-value per inch (especially polyiso at R-6.5/inch), DIY-friendly, and can be applied to the exterior without reducing interior space.
Downsides: Board seams must be taped with foil tape to create a continuous vapor barrier — any gap is a potential condensation point. Interior installation requires a separate framing system to hold the boards. More labor-intensive than spray foam on complex shapes (corrugated walls).
Batt insulation (fiberglass or mineral wool)
R-value per inch
R-3 to R-4.3
Lower than foam options
Cost installed (20ft)
$1,500–$3,500
Including framing and VB
Vapor barrier
No — separate required
Critical gap risk
Standard fiberglass or mineral wool batt is the most familiar insulation type and the cheapest. It requires building a stud wall frame inside the container to hold the batts, then adding a vapor barrier, then cladding over it.
When it works: In very dry climates with minimal condensation risk, properly installed batt with a continuous vapor barrier can perform adequately. Mineral wool (Rockwool) is preferable to fiberglass because it's more moisture-resistant and doesn't lose R-value when wet.
Significant caveats: This is the riskiest method for containers. Any gap in the vapor barrier — at outlets, seams, or penetrations — creates a condensation pathway to the steel. The stud wall framing also loses significant interior width in an already narrow space. Not recommended for humid climates or for containers in regions with significant temperature swings.
R-value requirements by climate
The R-value you need depends on your climate zone. Containers in mild coastal climates need less insulation than those in the Midwest or Mountain West.
Hot / mild (zones 1–3)
Target: R-13 walls, R-19 roof
Southern states, coastal California, Florida, Texas Gulf Coast. Focus is primarily on blocking radiant heat and managing humidity rather than cold protection. Spray foam at 2" (R-12–14) handles both.
Mixed / moderate (zones 4–5)
Target: R-20 walls, R-30 roof
Pacific Northwest, Mid-Atlantic, most of the interior South. Need both heating and cooling performance. Spray foam at 3" (R-18–21) or rigid foam board at R-20+ on walls.
Cold / very cold (zones 6–8)
Target: R-30 walls, R-49 roof
Mountain states, upper Midwest, northern tier. Heating performance is critical. Spray foam at 4–5" (R-24–35) plus additional roof insulation. Consider exterior insulation to protect the thermal mass.
Total insulation costs for a 20ft container
| Method | Materials | Labor | Total (20ft) | DIY possible? |
|---|---|---|---|---|
| Closed-cell spray foam (2") | $1,800–$3,000 | $1,500–$3,000 | $3,300–$6,000 | No — requires pro equipment |
| Closed-cell spray foam (3") | $2,500–$4,000 | $1,500–$3,000 | $4,000–$7,000 | No |
| Rigid foam board (exterior) | $800–$1,500 | $800–$2,000 | $1,600–$3,500 | Yes — manageable DIY |
| Rigid foam board (interior) | $800–$1,500 | $1,000–$2,500 | $1,800–$4,000 | Yes — with framing experience |
| Batt + stud wall + vapor barrier | $600–$1,200 | $800–$1,800 | $1,400–$3,000 | Yes — most DIY-friendly |
DIY vs professional installation
Spray foam requires a professional without exception. The two-component system requires specialized equipment, proper PPE (the off-gassing during application is toxic), and trained technique to achieve the correct cell structure and density. Improperly applied spray foam is ineffective or worse — it can trap moisture rather than prevent it. This is one trade where DIY isn't a real option.
Rigid foam board is a solid DIY project for anyone comfortable with basic construction. Measure carefully, cut cleanly with a utility knife and straightedge, and tape every seam with foil tape. The key is achieving a continuous vapor barrier with no gaps — check every penetration (electrical boxes, conduit, plumbing) and seal carefully.
Batt insulation + stud wall is the most DIY-accessible but the most risk-prone for the reasons covered above. If you go this route: use mineral wool over fiberglass, install a continuous 6-mil poly vapor barrier on the warm side, and tape every seam and penetration. Don't skip the vapor barrier to save time.
Don't forget the floor and roof
Most container insulation guides focus on the walls and forget the two surfaces that matter most for thermal performance: the roof (which takes direct solar radiation in summer and loses heat fastest in winter) and the floor (which bridges the container to the ground).
Roof: The container roof needs at least as much insulation as the walls, and ideally more. Spray foam works well here; alternatively, a second layer of rigid foam board above the existing roof provides external insulation without reducing interior height. A white roof coating over the top significantly reduces solar heat gain in warm climates.
Floor: The hardwood container floor sits on steel cross-members that conduct directly to the ground. Rigid foam board under the floor (between the steel cross-members) is the typical approach — usually 2" of XPS installed in the gaps between structural members before any flooring is added.
Get your container first, then plan insulation
The exact insulation approach depends on how you're using the container, your climate, and your budget. If you're buying a container for a home or office project, Shipped.com is a good starting point for pricing containers before you plan the fit-out.