To wire a relay to a switch, you route low-current switch power to the relay's coil terminals (typically 85 and 86) to energize an internal electromagnet. This magnetic field pulls a heavy-duty armature, closing the high-current contact terminals (30 and 87) to deliver power to your load. The switch never handles the load current directly; it only handles the coil's milliamp draw.
This isolation is the core advantage of electromechanical relays. However, wiring the pins correctly and selecting the right contact rating for your specific load type is where most DIY builds fail. Below is the complete bench-to-jobsite guide for selecting, wiring, and testing relays.
The Two Halves of a Relay: Coil vs. Contact Wiring
A standard 5-pin relay (often called a Bosch-style relay) features two completely isolated circuits inside a single plastic housing. The coil side is the control circuit, and the contact side is the load circuit. Understanding this physical separation is critical for safe wiring.
The Coil Side (Control)
Terminals 85 and 86 connect to the internal copper wire coil. This coil is rated for a specific voltage (usually 12V or 24V DC). When you apply voltage across these two pins, current flows, generating a magnetic field. Polarity generally does not matter for standard DC coils unless the relay has an internal suppression diode or resistor.
The Contact Side (Load)
Terminal 30 is the common (COM) input, usually tied directly to your high-current power source. Terminal 87 is the Normally Open (NO) output, which connects to your load. Terminal 87a is the Normally Closed (NC) output, which is powered when the relay is at rest. When the coil energizes, the internal switch flips from 87a to 87.
Reference Spec Sheet: Standard 12VDC 40A Automotive Relay
Before wiring, you must read the datasheet. Here are the real-world specifications for a standard heavy-duty 12V relay (e.g., Omron G8V-1H71 or equivalent):
| Parameter | Value | Engineering Notes |
|---|---|---|
| Coil Voltage | 12V DC | Must operate reliably between 9.0V and 16.0V |
| Coil Resistance | 75 Ω | Draws ~160mA; easily handled by a 3A toggle switch |
| Contact Rating (Resistive) | 40A at 14V DC | For heating elements, LED arrays, and static resistors |
| Contact Rating (Motor) | 15A at 14V DC | Derated heavily due to inductive inrush and arcing |
| Breaking Capacity | 100A max | Maximum current the contacts can interrupt before welding |
Choosing the Right Relay: A Decision Path by Load Type
The most common mistake in relay selection is looking only at the '40A' printed on the side of the case. That 40A rating applies strictly to resistive loads. If you switch a 30A motor with a '40A' relay, the contacts will pit, arc, and eventually weld shut, creating a severe fire hazard.
So, which rating column governs this load? It depends entirely on the physics of the device you are powering. Inductive and motor loads generate massive inrush currents and voltage spikes upon startup and shutdown.
Load Type Selection Matrix
| Load Type | Inrush Multiplier | Governing Rating Column | Example Components |
|---|---|---|---|
| Resistive | 1x Nominal | Resistive / Nominal Rating | Heated seats, LED light bars, rear defrosters |
| Inductive | 3x to 5x Nominal | Inductive Rating (or derate 50%) | Solenoids, fuel pumps, actuator coils |
| Motor | 6x to 10x Nominal | Motor / HP / LRA Rating | Air compressors, radiator fans, winches |
| Tungsten | 10x to 15x Nominal | Tungsten Rating | Halogen work lights, incandescent bulbs |
Rule of thumb: If your relay datasheet does not explicitly list a Motor or Tungsten rating, you must derate the nominal resistive rating by at least 50% for inductive loads, and 75% for tungsten loads. For detailed derating curves, consult the All About Circuits guide on relay contact ratings.
Step-by-Step: Wiring the Switch, Coil, and Load
Follow this sequence to ensure your control circuit and load circuit are properly isolated and protected.
- Wire the Load Power: Run a heavy-gauge wire (sized for your load's ampacity) from your battery or distribution bus to Relay Pin 30. Install an inline fuse or circuit breaker as close to the power source as possible.
- Wire the Load Output: Run a wire from Relay Pin 87 to the positive terminal of your load. Ground the load directly to the chassis or negative bus.
- Wire the Switch Control: Run a lighter-gauge wire (18 AWG is usually sufficient) from a switched 12V source to your dashboard toggle switch, and from the switch to Relay Pin 86.
- Wire the Coil Ground: Run a wire from Relay Pin 85 to a clean chassis ground or the negative bus.
WARNING: The DC Flyback Diode Requirement
When you wire a relay coil to a DC switch, you are wiring an inductor. When the switch opens, the magnetic field in the coil collapses instantly, generating a reverse voltage spike (inductive kickback) that can exceed 100V. This spike will arc across your toggle switch contacts, destroying them prematurely, or fry sensitive upstream microcontrollers.
The Fix: Solder a 1N4007 rectifier diode directly across the relay coil pins. Connect the cathode (the silver band) to Pin 86 (positive) and the anode to Pin 85 (ground). This provides a safe recirculation path for the collapsing magnetic energy. For more on inductive kickback physics, see the Electronics Tutorials relay switching guide.
Testing, Troubleshooting, and When to Replace
Before energizing the main load, verify your wiring with a digital multimeter (DMM). Testing a relay involves both 'dead' (unpowered) and 'live' (powered) diagnostics.
How to Test It Dead (Bench Test)
- Coil Integrity: Set your DMM to Ohms (Ω). Probe pins 85 and 86. A healthy 12V relay will read between 65Ω and 85Ω. If it reads 'OL' (open loop), the internal coil wire is broken. If it reads near 0Ω, the coil is shorted.
- Contact Resting State: Set the DMM to continuity. With the relay unpowered, you should have continuity between Pin 30 and Pin 87a (NC). You must have zero continuity (OL) between Pin 30 and Pin 87 (NO).
- Contact Active State: Apply 12V directly to pins 85 and 86 using jumper wires. You should hear a distinct mechanical 'click'. Re-test continuity: Pin 30 to 87 should now show continuity, and 30 to 87a should be open.
How to Test It Live (Installed Voltage Drop)
The most accurate way to test an installed relay under load is by measuring voltage drop. Set your DMM to DC Volts. With the relay energized and the load running, place your red probe on Pin 30 and your black probe on Pin 87. A healthy relay will show a voltage drop of less than 0.1V. If you read 0.5V, 1.0V, or higher, the internal contacts are pitted, carbonized, or failing, and the relay is choking your load.
When to Repair vs. Replace
Never repair an electromechanical relay. Some hobbyists attempt to pry open the plastic housing and file down pitted or arced contacts with sandpaper. This removes the factory-applied silver-alloy or gold-flashing plating, exposing the base copper. The relay will arc violently and weld shut within a few cycles, potentially causing a thermal runaway or fire. Relays are consumable components. If the voltage drop is high, the coil is open, or the casing shows heat discoloration, cut the wires and replace the unit.






