At its core, a relay is a switch operated by an electromagnet rather than a human finger. When you apply a low-voltage control signal to the coil, it generates a magnetic field that pulls the contacts closed, allowing a separate, higher-power circuit to flow. This provides galvanic isolation between your sensitive control electronics (like an ESP32 or PLC) and the high-voltage load. If you are sizing a relay for a DIY automation panel or HVAC control board, the direct answer is to size the contacts for the load's inrush current (using the inductive or motor rating, never the resistive one) and match the coil voltage exactly to your control source. Assume standard 30°C ambient temperatures for the ratings below; if your enclosure runs hotter, you must derate the contact current by 10% to 20%.

Electromechanical Relay Specification Sheet

Before wiring anything, you must read the manufacturer's datasheet. A common mistake is looking only at the maximum amperage printed on the relay's plastic shell (e.g., "16A 250VAC") and assuming it can handle any 16A load. That number is almost always the resistive rating. Below is a spec-sheet-table of common electromechanical relays showing the critical differences between resistive and inductive capacities.

Part Number Coil Voltage Resistive Rating (AC) Inductive / Motor Rating Breaking Capacity
Omron G2R-1-E DC12 12V DC 16A @ 250V AC 5A @ 250V AC (pf=0.4) 4000 VA
Schneider 8501CO11 120V AC 10A @ 277V AC 1/3 HP @ 120V AC 2770 VA
Finder 40.52.8.230 230V AC 8A + 8A @ 250V AC 3A @ 250V AC 2000 VA
Panasonic ALQ324 24V DC 10A @ 250V AC 1/4 HP @ 120V AC 2500 VA

How to read this table: The Omron G2R-1-E can switch a 16A space heater (resistive), but if you use it to switch a 16A air compressor motor (inductive), the inrush current will weld the contacts shut on the first cycle. For the motor, you must use the 5A inductive rating. For a deeper dive into relay physics and contact materials, refer to the All About Circuits relay guide.

Coil vs. Contact Wiring and Flyback Protection

A relay has two completely isolated circuits: the coil (control) side and the contact (load) side. Treating them as a single circuit is the fastest way to fry your microcontroller.

The Coil Side (Control Circuit)

The coil is an inductor. When you apply voltage (e.g., 12V DC to pins A1 and A2, or + and -), current flows and builds a magnetic field. CRITICAL DC WIRING RULE: When the driving transistor (like a 2N2222 or ULN2803) turns off, the collapsing magnetic field generates a massive reverse voltage spike (inductive kickback) that will instantly destroy your silicon. You must wire a flyback diode (such as a 1N4007) in reverse bias across the coil terminals. Connect the diode's cathode (the striped end) to the positive coil terminal and the anode to the negative terminal. This provides a safe path for the kickback current to dissipate. For AC coils, a flyback diode is not used; instead, an RC snubber network or a metal oxide varistor (MOV) is sometimes placed across the coil to suppress AC transients.

The Contact Side (Load Circuit)

The contacts are typically labeled COM (Common), NO (Normally Open), and NC (Normally Closed).

  • COM: The moving armature. Connect your load's hot/line wire here.
  • NO: Connects to COM only when the coil is energized. Use this for loads that should turn ON when triggered (e.g., a solenoid valve or light).
  • NC: Connected to COM when the coil is de-energized. Use this for fail-safe circuits (e.g., an emergency stop loop or a normally-running cooling fan).
Always route the load's neutral wire directly to the load, bypassing the relay entirely. Only switch the hot/line conductor through the relay contacts.

Load Selection Decision Path: Which Column Governs?

When selecting a relay from the Omron relay catalog or any other manufacturer, you must identify your load type to know which rating column governs your decision. Use this decision path:

Load Type Examples Governing Rating Column Why It Governs & Contact Material
Resistive Space heaters, incandescent bulbs, toasters Resistive Rating (Amps) Inrush current equals steady-state current. Standard Silver Nickel (AgNi) contacts handle this well.
Inductive Solenoids, transformers, contactor coils Inductive Rating (Amps @ pf=0.4) Inductors resist changes in current, causing severe arcing when contacts open. Requires Silver Tin Oxide (AgSnO2) contacts to resist arc welding.
Motor Compressors, HVAC fans, pumps, conveyors Motor / HP Rating (LRA) Locked Rotor Amps (LRA) can be 6x to 8x the running current. The Motor rating column explicitly accounts for this massive inrush and the high-energy break arc.
Capacitive Switching power supplies, LED drivers, capacitor banks Inrush / Tungsten Rating Empty capacitors act as a dead short for the first few milliseconds. Inrush can be 20x steady state. Requires pre-charge circuits or specialized high-inrush relays.
Warning: The HP / Motor Rating Trap
If a relay datasheet lists "1/2 HP @ 120V AC", that rating is only valid for standard AC induction motors. If you are switching a universal motor (like in a power tool) or a DC motor, the inrush and arcing characteristics are entirely different. For DC motors, you must use a relay specifically rated for DC inductive loads, as DC arcs do not have a natural zero-crossing point to extinguish themselves, making them far more destructive to contacts than AC arcs.

Testing Diagnostics and the Repair-vs-Replace Rule

Relays are mechanical wear items. The contacts physically slam together, arc, and degrade over time. Knowing how to test them and when to throw them away is essential for reliable systems.

How to Test a Relay Dead (De-energized)

  1. Disconnect Power: Remove the relay from the circuit or ensure all mains and control voltages are locked out and verified dead with a multimeter.
  2. Test the Coil: Set your multimeter to resistance (Ohms). Place probes across the coil pins (A1/A2). A healthy 12V DC relay coil typically reads between 100Ω and 400Ω. A 120V AC coil will read much higher (e.g., 2kΩ to 10kΩ). If it reads OL (open), the coil wire is broken internally. If it reads 0.0Ω, the coil is shorted.
  3. Test the Contacts: Set the meter to continuity. Place probes on COM and NC; it should beep. Place probes on COM and NO; it should read OL. Use a small flathead screwdriver to manually press the relay's test button (if equipped) or push the armature. The continuity should swap: COM-NO beeps, COM-NC reads OL.

How to Test a Relay Live (Energized Under Load)

Safety Note: Only perform live testing if you are qualified to work on energized circuits and are using properly rated CAT III/IV test leads.

  1. Coil Voltage: Measure AC or DC voltage across the coil terminals while the control signal is active. It must be within ±10% of the nominal coil voltage. A 24V DC coil needs at least 21.6V to pull in reliably.
  2. Contact Voltage Drop: With the relay energized and the load running, measure the AC/DC voltage directly across the COM and NO terminals. A healthy relay will show a voltage drop of less than 0.1V. If you measure 0.5V or higher, the contacts are pitted, carbonized, or suffering from contact welding. This voltage drop generates heat (P = V × I) and will eventually melt the relay housing.

When to Repair vs. Replace

The Rule: For 99% of PCB-mounted, plug-in, and DIN-rail electromechanical relays (like the Omron G2R or Finder 40 series), always replace. They are sealed units. Never attempt to open a plastic relay housing to file or sand pitted contacts. Filing removes the specialized AgSnO2 or AgNi contact plating, exposing the base brass, which will weld shut almost immediately upon the next use.

The Exception: Heavy-duty industrial contactors (e.g., 100A+ 3-phase motor starters) are designed to be serviced. On these massive units, you can replace the arc chutes, swap out individual contact pads, and clean the magnetic armature faces. However, if the main coil of a large contactor burns out, it is usually more cost-effective to replace the entire contactor assembly rather than rewinding or sourcing a legacy coil.