An electrical relay works by using a low-power electromagnet (the coil) to mechanically close or open high-power contacts, providing galvanic isolation between your control circuit and your load. When current flows through the coil, it generates a magnetic field that pulls an armature, physically moving the contacts to complete or break the high-current path. This allows a fragile 3.3V microcontroller GPIO or a low-current thermostat to safely switch a 120V AC compressor or a 12V 40A automotive fuel pump without the two circuits ever sharing a direct electrical connection.

The Core Mechanism: Coil vs. Contact Side Wiring

To wire a relay correctly, you must treat it as two completely separate components sharing the same plastic housing: the control side (coil) and the load side (contacts). Standard industrial and automotive relays use the DIN 72552 numbering system to keep these sides distinct.

The Coil Side (Control Circuit)

  • Pin 85 & Pin 86: These are the coil terminals. Polarity generally does not matter for standard DC coils unless the relay has an internal suppression diode or LED indicator, in which case the datasheet will mark 85 as positive and 86 as negative.
CRITICAL DC PROTECTION: Never wire a DC relay coil directly to a transistor, MOSFET, or microcontroller without a flyback diode. When you de-energize the coil, the collapsing magnetic field induces a reverse voltage spike that can exceed 200V. This will instantly punch through the junction of a driving 2N2222 transistor or fry an ESP32 GPIO pin. Always wire a 1N4007 rectifier diode in reverse parallel across pins 85 and 86 (diode cathode to the positive supply side) to clamp this inductive kickback.

The Contact Side (Load Circuit)

  • Pin 30 (Common / COM): The moving contact. This is where your load's power source (Line or Battery +) typically connects.
  • Pin 87 (Normally Open / NO): The contact that connects to Pin 30 only when the coil is energized. Use this for standard "turn on when triggered" applications.
  • Pin 87a (Normally Closed / NC): The contact that connects to Pin 30 when the coil is de-energized. Used for fail-safe circuits or alarm loops.

Decoding the Datasheet: Which Rating Column Governs Your Load?

The most common mistake makers and junior technicians make is looking only at the bold "10A" or "30A" printed on the relay cover. That number is almost always the resistive rating. If you use that same relay to switch an inductive or motor load, the contacts will pit, arc, and weld shut at a fraction of the rated current. For a deeper dive into electromagnetic theory and contact physics, refer to the All About Circuits relay chapter or Electronics Tutorials.

Standard Relay Rating Table (Example: Omron G2R-1-E Series)
Parameter Typical Value Governing Load Type Practical Notes
Coil Voltage 12V DC / 24V DC / 120V AC N/A (Control) Must match control supply exactly. A 12V coil will chatter or fail to pull in at 9V.
Contact Rating (Resistive) 16A at 250V AC Heaters, incandescent bulbs, resistors The "headline" number. Safe to use at 100% capacity for purely resistive loads.
Contact Rating (Inductive) 5A at 250V AC (cos φ = 0.4) Solenoids, contactor coils, transformers Governs inductive loads. Notice the severe derating (from 16A down to 5A) due to arc energy.
Breaking Capacity 30A for 10ms Short-circuit / Inrush survival Maximum current the contacts can interrupt without welding. Not for continuous operation.
HP / LRA Rating 1/2 HP at 120V AC Motors, compressors, pumps Governs motor loads. Must exceed the motor's Locked Rotor Amps (LRA), not just Full Load Amps (FLA).

Load-Specific Selection Decision Path

Use this decision tree to determine which rating column governs your specific application and how to size the relay.

Load Type Characteristics Sizing Rule & Derating Arc Suppression Needed?
Resistive
(Space heater, toaster)
Current is steady; no inrush or inductive kickback. Use 100% of the nominal AC/DC resistive contact rating. No.
Inductive
(Solenoid valve, relay coil)
High inrush current; massive voltage spike on turn-off. Derate to 30% - 40% of the nominal resistive rating. (e.g., A 10A relay is good for ~3A inductive). Yes. RC snubber across AC loads; flyback diode across DC loads.
Motor
(HVAC compressor, drill press)
Extreme inrush (LRA can be 6x-8x FLA) when starting. Ignore the resistive amp rating. The relay must have a specific HP (Horsepower) or LRA rating that exceeds the motor nameplate LRA. Usually handled by the motor's internal thermal overload or a dedicated contactor.
Capacitive
(LED drivers, SMPS inputs)
Acts like a dead short for the first few milliseconds of charging. Derate to 20% of nominal rating, or use a relay specifically rated for "Tungsten" or "Ballast" loads. Consider an NTC thermistor in series to limit inrush.
Pro-Tip for Inductive Loads: If you are switching a 120V AC solenoid valve and your relay contacts are burning out prematurely, solder a 0.1µF X2-rated capacitor in series with a 100-ohm 1/2W resistor (an RC snubber) directly across the solenoid's terminals. This absorbs the arc energy before it reaches the relay contacts.

