Most closed-cell spray foam is now formed using hydrofluorocarbon (HFC) blowing agents that have high global warming potential, partially or completely offsetting the climate benefits of the energy savings they can offer. In the United States, HFCs are scheduled to be phased out by January, 2021. A few spray foam suppliers have started supplying spray foam blown with hydrofluoroolefin (HFO) blowing agents without this problem as of early 2017.
Spray foam insulation is typically priced by volume, meaning your cost will depend on how much material you need to use to insulate your space, although other factors may influence price as well. In most cases, the cost of spray foam insulation is more than worth it, as it's a once and done upgrade that will not only provide energy savings in your home, but also improve your home's overall comfort.