12V 5-Pin Relay Wiring Diagram
This is a free printable 12v 5 pin relay wiring diagram: download the diagram as SVG or open it and print to paper or PDF.
A complete reference for the 12 V 5-pin automotive relay using DIN 72552 terminal numbering, covering SPDT contact operation, coil wiring, flyback diode, and common switching applications.
The 5-pin 12 V automotive relay is one of the most versatile and widely used components in vehicle electrical systems and low-voltage control circuits. It is a Single-Pole Double-Throw (SPDT) switching device: when the coil is de-energised, the common (30) terminal is connected to the normally closed (87a) terminal; when the coil is energised, the common (30) terminal switches to connect to the normally open (87) terminal. This makes it suitable for both energising and de-energising loads, and for changeover switching applications.
The five terminals follow DIN 72552, the German standard widely adopted for automotive relays internationally. The terminal assignments are: 30 = Common (load current input); 85 = Coil ground (negative coil terminal); 86 = Coil supply (positive coil terminal); 87 = Normally Open contact output; 87a = Normally Closed contact output. These numbers are permanently marked or moulded into the relay base. Never rely on pin position alone — the physical arrangement of pins varies between relay body formats.
The coil terminals (85 and 86) are interchangeable for basic DC operation since they form a simple electromagnet. However, when fitting a flyback diode (also called a freewheel or suppression diode) across the coil to suppress the inductive voltage spike at coil de-energisation, the diode's cathode must go to the positive coil terminal (86 when 86 is connected to supply) and the anode to the negative terminal (85). Reversing the diode shorts the coil supply.
Typical 12 V automotive relay coil resistance is 70–90 Ω, drawing approximately 150–180 mA from a 12 V supply — well within the capability of a transistor or logic-level output from a microcontroller when a suitable driver transistor or dedicated relay driver IC is used. The contact rating (typically 30 A continuous for the 30/87 path) is suitable for automotive loads including fans, horns, fuel pumps, lights, and motor loads.
For loads above 30 A, two relays can be wired in parallel on the contact side, or a higher-capacity relay should be used. Never exceed the contact rating — overloaded contacts arc and weld, creating a relay that cannot open.
How to wire 12v 5 pin relay wiring diagram
- Identify all five terminals using DIN 72552 markings Locate the moulded or printed terminal numbers on the relay base: 30 (common contact), 85 (coil negative), 86 (coil positive), 87 (normally open), 87a (normally closed). Never assume terminal position from physical layout alone — the 4-pin and 5-pin relay bodies have different pin arrangements and some manufacturers orient relays differently.
- Determine the switching requirement Decide whether the load should activate when the control signal is present (use terminal 87, NO contact) or deactivate when the control signal is present (use terminal 87a, NC contact). If a changeover function is needed — routing load current to different paths — use both 87 and 87a.
- Connect the load supply to terminal 30 Run a fused supply cable from the battery positive (or from the appropriate switched supply) to terminal 30. Install an inline fuse rated for the load current within 300 mm of the battery or supply source. The fuse rating should be slightly above the load's normal current draw but below the current-carrying capacity of the cable.
- Connect the load to terminal 87 (or 87a for NC operation) Run a cable from terminal 87 to the positive input of the load (fan, light, motor, solenoid, etc.). Connect the load's negative return to chassis ground using an appropriate cable. For changeover applications, connect both 87 and 87a to their respective loads.
- Wire the coil circuit (terminals 85 and 86) Connect terminal 86 to the control signal (switched ignition, ECU output, or switch). Connect terminal 85 to chassis ground. If a transistor or logic output is switching the coil, connect 85 to the transistor collector and the transistor emitter to ground, with the transistor base driven by the control signal via an appropriate base resistor.
- Install the flyback suppression diode Place a diode (such as 1N4007) across the coil terminals: cathode (banded end) to terminal 86 (positive coil), anode to terminal 85 (negative coil). This ensures the inductive spike from coil de-energisation is clamped and does not damage upstream electronics.
- Test operation with a 12 V supply and verify contact switching With no load connected, apply 12 V to the coil (86 to +12 V, 85 to ground). Measure continuity between terminals 30 and 87 (should be closed) and between 30 and 87a (should be open). Remove coil supply and verify the contacts revert (30 to 87a = closed, 30 to 87 = open). Then connect the load and verify correct operation.
Specifications
| Supply voltage | 12 V DC nominal (9–16 V operating range) |
|---|---|
| Coil resistance (typical) | 70–90 Ω |
| Coil current at 12 V (typical) | 130–170 mA |
| Contact current rating (30/87 path, continuous) | 30 A |
| Contact current rating (30/87a path, continuous) | 10–20 A (typically lower than NO path; check manufacturer datasheet) |
| Terminal numbering standard | DIN 72552 |
| Coil pick-up voltage (typical) | 8–9 V |
| Coil drop-out voltage (typical) | 1–2 V |
Safety warnings
- Always fuse the supply side (terminal 30) of the relay within 300 mm of the supply source. An unfused relay circuit is a fire hazard if the load wire chafes and shorts to ground.
- Do not exceed the relay contact current rating (typically 30 A for standard automotive relays). Overloaded contacts arc excessively and can weld in the closed position, making it impossible to switch off the load.
- When switching inductive loads (motors, solenoids, fans), the load itself generates an inductive flyback spike at switch-off. Fit a suppression diode across the load terminals as well as across the coil to protect relay contacts from arc erosion.
- In automotive applications, disconnect the battery negative terminal before modifying relay circuits to prevent accidental short circuits during wiring.
- Verify relay polarity of the flyback diode before powering up. A reversed diode permanently short-circuits the coil supply and may damage the control circuit.
Tools needed
- Digital multimeter (resistance and DC voltage)
- Automotive wire stripper and crimper
- Inline fuse holder and appropriate fuse
- Soldering iron and solder (for diode installation on PCB applications)
- Relay socket extraction tool or flat-blade screwdriver
- Cable ties and mounting clips
- Heat-shrink tubing and heat gun
Common mistakes
- Confusing terminals 87 and 87a — 87 is normally open (circuit open when coil off), 87a is normally closed (circuit closed when coil off).
- Omitting the inline fuse on terminal 30 — leaves the wiring unprotected against short-circuit faults in the load circuit.
- Reversing the flyback diode — creates a direct short across the coil supply, potentially blowing fuses or damaging the control circuit.
- Driving the relay coil directly from a microcontroller GPIO pin without a transistor driver — GPIO current limits are typically far below the 150–180 mA coil current requirement.
- Using a 4-pin relay socket with a 5-pin relay (or vice versa) — pin spacing and arrangement differ; forced insertion damages the relay base.
- Connecting both 87 and 87a loads to the same ground without considering changeover — if both loads share a ground and the diagram expects isolation, faults in one load affect the other.
Troubleshooting
- Relay coil does not energise
- Cause: No voltage at terminal 86, or open circuit in coil Fix: Measure voltage at terminal 86 with control signal active. If no voltage, trace the control circuit upstream. If voltage is present, measure resistance across terminals 85–86 out-of-circuit. A coil resistance far outside 70–90 Ω (open = infinite, short = near 0 Ω) confirms a faulty relay — replace it.
- Relay energises but load does not operate
- Cause: Contact resistance too high (worn or corroded contacts), or load fault Fix: Measure voltage at terminal 87 with the relay energised. Should be within 0.5 V of the supply voltage. A large drop across the contacts indicates worn or contaminated contacts. Test the load independently by connecting it directly to supply. Replace relay if contacts are faulty.
- Load stays on after control signal is removed
- Cause: Relay contacts welded in closed position Fix: With control signal off, attempt to disconnect power to terminal 30. If load remains on via 87, remove relay from socket and inspect contacts for welding. A welded relay must be replaced. Investigate the cause — usually overcurrent from an undersized relay or inductive load without contact-side suppression.
- Relay clicks rapidly (chattering) instead of holding closed
- Cause: Insufficient supply voltage, or intermittent contact between relay and socket Fix: Measure supply voltage at terminal 86 during chatter. Voltage below 10 V indicates either a weak battery or voltage drop in the control wiring. Check relay seating in the socket — ensure all pins make firm contact.
- Control circuit component (transistor or ECU output) fails repeatedly
- Cause: Inductive flyback spike from coil de-energisation destroying the control-side component Fix: Fit a 1N4007 diode across the relay coil (cathode to terminal 86, anode to terminal 85) if not already installed. Measure coil spike with an oscilloscope at the control terminal — spikes exceeding 50 V indicate inadequate suppression.
Frequently asked questions
What are the DIN 72552 terminal numbers on a 5-pin relay and what does each do?
Terminal 30 is the common contact (load supply input). Terminal 85 is the coil negative (ground). Terminal 86 is the coil positive (supply to energise). Terminal 87 is the normally open contact output (circuit completes when coil is energised). Terminal 87a is the normally closed contact output (circuit completes when coil is de-energised). These are standardised by DIN 72552.
Do I need a flyback diode across the relay coil?
A flyback (suppression) diode is not required for the relay to function, but is strongly recommended in any circuit where a sensitive electronic component (ECU, microcontroller, transistor driver) switches the coil. When the coil de-energises, the collapsing magnetic field induces a voltage spike of 50–200 V across the coil terminals. Without a flyback diode, this spike can damage the switching component. Connect the diode across terminals 85 and 86, cathode to 86 (positive), anode to 85 (negative).
How do I wire a 5-pin relay to turn on a load with an ignition signal?
Connect terminal 30 to a fused battery positive supply. Connect terminal 87 to the load positive. Connect the load's other side to chassis ground. Connect terminal 86 to the ignition signal (switched 12 V). Connect terminal 85 to chassis ground. When the ignition signal is present, the coil energises, 30 connects to 87, and the load receives power.
What is the normally closed (87a) contact used for in automotive applications?
The 87a contact allows the relay to perform a changeover function — powering one circuit when the coil is off and a different circuit when the coil is on. Practical uses include switching headlight dipping (high and low beam from one relay), controlling cooling fan speed (low speed on 87a, high speed on 87), and activating a backup circuit when a primary circuit is de-energised.
Can a 5-pin relay be used to control a circuit from a low-current signal such as a GPIO output?
Yes, but the GPIO output voltage and current must be sufficient to switch a transistor driver stage, which in turn drives the relay coil. A relay coil draws 150–180 mA at 12 V, which exceeds the safe current limit of most microcontroller GPIO pins (typically 8–40 mA). Use an NPN transistor (such as 2N2222 or BC547) or a dedicated relay driver IC between the GPIO and the coil, with the flyback diode across the coil.
Related diagrams
- 12v relay wiring diagram 4 pin
- 5 pin flasher relay wiring diagram
- 5 pin relay pinout
- 5 pin relay wiring
- 5 pin relay wiring diagram for lights
- 5 pin relay wiring diagram with switch