24/7 Nationwide Plumbing Service — Enter your ZIP code to get a local plumber's phone number

How to Replace an Electric Hot Water Heater

By MyTownPlumber Editorial Team · Updated 2026-09-14

Replacing an electric hot water heater is a manageable DIY project if you have basic plumbing and electrical skills. In this guide, we’ll walk you through the entire process—from shutting off power and water to connecting the new unit—so you can decide if it’s right for you. We’ll also cover when it’s smarter to call a licensed plumber for water heater repair or replacement.

Step 1: Assess Your Situation

Before you begin, confirm that your old heater is truly beyond repair. Common issues like a faulty thermostat or heating element can often be fixed without replacing the whole tank. However, if your tank is leaking, over 10–15 years old, or making loud rumbling noises due to sediment buildup, replacement is likely the better investment.

Check Local Codes and Permits

Most U.S. municipalities require a permit for water heater replacement, even for DIY work. Contact your local building department to learn about requirements. Also, review the International Association of Plumbing and Mechanical Officials (IAPMO) standards to ensure your installation meets safety and performance guidelines.

Tools and Materials You’ll Need

  • New electric water heater (same size or larger, matching voltage and wattage)
  • Adjustable wrench and pipe wrench
  • Screwdrivers (flathead and Phillips)
  • Voltage tester
  • Garden hose
  • Bucket
  • Teflon tape
  • Copper or PEX piping and fittings (if needed)
  • Wire connectors and electrical tape
  • Safety glasses and work gloves

Step 2: Turn Off Power and Water

Safety first! Go to your electrical panel and switch off the circuit breaker that supplies power to the water heater. Use a voltage tester to confirm the power is off before touching any wires. Next, shut off the cold water supply valve located on top of the heater. Open a hot water faucet somewhere in the house to relieve pressure in the lines.

Drain the Old Tank

Attach a garden hose to the drain valve at the bottom of the tank and run the other end to a floor drain or outside. Open the valve and let the water drain completely. To speed up draining, open the pressure relief valve (T&P valve) on the side of the tank. Be careful—the water may be hot, so allow it to cool if possible.

Step 3: Disconnect the Old Heater

Once drained, disconnect the electrical wires. Remove the access panel on the side of the tank, and you’ll see the thermostat and wire connections. Loosen the screws and pull the wires out. Note the color coding (black, red, white, green) for later. Then disconnect the plumbing: use a wrench to unscrew the unions on the hot and cold water lines. If you have copper pipes, you may need to cut them with a pipe cutter. Finally, remove the old unit—it’s heavy, so have a helper or use a dolly.

Step 4: Prepare the New Heater

Place the new heater in position, ensuring it’s level and stable. If your local code requires an expansion tank or a drip pan, install them now. Apply Teflon tape to the threaded connections on the new tank’s hot and cold nipples. Attach the new water lines, using flexible supply lines or hard piping. Make sure the hot water outlet is connected to the hot side of your plumbing (usually the right side when facing the tank).

Step 5: Connect the Electrical

Install the new access panel and connect the wires: typically black to black, red to red, white to white, and green (or bare copper) to the ground screw. Use wire connectors and secure them with electrical tape. Replace the panel and turn on the circuit breaker. Important: Do not turn on the power until the tank is full of water to prevent damaging the heating elements.

Step 6: Fill and Test

Open the cold water shutoff valve and allow the tank to fill completely. Open a hot water faucet in your house to let air escape. Once water flows steadily from the faucet, close it. Check all connections for leaks. Then turn on the power. Wait about 30–60 minutes for the water to heat up, then test the temperature at a faucet. Adjust the thermostat if needed, but the recommended setting is 120°F to save energy and prevent scalding, as advised by the U.S. Department of Energy.

Cost Considerations

The cost of replacing an electric water heater varies widely across the U.S. On average, homeowners spend between $500 and $1,500 for the unit and materials, plus $200–$500 for professional installation if you choose not to DIY. Prices vary by region and tank size. Energy-efficient models may cost more upfront but can save on utility bills over time.

ItemTypical Cost Range (USD)Notes
Electric water heater (40–50 gal)$400 – $1,200Higher for energy-efficient models
Piping and fittings$50 – $200Depends on material and distance
Permit fees$50 – $150Varies by city
Professional installation (labor)$200 – $500If you hire a plumber

When to Call a Professional

If you’re uncomfortable with electrical work, or if your local code requires a licensed plumber, it’s best to hire a pro. Also, if you encounter unexpected issues like corroded pipes, outdated wiring, or a leaking valve, a professional can handle them safely. MyTownPlumber offers leak detection and pipe repair services to address any underlying problems.

Safety and Efficiency Tips

  • Always test for gas leaks if you have a gas heater, but for electric, focus on electrical safety.
  • Insulate your new tank and hot water pipes to reduce standby heat loss.
  • Install a water softener if you have hard water to extend the life of your heater.
  • Schedule annual maintenance, such as flushing the tank, to prevent sediment buildup.

Frequently Asked Questions

How long does an electric water heater last?

Typically 10–15 years, depending on water quality and maintenance. Regular flushing can extend its life.

Can I replace my electric water heater myself?

Yes, if you have basic DIY skills and follow local codes. However, electrical work can be dangerous, so if you’re not confident, hire a professional.

Do I need a permit to replace my water heater?

Most U.S. cities require a permit. Check with your local building department to avoid fines and ensure safety compliance.

What size electric water heater do I need?

For a family of 3–4, a 40–50 gallon tank is usually sufficient. Consider peak usage and future needs.

Why is my new water heater not producing hot water?

Possible causes include a tripped breaker, faulty thermostat, or improper wiring. Double-check connections and power supply.

Should I choose a tankless electric water heater?

Tankless models are more energy-efficient and provide endless hot water, but they have higher upfront costs. Consult the Energy.gov water heating page for comparisons.

Final Thoughts

Replacing an electric hot water heater is a rewarding DIY project that can save you money, but it’s not without risks. If you run into any difficulties, or if you’d rather leave it to the experts, MyTownPlumber is here to help. Our team handles water heater repair, drain cleaning, sump pump installation, and more. Contact us today for a free estimate, and check out our plumbing offers to save on your next service.

By the MyTownPlumber Editorial Team

Sponsored

Partner Offer

Looking for more options? See today's home-service offers from our advertising partners.

View Sponsored Offer

Advertisement. We may earn a commission if you take up a partner offer. This is not a quote or service provided by this site.