At its core, wiring a relay is about using a small, gentle electrical signal to boss around a much bigger, more powerful one. You’ll connect a low-power control circuit to the relay's coil (terminals 85 and 86), which then flips a switch for a separate, high-power circuit running through the relay's contacts (terminals 30, 87, and 87a). Once you get that simple concept down, you're ready to safely handle high-current accessories like off-road lights, cooling fans, or big fuel pumps.
Understanding Relays Before You Connect a Wire
Before you even think about stripping a wire, you have to get your head around what a relay is and why it's so critical in almost any electrical project. The best way to think of it is as a remote-controlled, heavy-duty switch. It lets a tiny trickle of current safely turn a circuit on or off that's carrying a massive electrical load. This complete separation of the two circuits is a relay's most important job.
Imagine trying to power a huge electric cooling fan directly from a tiny switch on your dashboard. That switch would fry in seconds. The relay is the muscle that handles the heavy lifting, taking the high-current load without breaking a sweat. Your little dashboard switch just has to send a tiny signal to tell the relay when to flex.

Decoding the Numbers
Thankfully, most automotive and industrial relays use a standard numbering system, usually stamped right on the case. Learning what these numbers mean is the first real step to a successful install.
Here's a quick reference table to make sense of those pins.
Standard Relay Terminal Identification
| Terminal Pin | Common Name | Function Description |
|---|---|---|
| 85 & 86 | Coil | These two terminals connect to the internal electromagnet. Applying power here creates the magnetic field that flips the internal switch. Polarity usually doesn't matter unless there's a diode inside. |
| 30 | Common | This is the main power input for the high-current circuit you want to control. It's almost always connected directly to a fused power source, like the battery. |
| 87 | Normally Open (NO) | In its resting state (no power to the coil), this contact is disconnected from terminal 30. When the coil is energized, the switch closes, connecting 30 to 87 and turning your device ON. |
| 87a | Normally Closed (NC) | Found only on 5-pin relays, this contact is connected to terminal 30 when the relay is at rest. When the coil gets power, this connection is broken. This is used to turn a device OFF. |
Getting comfortable with these terminal numbers is essential, as they are the universal language for this type of component.
So, what does this all mean in practice?
- Terminals 85 & 86: This is your control circuit. One side gets a small positive signal (from a switch), and the other goes to ground. When that circuit is complete, the magic happens.
- Terminal 30: This is the common contact, the pivot point of the high-power switch. Hook this up to your main, fused power source.
- Terminal 87: This is the Normally Open (NO) contact. When the relay is off, there's no connection between 30 and 87. When you send power to the coil (85 & 86), the internal switch flips, connecting 30 to 87 and turning your lights, fan, or pump on.
- Terminal 87a: This is the Normally Closed (NC) contact, which you'll only find on 5-pin relays. It does the opposite of 87. It's connected to terminal 30 when the relay is off. When you energize the coil, the connection between 30 and 87a is broken.
The core principle is simple: Energize terminals 85 and 86 to control the connection between terminal 30 and either 87 (to turn something on) or 87a (to turn something off).
This simple but powerful function is the backbone of industrial automation, where these electromechanical relays are still a dominant force. The industrial relay market was recently valued at USD 1.22 billion and is expected to keep growing, especially in process industries. You can dive deeper into these market trends and insights if you're curious about the bigger picture.
Getting Your Tools Ready and Putting Safety First
Before you even touch a wire, let's talk about the two most important parts of any electrical job: having the right tools on hand and working safely. Trust me, trying to improvise with the wrong pliers or rushing through a live circuit is a fast track to fried components or, much worse, a nasty shock.

