(408) 978-3093
Water Heaters

How to Install an Electric Water Heater: Step by Step

Installer mounting a water heater on a wall, titled How to Install an Electric Water Heater: A Complete Guide
Table of Contents
  1. Things to Consider Before Electric Water Heater Installation
    1. Choose the Right Size and Energy-Efficient Electric Water Heater
    2. Plumbing Tools and Materials Requirements
    3. Safety Precautions and Code Compliance
    4. Permit
  2. What Is the Step-by-Step Electric Water Heater Installation Process?
    1. Step 1: Remove the Old Water Heater
    2. Step 2: Position the New Electric Water Heater
    3. Step 3: Install the Temperature and Pressure Relief Valve
    4. Step 4: Connect the Water Lines
    5. Step 5: Fill the Tank Before Turning On Power
    6. Step 6: Make Electrical Connections
    7. Step 7: Power Up the Electric Water Heater
  3. What Is the Best Type of Electric Water Heater for Installation?
    1. Electric Tank Water Heater
    2. Electric Tankless Water Heater
    3. Electric Heat Pump Water Heater
  4. What Are the Common Electric Water Heater Installation Mistakes to Avoid?
  5. How Much Does It Cost to Install a New Electric Water Heater?
  6. What Are the Essential Tips for a Newly Installed Electric Water Heater?
  7. Why Hire a Water Heater Installation Service Provider?
  8. Electric Water Heaters in San Jose
  9. Frequently Asked Questions

Installing an electric water heater means safely removing the old one, setting and strapping the new tank, connecting the water lines and the temperature and pressure (T&P) relief valve, filling the tank, and only then wiring and powering it. In San Jose and the South Bay, every replacement needs a city permit, earthquake straps and an inspection.

It’s simpler than a gas installation, but it still involves 240-volt wiring, a heavy tank and code requirements. Here’s how it’s done, so you know what a proper installation involves whether you hire it out or not.

The work has to meet the California Plumbing and Electrical Codes and the City of San Jose’s water heater requirements. The plumbing steps suit an experienced DIYer; the wiring, the permit and any circuit changes are best left to a licensed pro.

Prefer to have it done for you? See our electric water heater service in San Jose, or ask about adding a hot water recirculation pump for faster hot water at distant taps.

Things to Consider Before Electric Water Heater Installation

Planning avoids most problems: the right heater, the parts on hand, a matching circuit and the permit in place.

Choose the Right Size and Energy-Efficient Electric Water Heater

  • Tank size. A 40- to 50-gallon tank suits most households of two to four people; larger families may need 65 to 80 gallons. The first-hour rating on the yellow EnergyGuide label tells you how much hot water a tank delivers in a busy hour.
  • Tankless electric units save space and heat on demand, but they need much more electrical capacity than a tank.
  • Heat pump water heaters use far less electricity than a standard electric tank and qualify for San Jose Clean Energy rebates when they replace a gas water heater. They need room and airflow, a condensate drain and usually a 240-volt circuit. ENERGY STAR recommends a space that stays between 40°F and 90°F year-round, which makes a South Bay garage a good fit.
  • Efficiency. Compare the ENERGY STAR rating and the estimated yearly operating cost on the EnergyGuide label, not just the purchase price.

Plumbing Tools and Materials Requirements

Infographic of tools for electric water heater installation: pipe wrenches, screwdrivers, drill, pliers, nut driver, measuring tape, pipe cutter, voltage meter and hand truck

See essential plumbing tools for more on each one.

Tools:

  • Pipe wrenches and adjustable pliers
  • Screwdrivers and a nut driver
  • Drill
  • Measuring tape and a level
  • Pipe cutter (for copper or PEX)
  • Voltage meter or non-contact voltage tester
  • Hand truck, and a helper

Materials:

  • Garden hose and buckets for draining
  • Gloves and towels
  • Flexible water heater connectors (or pipe and fittings), with dielectric fittings where copper meets the steel tank
  • Thread sealant tape or pipe dope for threaded joints (compression fittings seal without tape)
  • T&P relief valve, if the heater doesn’t come with one, and discharge pipe in an approved material
  • Wire connectors and a cable clamp for the junction box
  • Earthquake straps or a listed strap kit
  • Drain pan, expansion tank and pressure-reducing valve where required
  • Foam insulation pad or sleeves for the pipes

