PS/2 Pinout
The 6-pin Mini-DIN keyboard/mouse port - clock, data, +5 V, and ground.
Overview
PS/2 is the 6-pin Mini-DIN connector used for legacy keyboards and mice. Only four pins are active: bidirectional DATA and CLK (both open-collector with pull-ups), +5 V, and ground.
Keyboard and mouse pinouts are electrically identical; ports are color-coded purple (keyboard) and green (mouse). It is not hot-pluggable by design.
Pinout
| Pin | Name | Function | Description |
|---|---|---|---|
| 1 | DATA | DATA | Bidirectional data (open-collector with pull-up) |
| 2 | Reserved / NC | SIGNAL | Not connected (second device on combined ports) |
| 3 | GND | GND | Ground |
| 4 | VCC (+5V) | POWER | +5 V (5.0 +/-0.5 V, ~275 mA max) |
| 5 | CLK | CLK | Clock (open-collector with pull-up) |
| 6 | Reserved / NC | SIGNAL | Not connected (second device on combined ports) |
Notes
- Keyboard and mouse are electrically identical but ports expect the matching color.
- Not hot-pluggable by design; pins 2/6 carry a second device on Y-splitter cables.
Reference: Wikipedia - PS/2 port· verified 2026-06-27