Irrespective of the size of your mudroom, it will be a part of your home, which means you will have to follow building codes and include a foundation. Ideally, the foundation should be 4 feet into the ground.