Don’t use PVC pipe for the hot water line or the T&P discharge: it isn’t rated for the temperature.

Safety Precautions and Code Compliance

The main hazards are electric shock, water damage and fire from poor wiring.

  • Turn off the breaker and confirm with a tester that the heater is dead before touching any wiring
  • Follow the electrical code and the manufacturer’s wiring diagram; if the circuit needs to change, that’s work for a licensed electrician under an electrical permit
  • Make every plumbing joint with the right fitting and sealant, and check it for leaks before the panels go back on
  • Follow the California Plumbing Code and the City’s requirements for straps, the T&P discharge, drain pans and expansion tanks

Permit

The City of San Jose requires a plumbing permit to install or replace a water heater; depending on the type, an electrical permit may also be required, and heat pump water heaters need both. For a single-family home or duplex, the permit can be issued online through SJPermits, which shows the fee at application. The City recommends that a licensed contractor apply, because whoever signs the application is responsible for the work, and it warns that insurers may deny claims related to unpermitted work. Unpermitted work can also cause problems when you sell. Other South Bay cities have similar rules.

  • Get the permit before you start
  • Install to code: the inspector checks the straps, T&P discharge, connections and wiring
  • Schedule the inspection when the work is done and keep the Permit Card on site

What Is the Step-by-Step Electric Water Heater Installation Process?

In short: remove the old unit, set and strap the new one, install the T&P valve, connect the water lines, fill the tank, wire it, then power up and test.

Step 1: Remove the Old Water Heater

Man carrying an old, stained water heater away from its new replacement
  • Disconnect the power safely. Turn off the breaker and confirm with a voltage tester that there’s no power at the heater. Remove the junction box cover, disconnect the circuit wires and the ground, and loosen the cable clamp to free the cable. Cap the bare wire ends with wire connectors.
  • Drain the tank. Close the cold water supply valve. Attach a garden hose to the drain valve and run it to a floor drain or outside. Open a hot water faucet in the house to let air in, then open the drain valve. The water may be hot, and old tanks often drain slowly because of sediment.
  • Disconnect the water lines. Undo the flexible connectors or cut rigid pipe with a pipe cutter. Replace a corroded or stiff shutoff valve now, while the water is off. Remove the old tank with a hand truck and a helper; a full-size tank is heavy even when empty.

San Jose residents can schedule a no-cost Junk Pickup for a fully drained tank, and most installers haul the old heater away.

Step 2: Position the New Electric Water Heater

Installer positioning a new white electric water heater beside the old one
  • Clear the space and check the floor. A full 50-gallon tank weighs several hundred pounds. Make sure the floor or platform is solid and level; any stand or platform must be anchored to the floor. Where a leak could damage the home, set the heater in a drain pan piped to an approved location.
  • Check clearances. Follow the manufacturer’s clearances so the element access panels, the drain valve and the T&P valve stay reachable. In a garage, the City requires heating elements and switches to be at least 18 inches above the floor, and the heater needs protection from car bumpers.
  • Level and strap it. Level the tank with shims if needed. California requires every water heater to be strapped against earthquakes. The City’s rule for tanks up to 52 gallons is two straps: the upper one within the top third of the tank and the lower one within the bottom third, at least 4 inches above the controls, anchored to the wall framing. Larger tanks need more straps.

Step 3: Install the Temperature and Pressure Relief Valve

The T&P relief valve opens if the water gets too hot or the pressure too high, which keeps the tank from rupturing. Most new heaters come with it installed; never reuse the old one.

  • Find the port on the top or upper side of the tank.
  • Seal the threads with thread sealant tape or pipe dope.
  • Thread the valve in snugly without over-tightening, with the outlet pointing the way the discharge pipe will run.
  • Run the discharge pipe. It must be at least the size of the valve outlet, in galvanized steel, hard-drawn copper or a listed relief valve drain tube, and run downhill with no traps. Per the City’s rules, it runs outside and ends pointing down, 6 to 24 inches above the ground; for a heater in a garage it may end 6 to 12 inches above the garage floor.
  • Keep it clear. No valve, cap or threads on the end, no kinks, and no connection to a drain pan, condensate line or the sewer.

