What a solenoid does and why it fails
A solenoid is an electromagnet that opens and closes valves or switches in your appliance—usually to control water flow, gas flow, or electrical circuits. In a washing machine, it opens the water inlet valve. In a dishwasher, it controls detergent release. In a dryer, it may trigger the gas valve. When a solenoid fails, the appliance either won't start, won't fill, won't drain, or gets stuck in one mode.
Solenoids fail because the coil inside burns out from repeated electrical surges, or the plunger inside gets stuck from mineral buildup or corrosion. Unlike a part you can clean, a failed solenoid must be replaced—it cannot be repaired.
Replacement is straightforward if you follow the steps in order and work methodically. Most people can do this in 30 to 45 minutes with basic tools.
Key Takeaways
- Always unplug the appliance and turn off the water supply before you start, even if you think the power is off.
- Take a photo of the wire connections before you disconnect anything, so you know where each wire goes back.
- The solenoid usually bolts or clips to the valve body with one or two fasteners that take less than a minute to remove.
- New solenoids cost between $25 and $75 depending on the appliance type, and the part number is printed on the old solenoid or in your manual.
- After installation, run a test cycle with no load to confirm water or gas flows and the appliance stops when it should.
Locate the solenoid and gather your tools
The solenoid's location depends on your appliance. In a washing machine, it is usually mounted on the water inlet valve assembly at the back or side of the tub. In a dishwasher, it is on the detergent dispenser or water inlet valve. In a dryer, it is on the gas valve at the bottom or back. Check your manual for the exact location—most manufacturers include a diagram.
Gather a flathead screwdriver, a Phillips screwdriver, an adjustable wrench or socket set, a flashlight, and a small container to hold fasteners so you don't lose them. Wear work gloves to protect your hands from sharp edges inside the appliance. Have a towel ready in case water spills when you disconnect the inlet hose.
Before you touch anything, unplug the appliance from the wall outlet. If the appliance has a gas line, turn off the gas supply at the shutoff valve. If it has a water inlet, turn off the water supply at the shutoff valve behind the appliance or at the main water valve. Wait five minutes to may support any residual electrical charge drains.
Disconnect power, water, and gas lines
Once the appliance is unplugged and the water or gas is shut off, locate the inlet hose or gas line connected to the solenoid. Place your towel underneath to catch any water that drips. Use your wrench to loosen the connection nut by turning it counterclockwise. Turn slowly—do not force it. Once it is loose enough, unscrew it by hand and set it aside.
Next, locate the electrical connector on the solenoid coil. It is usually a two-pin or three-pin plastic plug that slides or clips onto the solenoid. Take a clear photo of this connector with your phone before you disconnect it—note which wire goes where. Gently pull the connector straight out. If it does not slide easily, look for a small tab or clip on the connector and press it while you pull.
Do not yank the wires themselves. If the connector is stuck, wiggle it gently side to side while pulling. Some connectors have a locking tab that must be pressed down before the connector releases.
Remove the old solenoid
The solenoid is held to the valve body by one or two bolts, screws, or clips. Look at the base of the solenoid where it meets the valve. You will see either a bolt head (usually 10mm or 12mm), a Phillips screw, or a U-shaped clip. Use your wrench or screwdriver to remove these fasteners. Place them in your small container.
Once the fasteners are out, gently pull the solenoid straight up and away from the valve body. It may require a slight wiggle, but it should come free without force. If it is stuck, do not pry it—spray a small amount of penetrating oil around the base, wait two minutes, and try again.
Inspect the valve opening where the solenoid was mounted. If you see white or tan mineral deposits, wipe them away with a dry cloth. Do not use water or liquid cleaner—you want the surface dry before the new solenoid goes in.
Install the new solenoid
Before you install the new solenoid, confirm it matches the part number on the old one. The part number is usually stamped or printed on the coil. Check it against your manual or the box the new solenoid came in. Installing the wrong solenoid will not work and may damage the appliance.
Align the new solenoid with the valve body opening. The solenoid should slide straight down onto the valve. Push it down gently until it sits flush against the valve body—you should feel it settle into place. Do not force it. Once it is seated, install the bolts or screws you removed earlier. Tighten them firmly but not so hard that you strip the threads. A bolt should be snug enough that you cannot turn it by hand, but you should not need a wrench to move it further.
If the solenoid uses a U-shaped clip, slide the clip over the solenoid body and find it with the fastener. Make sure the clip holds the solenoid firmly in place.
Reconnect the electrical connector and water or gas line
Reconnect the electrical connector to the new solenoid. Align the pins on the connector with the pins on the solenoid coil. Push the connector straight in until you hear or feel a click. If the connector has a locking tab, make sure it clicks into place. Refer to the photo you took earlier to confirm the connector is oriented correctly.
Reconnect the inlet hose or gas line to the solenoid outlet. Hand-tighten the connection nut first, then use your wrench to tighten it another quarter turn. Do not over-tighten—you only need enough pressure to seal the connection. If you over-tighten, you risk cracking the fitting or stripping the threads.
Turn the water supply back on (or the gas supply, depending on your appliance). Check for leaks around the connection. If water or gas drips, turn off the supply, loosen the connection nut slightly, and tighten it again. Most leaks stop after a second tightening.
Test the appliance and confirm the solenoid works
Plug the appliance back into the wall outlet. Do not load it with clothes or dishes yet. Run a short test cycle—usually a rinse or drain cycle for washers, or a short wash cycle for dishwashers. For dryers, turn on the heat and listen for the gas valve to click open.
Watch for water to flow into the tub or drum, or for the gas flame to ignite (if applicable). The solenoid should open smoothly and the appliance should stop when the cycle ends. If water does not flow, or if the appliance does not stop, turn it off when ready and check your electrical connections. Make sure the connector is fully seated and the wires match the photo you took.
If the appliance still does not work, turn off the power and water, disconnect the solenoid again, and inspect the valve opening for debris or mineral buildup. Clean it with a dry cloth and reinstall the solenoid. Run the test cycle again.
Frequently Asked Questions
How do I know which solenoid to order?
The part number is printed on the old solenoid coil or in your appliance manual. Search for that part number online or call the appliance manufacturer with your model number. Do not guess—ordering the wrong solenoid wastes money and time.
Can I replace a solenoid without turning off the water?
No. Even if the appliance is unplugged, water pressure in the line can spray out when you disconnect the hose. Always turn off the water supply first. The shutoff valve is usually behind the appliance where the inlet hose connects to the wall.
What if the solenoid connector won't come off?
Look for a small plastic tab or clip on the connector itself—not on the solenoid. Press this tab while you gently pull the connector straight out. If it still won't budge, spray a tiny amount of penetrating oil around the connector base, wait two minutes, and try again. Never yank the wires.
Do I need to replace the inlet hose when I replace the solenoid?
No, unless the hose is cracked, kinked, or leaking. If the hose is more than five years old and shows signs of wear, replacing it at the same time prevents future leaks. Otherwise, reuse the old hose.
Why is my new solenoid not opening?
The most common cause is an incorrect electrical connection. Disconnect the connector, take another photo, and reconnect it firmly. If the connector is correct, the valve opening may be blocked by mineral deposits. Remove the solenoid, clean the valve opening with a dry cloth, and reinstall it.