The breaker answer depends heavily on the type of water heater. A standard storage tank (40–50 gallon, 4,500W) is the simplest case: 30A breaker, 10 AWG wire, one two-pole circuit. Because the two elements are interlocked (only one heats at a time), the draw never exceeds a single element's current, so the 30A circuit is sufficient.
Electric tankless heaters are a different world. To heat water on demand they may draw 80–150 amps, requiring multiple 40–60A double-pole breakers, very heavy conductors, and frequently a 200A (or larger) service. Homeowners switching to electric tankless are often surprised by the electrical work involved; a gas tankless or a heat-pump (hybrid) tank avoids it. Heat-pump water heaters are the most efficient electric option and typically run on a modest 30A/240V or even 15A/240V circuit because the compressor draws far less than resistive elements.
Whatever the type, always size from the nameplate, apply the 125% continuous factor, match the wire to the breaker, and verify the whole-house load. Pair this calculator with the breaker size calculator for other appliances and the circuit load calculator to check circuit capacity.
Finally, remember that a water heater circuit is a safety-critical, high-current, hardwired installation, not a plug-in convenience. It should have a means of disconnect within sight of the unit (a breaker lock or a local disconnect switch), a properly bonded ground, and connections torqued to the manufacturer's specification, since loose lugs on a high-current appliance are a leading cause of overheating and panel damage. Most jurisdictions require a permit and inspection for a new water-heater circuit. Use this tool to plan the breaker and wire, then have the actual installation performed or verified by a licensed electrician who can confirm the disconnect, grounding, and local amendments to the code.