It depends on how much it will cost to repair the unit. If the repair will cost up to 50% or more of replacing the unit, it will not be worth repairing the water heater.