Short answer

Spray foam is priced by the board foot, one square foot one inch thick, so the cost of a pole barn comes down to its surface area times the thickness. At our public guidance of roughly $1.50 to $2.25 per board foot installed for closed-cell, a 40×60 barn with 14-foot walls runs about $16,800 to $25,200 at 2 inches on walls, gables and roof, or $7,600 to $11,400 for the roof alone. A 30×40 is about $9,300 to $13,900 at 2 inches everywhere.

Key points

  • A board foot is 1 square foot of surface at 1 inch thick. Square feet × inches = board feet.
  • Count three surfaces: the walls, the two gable triangles and the roof deck, which is bigger than the floor because it slopes.
  • Thickness drives cost as much as size: 3 inches costs half again as much as 2.
  • A per-square-foot price without a thickness can't be compared to anything. National sites quote anywhere from about $1.25 to $7.50 a square foot.
  • Doors, windows, purlin detailing, masking, removal of old insulation and any required fire coating move the number. A good quote lists each one.

How spray foam is priced

Spray foam is sold by volume. The industry unit is the board foot: one square foot of surface covered one inch thick. Two inches on 100 square feet is 200 board feet.

That makes a pole barn easy to price on paper:

  1. Walls: perimeter × wall height.
  2. Gables: two triangles, each half the building width × the roof rise. On a 4/12 roof the rise is the half-width × 4/12.
  3. Roof deck: the footprint × the pitch factor. For a 4/12 roof the factor is 1.054, so the roof is about 5% bigger than the floor.
  4. Board feet: each area × the thickness in inches.
  5. Price range: board feet × the price per board foot.

Our public guidance for closed-cell is roughly $1.50 to $2.25 per board foot installed. The range moves with thickness, job size, access, masking and travel, so treat it as a planning number, not a quote.

Three common barns, worked out

Every barn below has a 4/12 roof and no overhang, and nothing is deducted for doors or windows.

Surface areas of a 40 by 60 pole barn with 14-foot wallsTwo views of a 40 by 60 foot pole barn with 14-foot walls and a 4/12 roof. The gable end is 40 feet wide with a 6.7 foot rise; the two gable triangles add about 267 square feet. The walls are 200 feet of perimeter times 14 feet, 2,800 square feet. The roof deck is the 2,400 square foot footprint times the 1.054 pitch factor, about 2,530 square feet. In all about 5,600 square feet; at 2 inches that is about 11,193 board feet. Gable end (×2) Side wall (×2) and roof gablewall 40 ft14 ftrise 6.7 ft roof deck (one slope shown)wall 60 ft Walls 200 ft perimeter × 14 ft = 2,800 sq ft Gables 2 × ½ × 40 ft × 6.7 ft ≈ 267 sq ft Roof deck 40 × 60 = 2,400 sq ft × 1.054 (4/12 pitch) ≈ 2,530 sq ft Total ≈ 5,600 sq ft · at 2 in. ≈ 11,193 board feet No overhang; nothing deducted for doors or windows. Board feet = square feet × inches of foam.
A 40×60 pole barn with 14-foot walls and a 4/12 roof: 2,800 sq ft of walls, about 267 sq ft of gables and about 2,530 sq ft of roof deck, about 5,600 sq ft in all.
Building Surfaces Wall area Gables Roof deck Total
30×40, 12-ft walls perimeter 140 ft 1,680 sq ft 150 sq ft 1,265 sq ft 3,095 sq ft
40×60, 14-ft walls perimeter 200 ft 2,800 sq ft 267 sq ft 2,530 sq ft 5,596 sq ft
40×80, 16-ft walls perimeter 240 ft 3,840 sq ft 267 sq ft 3,373 sq ft 7,480 sq ft
Building Roof only, 2 in. Everything, 2 in. Everything, 3 in.
30×40×12 2,530 bd ft · $3,800–$5,700 6,190 bd ft · $9,300–$13,900 9,285 bd ft · $13,900–$20,900
40×60×14 5,060 bd ft · $7,600–$11,400 11,193 bd ft · $16,800–$25,200 16,789 bd ft · $25,200–$37,800
40×80×16 6,746 bd ft · $10,100–$15,200 14,960 bd ft · $22,400–$33,700 22,439 bd ft · $33,700–$50,500

