
You’re knee-deep in a 3D printer build. The control board has a row of white 4-pin headers. One of them needs to power the hotend. Another carries the thermistor signal. Plug the wrong one in, and you’ll fry a $60 component before the first layer even starts.
4-pin connectors are everywhere — under your car’s hood, inside your PC, on your boat trailer, in factory automation panels. But “4-pin” doesn’t tell you much. A Molex peripheral connector and a Deutsch DT waterproof connector both have four contacts, yet they’re completely different animals.
This guide breaks down every major 4-pin connector type, how to identify them, what each pin does, and how to wire them correctly.
Table of Contents
- What Is a 4-Pin Electrical Connector?
- Key Specifications: What to Look for Before You Buy
- 4-Pin Connector Types: A Complete Visual Reference
- How to Identify Any 4-Pin Connector: A Four-Step Method
- Wiring Best Practices for 4-Pin Connectors
- Common 4-Pin Connector Problems and Fixes
- FAQ: 4-Pin Connector Questions
What Is a 4-Pin Electrical Connector?
A 4-pin connector is exactly what it sounds like: a connector housing with four electrical contacts (pins or sockets). But the reason four pins show up across so many industries isn’t random — it’s a sweet spot in connector design.
Why Four Pins?
Three pins give you power (VCC), ground (GND), and one signal line. That’s fine for a simple sensor. But many real-world devices need more:
- Power + dual signal: VCC, GND, Signal A, Signal B — common in differential signaling (RS-485, CAN bus)
- Power + control + feedback: VCC, GND, PWM control, tachometer feedback — standard for 4-pin PC fans
- Dual circuit switching: Two independent switched circuits sharing a common ground — typical in trailer lighting
- Balanced power delivery: Two VCC + two GND — used in CPU power connectors to split current load
Four pins hit the balance point: enough contacts for power-plus-communication without the bulk and cost of a 6- or 8-pin housing.Industry Insight: In connector manufacturing, pin count directly affects both cost and reliability. Every additional contact is a potential failure point. Four pins emerged as the de facto standard for mixed power/signal applications because it covers the most common use cases — VCC, GND, and two data lines — without over-engineering the connector. This same design philosophy applies to custom cable assemblies where the goal is to specify exactly what’s needed, nothing more.
Key Specifications: What to Look for Before You Buy
Before diving into specific types, understand the specs that differentiate them:
| Specification | What It Means | Typical Range |
|---|---|---|
| Pitch (Pin Spacing) | Distance between adjacent pins | 1.0mm (JST PH) to 6.35mm (Molex) |
| Current Rating | Max current per contact | 1A (DuPont) to 13A (Deutsch DT) |
| Voltage Rating | Max operating voltage | 50V (JST) to 250V (Molex) |
| Wire Gauge (AWG) | Compatible wire thickness | 28-30 AWG (JST PH) to 12-14 AWG (Deutsch) |
| IP Rating | Dust/water ingress protection | IP00 (unsealed) to IP68 (submersible) |
| Mating Cycles | Durability (plug/unplug) | 30 (Molex) to 500+ (industrial circular) |
| Temperature Range | Operating temperature | -25°C to +125°C (automotive) |
Rule of thumb: Match the connector’s current rating to your load with at least 20% headroom. A 4-pin fan header rated for 3A will fail prematurely if you push 3A through it continuously.
4-Pin Connector Types: A Complete Visual Reference
1. Automotive 4-Pin Connectors
Deutsch DT04-4P
The gold standard for under-hood connections. Rectangular, gray thermoplastic housing with a wedge lock that secures the pins.
- Shape: Rectangular, ~25mm wide
- Locking: Integrated wedge lock (requires tool to release)
- Pins: Solid barrel crimp contacts, typically nickel-plated
- Pinout (typical EFI sensor): Pin 1: Sensor Ground | Pin 2: Signal Output | Pin 3: 5V Reference | Pin 4: Shield Ground
- Current rating: Up to 13A per contact
- Applications: Fuel injectors, MAP/MAF sensors, camshaft/crankshaft position sensors, ignition coils
How to identify: Look for the distinctive orange wedge insert and the Deutsch logo molded into the housing. The connector body feels solid and heavy compared to consumer-grade plastic shells.
EFI Sensor Connectors
Smaller than the DT series, these are often found as pre-wired pigtails on aftermarket sensors.
- Shape: Compact rectangular, often with a wire strain relief boot
- Locking: Spring-loaded metal clip
- Common pinout: VCC (5V/12V), GND, Signal, Shield
Industry Insight: Automotive connectors don’t just carry electricity — they survive conditions that would destroy consumer electronics. A Deutsch DT connector under the hood of a truck in Arizona faces 125°C heat, road salt spray, and constant vibration from a diesel engine. The wedge lock isn’t a design flourish; it’s what keeps your fuel injectors firing after 200,000 miles. This same durability-first approach carries over to automotive wire harness design, where every connector in the assembly must meet the same brutal environmental standards.
2. Computer Hardware 4-Pin Connectors
Molex 8981 (4-Pin Peripheral)
The white plastic connector that powered hard drives and optical drives for two decades. Still common for case fans, LED strips, and legacy accessories.
- Shape: Rectangular, ~21mm wide, white nylon housing
- Locking: Friction fit (no latch — notorious for being hard to unplug)
- Pinout: Pin 1: +12V (Yellow) | Pin 2: GND (Black) | Pin 3: GND (Black) | Pin 4: +5V (Red)
- Current rating: 11A per pin (12V), 8A (5V)
- Pitch: 6.35mm (0.25″)
How to identify: Large white housing, four round pins visible from the front, two black wires in the middle flanked by yellow and red. If it takes serious force to disconnect, it’s a Molex.
4-Pin CPU/EPS Power Connector
Found near the CPU socket on motherboards. Provides dedicated 12V power to the processor voltage regulator.
- Shape: Square 2×2 matrix, black housing
- Locking: Snap-lock latch on one side
- Pinout: Pin 1: GND | Pin 2: GND | Pin 3: +12V | Pin 4: +12V
- Current rating: Up to 8A per contact
- Pitch: 4.2mm
How to identify: Square 2×2 arrangement, typically yellow and black wires, locking clip on the side. Often combined into a 4+4 configuration that splits for compatibility with both 4-pin and 8-pin motherboard headers.
3. Hobby Electronics: JST and DuPont Connectors
JST XH (2.5mm Pitch)
The white connector on nearly every lithium battery balance lead and 3D printer stepper motor.
- Shape: Rectangular, white nylon, ~10mm wide for 4-pin
- Locking: Small friction latch on top
- Pinout (typical LiPo balance lead): Pin 1: Cell 1 Negative | Pin 2: Cell 1 Positive / Cell 2 Negative | Pin 3: Cell 2 Positive / Cell 3 Negative | Pin 4: Cell 3 Positive
- Current rating: 3A max (22 AWG)
- Wire gauge: 22-28 AWG
JST PH (2.0mm Pitch)
Smaller than XH, common on flight controllers, micro servos, and FPV camera connections.
- Shape: Tiny white rectangle, ~8mm wide for 4-pin
- Locking: Very small latch (easy to break)
- Current rating: 2A max
- Wire gauge: 26-30 AWG
DuPont Headers (2.54mm Pitch)
The breadboard standard. Individual 0.1″ pitch pins that can be assembled into any configuration.
- Shape: Black plastic housing, square pins
- Locking: None (friction only)
- Current rating: 1-2A per pin
- Wire gauge: 22-28 AWG
How to tell them apart: Measure the pitch. JST PH = 2.0mm, JST XH = 2.5mm, DuPont = 2.54mm (0.1″). If you can plug it into a breadboard, it’s DuPont.
4. Industrial Waterproof: M8/M12 Circular Connectors
These are the workhorses of factory automation. Circular metal bodies with threaded coupling rings.
- Shape: Circular, nickel-plated brass or stainless steel
- Locking: Threaded ring (M8 or M12 thread)
- Pinout (typical 4-pin M12 A-coded): Pin 1: Brown (+24V) | Pin 2: White (Signal/NC) | Pin 3: Blue (0V) | Pin 4: Black (Signal/NC)
- IP Rating: IP67 (dust-tight, temporary immersion) to IP68 (continuous submersion)
- Current rating: 4A (M12), 3A (M8)
How to identify: Circular metal body with visible threads. M8 is ~8mm diameter, M12 is ~12mm. The A-coded version (most common for sensors) has a specific keying notch position.
5. Trailer 4-Pin Connectors

