What You Need to Know Before You Start
A solenoid valve is an electromagnetic switch that controls water or gas flow in appliances like washing machines, dishwashers, refrigerators, and irrigation systems. When it fails, the appliance either won't fill, won't drain, or leaks constantly. Replacing one yourself is possible if you have basic tools and can follow a step-by-step process, but the difficulty depends on where the valve sits in your appliance and whether you need to drain water first.
The job typically takes 30 minutes to two hours. You'll need a screwdriver, an adjustable wrench or socket set, a bucket or towel for water spillage, and possibly a multimeter to test whether the valve is actually broken. Before you buy a replacement, confirm the exact model number of your appliance and the part number of the solenoid valve — they are not interchangeable across brands or even across models from the same brand.
If your appliance is still under warranty, opening it yourself may void that warranty. Check your manual or the manufacturer's website first. If the valve is embedded deep in the appliance or requires soldering, hiring a technician is usually safer and faster than attempting it yourself.
Key Takeaways
- Solenoid valves control water or gas flow and are found in washing machines, dishwashers, refrigerators, and outdoor irrigation systems.
- You must turn off power and water supply before opening the appliance, and drain any standing water into a bucket.
- The replacement valve must match your appliance's exact model number — buying the wrong part will not work.
- Most solenoid valves bolt or clip into place and take 15 to 30 minutes to swap once you locate them.
- If the valve is soldered to copper pipes or buried under multiple panels, a technician is usually the safer choice.
Locate the Solenoid Valve in Your Appliance
The location varies by appliance type. In a washing machine, the inlet valve is usually behind the front or top panel, near where the water hoses connect. In a dishwasher, it is typically under the tub, accessible from below. In a refrigerator, the water inlet valve sits behind the back panel or inside the kick plate at the bottom front. In irrigation systems, the valve is mounted above or below ground at the water line.
Consult your appliance manual for the exact location — most manufacturers include a diagram. If you don't have the manual, search the model number (usually on a sticker inside the door or on the back) plus "solenoid valve location" online. Take a photo of the valve's position and the hoses or pipes connected to it before you disconnect anything. This photo will help you reconnect correctly.
Turn Off Power and Water Supply
Unplug the appliance from the electrical outlet or switch off the circuit breaker that powers it. Do not skip this step — solenoid valves are electrical components, and working on a live circuit risks shock.
Next, shut off the water supply. For washing machines and dishwashers, turn the shut-off valve on the wall behind or below the appliance clockwise until it stops. For refrigerators, locate the water line (usually a thin plastic or copper tube running to the back) and turn off the shut-off valve, which is often under the sink or in the basement. For irrigation systems, turn off the main water supply or the zone valve for that line.
Open a faucet or drain valve downstream to release pressure in the line. Place a bucket or towel under the solenoid valve to catch any water that spills when you disconnect the hoses or pipes.
Disconnect the Old Solenoid Valve
Most solenoid valves are held in place by two or four bolts, or by a clip that slides out. Use your screwdriver or wrench to remove the bolts, or slide the clip sideways to release the valve. Take a photo of the wire connections before you unplug them — note which wire goes where, or label them with tape.
If the valve is connected to hoses with hose clamps, loosen the clamps with a screwdriver and slide the hoses off. If it is soldered to copper pipes, you will need a propane torch and solder — this is where most DIY attempts fail. If you see solder joints, stop and call a technician.
Once the valve is free, inspect the hoses or pipes for cracks or mineral buildup. If the hoses are cracked or stiff, replace them at the same time. If they are clogged with mineral deposits, soak them in white vinegar for an hour and rinse with water.
Install the New Solenoid Valve
Before you install the new valve, confirm it matches the part number of the old one. The replacement should have the same inlet and outlet port sizes, the same voltage (usually 120V or 240V), and the same coil resistance if you tested the old one with a multimeter.
Slide the new valve into the mounting bracket and find it with the bolts or clip. Tighten bolts firmly but do not over-tighten — you want them snug enough that the valve does not move, but not so tight that you crack the plastic body. If the valve has a clip, slide it in until you hear or feel it click.
Reconnect the hoses or pipes. If you are using hoses, slide them onto the ports and tighten the hose clamps with a screwdriver. Make sure the clamps are tight enough that water does not leak, but not so tight that you crush the hose. If you are connecting to copper pipes and you are not comfortable soldering, have a technician do this step.
Reconnect the electrical wires to the coil. Match the wire colors or labels you noted before disconnecting the old valve. If the wires are corroded or damaged, trim them back and strip a quarter-inch of insulation before reconnecting.
Test the New Valve and Check for Leaks
Turn the water supply back on slowly. Watch the connection points for leaks. If water drips from a hose clamp, tighten it a quarter turn with a screwdriver. If water leaks from a bolted connection, turn off the water, remove the valve, and check that the port threads are clean and the hose or pipe is not cracked.
Plug the appliance back in or switch the circuit breaker back on. Run a test cycle — a short wash cycle on a washing machine, a rinse cycle on a dishwasher, or a water dispense on a refrigerator. The appliance should fill and drain normally. If it does not, turn off power and water again and check that the wires are connected correctly and the valve is seated fully in its bracket.
Let the appliance run for five minutes and check again for leaks. If everything is dry and the appliance is working, the job is complete. If water is still leaking or the appliance is not filling or draining, the new valve may be defective or you may have connected a wire incorrectly. Consult the manual or contact the manufacturer's support line for troubleshooting.
When to Call a Technician Instead
Stop and call a technician if the solenoid valve is soldered to copper pipes, if the valve is buried under multiple panels that require special tools to remove, if the appliance is still under warranty and opening it would void the warranty, or if you are not comfortable working with electrical connections.
A technician will charge a service call fee (typically $75 to $150) plus the cost of the part and labor. The total usually runs $200 to $400 depending on the appliance and your location. If your appliance is older than 10 years and the repair costs more than half the price of a new one, replacement may be more cost-effective than repair.
Frequently Asked Questions
How do I know if the solenoid valve is actually broken?
A broken solenoid valve usually causes the appliance to not fill with water, not drain, or leak constantly. You can test it with a multimeter set to ohms — an open circuit (infinite resistance) means the coil is burned out. If you hear a clicking sound when the appliance tries to fill or drain but nothing happens, the valve is likely stuck. If the valve is leaking from the body itself (not from a connection), it cannot be repaired and must be replaced.
Can I use a solenoid valve from a different brand or model?
No. Solenoid valves are model-specific. The inlet and outlet port sizes, voltage, and coil resistance must match exactly. Using the wrong valve will not fit, will not work, or will damage your appliance. Always confirm the part number before you buy a replacement.
What if water leaks from the connection after I install the new valve?
Tighten the hose clamp or bolted connection a quarter turn and test again. If it still leaks, turn off the water, remove the valve, and inspect the hose or pipe for cracks. If the hose is cracked, replace it. If the pipe is cracked, you will need a technician to solder a new section.
Do I need to drain the entire appliance before I start?
For washing machines and dishwashers, run a drain cycle first to empty the tub. For refrigerators, you do not need to drain the appliance, but you should place a bucket under the valve to catch water from the line. For irrigation systems, turn off the main water supply and open a downstream valve to release pressure.
How long does a solenoid valve last?
Most solenoid valves last 5 to 10 years depending on water quality and how often the appliance runs. Hard water with mineral buildup can shorten the lifespan. If your appliance is older than 10 years and the valve fails, consider whether repair or replacement of the whole appliance makes more financial sense.