Cooling Fan Connectors and Lead Wires: Matching the Plug When You Replace a Fan
A replacement fan with the wrong plug will not fit your equipment. How fan connectors and lead wires differ, and how to match them before ordering.

A replacement fan can match the original on size, voltage and airflow and still be unusable, because its plug does not fit the socket in your equipment. This guide explains how fan connectors and lead wires differ, and how to match the plug before you order, so the fan arrives ready to plug in.
The fan, the plug and the wires are one part, not three separate choices. A fan ordered with the wrong housing, the wrong pin spacing or the wrong wire order will not plug in, and forcing it can damage the socket or reverse the power — so check the connector with the same care as the size and the voltage.
Why does the connector matter as much as size and voltage?
Because the connector is the only link between the fan and the equipment that powers and controls it. Size decides whether the fan fits the mounting holes, voltage decides whether it runs, and the connector decides whether it can be connected at all. A fan with the right size and voltage but the wrong plug is a fan you cannot install without cutting wires — and once you cut the leads, the replacement is no longer a simple swap.
The connector also carries the control signals, not just power. A 3-wire fan sends a speed signal back to the equipment, and a 4-wire fan receives a speed-control signal as well — our wire-signals guide explains what each wire does. If the replacement's plug is missing a pin, or the pins are in a different order, those signals never reach the equipment, and the machine may report a fan fault even though the fan is spinning.
How many wires will my fan have, and what does each one do?
Count the wires on the original fan first — that number decides which replacement you need. The table below is the usual arrangement; the exact function of each wire is always on the model's own datasheet.
Wires | What they carry |
|---|---|
2-wire | Power only: positive (+) and negative (−). The fan runs at full speed whenever power is applied. |
3-wire | Power plus a speed signal (often called FG or tachometer) so the equipment can tell whether the fan is turning. |
4-wire | Power, speed signal and a speed-control input (PWM), so the equipment can vary the fan speed. |
A 2-wire fan can replace a 2-wire fan, but it cannot replace a 3-wire or 4-wire fan where the equipment expects a speed signal — the machine may alarm or shut down because it cannot see the fan running. Going the other way is also a mismatch: a 4-wire fan plugged into a 2-wire socket leaves its extra wires unconnected, so it runs, but without speed control. Match the wire count to the original, not to the fan that happens to be in stock.
What connector types will I see?
There is no single standard plug for cooling fans, and that is the whole problem. Most small DC fans arrive with a small plastic housing on the end of their leads, but the housing shape, the pin spacing and the locking latch differ between manufacturers and series. Two plugs with the same number of pins can still be different sizes, and a plug that looks right can be a fraction of a millimetre too wide for the socket.
Some fans are sold with bare lead ends instead — no housing at all — for equipment where the wires are screwed into a terminal block or soldered directly. Others end in ring terminals or spade terminals for the same reason. None of these is better in general; the right one is the one your equipment already uses.
The only reliable way to match a plug is to compare it with the original, not to guess from a photo. Take a clear photo of the original plug next to a ruler, count the pins, and note the latch: the small plastic tab or hook that locks the plug into its socket. Then check the replacement's datasheet, which shows the connector as a drawing with its pin spacing and overall size. If the datasheet drawing does not match the plug in your hand, do not order it — the drawing, not the product photo, is the authority.
What do the wire colours mean?
Less than most people assume. On many DC fans the power wires follow a familiar pattern — red for positive, black for negative — and the extra wires are often yellow, blue or white. But the colours are a convention, not a standard: different brands use different colours for the speed signal and the control wire, and some use the same colour for different functions on different series.
Never wire a fan by colour alone. A yellow wire that is a speed signal on one fan can be a control input on another, and swapping the two can damage the fan or the equipment's control circuit. Read the datasheet's wire table for the exact model: it lists each wire by position in the plug and by colour, and the position is what matters. If the datasheet is missing, send us the model number or a photo of the label — our label guide shows where to find it — and we will check the wiring for you.
How do I check the lead length?
Measure the original fan's leads from the fan housing to the end of the plug, following the route the wires actually take inside the equipment — around corners, through clips and past hot parts — not in a straight line. A replacement whose leads are too short cannot reach the socket, and stretching them puts strain on the plug and on the solder joints inside the fan.
Too long is a smaller problem, but still a problem: excess wire coiled inside a cabinet can block airflow or catch on a moving part. If the replacement's leads are longer than the original's, route the slack along the same path the original wires took and secure it with the original clips, keeping it clear of the fan blades and of any hot surface. Lead length is listed on most datasheets, so compare the figure before ordering rather than discovering the difference at installation.
What if the plug does not match?
You have three options, in order of preference. First, order the replacement with the matching connector fitted — many suppliers, including us, can fit the plug your equipment uses before shipping, if you send the model number or a photo of the original plug. This is the cleanest option: the fan arrives ready to plug in.
Second, if the fan is only available with bare leads, fit the original connector yourself — but only if you have the right crimping tool and the right terminals for that housing. A badly crimped terminal is worse than no connector: it can work loose, overheat or fall out under vibration. If you are not confident with crimping, do not improvise with solder inside a plug housing; ask the supplier to fit it instead.
Third, use an adapter lead — a short cable with the fan's plug on one end and your equipment's socket on the other. Adapters work, but they add a joint that can loosen, and they take up space inside the equipment. They are a good stopgap, not a first choice for equipment that runs unattended. Whichever route you take, never force a plug into a socket it does not fit, and never swap wires to make a plug fit: reversed power can destroy a DC fan instantly, and a swapped signal wire can make the equipment misread the fan speed.
What should I check before ordering?
Run through this list against the original fan, not against the replacement's catalogue photo: size and thickness, voltage, wire count, plug shape and pin spacing, wire colours and functions, and lead length. Our replacement checklist covers size, voltage and airflow in the same way — the connector checks in this guide complete it. Two fans that agree on every other figure but differ on the plug are not interchangeable.
Also check the rest of the specification as usual: bearing type, temperature range and life all still apply, and they are covered in our bearing guide, temperature guide and life guide. A fan with the right plug and the wrong bearing for a hot cabinet will still fail early — so read the connector and the bearing together, on the same datasheet.
How do I order the right fan?
Start from the original fan: read its label for the voltage and model number, count its wires, photograph its plug next to a ruler, and measure its lead length along the route the wires take. Then find the original model's datasheet and compare the connector drawing, the wire table and the lead length against the replacement you are considering.
That is how we match replacement fans at Xuanrui. Send us the original model number — or a photo of the fan label and its plug — and we will check the candidate against the original fan's datasheet, including its connector, across our NMB, AVC and SANYO fan ranges. Or contact us with the original model number and a photo of the plug, and we will check the replacement for you.
Common questions
Can I replace a 3-wire fan with a 2-wire fan?
Only if your equipment does not monitor fan speed. Most equipment that came with a 3-wire fan expects a speed signal, and without it the machine may report a fan fault or shut down. Check whether the equipment monitors the fan before downgrading the wire count.
Can I replace a 4-wire fan with a 3-wire fan?
The fan will usually run, but the equipment loses speed control, so the fan runs at full speed all the time. That means more noise and a shorter life than the original. If the equipment was designed for PWM speed control, match it with a 4-wire replacement.
Do all fans with the same number of pins use the same plug?
No. Pin count is only one part of the plug: the housing shape, pin spacing and locking latch also differ between manufacturers. Two 3-pin plugs can be physically incompatible. Always compare the datasheet connector drawing with the original plug.
Can I trust the wire colours to tell me which wire is which?
No — colours are a convention, not a standard, and they vary between brands and series. Use the position of each wire in the plug and the wire table on the model's datasheet. Colour alone has caused more mis-wired fans than any other shortcut.
My replacement fan's leads are too short. What should I do?
Do not stretch them to reach the socket — strained leads pull on the plug and on the joints inside the fan. Either order the fan with longer leads, have the supplier fit an extension, or use an adapter lead. Measure the lead length along the real wire route before ordering next time, so the replacement arrives long enough.