A new gas 40-gallon water heater with a 6-year warranty is priced at around 600 dollars. If you are doing it yourself, expect around four hours to complete the task.