How does polyurethane spray foam insulation seal my house?

It is applied as a liquid and expands 40 to 100 times its liquid volume. By expanding in all directions, it is able to fill all the voids and cavities (e.g., behind outlet boxes, around outlet fixtures and holes, and in floors and walls which wires and pipes pass through). It also seals all the gaps in your walls and exterior sheathing.