For really permanent, clean work like on a PCB, a good portable soldering iron station is invaluable. But for the vast majority of automotive and industrial relay jobs, a solid basic toolkit will get you through just about anything.
Your Essential Toolkit
Having these tools laid out and ready to go will make the entire process go smoother and keep you safe. You don't need the most expensive set on the market, but quality basics are a worthwhile investment.
- Wire Strippers: A good pair, whether automatic or manual, is key to getting clean strips without accidentally cutting the copper strands.
- Crimping Tool: This is for attaching your spade terminals and other connectors. A ratchet-style crimper is worlds better than a cheap plier-type; it gives you a consistent, reliable connection every time.
- Digital Multimeter (DMM): This is non-negotiable. It's your number one tool for safety and diagnostics. You'll use it to make sure circuits are dead, check continuity, and measure voltage. If you're new to using one, there's a great guide on how to use a multimeter to test continuity.
- Insulated Screwdrivers and Pliers: That rubber or plastic coating isn't just for comfort—it's a critical layer of protection.
- Heat Gun & Heat Shrink Tubing: For a truly professional finish, this is the way to go. It properly insulates your connections and protects them from moisture, vibration, and shorting out.
Non-Negotiable Safety Protocols
Your tools are only half the equation. Your process—your habits—are what really keep you out of trouble. Rushing is your enemy.
The absolute golden rule is to make sure the circuit is completely de-energized. In your car, that means disconnecting the battery. In a factory or industrial setting, it means following proper lockout/tagout (LOTO) procedures so no one can flip a breaker on you while you're working.
Safety is not a suggestion—it's a requirement. Before your hands ever touch a wire, use your multimeter to test the circuit and confirm there is absolutely zero voltage present. This simple check takes five seconds and can prevent a life-altering accident.
Finally, always protect your work with a fuse. Fuses are cheap insurance. They're designed to be the weak link, blowing and cutting power if the current gets too high, which can prevent a fire. The trick is to pick a fuse rated just a bit higher than what your load will draw, but well under the max current rating for the wire you're using. That way, the fuse blows before the wire melts. Adopting this professional mindset protects you, your project, and your equipment.
Wiring Common Industrial and Automotive Relays
Alright, with the fundamentals covered, let's get our hands dirty. Wiring a relay isn't black magic once you understand the basic flow, but every type you run into has its own little quirks. We'll walk through the most common ones you'll see out in the wild, from the tough-as-nails automotive relays under the hood to the tiny PCB relays that are the heartbeat of modern electronics.
No matter the package, the mission is always the same: use a tiny bit of power to control a whole lot more. The only things that change are the physical connections and the form factor.
The Workhorse Automotive Relay (4-Pin and 5-Pin)
These are the relays you’ll find everywhere. Often called "Bosch relays," they're built to take a beating in cars, DIY projects, and even some heavy-duty machinery. They handle vibration and switch hefty DC loads without breaking a sweat. For a really deep dive, check out our complete guide to 5-pin relay wiring, which covers both normally open and normally closed setups from top to bottom.
Let's cook up a real-world scenario. Say you're adding a big, power-hungry LED light bar to your truck. The little switch on your dashboard would fry trying to handle the 20 amps those lights pull. But that same switch can easily provide the whisper of a signal needed to kick on a relay.
Here’s how you'd wire a standard 4-pin relay to do the job:
- Terminal 85: This is your trigger. Connect it to your dashboard switch. When you flip it, it sends a positive (+) 12V signal here.
- Terminal 86: This is the coil's ground. Run a wire from here to a solid metal ground point on the vehicle's chassis (-). With both 85 and 86 connected, the coil's circuit is complete.
- Terminal 30: This is the high-power input. Run a beefy wire (a 12 AWG is a good choice for 20A) from this terminal straight to the positive (+) post of the battery. This is critical: you must put an inline 25A fuse on this wire, as close to the battery as you can possibly get it.
- Terminal 87: This is your power output to the lights. Connect this terminal to the positive (+) wire on your new LED bar. The light bar's negative wire just goes to a chassis ground.
The moment you flip that switch, power zips through the coil (from 85 to 86), creating a magnetic field. That field snaps the internal high-power switch shut, connecting the massive current from the battery (terminal 30) straight to your lights (terminal 87). And just like that, you have light.
Industrial Plug-In Relays with Sockets
Peer inside any industrial control panel and you'll see rows of these. Industrial plug-in relays are designed for one thing: fast, painless maintenance. If a relay fails, you just yank it out of its socket and plug a new one in. No screwdrivers, no re-wiring, no downtime.
The principle is exactly the same as the automotive type, but the pin numbers are different. An 8-pin "octal" relay is a classic example. Its socket has numbered screw terminals that line up with the pins on the relay base. The diagram printed right on the side of the relay is your best friend—always check it first.
Imagine you need to control a 120V AC conveyor belt motor using a 24V DC signal from a PLC (Programmable Logic Controller).
- Coil Terminals (e.g., Pins 2 & 7): The 24V DC output from the PLC goes to one terminal, and the 24V DC common goes to the other.
- Common Terminal (e.g., Pin 1 or 8): This gets connected to your 120V AC "hot" line, coming from a circuit breaker.
- Normally Open (NO) Terminal (e.g., Pin 3 or 6): A wire runs from this terminal to the motor itself.
When the PLC sends its 24V DC signal, the coil energizes. The NO contact slams shut, sending that 120V AC surging to the motor, and the conveyor starts moving.
When it comes to wiring a relay, you'll generally use one of two configurations: Normally Open (NO) to turn something on, or Normally Closed (NC) to turn something off.
Here's a quick comparison of how you'd wire a 5-pin relay for these two common scenarios.
Relay Wiring Application Examples
| Circuit Type | Load Device | Wiring Configuration (Terminals Used) | Application Example |
|---|---|---|---|
| Normally Open (NO) | Fog Lights | 30: Battery (+), 85: Switch (+), 86: Ground (-), 87: Fog Lights (+) | The lights are OFF by default and turn ON when the relay is activated by the switch. |
| Normally Closed (NC) | Alarm System | 30: Alarm Power (+), 85: Ignition (+), 86: Ground (-), 87a: Alarm Siren (+) | The alarm is armed (ON) by default and is disabled (OFF) when the car's ignition turns on. |
As you can see, the only real difference is whether you use terminal 87 (for NO circuits) or 87a (for NC circuits) as your output.
Compact PCB-Mount Relays
These little black boxes are the unsung heroes of modern electronics. PCB (Printed Circuit Board) relays are tiny, soldered directly onto a circuit board, and are used to switch everything from tiny digital signals to small motors, all inside a single device.
The scale of their use is staggering. The Asia-Pacific region dominates the global relay market, with PCB-mount types alone making up over 52% of the market share. This is fueled by the massive automated assembly lines in manufacturing that can place these components with incredible speed.
With these, you aren't tightening screws; you're soldering pins directly to a board. But the logic holds. You still connect the coil to a low-power signal (maybe 5V from a microcontroller) and route the circuit you want to control through the common and NO/NC pins.
Key Takeaway: It doesn't matter if it's a clunky cube from a 1980s Ford or a tiny component on a brand-new circuit board. The logic is always the same. Find your coil, find your common power input, and find your switched output (NO or NC). That universal concept is the key to wiring any relay you'll ever come across.
How to Choose the Right Relay for the Job
A successful wiring job starts long before you ever touch a wire stripper. It all begins with picking the right component for the task at hand. Grabbing the wrong relay isn't just a minor hiccup—it can lead to total circuit failure, fried equipment, or even create a serious fire hazard. To wire a relay correctly, you first have to choose it correctly.
The whole process really just boils down to matching the relay's capabilities to your circuit's specific demands. Getting this right from the start ensures your setup is both reliable and safe from the moment you power it on. Understanding this basic principle is what separates simple component repairs from designing truly robust electrical systems.
Match Coil Voltage to Your Control Circuit
First thing's first: the relay's coil voltage absolutely must match the power source of your control circuit. The coil is the small electromagnet that does the actual work of flipping the internal switch. If you send a 24V DC signal to a 12V DC coil, you're going to burn it out, period. On the flip side, a 5V DC signal just doesn't have enough juice to reliably activate a 12V DC coil.
So, you have to identify your control voltage before you buy anything. Common voltages you'll run into include:
- 12V DC: The go-to standard for just about all automotive and marine projects.
- 24V DC: Very common in industrial machinery and heavy-duty commercial trucks.
- 5V DC: Typically found in electronics projects controlled by microcontrollers like an Arduino.
- 120V AC: Used for switching household power or light industrial loads.
Always check the specs of your control signal—whether it's coming from a simple switch, a PLC output, or something else—and select a relay with a coil rated for that exact voltage and power type (AC or DC).
Understand Contact Ratings for Voltage and Current
This is where a lot of people make a critical, and potentially dangerous, mistake. A relay's contact rating defines the absolute maximum voltage and current its internal switch can handle safely. These two ratings—voltage and amperage—are not interchangeable.
A relay rated for 10A at 30V DC is a completely different beast from one rated for 10A at 120V AC. If you use the first relay to switch a 120V AC appliance, even a small 2-amp one, you risk creating a dangerous electrical arc that can weld the contacts shut or, worse, start a fire.
Always, always check the datasheet for the specific contact ratings for both AC and DC loads. You'll often find the DC voltage rating is much lower. That's because DC current is a lot harder to interrupt—it's more prone to arcing as the contacts pull apart.
This simple diagram breaks down the basic flow of power in any relay circuit, from the low-power signal to the high-power device you're controlling.
As you can see, a small signal tells the relay what to do, and the relay in turn acts as a heavy-duty switch for a separate, more powerful circuit.
These little components are a massive business. The global relay market was valued at USD 11.02 billion in 2025 and is still growing, largely thanks to industrial automation where relays are the backbone for controlling motors, heaters, and countless other machines.
Finally, think about the type of load you're switching. An inductive load, like a motor, fan, or solenoid, generates a big voltage spike when it's turned off. In contrast, a simple resistive load, like a light bulb or a heating element, doesn't. Some relays are built specifically to handle the abuse from inductive loads. For applications with frequent switching, you might also want to check out our guide on the 12-volt solid-state relay, which has no moving parts to wear out.
Troubleshooting Common Relay Wiring Problems
Even the most carefully planned wiring job can hit a snag. It's frustrating, but the good news is that most relay problems boil down to a few simple, common causes. A methodical approach and a good multimeter are usually all you need to pinpoint the issue and get things working.

