Once applied to an area or opening, spray foam expands for a few minutes. To make sure that the foam can fully expand, you should fill the opening no more than 50 percent. If you fill the space more than that, you risk overflow in a few minutes once the expansion is complete.