Spray foam is used in attics, ceilings, walls, and floors. When applied, it expands to 100 times its volume to seal cracks and crevices. It also maintains some flexibility as the home ages.