One of the most frequent complaints I hear is, "The relay clicks, but my lights won't turn on!" That audible click is actually great news. It tells you the control circuit is working perfectly and the coil is getting power. The problem is somewhere on the load side of the relay.
Here’s a quick mental checklist to run through:
- Check for Power at Terminal 30: Grab your multimeter and see if you have proper voltage at terminal 30. If not, you’re looking at a blown fuse or a break in the main power wire.
- Verify the Load's Ground: A bad ground is the secret villain in countless electrical gremlins. Make sure your fan, pump, or lights have a clean, solid connection to the chassis or a dedicated ground point.
- Test the Output: With the relay energized (clicked on), check for voltage at terminal 87 (or 87a if you're using a normally closed setup). If you have voltage at 30 but nothing at 87, the relay itself is toast—its internal contacts have failed.
What if the Relay is Silent?
But what happens when you flip the switch and get nothing? No click, no action. A silent relay means the coil isn't getting energized, so you can ignore the load circuit for now and focus entirely on the control side (terminals 85 and 86).
First, make sure your control switch is actually sending voltage when you turn it on. After that, check the coil's ground at terminal 86. I've lost track of how many times a loose or corroded ground wire has been the culprit. An easy way to test this is to use a jumper wire to connect terminal 86 directly to a known good ground. If the relay suddenly clicks, you've found your problem.
Pro Tip: Always double-check the coil voltage. If you accidentally grab a 24V relay for a 12V system, it might not have enough juice to activate consistently, if at all.
Diagnosing these circuits is a universal skill. In fact, many of the same principles apply to troubleshooting home automation systems. This guide for solving common Nest thermostat wiring issues is a great example, as both scenarios involve tracing control signals and checking load circuits.
A Few Other Common Gremlins
Ever heard a relay chattering or buzzing? That’s almost always caused by low voltage or a poor ground on the control circuit. The weak connection makes the coil's magnetic field flicker, causing the internal switch to bounce on and off rapidly.
And if your fuse keeps blowing the second you activate the relay, you're likely dealing with a dead short on the load side. It could also mean your wire gauge is too small for the current draw, causing it to overheat and fail.
Answering Your Lingering Relay Questions
Once you've got your relay wired up and working, you might still have a few questions nagging at you. These are the details that separate a quick-and-dirty job from a rock-solid, professional installation that you can trust for years to come.
Let's dig into some of the most common things people ask after they've gotten their hands dirty. Getting these right will save you a world of headaches down the road.
What's the Big Deal with a Flyback Diode on a Relay Coil?
A flyback diode, which you'll also hear called a suppression or freewheeling diode, is a tiny component that plays a huge role in protecting your control circuit. Here's the situation: when you cut the power to a relay's coil, that magnetic field it built up collapses in an instant. This collapse induces a surprisingly powerful voltage spike, but in the opposite direction.
This isn't just a little static pop. We're talking about a voltage surge that can easily be high enough to fry sensitive electronics like the transistors or microcontrollers you're using to switch the relay on and off.
Think of a flyback diode as a pressure relief valve. It gives that dangerous voltage spike a safe, short circuit to travel through and burn itself out harmlessly. If you're controlling a relay with any kind of solid-state electronics, a flyback diode isn't optional—it's essential.
Can I Run an AC Relay on a DC Circuit? Or DC on AC?
I get this one a lot, and the answer is a hard no. You absolutely cannot mix and match. The coils are engineered completely differently for AC and DC power, and they won't behave properly if you swap them.
- AC Coil on DC Power: An AC coil relies on its impedance (which is a form of AC resistance) to keep the current in check. If you hook it up to a DC source of the same voltage, there's no impedance to hold it back. It will draw way too much current, overheat in a hurry, and burn out.
- DC Coil on AC Power: Put a DC coil on an AC circuit, and it'll probably just buzz and chatter like crazy. The alternating current causes the magnetic field to constantly fluctuate instead of holding steady, leading to erratic operation, overheating, and a quick death for the relay.
Always, always match the coil's specifications—both the voltage and the power type (AC/DC)—to your control signal. It's the only way to ensure it works reliably and safely.
How Do I Pick the Right Wire Gauge for a Relay?
This is a critical safety point. The right wire gauge has nothing to do with the relay itself and everything to do with the current (amps) you're pushing through the wire. You have to think about the control circuit and the load circuit as two separate things.
For the coil circuit (terminals 85 and 86), the current draw is tiny, usually well under an amp. A lightweight wire like 18-22 AWG is almost always more than enough.
The load circuit is where you really need to pay attention. The wires connected to terminals 30 and 87/87a have to be beefy enough to handle the full current of whatever you're powering. For example, a 20A fuel pump or cooling fan will typically need a 12 AWG wire to avoid overheating and creating a fire hazard.
Always check a proper ampacity chart to find the correct wire gauge for your specific amperage and the length of the wire run. When in doubt, go one size thicker. It's the safest bet.
For all your industrial automation needs, from relays and terminal blocks to connectors and sensors, Products for Automation has the high-quality components you need to get the job done right. Explore our extensive catalog and find reliable parts from trusted brands at https://www.productsforautomation.com.