It's best to have at least one inch of free space around any washing machine or dryer. This will allow for proper air circulation and will help to minimize noise transfer. When measuring the spot for your washing machine, make sure to add this free space to the final math.