Step 4: Connect the Water Lines

  • Cold water supply. Connect the cold line to the inlet (marked “cold” or blue) with a flexible water heater connector or rigid pipe. Use dielectric fittings where copper meets the steel tank to limit corrosion, and sealant on the threaded joints.
  • Hot water outlet. Connect the hot line to the outlet the same way, keeping the connector straight and unstrained.
  • Expansion tank, if required. A home with a pressure-reducing valve or check valve on the water service is a closed system, and the City requires an expansion tank. It goes on the cold line near the heater and must be supported. Set its air pressure to match the house water pressure before installing it.

Step 5: Fill the Tank Before Turning On Power

  • Open the cold supply slowly so the tank fills gradually.
  • Open a hot water faucet in the house and leave it running until water flows steadily with no air spurts.
  • Check for leaks at the inlet, outlet, drain valve and T&P valve as the tank fills, and tighten any fitting that weeps.

Never energize an electric water heater with an empty or partly filled tank: the elements burn out in seconds.

Step 6: Make Electrical Connections

Wiring mistakes cause tripped breakers, burned connections and fires. Reconnecting a circuit that already matches the new heater is straightforward for someone experienced. Anything else, such as a new circuit, a larger breaker, a longer run or panel work, needs a licensed electrician and an electrical permit.

  • Check the requirements. Match the heater’s rating plate. A standard electric tank typically needs a dedicated 240-volt, 30-amp circuit with wire sized for it; confirm the panel has room for the load. When a project goes through Standard Plan Review, the City asks for electrical load calculations for a new electric water heater.
  • Keep the power off. Leave the breaker off and verify again with a tester before opening the junction box.
  • Wire the heater. A standard 240-volt heater uses two hot conductors and a ground, with no neutral. Connect the two circuit conductors to the heater’s two supply leads (if the cable’s white wire is used as a hot, mark it with black or red tape), and the ground wire to the green ground screw.
  • Secure everything. Tighten the wire connectors, make sure the cable clamp grips the cable, tuck the wires in and close the cover. If anything about the circuit is unclear (wire size, breaker rating, aluminum wiring), have an electrician check it.

Step 7: Power Up the Electric Water Heater

  • Turn on the breaker. Set the thermostats to about 120°F, which the CPSC recommends to reduce scald risk; on two-element tanks, set both the same.
  • Test. After an hour or two, run a hot water faucet and confirm the temperature. If the water doesn’t heat, turn the breaker off and have the wiring, the reset button and the elements checked.
  • Check for leaks again around the inlet, outlet and drain valve once the tank is hot, then schedule the inspection.

What Is the Best Type of Electric Water Heater for Installation?

The choice depends on household size, space, efficiency and the home’s electrical capacity. A standard electric tank is the simplest and least expensive to install; electric tankless saves space but needs a lot of electrical capacity; a heat pump water heater is the most efficient but needs the most room.

Electric Tank Water Heater

The most common type, and the easiest and most affordable to install. It stores heated water, so it delivers a steady supply up to the tank’s capacity, but it takes up floor space.

  • Installation: needs space for the tank, clearance for the connections, and a correctly sized dedicated circuit. A like-for-like swap is usually done in part of a day; plumbing or electrical upgrades add time.
Pros Cons
Lowest upfront cost Takes up more space
Reliable and familiar Uses more electricity than a heat pump model
Easiest installation Hot water limited by tank size

Electric Tankless Water Heater

A tankless unit heats water as it flows, with no storage tank. It’s compact, but whole-house electric tankless units draw a lot of power and often need several large dedicated circuits and, in many homes, a panel or service upgrade. Unlike gas tankless units, electric models don’t need venting.

  • Installation: needs careful sizing for flow rate and temperature rise, a check of the home’s electrical service, and electrician work in most cases. It takes longer than a tank swap, especially when electrical upgrades are needed.
