Water at the base of a heater tells you that something in the system has failed, not which part. The useful question is whether the escape is at a serviceable component or through the pressure vessel itself — and that answer changes the job completely.
Tracing it from the tank down
Start where the water enters and leaves. The cold inlet and hot outlet fittings sit on top of the tank, often with dielectric unions; a weep there runs down the jacket and looks like a tank leak by the time it reaches the floor. The relief valve's own body and the pipe threaded into it are the next place to look, then any recirculation connection.
Electric heaters add two gaskets most people never see: the seals behind the element covers. Water in that compartment, or a rust stain around the cover, points to the seal rather than the vessel. On a gas tank the drain valve at the base is the usual impostor — it drips into the same puddle a failed shell would make.
Repairs that hold
Where the tank shell is sound, the leaking component is replaced: the drain valve, the T&P valve, a nipple or union, an element gasket, or a corroded fitting. The surrounding connections are checked at the same time, because a repair that leaves a second failing joint is not finished.
If the relief valve has been discharging, the cause is investigated rather than the valve alone being swapped. A thermostat that overheats the tank or a closed system with no expansion control will destroy the new valve too.
When the tank is the problem
Once water is coming through the metal, the outlook changes. A rusted-out base, a weeping seam or a pinhole in the jacket is a failure of the vessel, and no patch restores it. The tank is isolated and the conversation moves to replacement, with the immediate aim of limiting water damage.
If the leak is at a component but the tank is old and corroded, we will explain both options rather than presenting replacement as the only answer. The decision should rest on the condition of the tank, not on the inconvenience of the diagnosis.