Buying guide · Intermediate · 3 min read
Automotive Relays and Sockets
12 V and 24 V, 30 A, 40 A and 80 A, with Wiring Pins 30, 85, 86, 87 and 87a
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
An automotive relay lets a small switch signal control a big load such as a horn, lights, fan or pump. Pins 85 and 86 are the coil, 30 is the common supply, 87 is the normally open output and 87a (on 5-pin types) is the normally closed output. Fit a fuse on the feed, use thick enough wire, and use a socket.
Key specs at a glance
- Coil voltages
- 12 V and 24 V DC
- Contact current
- 20 A SPDT; 30 A, 40 A and 80 A SPST-NO; TE 130 A SPST-NO at 24 V
- Brands in stock
- LANBOO JD1912, Multicomp Pro, TE Connectivity
- Sockets
- LANBOO LB-J4 (4-pin) and LB-J5 (5-pin) with wire leads, 40 A and 80 A
- Brackets
- Versions with metal, plastic or no bracket
This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.
Pin numbers
Most automotive relays use the same pin numbers: 85 and 86 are the coil (swap them freely on a plain relay; use polarity if a diode or resistor is fitted), 30 is the common power input, 87 is the output that connects to 30 when the coil is on, and 87a (on 5-pin relays) is connected to 30 when the coil is off. A 4-pin relay is SPST with no 87a; a 5-pin relay is SPDT.
| Pin | Use | Note |
|---|---|---|
| 85 and 86 | Coil | Connect one to ground and one to the switch signal |
| 30 | Power input | Fuse close to the battery |
| 87 | Normally open output | Powers the load when the coil is on |
| 87a | Normally closed output | 5-pin relays only |
- 85 and 86
- Use:
- Coil
- Note:
- Connect one to ground and one to the switch signal
- 30
- Use:
- Power input
- Note:
- Fuse close to the battery
- 87
- Use:
- Normally open output
- Note:
- Powers the load when the coil is on
- 87a
- Use:
- Normally closed output
- Note:
- 5-pin relays only
Typical wiring
For a headlight or fan relay: connect the battery positive through a fuse to pin 30, the load to pin 87, and the load's other side to ground. Connect one coil pin to ground and the other through your small switch (or a transistor from a microcontroller) to a switched supply. Use wire sized for the load, not the coil: the wire gauge calculator and fuse sizing calculator help. A fuse rating just above the load current protects the wire.
Driving it from a microcontroller
A relay coil takes more current than a microcontroller pin gives, so use a transistor or MOSFET and a flyback diode across the coil (cathode towards the supply). Do not power a 12 V coil from an Arduino pin or the 5 V rail.
Sockets and brackets
A socket with wire leads gives a clean, replaceable mount and a proper contact. Pick the 4-pin socket for SPST relays and the 5-pin socket for SPDT, and match the 40 A or 80 A rating to the load. The bracket on some relays lets you screw the relay to the body or a panel, and the plain ones are meant to go in a socket.
Try it: Wire gauge calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Skipping the fuse on the power feed.
- Using thin wire on pin 30 and 87.
- Driving the coil straight from a microcontroller pin.
- Mixing up 12 V and 24 V coils.
- Fitting a 5-pin relay into a 4-pin socket or the reverse.
Frequently asked questions
What are pins 85 and 86?
The relay coil. When it is powered, the relay switches.
What is 87a?
The normally closed output on 5-pin relays: connected to 30 when the coil is off.
What size fuse?
Just above the normal load current and below the wire's rating.
Can I use a 12 V relay on a 24 V vehicle?
No. Use a 24 V coil relay for 24 V systems.
Do I need a socket?
Strongly recommended: it gives a better, serviceable connection.
Parts for this guide
Calculators
Keep learning on Electrolark
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Projects that use it
Put this into practice: 7 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.








