A water heater leak is a location problem before it is a repair problem. Water at the base of the tank may have travelled down from a union above it; water in the pan may be condensate from a flue or a failed pan drain; water from the relief-valve pipe is the valve doing its job, not a leak at all. Tracing where it starts decides whether the answer is a fitting, a valve, a pan or the tank.
The sources, from most to least repairable
Fittings and flex connectors. The inlet and outlet unions and the braided connectors are the most common leak points and the cheapest to fix. Corrosion here is often a sign the connection has been disturbed or the water is aggressive.
The temperature-and-pressure relief valve. A weeping valve is usually worn or has mineral debris under the seat. A valve that discharges in a steady stream is responding to pressure or temperature, and the cause sits elsewhere.
The drain valve. Plastic drain valves crack; brass ones scale shut and then weep when forced.
The pan and its drain. A pan holding water is telling you a leak exists higher up, or that the pan drain is blocked.
The tank body. Rust weeping through the shell at a seam or the base is the end of the unit. No sealant holds on thinned steel under pressure, and a patch buys weeks at most.
How the leak is traced
The unit is dried and watched with the supply on. Fittings are checked first, then the relief valve and its discharge pipe, then the drain valve, then the pan, and finally the tank seams and base. On a gas unit the flue is checked too, because a blocked or corroded flue produces condensate that reads as a leak.
What a repair involves
A fitting or valve replacement is a short job: supply off, the joint remade with the right connector, pressure restored and the joint checked. A pan or drain line repair may need the unit lifted or the drain cleared. Where the tank has failed, the conversation becomes a replacement, and the replacement page covers what that includes.
When it is a replacement
The tank itself is leaking, the unit is past about ten years, the base is rusted, or the same joint has failed twice. A leaking tank also raises the question of the pan and the shut-off: if there is no pan or the valve will not close, that is worth correcting while the unit is out.
If it is leaking now
Shut the inlet valve at the tank and watch whether the drip slows. When the handle will not turn, go to the house main. Then clear the surrounding floor and call — the phone line is answered 24/7.