Quick answer (updated December 2026)

On a through-fastened metal roof screwed straight to purlins, the most reliable fix for condensation is closed cell spray foam applied directly to the clean, dry underside of the panels. It insulates, air-seals and blocks moisture in one layer, so warm indoor air never touches the cold steel. If you want to be able to replace panels later, spray onto a backing layer installed under the metal instead. Rigid foam between the purlins is cheaper but only works if every seam is sealed.

How many kits? Roof and walls at 2 inches thick, with 10% added for waste. Prices include our V600 volume discount:

Building Roof (4:12 pitch) Walls Roof + walls
12 × 16 shed
8 ft walls
About 200 sq ft
445 bd ft
1 × V600 – $799.99
About 430 sq ft
946 bd ft
2 × V600 – $1,599.98
1,391 bd ft
3 × V600 – $2,249.97
24 × 30 garage
8 ft walls
About 760 sq ft
1,672 bd ft
3 × V600 – $2,249.97
About 730 sq ft
1,606 bd ft
3 × V600 – $2,249.97
3,278 bd ft
6 × V600 – $4,319.94
40 × 60 pole barn
10 ft walls
About 2,530 sq ft
5,566 bd ft
10 × V600 – $6,999.90
About 1,750 sq ft
3,850 bd ft
7 × V600 – $4,899.93
9,416 bd ft
16 × V600 – $11,199.84

Roof area is the footprint multiplied by about 1.05 for a 4:12 pitch, without overhangs. Wall area is the perimeter times wall height, minus typical doors (one walk-in door on the shed, a 16 × 7 garage door and walk-in door on the garage, two overhead doors and a walk-in door on the barn), without gable ends. V600 volume pricing: $749.99 each for 3, down to $699.99 each for 7 or more. Mixing in a V400 or V200 can trim leftover foam. Real yield can be lower than the label because of temperature and technique.

It is one of the most common questions from shop, garage and barn owners: the building has corrugated or ribbed steel roofing screwed directly to wood purlins or steel framing, with no plywood, no underlayment and no insulation. In cold weather the underside of the metal drips like it is raining indoors. Water lands on tools, vehicles and stored hay, and the purlins start to stain or rust.

This guide explains why it happens and walks through the options for fixing it without tearing off the roof. The same approach works for steel walls, which sweat for the same reason.

Why a Bare Metal Roof Drips

Steel loses heat very fast. On a clear winter night the roof panels can get colder than the outdoor air. When warm, humid air inside the building touches that cold steel, it cools below its dew point and the moisture turns into water droplets. Concrete slabs, vehicles brought in wet, propane or kerosene heaters, livestock and people all add moisture to the air, which makes it worse.

To stop it, you have to keep indoor air away from the cold metal. Any insulation that lets air slip behind it will just move the dripping to a hidden place. Our guide on how spray foam prevents condensation in metal buildings covers the building science in more detail.

Option 1: Closed Cell Spray Foam Directly on the Metal

This is the approach most metal building contractors use. Closed cell foam bonds to clean steel, fills the ribs and laps, seals around every screw and forms one continuous layer. It does three jobs at once:

  • Insulation: about R-7 per inch with our closed cell kits.
  • Air barrier: no gaps for humid air to reach the steel.
  • Vapor control: closed cell foam is typically under 1 perm at about 2 inches, so moisture cannot work its way through to the metal.

How thick?

There is no single number for every building. For an unheated or lightly heated building where the goal is mainly to stop dripping, many owners spray about 1 to 2 inches. For a heated shop or a space you plan to live in, you will want more for R-value, and your local energy code may set a minimum. Two inches is a common starting point because it keeps the foam surface well above the dew point in most conditions and gives reliable vapor control.

Roof first or walls too?

Start with the roof. Warm, moist air rises, so the roof usually drips first and worst. If you plan to heat the building, do the walls as well. Bare steel walls sweat for the same reason, and an insulated roof over uninsulated walls still loses a lot of heat. The table above shows both so you can plan in stages.

How to do it

  1. Fix leaks first. Spray foam should never cover an active roof leak. Check fasteners, laps and flashing after a rain.
  2. Clean and dry the metal. Remove dust, oil and any loose rust. Foam will not bond to a wet or frosty surface, so pick a dry day and warm the building if needed.
  3. Warm the kit. Store the cylinders at room temperature before spraying. Cold chemicals give poor yield and weak foam.
  4. Spray in passes. Apply about 1 inch per pass and let each pass react before adding the next. Work the edges, laps and around fasteners first.
  5. Change nozzles after about 8 minutes of continuous spraying or if you stop for about 30 seconds.
  6. Protect what is below. Cover vehicles, equipment and floors with plastic sheeting. Overspray travels farther than you think.