Pros Cons
Compact, wall-mounted Higher upfront cost
No standby heat loss from a tank Often needs electrical upgrades
Continuous hot water within its flow rate Limited flow for larger households

Electric Heat Pump Water Heater

A heat pump water heater moves heat from the surrounding air into the water instead of making it with elements, so it uses much less electricity than a standard tank, but it needs more space and airflow.

  • Installation: the City requires a room of at least 700 cubic feet (10 by 10 by 7 feet), or a louvered door at least 2 by 3 feet on a smaller room, a condensate drain to an approved location, a panel that can carry the load, and both plumbing and electrical permits. It takes longer than a standard tank swap, especially with electrical work.
Pros Cons
Highest efficiency Larger, needs space and airflow
Lower electricity bills over time; rebates available Higher upfront cost
No combustion, so the Air District gas rule doesn’t affect it More complex installation (condensate, electrical)

What Are the Common Electric Water Heater Installation Mistakes to Avoid?

Most problems come from sizing, wiring, missing safety parts and skipped checks.

  • Incorrect sizing. Too small runs out of hot water; too large wastes energy. Size to your household’s use.
  • Improper electrical connections. Undersized wire, a wrong breaker, a missing ground or an overloaded circuit can cause failures or fire. Follow the rating plate and the code, and verify power is off with a tester.
  • Ignoring airflow and venting needs. A heat pump model in a closet that’s too small won’t perform. (Gas heaters need proper venting to avoid carbon monoxide; electric tanks don’t.)
  • Not checking for leaks at the inlet, outlet and drain valve before closing up.
  • A missing or wrong T&P discharge. The valve must be installed, and its discharge pipe run full size to an approved location with no valve or cap.
  • Skipping earthquake straps, which California requires on every water heater.
  • Overlooking code and permits, which can mean failed inspections, insurance trouble and problems at sale.
  • Reusing old or mismatched fittings, which leak. Use new connectors and the right dielectric fittings.
  • Turning on power before the tank is full, which burns out the elements in seconds. Also flush the new tank briefly through the drain valve to clear debris from the installation.

How Much Does It Cost to Install a New Electric Water Heater?

In San Jose, an electric water heater typically costs $1,600 to $4,000 or more installed, depending on the type and size of the unit and any electrical or plumbing upgrades.

Type (installed, typical San Jose price) Price
Electric tank water heater $1,600–$4,000+
Heat pump water heater $2,500–$6,000+
Tankless water heater (gas or electric) $1,800–$6,000+

Electric tankless units that need a larger electrical service can cost more than the tankless range. What moves the price:

  • Unit type and size: larger tanks and heat pump models cost more.
  • Electrical upgrades: a new 240-volt circuit, a larger breaker or a panel upgrade.
  • Plumbing changes: new shutoff valves, connectors, an expansion tank or a pressure-reducing valve.
  • Permits: required by the City; SJPermits shows the fee when you apply.
  • Code parts and accessories: straps, drain pan, T&P discharge pipe, pipe insulation, condensate line for heat pumps.
  • Location: attics, closets and tight spaces take more time.
  • Brand and efficiency: high-efficiency and ENERGY STAR models cost more upfront and less to run.

CPI quotes every installation as a fixed price before work starts. For more detail, see water heater installation cost in San Jose.

What Are the Essential Tips for a Newly Installed Electric Water Heater?

  • Keep the thermostat at about 120°F to balance comfort, energy use and scald risk.
  • Check for leaks at the connections, drain valve and T&P discharge now and then.
  • Flush a few gallons from the drain valve every 6 to 12 months; Santa Clara Valley water is moderately hard and sediment builds up.
  • Have the anode rod checked every few years; it protects the tank from corrosion.
  • Test the T&P valve once a year; if it drips afterward or won’t open, replace it.
  • Use vacation mode or turn the breaker off for long trips.
  • Keep the area around the heater clear, especially around a heat pump model’s air intake.

See water heater maintenance tips and causes of water heater failure for more, and for gas models, how a gas water heater is installed.

Why Hire a Water Heater Installation Service Provider?

