Black Week: 30% off Lifetime and Pro. Ends Sunday.

How-to wiring diagram

12V relay wiring diagram: how to wire a 4 or 5-pin relay

A relay lets a small switch control a big current. The switch only powers the relay's coil, a fraction of an amp, and the relay's contact carries the load current on a short, separately fused path from the battery. On a standard automotive relay, pin 30 takes the fused battery supply, 87 goes to the load's positive, 86 comes from the switch and 85 goes to ground. A 5-pin relay adds 87a, which is connected to 30 when the relay is off: use it to turn something off when the relay switches on, or leave it empty.

The wiring diagram

The switch circuit (1 A fuse) only energises the coil. The light's current runs from the battery through its own fuse, pin 30 and pin 87. The live drawing opens with the relay energized and the light on; set it to Rest to switch the light off.

6 components · 8 conductors

Open this diagram in Crimp
Dash switch, 5-pin relay and a searchlight wiring diagram: Battery, Light fuse 5 A, Switch fuse 1 A, 5-pin relay, Dash switch and LED searchlight, with the wire size and fuse marked on each cable.

Live Crimp simulation. Try equipment states and battery charge. Connections and cable sizes are listed below.

View full screen

Red = positive · dark = return. Crossings are not junctions. Read the assumptions before adapting a circuit.

Relay pins and what they connect to

The DIN numbers moulded next to each pin, as on HELLA's 3080 five-pin changeover relay used in the drawing.

Relay pins and what they connect to
PinWhat it isConnect it to
30Common contactFused battery positive, sized for the load (30 A contact on the HELLA 3080)
87Normally open contactThe load's positive: live when the coil is energised
87aNormally closed contact (5-pin only)A load that should be on when the relay is off (20 A on the HELLA 3080), or nothing
86Coil positiveThe switched feed from your dash switch
85Coil negativeGround

The coil has no polarity on a plain relay, but relays with a built-in diode or resistor across the coil do: on those, 86 must be positive. Check the diagram printed on the relay case.

Step by step

  1. 01

    Mount the relay near the load

    Put the relay close to the battery or the load, pins down or sideways so water drains off, so the heavy-current wires stay short.

  2. 02

    Fuse the supply to pin 30

    Run a wire from the battery positive, through a fuse close to the battery, to pin 30. Size the fuse and wire for the load: the drawing uses 5 A for a 3.5 A searchlight.

  3. 03

    Wire pin 87 to the load

    Run the load's positive from pin 87. Return the load's negative to the battery negative or the negative bus.

  4. 04

    Wire the switch to pin 86

    Take a small fused feed to the dash switch, here 1 A, and run the switch's output to pin 86. The coil of the HELLA 3080 draws about 0.14 A, so thin wire is enough.

  5. 05

    Ground pin 85

    Connect pin 85 to ground. The coil now energises whenever the switch is on.

  6. 06

    Use 87a only if you need it

    On a 5-pin relay, leave 87a empty unless something should run while the relay is off. Insulate the empty terminal.

Cable and fuse sizes

Sized by Crimp's ABYC E-11 based engine for the lengths shown. Lengths are one way; AWG is the approximate counterpart of the metric size.

Cable table units
Cable schedule: Dash switch, 5-pin relay and a searchlight
ConnectionLengthWireDesign currentFuseDrop
C1 · Battery +
→ Light fuse 5 A IN +
10 cm0.3 ft1.5 mm²AWG 16Switched circuit—0.00%
C2 · Light fuse 5 A OUT +
→ 5-pin relay 30 COM
1 m3.3 ft1.5 mm²AWG 16set sizeSwitched circuit5 A0.00%
C3 · 5-pin relay 87 NO
→ LED searchlight Supply +
3 m9.8 ft1.5 mm²AWG 163.5 A—2.04%
C4 · LED searchlight Return −
→ Battery −
4 m13.1 ft1.5 mm²AWG 163.5 A—2.72%
C5 · Battery +
→ Switch fuse 1 A IN +
10 cm0.3 ft1.5 mm²AWG 16Switched circuit—0.00%
C6 · Switch fuse 1 A OUT +
→ Dash switch A
2 m6.6 ft1.5 mm²AWG 16set sizeSwitched circuit1 A0.00%
C7 · Dash switch B
→ 5-pin relay 86 COIL +
2 m6.6 ft1.5 mm²AWG 16Switched circuit—0.00%
C8 · 5-pin relay 85 COIL −
→ Battery −
2 m6.6 ft1.5 mm²AWG 16Switched circuit—0.00%

A dash means the cable has no fuse of its own: a negative, a cable past a switch, or a run protected by the fuse upstream of it. Fuses on a battery post or in an inline holder are drawn on the diagram.

Common mistakes

Crimp's checks on this drawing: 0 critical, 2 to review. They stay visible when you open it.

  • Feeding pin 30 from the switch circuit. The load current then still runs through the switch, which is what the relay was meant to avoid.
  • Leaving the pin 30 feed unfused. It is a battery cable and needs a fuse at the battery end like any other.
  • Mixing up 87 and 87a. The load then runs with the switch off and stops when you switch it on.
  • Forgetting to ground 85. The relay never clicks, though the switch's light may still come on.
  • Using the contact rating as the fuse size. The fuse protects the wire; pick it for the wire and the load, not for the relay's 30 A.
  • warning: Check fuse suitability: Battery
  • info: Relay operation is selected manually

A planning example, not an installation certificate. Sizing follows Crimp's published method; check the manufacturer documents below for your exact parts.

Questions

What is the difference between a 4-pin and a 5-pin relay?

A 4-pin relay has pins 30, 87, 86 and 85: it simply switches the load on. A 5-pin relay adds 87a, which is connected to 30 while the relay is off and disconnected when it switches on. Wired with 87a empty, a 5-pin relay works exactly like a 4-pin one.

Which pin goes to the battery on a relay?

Pin 30, through a fuse close to the battery. Pin 87 goes to the load, 86 to the switch and 85 to ground.

Does it matter which way round 85 and 86 go?

Not on a plain relay: the coil is just a winding. Relays with a suppression diode across the coil need 86 positive and 85 negative, or the diode shorts the switch circuit. If the case shows a diode symbol, follow it.

Do I need a fuse on both sides of a relay?

You need a fuse on each circuit that starts at the battery: one on the pin 30 feed, sized for the load and its wire, and one on the switch feed, sized for the thin switch wire. The drawing uses 5 A and 1 A.

When do I need a relay?

When a load draws more than the switch is rated for, when the run to the dash is long enough that the drop would be large, or when one signal should switch several things. A rocker switch rated 20 A can run a 5 A light directly; a 25 A light bar needs a relay.

What size wire for a relay?

Size the pin 30 and 87 wires and the load's return for the load current and length. In this drawing that is 1.5 mm² for the 3.5 A light. The coil circuit carries about 0.14 A, so the smallest practical wire is fine.

Sources

Reviewed 26 November 2026.

Draw your own circuit, with every wire and fuse sized.

Start from this diagram
Keep goingRocker switch wiring diagramWire the switch that drives the relay.Keep goingWire size calculatorSize the pin 30 and 87 wires for your load.Keep goingBilge pump wiring diagramAnother always-on circuit with a manual switch.Keep goingVoltage drop calculatorCheck a long run to a light bar.