This depends on many things, including age. If you have an older water heater, you might be better off replacing it, especially if the repair is costly.