A licensed installer handles the wiring, plumbing, permit and upgrades as one job and knows what the inspector checks, avoiding electrical faults, leaks and failed inspections. Installing to the manufacturer’s instructions also protects the warranty. CPI Service holds California CSLB License #1101278 (C-36 Plumbing, C-20 HVAC) and handles the permit and inspection.

Electric Water Heaters in San Jose

  • Future-proof. The Bay Area Air District rule requiring new small gas tank water heaters to be zero-emission (2027, with a proposed delay to 2028) makes electric, especially heat pump, models a natural choice for many replacements.
  • Rebates. SJCE’s EcoHome Rebate covers qualifying heat pump water heaters that replace a gas one; check current requirements before you buy.
  • Garages. Many South Bay water heaters sit in garages, where heat pump models work well and the heater needs protection from car bumpers.

CPI Service installs and repairs electric, heat pump, gas and tankless water heaters throughout San Jose and the South Bay, permits included. See water heater services, request a free estimate or call (408) 978-3093.

Frequently Asked Questions

Does a plumber or an electrician install a water heater?

A plumber installs the water heater and its water connections, and usually reconnects an existing circuit that already matches the new heater. If a new 240-volt circuit, a larger breaker or a panel upgrade is needed, for example for a heat pump water heater or an electric tankless unit, a licensed electrician does that part under an electrical permit.

Do I need a permit to replace a water heater in San Jose?

Yes. The City of San Jose requires a plumbing permit to install or replace any water heater, and an electrical permit for some types (heat pump water heaters need both). For a single-family home or duplex the permit can be issued online through SJPermits. The inspector checks the straps, the T&P discharge, the connections and the wiring.

Why must the tank be full before turning on the power?

Electric heating elements burn out in seconds if they're powered without water around them (a dry fire). Fill the tank and bleed the air from a hot water faucet before switching the breaker on.

How long does a new electric water heater take to heat up?

A typical 40- to 50-gallon electric tank takes about one to two hours to heat a full tank of cold water. Heat pump models take longer in heat pump mode. Electric tankless units heat on demand, as long as the flow stays within the unit's capacity.

Can you install an electric water heater in a bathroom?

Yes. The City's location rules prohibit gas-fired water heaters (other than direct-vent models) in bathrooms and bedrooms, but not electric ones. The heater still needs service clearances, a drain pan where a leak could damage the home, and wiring and a disconnect that meet the electrical code, and the installation needs a permit and inspection.

How do I check a water heater's electrical connection?

Turn the breaker off and confirm with a non-contact tester or voltage meter that the heater is dead before opening the junction box cover. Look for loose, discolored or scorched wires and corroded connectors, and make sure the cable clamp holds the cable. Don't tighten or remake connections on a live circuit. Scorch marks, a breaker that trips, or aluminum branch wiring are reasons to call a licensed electrician or plumber.

How do I replace an electric water heater thermostat?

With the breaker off and the power confirmed dead, remove the access panel and insulation, photograph the wiring, disconnect it, and swap the thermostat for one with the same rating, then reinstall the insulation and cover before restoring power. It's work on a 240-volt circuit, so if you're not comfortable with it, have a licensed plumber or electrician do it. Never bypass the high-limit (reset) switch.

How much does electric water heater repair cost?

It depends on the part. Heating elements and thermostats are the most common repairs and cost far less than a new heater; a leaking tank can't be repaired and means replacement. CPI diagnoses the problem and quotes the repair as a fixed price before any work starts. See causes of water heater failure for what usually goes wrong.

What a South Bay customer says

Antonio did an excellent job fixing the water heater room noise issue. He took the time to properly diagnose the root cause instead of just treating the symptoms, which I really appreciated.

He went through multiple steps to resolve it, including draining and cleaning the water heater and adding vibration pads between the water pipes and the wall to reduce the noise transmission.

He was professional, thorough, and clearly knows what he’s doing. Highly recommend Antonio if you’re dealing with similar issues.

Nina F., Google review

Read more reviews →

Serving San Jose and the South Bay

CPI Service is based at 2880 Aiello Dr in San Jose and serves homes and businesses across the South Bay and the Peninsula. See all the areas we serve.

Ready to get started with CPI Service?