How to Calculate Spray Foam Insulation Cost
Spray foam is priced by the board foot: one square foot of foam one inch thick. Multiply the area by the depth in inches to get board feet, then multiply by the installed price per board foot. For a 1,000 sq ft attic roof deck with 5.5 in of open-cell foam, that is 1,000 × 5.5 = 5,500 board feet, and 5,500 × $0.60 to $1.30 = $3,300 to $7,150.
The calculator uses HomeGuide’s installed prices: $0.60 to $1.30 a board foot for open-cell and $1.30 to $2.90 for closed-cell. Angi’s ranges, $0.60 to $1.60 and $1.30 to $3.10, sit just above them. Some guides quote lower figures, around $0.44 to $0.65 for open-cell, but those are material prices before labor.
Open-Cell or Closed-Cell
Open-cell foam is soft and light, about half a pound per cubic foot, and insulates at about R-3.6 per inch. It seals air leaks but lets water vapor pass, so it suits roof decks, interior walls and attics above the living space. Closed-cell foam is about four times as dense, insulates at about R-6 per inch once aged, and slows vapor, so it is the usual choice against foundation walls, in crawl spaces, on rim joists and anywhere depth is limited.
Closed-cell costs about twice as much per board foot but needs fewer inches for the same R-value. Per unit of R, open-cell still comes out cheaper when there is room for it: about $0.17 to $0.36 per R per sq ft, against $0.22 to $0.48 for closed-cell.
Cost per Square Foot by Thickness
| Depth | Open-cell R | Open-cell per sq ft | Closed-cell R | Closed-cell per sq ft |
|---|---|---|---|---|
| 1 in | R-4 | $0.60–$1.30 | R-6 | $1.30–$2.90 |
| 2 in | R-7 | $1.20–$2.60 | R-12 | $2.60–$5.80 |
| 3 in | R-11 | $1.80–$3.90 | R-18 | $3.90–$8.70 |
| 3.5 in | R-13 | $2.10–$4.55 | R-21 | $4.55–$10.15 |
| 4 in | R-14 | $2.40–$5.20 | R-24 | $5.20–$11.60 |
| 5.5 in | R-20 | $3.30–$7.15 | R-33 | $7.15–$15.95 |
| 6 in | R-22 | $3.60–$7.80 | R-36 | $7.80–$17.40 |
Installed prices. R-values use R-3.6 per inch for open-cell and R-6.0 for closed-cell, rounded to the nearest whole number.
Cost by Location
Each location starts from a typical depth: the rafter or stud depth for open-cell, and a thinner layer for closed-cell. The last column is HomeGuide’s range of reported job totals, useful for checking that your result is in the right area.
| Location | Open-cell, per sq ft | Closed-cell, per sq ft | Reported jobs |
|---|---|---|---|
| Attic roof deck (rafters) | 5.5 in, R-20: $3.30–$7.15 | 3 in, R-18: $3.90–$8.70 | $1,500 to $9,000 |
| Attic floor | 5.5 in, R-20: $3.30–$7.15 | 3 in, R-18: $3.90–$8.70 | $1,100 to $6,800 |
| New or open walls (2×4) | 3.5 in, R-13: $2.10–$4.55 | 2 in, R-12: $2.60–$5.80 | – |
| New or open walls (2×6) | 5.5 in, R-20: $3.30–$7.15 | 3 in, R-18: $3.90–$8.70 | – |
| Crawl space walls | 3.5 in, R-13: $2.10–$4.55 | 2 in, R-12: $2.60–$5.80 | $1,200 to $6,700 |
| Basement walls | 3.5 in, R-13: $2.10–$4.55 | 2 in, R-12: $2.60–$5.80 | $1,500 to $5,600 |
| Rim joists | 3.5 in, R-13: $2.10–$4.55 | 3 in, R-18: $3.90–$8.70 | $1,200 to $2,000 |
| Garage walls | 3.5 in, R-13: $2.10–$4.55 | 2 in, R-12: $2.60–$5.80 | $2,600 to $8,900 |
| Existing closed walls | Injected foam: $3.15–$7.50 per sq ft of wall (Fixr) | $3,200 to $8,800 | |
A small job such as rim joists can cost more than the board-foot math. Sealing 150 ft of 2×10 rim joists with 3 in of closed-cell comes to $451 to $1,006 here, while HomeGuide’s reported rim joist jobs run $1,200 to $2,000. That gap points to minimum charges, so ask installers about theirs.
Existing Walls and Old Insulation
Finished walls cannot be sprayed open. The installer drills holes between the studs, injects a slow-expanding foam that will not push the drywall off, and plugs the holes. Fixr puts this at $3.15 to $7.50 per sq ft of wall, and the calculator switches to that rate when you choose existing walls. Where the old insulation is in the way, as with batts between rafters or an attic floor being sealed, removal adds $0.80 to $3.10 per sq ft depending on the material.
Spray Foam Cost Questions
Method and Sources
Foam: area × depth = board feet, × HomeGuide’s installed price per board foot. Rim joists: length × joist depth gives the area. Existing walls: $3.15 to $7.50 per sq ft of wall (Fixr). Removal: HomeGuide’s per-sq-ft ranges by material, as reported by This Old House. R-value: R-3.6 per inch open-cell, R-6.0 closed-cell (aged), in line with Green Building Advisor and Fine Homebuilding. A target R-value is converted to a depth and rounded up to the next half inch. Not included: drywall or an ignition barrier over the foam where code requires one, patching and painting, and repairs.
- HomeGuide: spray foam insulation cost per board foot and by location
- Angi: spray foam insulation cost
- Fixr: spray foam insulation cost, including existing walls
- This Old House: spray foam insulation cost and old insulation removal
- Green Building Advisor: open-cell vs closed-cell R-value and cost
- Fine Homebuilding: spray foam insulation
- U.S. Department of Energy: recommended R-values by climate zone
- Fixr: home insulation cost by type
- Bob Vila: spray foam vs fiberglass cost
Written and checked by Kris Lynch. Not reviewed by a licensed professional. See our methodology. Spotted a problem? Tell us. Updates: Nov 2026, launched.