Posted in

How to wire a 4 pin relay?

If you’ve ever walked through the back of an industrial machine, tested a car’s electrical circuit, or even powered a small LED strip that switches on automatically, chances are you’ve relied on a 4 pin relay—often without even noticing. As a relay supplier, I’ve spent thousands of hours answering questions from electricians, DIYers, and small business owners who stare at a handful of small, plastic components and wonder, “How does this even work?” Relays

I get it. Relays look simple on the outside: a black or gray block with four metal pins sticking out, maybe a little diagram printed on the top that looks like something from a middle school science textbook. But wiring one wrong, and you don’t just get a light that doesn’t turn on—you can fry a circuit, damage the component itself, or even create a safety hazard. Over the 12 years I’ve been sourcing and supplying relays to workshops and hobbyists across North America, I’ve learned that the best way to demystify a 4 pin relay is to break it down step by step, no jargon, no guesswork. Let’s start with the basics: what a 4 pin relay is, exactly, and why it’s different from other types.

A 4 pin relay is an electro-mechanical switch. It acts like a middleman between two separate electrical circuits: a low-power control circuit and a high-power load circuit. The “4 pins” map directly to these two circuits, so let’s label them clearly first—this is the part most people mix up. Pins 85 and 86 belong to the control circuit, which is the low-power side: you run small voltage here, like 5V for a sensor or 12V from a car’s ignition, and that’s what triggers the relay to switch. Pins 30 and 87 belong to the load circuit, which is the high-power side: this is where you connect the device you want to turn on and off, like a motor, a light, or a water pump.

Wait, why only four? Some relays have a fifth pin, 87a, which is a “normally closed” connection—meaning when the control circuit isn’t active, power flows to 87a instead of 87. A 4 pin relay skips that, so it only has one “normally open” (NO) pin: 87, which only gets power when the control circuit is triggered. That makes it ideal for simple on-off tasks, which is why it’s the most popular type for small projects and general industrial use.

Before you touch any wires, there are a few non-negotiable checks to do first. This is where I see so many people go wrong: they skip the pre-wiring prep and end up with a non-working relay or a broken tool. First, confirm your relay’s specifications. Every relay has a part number, and that part number will tell you three critical things: the control voltage it needs (so 5V, 12V, 24V—if you feed 12V to a relay rated for 5V, it will burn out instantly), the maximum load current it can handle (if you’re wiring a 10A motor, a 5A relay won’t cut it), and the pinout. Even if the diagram looks standard, some manufacturers shift pin numbers slightly—always cross-reference the part number’s datasheet with the printed diagram on the relay.

Second, gather your tools and materials. You’ll need a multimeter to test continuity (super important for double-checking pins), wire strippers, electrical tape or heat shrink (for safe connections), and the correct gauge wire: for the control circuit, 18-22 gauge is fine, and for the load circuit, match the wire to your device’s amperage—16 gauge for up to 15A, 14 gauge for up to 20A, etc. Never use wire too thin for your load; that will overheat and cause a fire risk.

Now, let’s get into the actual wiring, step by step, with examples so you can see how it works in real life. Let’s use a common project: wiring a 12V 10A relay to control a 12V LED floodlight (the load) using a 12V car ignition (the control source). That’s a simple, relatable setup that shows exactly how a 4 pin relay works.

Step 1: Identify the pins. First, use your multimeter to confirm which pins are 85/86 (control) and 30/87 (load). Set your multimeter to continuity mode (the little sound icon), and touch one probe to a pin. Touch the other probe to a second pin. If you get a continuous beep, those two pins are part of the same coil (the control circuit), so they’re 85 and 86. The remaining two pins are the load side: one is the common pin (30), the other is the normally open pin (87). When the control coil is not activated, there’s no continuity between 30 and 87. When you run power to 85 and 86, you’ll hear a click, and continuity will open between 30 and 87. That’s the electromagnet inside the relay activating, pulling the switch closed.

Step 2: Wire the control circuit (pins 85 and 86). This is the low-power side, so you don’t need heavy wire. Let’s stick with our car example: connect pin 85 to the negative terminal (ground) of your 12V ignition. Connect pin 86 to the positive terminal of the same ignition. When you turn the ignition on, power flows through 85 and 86, which activates the relay’s coil. If you’re using a different control source—like a 5V Arduino for a project—just adjust to match the relay’s rated control voltage. Never run more voltage than the relay specifies here; as I mentioned earlier, that’s a fast path to a broken component. Also, important: some control circuits need a diode to protect the relay from back EMF (electromotive force) that can damage sensitive electronics. If you’re wiring to a microcontroller or a sensor, add a flyback diode across the coil (between 85 and 86, reverse biased) to absorb that extra voltage. If you’re just wiring to a car or a simple switch, you can skip it, but it’s a cheap safety add-on that I always recommend.