4-Way Flat
The most common trailer connector in North America. A flat, rectangular plug with four pins in a row.
- Shape: Flat rectangle, ~25mm wide, black or gray
- Locking: Friction fit (some have a small latch tab)
| Wire Color | Function |
|---|---|
| Green | Right turn signal + brake light |
| Yellow | Left turn signal + brake light |
| Brown | Running lights / taillights |
| White | Ground (must connect to trailer frame) |
- Current rating: Typically 5-10A per circuit
How to identify: Flat, four metal blades arranged in a single row. Male end (trailer side) has exposed flat pins. Female end (vehicle side) has slots. The connector body is keyed — it only plugs in one way.
4-Way Round
Same wiring scheme, different form factor. A round plug with four pins in a circular pattern. Less common today but still found on older trailers and some boat trailers.
Key difference from 4-way flat: Same four functions, but the round design provides slightly better weather sealing. Both use the identical green/yellow/brown/white color code.
4-Way vs 5/6/7-Way: When You Need More Pins
| Connector | Wires | Adds Over 4-Way |
|---|---|---|
| 4-Way Flat | 4 | Baseline: running lights, turn/brake, ground |
| 5-Way Flat | 5 | + Blue wire for reverse lights |
| 6-Way | 6 | + Blue (electric brakes), + Red/Black (12V auxiliary) |
| 7-Way | 7 | + All above, plus auxiliary power for battery charging |
For a small utility trailer or boat trailer with basic lighting, 4-way is all you need. Step up to 5-way if your trailer has reverse lights. Go 6- or 7-way for trailers with electric brakes or onboard batteries.
6. Barrier Strips / 4-Position Terminal Blocks
The simplest 4-pin connector: a row of screw terminals on a plastic or ceramic base.
- Shape: Rectangular block with four metal screws
- Locking: Screw-down wire clamping
- Pinout: User-defined (each position is electrically independent)
- Current rating: 10-30A depending on size
- Wire gauge: Typically 12-22 AWG
How to identify: Four screws in a row on a plastic strip. No mating connector — wires are terminated directly under the screws. Common inside industrial control panels and audio equipment.
How to Identify Any 4-Pin Connector: A Four-Step Method
When you’re holding an unknown 4-pin connector, work through these four questions:
Step 1: What’s the Shape?
- Circular with metal threads → M8 or M12 industrial
- Flat rectangle, four blades in a row → 4-way trailer flat
- Square 2×2 matrix → CPU/EPS power
- Large white rectangle (21mm) → Molex peripheral
- Small white rectangle with latch → JST XH or PH
- Black plastic block with screws → Terminal block
Step 2: How Does It Lock?
- Thumbscrews → D-Sub variant
- Threaded ring → M8/M12 circular
- Snap-lock latch → JST, CPU power, Deutsch DT
- Friction only → Molex, DuPont, 4-way flat trailer
- Screw terminals → Barrier strip
Step 3: How Is It Mounted?
- Panel-mount (flange with holes) → Industrial circular, some Molex
- In-line (cable-to-cable) → Trailer connectors, Deutsch DT
- Board-mount (PCB pins) → JST, DuPont
Step 4: How Are Wires Terminated?
- Crimp pins (removable with tool) → Deutsch, JST, Molex
- Solder lugs → Some D-Sub, older connectors
- Screw clamp → Terminal blocks
- IDC (insulation displacement) → Some ribbon-style connectors
Wiring Best Practices for 4-Pin Connectors
Match Wire Gauge to the Connector
A JST PH connector rated for 2A with 26 AWG wire will melt if you try to push 5A through it. Check both the connector’s current rating and the wire’s ampacity:
| AWG | Max Current (chassis wiring) |
|---|---|
| 28 | 1.4A |
| 26 | 2.2A |
| 24 | 3.5A |
| 22 | 5.0A |
| 18 | 10A |
| 14 | 20A |
Use the Right Crimp Tool
Generic pliers will not produce a gas-tight crimp. For JST/DuPont connectors, use an Engineer PA-09 or IWISS crimper. For Deutsch DT, use the Deutsch HDT-48-00 or a compatible clone. A bad crimp is the #1 cause of intermittent 4-pin connector failures.
Ground the Trailer Connector Properly
The white ground wire on a 4-way trailer connector must make solid contact with bare metal on the trailer frame. Paint, rust, or powder coating between the ground lug and the frame will cause dim or flickering lights — the most common trailer wiring complaint.
Waterproof When Needed
If your 4-pin connector lives outdoors, use dielectric grease on the contacts and heat-shrink over the wire entries. For submersible applications, step up to an IP67/IP68 rated connector like M12 circular or Deutsch DT with sealed crimp barrels.
Common 4-Pin Connector Problems and Fixes
| Symptom | Likely Cause | Fix |
|---|---|---|
| Intermittent connection | Loose crimp or corroded pin | Re-crimp or replace the terminal |
| Connector won’t stay plugged | Broken latch | Replace housing or zip-tie as temporary fix |
| Burnt/melted housing | Over-current | Check load, upgrade to higher-rated connector |
| Dim trailer lights | Poor ground connection | Sand frame to bare metal, re-attach white wire |
| Cross-wired functions | Wrong pinout | Verify with multimeter, re-pin to correct positions |
| Bent pin | Misaligned insertion | Straighten with needle-nose pliers, replace if cracked |
FAQ: 4-Pin Connector Questions
What’s the difference between 4-pin and 4-pole?
They mean the same thing — four electrical contacts. “Pole” is more common in industrial and trailer contexts; “pin” is used everywhere else.
Can I use a 4-pin CPU connector in an 8-pin motherboard header?
Yes, if your motherboard supports it. The 4-pin plug fits into one half of an 8-pin EPS socket. This works for lower-power CPUs (65W TDP and below). For higher-wattage processors, use the full 8-pin.
Are all JST connectors interchangeable?
No. JST is a manufacturer, not a standard. JST XH (2.5mm), PH (2.0mm), ZH (1.5mm), and SH (1.0mm) all have different pitches and are physically incompatible. Always measure the pitch before ordering replacements.
Do I need a 4-way or 7-way trailer connector?
If your trailer only has running lights, brake lights, and turn signals → 4-way. If it has electric brakes, reverse lights, or needs auxiliary power → 7-way.
Can 4-pin connectors carry data?
Yes. RS-485 (industrial serial), CAN bus (automotive), and I²C (hobby electronics) all commonly run over 4-pin connectors. The key is using twisted-pair wiring for the data lines and keeping them away from high-current power conductors.
The Bottom Line
4-pin connectors are the most versatile contact count in electrical engineering. They show up in engine bays, server racks, PCB Assembly,factory floors, and trailer hitches because four contacts handle the most common real-world scenario: power plus one or two signals, with a ground reference.
The trick isn’t knowing that 4-pin connectors exist — it’s knowing which 4-pin connector you’re looking at. Shape, locking mechanism, pitch, and pinout tell you everything. Get those four things right, and you’ll never plug a JST into a Molex socket again.
For applications where off-the-shelf connectors don’t cut it — whether that’s a specialized pinout, an unusual wire gauge, or an environment that demands IP68 sealing — custom wire harnesses with tailored 4-pin connector configurations bridge the gap between catalog parts and real-world requirements. In industrial automation and medical equipment, where a single connector failure can halt a production line or compromise patient safety, that level of customization isn’t a luxury — it’s a requirement. The same precision that goes into medical wire harness assemblies applies to every connector termination, every crimp, and every overmold.
Related Pages on OUKETECH
- Custom Cable Assemblies — High-quality custom cable manufacturing for consumer and industrial applications
- Custom Wire Harnesses — Full-service wire harness design, prototyping, and mass production
- Automotive Wire Harness — Durable, safety-certified wiring solutions for vehicles and EV systems
- Medical Wire Harness — Precision wire harness assemblies meeting strict medical industry standards