Generally, the well-maintained water heater lasts for 10-15 years. If the leak is minor and the water heater has not reached maturity, you can repair it and continue using it until maturity. Otherwise, replacing it with a tankless water heater is a brighter option as its lifespan is almost double that of the storage water heater.