Most cities, towns and municipalities require a permit for replacing a water heater in your home. Codes will vary across states and towns, so always be sure to check the requirements in your area to ensure you are meeting up-to-date codes.