Chapter 28 of 39
How to insulate a shipping container with spray foam
Short answer
To insulate a shipping container, spray closed-cell spray foam insulation inside: the ribbed walls, ceiling, end wall and doors, or the stud bays. It should bond to clean, dry steel (some metals need a primer) and keeps damp air off it. Container buildings fall under IBC Section 3115 or the residential code. Your building department has the final say.
On this page
Why shipping containers sweat
A shipping container is a steel box, and on a cold night its walls and roof get nearly as cold as the air outside. When warm, damp air from inside touches them, the water in it condenses on the steel and drips. To have our crew insulate yours, see our shipping container insulation page; this chapter covers the how and why, and our chapter on condensation explains the drips in full.
So the insulation has to keep damp air off the steel, which is why we usually spray closed-cell foam on containers. A Pacific Northwest National Laboratory guide describes closed-cell spray foam as both the insulation and the vapor control layer, and open-cell foam as vapor open.1 Pair the foam with vented heat or ventilation. More in our chapter on open cell vs closed cell.
Inside or outside?
We spray containers on the inside: the ribbed walls, the ceiling, the end wall and, if you want, the doors. There the foam sits where damp air meets the steel. The trade-off is room: a 20 ft standard container is 7 ft 8-5/8 in wide inside, by one ocean carrier's figures,2 and foam on both side walls takes its thickness off that twice.
Foam on the outside is a different job. Sunlight tends to degrade polyurethane foam: University of Georgia extension specialists, writing about foam sprayed on poultry house curtains, note that over time it turns the surface chalky and cracked, which cuts its insulating ability.3 On a roof, the foam becomes roofing, and the 2021 International Building Code calls for a liquid-applied protective coating over spray foam roofing, put on 2 to 72 hours after the foam.4 Section 3115.6 sends a container's roof to that roofing chapter, except for a single container standing alone, not attached to or stacked over another container or building.5 Your building department has the final say.
Closed-cell foam straight onto the steel
The spray foam industry's trade group says spray foam should strongly adhere to nearly all construction materials that are clean, dry and free of oils and grease, and that certain metals may need a primer or coating first.6 The data sheet for UPC 2.0 High Lift HFO, the closed-cell foam we spray, says it's designed for metal, among other materials. It wants the surface clean, dry and more than 5 F above the air's dew point, says the building may need heating first when the surface is below 45 F, and on metal may call for a thin first layer, which it calls a priming layer, with the rig set 2 to 5 F warmer; foam that blisters on metal calls for a thicker first pass.7 That's one product's sheet; another foam has its own.
With a used container, start with the surface: clean off oil, grease, dust and dirt and let the steel dry, since the trade group ties good adhesion to a surface free of oil, dust, dirt and moisture.6 Fix holes and leaks first: the National Insulation Association lists roof leaks among the causes of hidden condensation.8 Cold steel and Washington State University's 1980s findings on rust are in our chapter on steel buildings. Show us any rust, dents or patched holes in your photos.
The floor, framing and the doors
The floor. The building code protects a container's wood floor: section 3115 wants it protected from decay and termites under section 2304.12.1.1,5 which calls for naturally durable or preservative-treated wood where a wood floor is closer than 18 inches to exposed ground in a crawl space or unexcavated area inside the foundation.9 The space between the floor joists and the earth under a container gets ventilation too.5 Under-floor work belongs in your plans; we spray the walls, ceiling, end wall and doors. Your building department has the final say.
Here in Eastern Washington
- Spokane, Stevens and every other Eastern Washington county are in Climate Zone 5B under the Washington State Energy Code.10
- By NOAA's 1991 to 2020 normals, Spokane's airport averages 132 nights a year at or below freezing.11 Its normal relative humidity is 88 percent in December and 86 percent in January.12
- Spokane County's building design criteria rate termites slight and decay none to slight, and list Seismic Design Category C.13
- In the cold months we spray the winter blend of UPC 2.0 High Lift HFO, the one foam we spray all year. Its data sheet lists a substrate temperature (the surface being sprayed) of 25 to 60 F.7
Framing. Building out the inside? The studs and wiring go in first, then the foam fills the stud bays against the steel, as below. Foam around cable and boxes is in our chapter on wiring.
The doors. They close against their seals, so the seals, the frame and the sill get masked before we spray, and the inside of the doors can take foam too. Cutting into the steel is a structural question once a container is a building. For a single container designed by the code's simplified method, section 3115.8.5.3 has new openings framed with steel, allows one penetration up to 6 inches across (or 16 square inches for an electrical box) in each 8 ft length of wall that braces the container, and has end wall doors that are part of that bracing welded closed.5 Your building department has the final say.
Containers used as buildings: IBC Section 3115
The 2021 International Building Code has a section, 3115, for intermodal shipping containers repurposed as buildings or structures, or as part of one. It doesn't cover containers listed as equipment, such as generators and chillers, battery storage containers or units already approved as relocatable buildings.5 Besides the floor, roof and openings above, it asks for:
- The data plate. The plate ISO 6346 requires, with the maker, date, identification number and load ratings, verified by an approved agency.5
- Joints between containers. Where stacked or connected containers leave concealed spaces at fire-resistance-rated walls, floors or roofs, an approved fire-resistant joint system.5
- Structure. A design under the code's structural chapter, on foundations, with anchorage. A single stand-alone container can use a simplified method only if its rails, corner castings and columns aren't notched, cut or removed, it sits level with the floor at the bottom, and it's in Seismic Design Category A, B, C or D.5
Washington adopts the 2021 International Building Code,14 and its state amendments include no section 3115.15 Washington's residential code covers detached one- and two-family homes and their accessory structures,16 so ask your building department which code your container falls under. Either way, foam inside gets a thermal barrier, such as 1/2 inch gypsum wallboard, under section 2603.4 of the building code17 and R316.4 of the residential code,18 unless an exception or a tested product applies. More in our chapter on thermal and ignition barriers. Your building department has the final say.
What it costs
We price by the area we spray: in a container, the walls, ceiling and end wall, plus the doors if you want them. Here are three common sizes, from one ocean carrier's published inside dimensions; it notes that containers vary by manufacturer.2,19,20
| Container | Inside length, width, height | Side walls | Ceiling | End wall | Total |
|---|---|---|---|---|---|
| 20 ft standard | 19 ft 4-1/4 in, 7 ft 8-5/8 in, 7 ft 10-1/4 in2 | 304 | 149 | 61 | 514 |
| 40 ft standard | 39 ft 5-5/8 in, 7 ft 8-5/8 in, 7 ft 10-1/4 in19 | 620 | 305 | 61 | 985 |
| 40 ft high cube | 39 ft 5-5/8 in, 7 ft 8-1/2 in, 8 ft 10-1/4 in20 | 699 | 304 | 68 | 1,071 |
Each figure is rounded to the square foot, and each total is worked out before rounding, so the 40 ft standard's parts add to 986 but its total is 985 (620.0 + 304.7 + 60.6 = 985.3). For the 20 ft box: side walls 2 x 19.35 x 7.85 = about 304, ceiling 19.35 x 7.72 = about 149, end wall 7.72 x 7.85 = about 61. These are flat figures: the ribs add surface that the foam follows, and studs in a framed container take up some. For the doors, the opening is a rough guide: about 58 sq ft on the standard boxes (7 ft 8-1/8 in by 7 ft 6-1/4 in) and about 65 on the high cube.2,20 Multiply the area by the inches of foam for board feet, as our chapter on pricing explains; how thick to go is in our chapter on thickness.
Fixr, a national cost guide, put spray foam for a shipping container at $1,800 to $2,500 installed, as of January 2025, without saying which size.21 That's its figure, not our price. Our crew, based in Ford, WA, works across Spokane, Stevens County and all of Washington. Tell us the size for a free estimate. Sell or build out containers? See spray foam for container companies.
Questions
Is closed-cell spray foam good for a shipping container?
Can you spray foam a used shipping container?
Yes, once the steel is clean and dry: the trade group ties good adhesion to a surface free of oil, dust, dirt and moisture.6 Fix holes and leaks first, and show us any rust in your photos.