Proximity of hot water tank to main electrical panel
I'm looking to replace my aging electric 50-gallon hot water tank. It's currently in a utility closet sharing space with an electric furnace and the main electrical panel. I've been told the main panel is too close to the water tank. House is currently all electric and on a slab. Gas is available at the street and I would have to incur costs involved with running a gas line to my utility closet if I pursue gas. My options are:
1. Go tankless (Bosch gas) and move the unit to the side wall (first estimate was $4,500 which sounded very high. That includes running a new gas line inside the house.)
2. Get a conventional electric hot water tank and move it into an already cramped laundry room which would limit my washer/dryer setup to a stacked unit.
3. Move the electrical panel 30 feet away and well into the garage.
4. New inside gas line and a 50-gallon tank would be $1,600.
I haven't pursued options 2 or 3 yet as I am still suffering from sticker shock. Any advice?