Pinout
PC fan connector (4-pin PWM, Intel 4-wire) pinout

Pins
- 1: GND (black) — fan ground and the return path for the tach signal
- 2: +12V (yellow) — sits at full 12V on a 4-pin header; the fan regulates its own speed from the PWM line, so never try to slow a 4-wire fan by lowering this rail
- 3: TACH / SENSE (green) — open-collector output from the fan, 2 pulses per revolution, so RPM = pulses per second × 30. It needs a pull-up to 5V or 3.3V (the motherboard has one, an MCU does not) and it only pulls low, so it will never over-volt a 3.3V input through a 3.3V pull-up
- 4: PWM CONTROL (blue) — 25kHz control input (21–28kHz per spec), 5V logic, pulled up inside the fan and rated to sink about 5mA, so drive it open-drain from a 3.3V MCU rather than pushing 3.3V high. A 3-pin fan simply has no pin 4: it plugs onto pins 1–3 of the same header (the plug is keyed and offset) and is then speed-controlled by varying its 12V rail in DC mode instead. Conversely a 4-pin fan on a 3-pin header runs flat out, because its PWM line floats to its internal pull-up
Specifications
| Contacts | 4 |
|---|---|
| Pitch | 2.54 mm |
| Supply | 12 V |
| PWM frequency | 25 kHz (21–28 kHz) |
| PWM input | 5 V max, open-drain, sinks ≈ 5 mA |
| Tachometer | Open-collector, 2 pulses per revolution |
| RPM | Pulses per second × 30 |
| 3-pin fans | Fit pins 1–3, speed set by supply voltage |
Notes
- Hold the fan's plug with its metal windows facing you and the wires down: pin 1 (black, GND) is on the left. On the motherboard header, seen from above with its plastic tab at the back, the same pins read 4-3-2-1 from left to right.