For scale, our metal shop project, a 20×30 building with 12-foot walls, came to 1,972 square feet of walls, gables and roof deck, and 4,930 board feet at 2.5 inches.

Which thickness fits which barn

  • Unheated storage where the roof drips: the roof alone at about 2 inches usually solves it. See why your pole barn roof drips.
  • A shop heated some of the time: 2 inches on walls, gables and roof.
  • A shop heated all winter: 2 to 3 inches everywhere. The hot-box test data shows 1 inch of closed-cell stops about 72% of the heat loss through the panel and 2 inches about 86%, so the second inch is worth more than the fourth.

Pole barn insulation options compares foam with blankets, foil and board.

Why national prices don't match

Search "pole barn spray foam cost" and you get numbers that seem to disagree:

Source What it says
This Old House (updated April 2026) An average of $1.25 to $1.50 per square foot, ranging as high as $4.50
Fixr (updated January 2025) $2.75 to $7.50 per square foot; material alone $0.44 to $0.65 per board foot for open-cell and $1 to $1.50 for closed-cell; pole barns $6,000 to $18,000 new, $8,000 to $20,000 existing

None of those per-square-foot numbers say how thick the foam is, and thickness is most of the price. At $1.50 to $2.25 per board foot, a square foot of closed-cell costs $1.50 to $2.25 at 1 inch, $3.00 to $4.50 at 2 inches and $4.50 to $6.75 at 3 inches. A low "per square foot" quote is often a thin one.

Open-cell foam costs less per inch, but it lets water vapor through, so moisture still reaches the cold steel. On metal buildings in this climate it isn't a cheaper version of the same job. See closed-cell vs open-cell in Climate Zone 5.

What moves the price

  • Doors and windows. Large overhead doors take a real bite out of the wall area. Ask whether the quote deducts openings.
  • Purlins and girts. Foam has to wrap the framing on the steel, which takes material and time.
  • Height and access. Tall walls and roof peaks need lifts.
  • Masking. Equipment, stored vehicles and finished surfaces have to be covered or moved.
  • Old insulation. Fiberglass blankets or bubble foil have to come out where the foam goes, because the foam has to bond to the steel.
  • Fire protection. Codes and manufacturers often require an ignition barrier or thermal barrier over exposed foam, depending on how the building is used. That is a separate line, and a common one to leave out of a low quote. See thermal barriers and ignition barriers.
  • Winter conditions. The building has to be warm and frost-free when it is sprayed; see spray foam in winter.

Is the quote fair?

Divide the price by the board feet. If the quote doesn't give board feet, ask for the areas and the thickness, and work it out with the steps above. A fair quote names the foam product, the thickness on each surface, the square footage, the board feet, what is deducted, the barrier if one is needed, and what cleanup and masking include. How to read a spray foam quote goes line by line.

Financing is available: 0% APR for qualified buyers, for up to 22 months.

Want a number for your own building? Price My Project or call (814) 208-3478.

FAQ

How much does it cost to spray foam a 40×60 pole barn?

At roughly $1.50 to $2.25 per board foot installed, about $16,800 to $25,200 for 2 inches of closed-cell on walls, gables and roof of a 40×60 with 14-foot walls, or about $7,600 to $11,400 for the roof alone. Doors, height, masking and any required fire coating change the number.

Is it cheaper to spray just the roof?

Yes, and in an unheated building it is often all you need to stop the roof from dripping. Walls in a building that is never heated rarely need foam.

Why is spray foam priced per board foot and not per square foot?

Because the material is sold by volume. A board foot pins down both the area and the thickness, so two quotes can be compared directly.

Sources

  1. This Old House, "Spray Foam Insulation Cost" (updated April 13, 2026)
  2. Fixr, "Spray Foam Insulation Cost" (updated January 31, 2025)
  3. Metal shop, 20 × 30 × 12: walls, gables and roof deck at 2.5 inches, FoamGuard
  4. How thick should closed-cell spray foam be? The ASTM C-236 data, FoamGuard