When a maker or technician asks, "how do you wire a solenoid," they are usually dealing with one of two devices: a direct-acting solenoid valve (used for pneumatics or fluid control) or a solenoid-driven electromechanical relay/contactor (used to switch heavy electrical loads). While the physical form factors differ, the electrical architecture is identical. You have a low-power control circuit (the coil) and a high-power switched circuit (the contacts or the valve mechanism).

This guide breaks down the exact wiring procedures, rating interpretations, and protection requirements for both sides of the device, ensuring you don't fry a PLC output or weld a contact shut.

The Direct Answer: Coil Side vs. Contact (Load) Side

To wire a solenoid correctly, you must treat it as two completely isolated circuits. Think of the coil as the pilot valve and the contacts as the main water gate; the pilot uses a trickle of water to unlock the massive main gate.

Wiring the Coil Side (Control Circuit)

The coil is an inductor. When you apply the rated voltage (e.g., 24V DC or 120V AC), current flows through the copper windings, generating a magnetic field that pulls the armature.

  • AC Coils: Wire the two coil terminals (often labeled A1 and A2) directly to your control voltage. Polarity does not matter. AC coils rely on inductive reactance to limit current, so they have a high inrush current when the armature is open.
  • DC Coils: Wire the terminals to your DC supply. While the raw coil itself is not strictly polarity-sensitive, you must install a flyback diode (like a 1N4007) in parallel across the coil terminals. Wire the diode's cathode (the striped end) to the positive terminal and the anode to the negative. When the control signal drops, the collapsing magnetic field generates a massive reverse voltage spike (inductive kickback). The flyback diode recirculates this spike, protecting your driving transistor, MOSFET, or PLC output from instant destruction.

⚠️ Warning: DC Coil Protection
Never wire a DC solenoid coil driven by solid-state components (like an Arduino GPIO, ESP32, or PLC transistor output) without a flyback diode or an integrated TVS snubber. The inductive kickback can easily exceed 100V, instantly bricking a 3.3V or 5V logic pin.

Wiring the Contact Side (Load Circuit)

If you are wiring a solenoid relay or contactor, the contact side handles the actual load. Terminals are typically labeled with odd numbers for commons (e.g., 13, 14 for normally open; 21, 22 for normally closed). Wire your line voltage to the common terminal and your load to the normally open (NO) or normally closed (NC) terminal. Always use a properly sized branch circuit breaker or fuse on the line side.

Solenoid Rating Table: Which Column Governs Your Load?

A common mistake is looking at the 10A rating on the side of a relay and assuming it can switch a 10A motor. It cannot. To determine which rating column governs this load, you must look at the specific utilization category (e.g., IEC AC-1, AC-3) printed on the device. The table below breaks down how to read the nameplate.

Parameter Coil Rating (Control) Contact Rating (Load) Breaking Capacity (Fault)
What it Governs The control signal voltage and current required to pull in the armature. The maximum continuous steady-state current the contacts can carry without overheating. The maximum fault current the device can safely interrupt without welding shut or exploding.
Typical Values 24V DC, 120V AC, 60Hz 10A at 250V AC (Resistive) 50kA at 400V AC
Governs Which Load? Governs your PLC, switch, or microcontroller output. Governs only resistive loads (heaters, incandescent bulbs). Must be heavily derated for motors. Governs your upstream short-circuit protection coordination.

For authoritative details on interpreting relay contact ratings and utilization categories, refer to the Macromatic guide on relay contact ratings or standard IEC 60947 documentation.

Selection Decision Path: Resistive, Inductive, and Motor Loads

The contact rating printed on a solenoid relay is almost always based on a purely resistive load (IEC AC-1). When you switch inductive or motor loads, the inrush current and the arc generated upon opening drastically reduce the relay's lifespan. Use this decision tree to size your solenoid contacts and upstream protection.

Load Type Derating Factor Example Scenario Protection & Curve Notes
Resistive
(Heaters, Lighting)
100% of nameplate rating. 10A relay can switch a 10A space heater. Standard Type B or C MCB breakers are fine. Standard fast-acting fuses work.
Inductive
(Solenoids, Transformers)
20% to 30% of nameplate rating. 10A relay should only switch a 2A to 3A pneumatic solenoid bank. Do not treat fuses and breakers as interchangeable here. Use time-delay (dual-element) fuses or Type D curve breakers to tolerate the 10x inrush without nuisance tripping.
Motor
(Compressors, Pumps)
50% of nameplate rating (Check AC-3 rating). 10A relay can switch a 5A Full Load Amp (FLA) motor. Must use motor-rated breakers (e.g., Schneider TeSys GV2 series) with adjustable magnetic trip settings to handle Locked Rotor Amps (LRA).