Standing seam roofs

Standing seam panels are designed to move as they heat and cool. Foam bonded directly to them can restrict that movement. If your roof is standing seam, check with the panel manufacturer, or use the backing layer method below.

Spraying it yourself? Compare our closed cell kits

Kit Coverage Price Cost per board foot
Vega Bond V200 Up to 200 board feet $399.00 About $2.00
V400 Up to 400 board feet $549.99 About $1.37
Vega Bond V600 Up to 600 board feet $799.99
$749.99 each for 3, $699.99 each for 7+
About $1.17 to $1.33

One board foot is 1 sq ft at 1 inch thick. Each kit comes ready to spray with a gun and hose, nozzles and safety gear. The V600 ships free in the USA, same day or next business day.

Shop closed cell kits →

Option 2: Spray Foam on a Backing Layer (Slip Sheet)

Some builders prefer not to bond foam to the roofing itself, so that a damaged panel can be replaced later without cutting out insulation. In this method you install a backing layer just under the metal, for example thin rigid foam board fitted tight between the purlins or a sheet material fastened to the framing, and spray the closed cell foam against that backing. The foam still seals the whole surface, and the metal can come off independently. It takes more work and material, but it is worth considering on a roof you expect to replace.

Option 3: Rigid Foam Board Between the Purlins

Polyiso or XPS board cut to fit between purlins or girts is cheaper per R-value and easy to buy. The weak point is the joints. Every edge, seam and screw must be sealed with tape or foam, or humid air will get behind the boards and condense on the steel where you cannot see it. Many owners combine the two: rigid board for most of the area and a spray foam kit to seal all the edges and the framing.

What Not to Do

  • Fiberglass batts against bare metal without a sealed vapor retarder. Air moves right through fiberglass, so the batts get wet and sag.
  • Open cell foam directly on the metal in a cold climate. It is air-tight but lets much more moisture through than closed cell, and it can hold water if it gets wet.
  • Reflective bubble wrap alone. It can help with radiant heat in summer, but on its own it rarely stops winter condensation unless every seam is taped and sealed.

Big Building? Compare a Contractor Quote

As the table shows, a 40 × 60 pole barn with roof and walls comes to more than 9,000 board feet. At that size, get a quote from a local spray foam contractor too. They spray from 55-gallon drum sets with a heated rig, which is cheaper per board foot once the job is big enough. We explain the trade-off in DIY kit vs. 55-gallon drum set. For sheds, garages, add-ons, doing the roof first and touch-up work, kits are usually simpler and faster to get started.

Ready to start? The V600 closed cell kit covers up to 600 board feet for $799.99 with free shipping, and the price per kit drops when you buy 3 or more. Use our kit calculator to see how many you need.

FAQs

Can you spray foam directly on a metal roof?

Yes, closed cell spray foam can be applied directly to the underside of most through-fastened metal roofs, as long as the metal is clean, dry and not leaking. For standing seam roofs, check with the panel manufacturer first.

How thick should spray foam be to stop condensation on a metal roof?

It depends on climate and how much moisture is inside the building. About 1 to 2 inches of closed cell foam is common to stop dripping in unheated buildings. Heated or living spaces need more for R-value and code.

How much spray foam do I need for a pole barn?

Multiply the sprayed area by the thickness in inches and add about 10%. A 40 × 60 pole barn with 10 ft walls has roughly 2,530 sq ft of roof and 1,750 sq ft of walls. At 2 inches that is about 9,400 board feet, or 16 V600 kits for roof and walls together.

Will spray foam make my metal roof rust?

Closed cell foam on clean, dry steel keeps humid air off the metal, which removes the main source of condensation and rust on the underside. It will not fix existing rust or roof leaks, so deal with those first.

Do I need a vapor barrier with closed cell spray foam on metal?

Usually not. Closed cell foam is typically under 1 perm at about 2 inches, which acts as a vapor retarder. Check your local code for heated or occupied buildings.

Is open cell or closed cell better for a metal roof?

Closed cell. It bonds well, adds rigidity, resists water and blocks vapor. Open cell is better suited to interior walls and soundproofing.