The best foam you can use is the pink or blue extruded styrofoam board. Typical thickness required for under floors is 1.5 inches. White 'bead board' styrofoam can also be used, although, it's a bit messy because of all the little white beads when you cut it. Both of these are closed-cell foams.