Closed cell spray foam should be 4- to 5- inches on the ceiling and 2- to 3-inches in the walls. This might come as a surprise to you, but honestly, this is all the spray foam it takes to get the biggest bang for your buck with the air seal and thermal resistance needed for certain areas of the home