Short answer
A shipping container is a steel box, and steel takes on the outside temperature fast. When warm, moist air inside meets that cold steel, water condenses on the roof and walls and drips; shippers call it container sweat, or container rain. Closed-cell spray foam bonded straight to clean steel keeps the inside surface warm and keeps moist air off it, which is why it is the usual insulation for containers used as shops, offices or storage. Prep matters: the steel has to be dry and free of rust, oil and loose paint, and some metal needs a primer.
Key points
- Condensation forms on the inside of the roof and walls when the steel drops below the dew point of the air inside; the roof gets the most.
- Insulation has to keep moist air off the cold steel. Closed-cell foam bonded to the steel leaves no gap behind it.
- Steel prep: free of oil, grease, rust scale, loose particles, dew and water; some metal needs sandblasting or a primer.
- Most container floors are treated plywood. Decide whether to seal, cover or replace the floor before finishing the inside.
- Plan window and door openings before insulating; the code's container section covers structural design.
- The 2021 International Building Code added a container section (3115; 3114 in 2024). Talk to your code official early.
Why containers sweat
A container is a steel box with a lot of surface for its size, and steel moves heat quickly. The German Insurance Association's cargo guidance points to both, and adds that the roof cools fastest, from the night sky and from rain. When the steel drops below the dew point of the air inside, water condenses on it. Shippers call it container sweat; when it drips off the roof, container rain.
The Container Handbook's sweat studies found that the most condensation always forms on the roof, and that the daily cycle drives it: the sun heats the box and the air inside, the night cools the steel, and the moisture lands on the coldest surface. A container used as a shop, an office or a storage room adds its own moisture: people, wet tools and equipment, and, if someone runs one, an unvented propane or kerosene heater.

Why closed-cell spray foam
The cure for condensation on a cold surface is to keep moist air from reaching it. That is the same rule building scientists apply to the cold rim joists of houses: use air-impermeable insulation, rigid foam or spray foam, not fiberglass or mineral wool. In a container, closed-cell spray foam does it best because it bonds straight to the steel, follows the corrugations and leaves no gap behind it for air to get into.
| Option | Condensation control | Room it takes | Watch for |
|---|---|---|---|
| Closed-cell spray foam on the steel | Bonded, no air gap behind it | Least for the R-value (about R-6.3 to R-7.4 per inch) | Steel prep (below) |
| Foam board with framing | Good only if the gaps behind the board, at the corrugations and seams, are filled and sealed | More: board plus framing | Voids behind flat boards on a corrugated wall |
| Fiberglass or mineral wool in framing | Poor: air moves through it to the cold steel | Most | Wet insulation against the steel |
Foam on the outside isn't the answer for most containers: exposed foam degrades in sunlight unless a coating protects it, and it changes how the box looks. Inside is simpler.
Preparing the steel
Foam is only as good as its bond, and a used container's steel can carry rust, cargo residue, oil and peeling paint. The manufacturers' guides are specific about it:
- Huntsman's guide for HEATLOK HFO High Lift requires surfaces free of oil, grease, wax, rust scale, loose dirt and water, says some metal surfaces may need sandblasting and priming, has corrosion cleaned and primed with a bonding primer, and has glossy surfaces sanded or abraded.
- BASF's WALLTITE guidelines add frost, dew and loose particles to the list, note that ferrous or galvanized metal may need a primer, and call for an adhesion test on any substrate in doubt.
Dew is the one that catches people out. A container that sweated overnight has a film of water on the steel in the morning, and foam won't bond to it. Spraying waits until the steel is dry and inside the temperature range for the product.
The floor, the doors and the openings
Most container floors are thick plywood treated with insecticide for international shipping, and the data plate on the doors usually lists the timber treatment. Decide whether to seal, cover or replace that floor before the inside is finished; it is much harder afterward.
Cutting in windows, doors and vents changes how the box carries load, and the code's container section covers the structural design. Plan the openings first, frame and flash them, and insulate after, so the foam seals around the new frames instead of being cut out later.
Codes: containers as buildings
The 2021 International Building Code added a section for intermodal shipping containers repurposed as buildings, Section 3115; the 2024 edition renumbered it as Section 3114. The International Code Council also publishes a guideline, ICC G5-2019, on using containers as buildings and building components, and ICC Evaluation Service updated its criteria for container structures to match. Which edition applies to your project depends on your municipality and the date of your permit, so talk to the code official early. A container used as a heated shop or office is a building like any other: the foam inside needs a thermal barrier, and the energy code sets the insulation level.
Want a number for your own container? Price My Project, book a free visit or call (814) 208-3478.
Read next: Why Your Pole Barn Roof Drips and How to Stop It · Pole Barn Insulation: Spray Foam vs Blanket vs Foil vs Board · Heated Garage Insulation: A Western PA Workshop Guide.
FAQ
How thick should spray foam be in a shipping container?
It depends on the use. A storage container needs enough foam to cover the steel and keep its inside surface warm; a heated office or shop is sized to the energy code. Your quote shows the thickness and the R-value for your use.
Do I need to remove the paint before spray foam?
Not if it is sound and passes an adhesion test. Loose paint and rust come off, glossy surfaces are abraded, and some metal is primed first, per the manufacturers' guides.
Should the foam go inside or outside the container?
Inside, for most containers. Foam on the outside needs a coating to protect it from sunlight and changes how the container looks.
Do I need a permit to turn a container into a shop or office?
Usually, once it is used as a building. The International Building Code has a section for containers repurposed as buildings; your municipality's code official decides what applies.
Sources
- German Insurance Association (GDV), Transport Information Service: Container climate
- Container Handbook (GDV): 10.3.5.2 Sweat classes
- Container Handbook (GDV): Water content of packaging, accompanying material and dunnage as source of sweat
- Equipment World: How to combat the downsides of repurposed shipping containers
- Green Building Advisor: Insulating Rim Joists (air-impermeable insulation on cold surfaces)
- Huntsman Building Solutions: HEATLOK HFO High Lift Product Application Guide (rev. 11.25.24)
- BASF: WALLTITE Series HFO Closed-Cell SPF Application Guidelines (Feb. 9, 2023; distributor-hosted copy)
- HZ Containers: Chemical wood impregnation in containers (data plate timber treatment)
- Matanuska-Susitna Borough: Intermodal shipping containers (2021 IBC Section 3115)
- International Code Council: 2024 code change public comment report (Section 3114, Intermodal Shipping Containers)
- ICC Evaluation Service: AC462 updated for 2021 IBC Section 3115
- ICC G5-2019 Guideline for the Safe Use of ISO Intermodal Shipping Containers Repurposed as Buildings (preview)
