Most local building codes require a minimum of 21 inches in front of the vanity, toilet and tub. Of course, that is the absolute minimum and most people will want more space. Most codes also call for at least 15 inches from any side wall or obstruction and a minimum of 30 inches measured center to center to any other fixture.