USB Pinout: D+, D−, VBUS and ID
The USB signals of connectors, motherboard headers, M.2 slots and USB chips.
USB 2.0 needs only four wires: VBUS supplies 5 V, GND is ground, and data travels differentially over the D+ and D− pair. Mini and Micro USB add a fifth pin, ID, which tells a USB On-The-Go device whether it acts as host or peripheral. USB 3.0 adds two more differential pairs for SuperSpeed but keeps the USB 2.0 pair unchanged, so older devices still work.
The table shows the D+, D−, VBUS and ID pins of every connector and part. Next to the common receptacles you will find the 9-pin USB 2.0 header on PC motherboards, the M.2 Key B and Key E slots that carry USB for modems and Wi-Fi cards, and chips with built-in USB such as the ATmega32U4 and the CH340G, CP2102N and FT232RL USB-to-UART bridges.
Route D+ and D− as a pair with 90 Ω differential impedance. Swapping the two lines prevents enumeration but damages nothing. Click any part to open the full pinout.
USB pins by part
| Part | D+ | D− | VBUS | ID |
|---|---|---|---|---|
| USB Type-B Standard 4-Pin InterfaceUSB Implementers Forum (USB-IF) | 3 · D+ | 2 · D- | 1 · VBUS | – |
| Mini-USB Type-B 5-Pin InterfaceUSB-IF (USB Implementers Forum) | 3 · D+ | 2 · D- | 1 · VBUS | 4 · ID |
| Micro-USB Type-B 5-Pin InterfaceUSB-IF (USB Implementers Forum) | 3 · D+ | 2 · D- | 1 · VBUS | 4 · ID |
| Micro-USB 3.0 Type-B (10-Pin)USB Implementers Forum (USB-IF) | 3 · D+ | 2 · D- | 1 · VBUS | 4 · ID |
| USB 3.0 Type-A SuperSpeed InterfaceUSB-IF (USB Implementers Forum) | 3 · D+ | 2 · D- | 1 · VBUS | – |
| USB 2.0 Internal 9-Pin Motherboard HeaderIntel / USB-IF | 5 · USB1_D+6 · USB2_D+ | 3 · USB1_D-4 · USB2_D- | – | – |
| Apple Lightning ConnectorApple Inc. | 2 · L0p6 · L1p | 3 · L0n7 · L1n | – | – |
| M.2 (NGFF) Key B Connector (WWAN & SATA SSD)PCI-SIG | 7 · USB_D+ | 9 · USB_D- | – | – |
| M.2 (NGFF) Key E Connector (Wi-Fi & Bluetooth)PCI-SIG | 3 · USB_D+ | 5 · USB_D- | – | – |
| ATmega32U4 8-Bit Microcontroller with USB (TQFP-44)Microchip / Atmel | 4 · D+ | 3 · D- | 7 · VBUS | – |
| CH340G USB to Serial UART Bridge ControllerWCH (Jiangsu Qinheng) | 5 · UD+ | 6 · UD- | – | – |
| CP2102N USB to UART Bridge ControllerSilicon Labs | 3 · D+ | 4 · D- | 8 · VBUS | – |
| FT232RL USB to Serial UART Interface ICFTDI Chip | 15 · USBD+ | 16 · USBD- | – | – |
Pin number · pin name. "+n" = further pins with the same function.
All parts (13)
USB Type-B Standard 4-Pin Interface
Standard 4-pin square USB Type-B female/male connector interface for printers, Arduino Uno, USB audio interfaces, and external peripheral devices.
Mini-USB Type-B 5-Pin Interface
Compact 5-pin USB 2.0 connector commonly found on older digital cameras, GPS devices, MP3 players, and game controllers. Succeeded by Micro-USB.
Micro-USB Type-B 5-Pin Interface
Compact 5-pin USB 2.0 connector with dedicated OTG ID pin for dynamic host/device mode negotiation.
Micro-USB 3.0 Type-B (10-Pin)
10-pin SuperSpeed USB 3.0 Micro-B connector combining a standard 5-pin USB 2.0 section with an additional 5-pin SuperSpeed section, commonly found on portable external hard drives.
USB 3.0 Type-A SuperSpeed Interface
Standard 9-pin USB connector with blue color coding. Fully backward compatible with USB 2.0 (pins 1-4) with 5 additional SuperSpeed differential and ground lines (pins 5-9).
USB 2.0 Internal 9-Pin Motherboard Header
Standard 9-pin (2x5 keyed) internal motherboard header supporting dual USB 2.0 front panel ports with +5V VBUS, Data- (D-), Data+ (D+), and Ground (GND).
Apple Lightning Connector
Proprietary 8-pin reversible connector used for Apple iOS devices (iPhone, iPad, iPod) carrying power (VBUS), high-speed differential USB data, and accessory control signals.
M.2 (NGFF) Key B Connector (WWAN & SATA SSD)
Standard 75-position M.2 Key B edge connector interface (notch at pins 12-19) providing PCIe x2, SATA, USB 2.0/3.0, and SIM card (UIM) signals for cellular modems and legacy SATA SSDs.
M.2 (NGFF) Key E Connector (Wi-Fi & Bluetooth)
Standard 75-position M.2 Key E edge connector interface (notch at pins 24-31) providing PCIe x1, USB 2.0, SDIO, UART, and I2S/PCM for wireless networking (Wi-Fi & Bluetooth) and CNVi companion modules.
ATmega32U4 8-Bit Microcontroller with USB (TQFP-44)
16MHz, 32kB Flash, 2.5kB SRAM, 1kB EEPROM, USB 2.0, TQFP-44
CH340G USB to Serial UART Bridge Controller
USB serial converter, UART, SOIC-16
CP2102N USB to UART Bridge Controller
USB to UART master bridge, QFN-24
FT232RL USB to Serial UART Interface IC
USB to Serial Interface, SSOP-28