Step 3: Wire the load circuit (pins 30 and 87). This is the high-power side, so this is where you’ll want to be extra careful with wire gauge and connections. The load (our 12V LED floodlight) has two wires: one is positive, one is negative. Let’s wire it: first, connect pin 30 to the positive terminal of your power source for the load (for the floodlight, that’s a 12V battery or a 12V power supply). Then, connect pin 87 to the positive terminal of the LED floodlight. Wait, what about the floodlight’s negative terminal? That connects directly to the negative of the load power source—we don’t run that through the relay. Let me explain that again to avoid confusion: the load circuit is a loop that goes load power positive → pin 30 → relay switch → pin 87 → load positive → load negative → load power negative. That loop completes when the relay activates, so power flows to the floodlight. If you wire the negative through the relay, you’ll get inconsistent power and possibly damage the load. Double-check that connection before powering up—miswiring the load side here is the number one cause of blown loads for new relay users.

Step 4: Test the relay. Once all connections are tight and insulated, turn on your control source. You should hear a faint click from the relay. Now, test power to the load: if you used an LED floodlight, it should turn on. If not, troubleshoot: first, use your multimeter to check if power is reaching pins 85 and 86 when the control is active—if not, your control circuit is broken. If power is there, check continuity between 30 and 87 when the control is on—if there’s no continuity, the relay is faulty. If continuity is there but the load doesn’t work, double-check the load circuit connections. Most of the time, that’s a loose wire or a reversed positive/negative on the load.

Now, let’s talk about common mistakes that even experienced DIYers make, because I’ve seen these a hundred times. First, mismatched control voltage. I once had a customer who wired a 5V relay to a 12V control circuit—burned out three relays before he realized his error. Always, always check the relay’s rated voltage. Second, using too thin wire for the load. If your relay is rated for 10A, using 20 gauge wire for the load will overheat and melt, even if the relay works. Third, grounding the control circuit incorrectly. If you’re wiring to a car, for example, make sure your ground connection for pin 85 is a good, bare metal ground (not a painted frame, which doesn’t conduct well). Fourth, forgetting the flyback diode when wiring to electronics. I can’t tell you how many Arduino projects I’ve seen get fried because someone skipped that small diode. It costs pennies, and it saves you hundreds in damaged equipment.

As a relay supplier, I’ve also noticed a big shift in how people use 4 pin relays lately, especially with small businesses and residential automation. A lot of people are using them for smart home projects—like turning on a sump pump when a sensor detects water, or powering a patio light with a smart switch. The same wiring steps apply, just with a different control source: instead of a car ignition, you might use a smart switch’s low-output signal to trigger the relay’s coil. It’s the same 4 pin setup, just adapted to your control device.

If you’re planning a project that involves a 4 pin relay, don’t cut corners. The right relay for the job matters, too. If you buy a cheap, off-brand relay that’s rated for 10A but only handles 7A consistently, you’ll have issues. As someone who’s tested dozens of relays from different manufacturers, I can tell you that paying attention to the part number and the datasheet will save you a lot of headaches.

At the end of the day, wiring a 4 pin relay isn’t rocket science—it’s just connecting two circuits, one low-power and one high-power, in the right order. But it’s a skill that takes a little practice, and getting it right is what keeps machines running, lights turning on, and projects working. If you’re working on a project and need to confirm which relay is right for your setup, or have questions about wiring, I’m here to help. We supply a full range of 4 pin relays for automotive, industrial, and hobby use, and our team can walk you through any questions you have to make sure you get the right component for your job.

Now, a quick note on safety: always disconnect power before working on any electrical circuit, especially the high-power load side. Even a small 12V load can cause a shock, and higher-voltage loads are more dangerous. Insulate all connections with electrical tape or heat shrink to prevent shorts.

If you’re ready to source a relay for your project, don’t hesitate to reach out to our team. We’re here to help you find the right part, answer your wiring questions, and support your projects every step of the way.

Relays References

  1. "Relay Basics: Understanding Electromechanical Relays," Electronics Hub, 2022.
  2. Automotive Electrical Systems: Wiring Best Practices, SAE International, 2021.
  3. "Flyback Diode Applications for Relays," Digikey Application Note, 2020.
  4. Electrical Wire Gauge Ampacity Charts, National Electrical Code (NEC), 2023.

Zhejiang Weide Electric Co., Ltd.
Zhejiang Weide Electric Co., Ltd. is one of the most professional relays manufacturers and suppliers in China, featured by quality products and low price. If you’re going to buy the newest relays, welcome to get free sample from our factory. We also accept customized orders.
Address: No.555, South Binhe 2nd Road, Yueqing City, Zhejiang Province, China
E-mail: zjwdir@wdirele.com
WebSite: https://www.chweide.com/