Testing and Troubleshooting: Dead, Live, Repair vs. Replace

When a solenoid or contactor fails to pull in, or a load fails to power, you need a systematic diagnostic approach. Here is how to test it dead and live, followed by the framework for deciding when to repair vs. replace.

How to Test It Dead (Power Removed)

Lock out and tag out (LOTO) the circuit. Verify zero voltage with a multimeter.

  1. Coil Test: Set your multimeter to Ohms (Ω). Place probes across A1 and A2. A healthy 24V DC coil typically reads between 40Ω and 150Ω. A 120V AC coil will read much higher (often 500Ω to 2kΩ). If you read OL (open loop), the coil wire is broken internally. If you read 0.0Ω, the coil is shorted.
  2. Contact Test: Set the meter to Continuity. For Normally Open (NO) contacts, the meter should read OL when the armature is at rest. Manually press the armature down with a non-conductive tool; the meter should beep, indicating a closed circuit.

How to Test It Live (Energized)

Warning: Only perform live testing if you are qualified to work on energized circuits. Use properly rated CAT III/IV test leads.

  1. Coil Voltage Drop: Set the meter to AC or DC Volts. Measure directly across A1 and A2 while the circuit is commanded ON. You must read within 10% of the nominal coil voltage (e.g., 21.6V to 26.4V for a 24V system). If voltage is low, the issue is in your control wiring or PLC output, not the solenoid.
  2. Contact Voltage Drop: With the solenoid pulled in and the load running, measure the voltage across the closed contacts (e.g., from terminal 13 to 14). A healthy contact will drop less than 0.1V. If you read 2V, 5V, or full line voltage, the contacts are pitted, carbon-fouled, or welded open.

When to Repair vs. Replace

Not all electromechanical components are meant to be serviced. Use this decision matrix:

  • Repair (Replace Coil or Contacts): Large industrial contactors (e.g., Schneider TeSys D-Line, Allen-Bradley 100-C series) and heavy-duty pneumatic solenoid valves (e.g., SMC, Festo) are modular. If the coil burns out, you unbolt it and slide a new one onto the armature. If contacts pit, you can order replacement contact blocks. The cost of the replacement part is a fraction of the $200+ base unit.
  • Replace (Entire Unit): PCB-mounted relays (e.g., Song Chuan, Omron G5Q series), ice-cube relays with sealed plastic housings, and small brass fluid solenoid valves are potted or ultrasonically welded. Attempting to pry them open to clean contacts or rewind a coil is a waste of bench time and a fire hazard. Replace the entire unit.

FAQ: Common Solenoid Wiring Questions

How do you wire a solenoid with a flyback diode for DC control?

Wire the flyback diode in parallel with the solenoid coil terminals. The critical rule is polarity: the cathode (the silver stripe on the diode body) must connect to the positive supply terminal of the coil, and the anode must connect to the negative terminal. If you wire it backward, the diode will create a dead short across your power supply the moment the relay is energized, likely destroying the diode and tripping your power supply's overcurrent protection.

How do you wire a solenoid valve to a PLC without burning the output?

First, verify the PLC output type. If it is a transistor (solid-state) output, you absolutely must use a flyback diode or an RC snubber module across the solenoid coil to absorb the inductive kickback. Second, check the PLC's maximum current sink/source rating per channel (often 0.5A for 24V DC outputs). If your solenoid coil draws 0.8A inrush, you must wire the PLC output to drive an intermediary ice-cube relay, and let the relay's heavy-duty contacts switch the solenoid valve.

How do you wire an AC solenoid coil to a DC power supply safely?

You don't. AC solenoid coils are designed with low DC resistance and rely on AC inductive reactance (impedance) to limit the running current. If you apply an equivalent DC voltage to an AC coil, the impedance drops to just the bare wire resistance. The coil will draw massive current, overheat, and burn out in a matter of seconds, often melting the bobbin. Always match the coil voltage type (AC or DC) to your supply. If you only have DC available, you must swap the solenoid armature/coil assembly for a DC-rated equivalent.

Does the polarity matter when wiring a DC solenoid coil?

For a raw, bare DC solenoid coil, polarity does not matter; the magnetic field will pull the armature in either direction. However, many modern industrial DC solenoids (like those from Turck or IFM) have built-in LED indicators or integrated TVS suppressor diodes inside the connector housing. If you reverse the polarity on these smart connectors, the internal protection diode will short the circuit to protect the coil, causing your upstream fuse to blow. Always check the manufacturer datasheet for polarity markings (usually a '+' and '-' stamped near the DIN connector pins).