Bench Testing: How to Verify a Relay Dead and Live

Before throwing away a suspected bad relay or installing a new one into a panel, verify it on the bench. You need a digital multimeter (DMM) and a matched DC power supply.

1. Dead Testing (Coil & Contacts)

  1. Test the Coil: Set your DMM to Ohms (Ω). Place probes across pins 85 and 86. A healthy 12V DC coil typically reads between 100Ω and 200Ω. A 24V DC coil will read roughly four times higher (400Ω - 800Ω). If the meter reads "OL" (Open Loop), the internal coil wire is broken; bin the relay.
  2. Test the Contacts (NC): Set the DMM to Continuity (the diode/beep symbol). Place probes on Pin 30 and Pin 87a. The meter should beep (reading < 1Ω). Place probes on Pin 30 and Pin 87; it should read "OL".

2. Live Testing (Under Power)

  1. Energize the Coil: Apply the exact rated voltage (e.g., 12.0V DC) to pins 85 and 86. You should hear a distinct, sharp mechanical "click."
  2. Verify Contact Closure: With the coil still energized, check continuity between Pin 30 and Pin 87. It should now beep.
  3. The Voltage Drop Test (Crucial): Continuity mode is not enough to detect pitted contacts. Wire a known load (e.g., a 5A 12V halogen bulb) through pins 30 and 87. While the circuit is live, set your DMM to DC Millivolts (mV) and place the probes directly on the metal tabs of Pin 30 and Pin 87. A healthy relay will show a voltage drop of less than 50mV. If you read 200mV or higher, the internal contacts are carbonized or pitted, creating a dangerous high-resistance point that will melt the housing under continuous load.

Repair vs. Replace: When to Bin the Component

A common question on the bench is whether to repair a relay or throw it away. The answer depends entirely on the physical form factor and the cost of the component.

  • PCB Relays & Standard "ICE Cube" Relays (e.g., Omron LY2, Schneider RXM): ALWAYS REPLACE. These cost between $3 and $15. Never attempt to file or sand the contacts to remove pitting. The contacts are plated with a microscopic layer of silver or gold; filing removes this plating, exposing the base metal, which will oxidize and fail within days. If the coil is burned or contacts are welded, bin it.
  • Heavy Industrial Contactors (e.g., Eaton C25, Siemens Sirius): REPAIR (Conditionally). If a $150+ 3-phase contactor fails, diagnose the specific failure. If the coil is burnt out but the main power contacts and arc chutes are clean, you can buy a replacement coil assembly for $30 and swap it. However, if the main copper contacts are deeply pitted or welded, replace the entire contactor. Do not file heavy contacts either.

The Default Pick: Concrete Part Recommendations

Stop scrolling through distributor catalogs trying to find the "perfect" relay for general-purpose switching. Use this decision matrix to make a concrete selection based on your exact build scenario.

Your Scenario Required Specs Concrete Part Number to Buy Approx. Cost (2026)
Automotive / High Current DC
(Fuel pumps, winches, off-road lights)
12V DC Coil, 40A NO Contact, Sealed IP67 TE Connectivity / Tyco V23234-A6001-X036 (Standard Bosch-style 5-pin) $4.00 - $6.00
Industrial Control Panel
(PLC outputs, 120V AC solenoids, DIN rail)
24V DC Coil, DPDT (2 Form C), 10A per pole Schneider Electric RXM2AB1BD (with RXZE2S108M base) $12.00 - $16.00
PCB Mount / Microcontroller
(ESP32/Arduino driving 120V AC loads)
5V DC Coil, SPDT, 10A, 0.2" pin spacing Omron G5V-2-DC5 (Must drive via ULN2003 or 2N2222 with flyback diode) $1.50 - $2.50
THE DEFAULT PICK: If you are building a general-purpose 12V DC control circuit, wiring up a test bench, or just want a highly reliable, universally available workhorse relay that handles both AC and DC loads gracefully without overthinking the derating math, buy the Omron G2R-1-E DC12. It features a 12V DC coil, a robust 16A SPDT contact rating, a transparent cover for visual armature inspection, and standard 0.250" quick-connect tabs. It is the undisputed industry standard for a reason.