WireChartUSA logo WireChartUSA

[← Back to WireChartUSA Master Cable Cheat Sheet]

RS-232 DB9 Serial Pinout

Quick Answer: On a DB9 RS-232 port, pin 2 is receive data, pin 3 is transmit data and pin 5 is signal ground. A null modem cable swaps pins 2 and 3 so two computers or DTE devices can talk directly.


Overview

RS-232 is the classic serial interface still found on industrial controllers, network switch console ports, CNC machines, lab instruments and point-of-sale gear. The nine-pin connector is properly called DE-9, but nearly everyone calls it DB9. Computers and terminals are wired as DTE with male connectors; modems and many instruments are DCE, which reverses the direction of the data and handshake pins. Signals swing between roughly plus and minus 3 to 15 V, so never connect RS-232 directly to 3.3 V or 5 V microcontroller pins without a level shifter like a MAX232. A minimal working link needs only TXD, RXD and ground; the handshake lines RTS, CTS, DTR and DSR are optional depending on flow control settings. There is no wire color standard, so check each conductor with a meter. Keep cables under about 15 m (50 ft) at 19,200 bps, or use RS-485 for longer distances.

RS-232 DB9 Serial Pinout Table

PinWire Color (US)SignalVoltage / CurrentWiring Notes
1No standard colorDCD (Data Carrier Detect)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Input to DTE
2No standard colorRXD (Receive Data)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Input to DTE
3No standard colorTXD (Transmit Data)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Output from DTE
4No standard colorDTR (Data Terminal Ready)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Output
5No standard colorGND (Signal Ground)0 V referenceAlways connect
6No standard colorDSR (Data Set Ready)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Input
7No standard colorRTS (Request To Send)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Output
8No standard colorCTS (Clear To Send)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Input
9No standard colorRI (Ring Indicator)+/-3 to +/-15 V (typically +/-5 to +/-12 V)Input

Key Specs

SpecValue
ConnectorDE-9 (often called DB9), male on PC/DTE
Null modemSwap 2-3, 7-8, 4-6 (+1)
Max length~15 m (50 ft) at 19,200 bps

Frequently Asked Questions

What are the RS232 DB9 pin assignments?

1 DCD, 2 RXD, 3 TXD, 4 DTR, 5 GND, 6 DSR, 7 RTS, 8 CTS, 9 RI (DTE side).

What is a null modem cable?

A serial cable that crosses TXD and RXD (pins 2 and 3) and usually RTS/CTS and DTR/DSR, so two DTE devices can communicate directly.

What voltage does RS232 use?

Logic levels between about plus and minus 3 and 15 V, typically plus and minus 5 to 12 V. A negative voltage represents logic 1.

Master wire tables: Solid/Stranded + Cu/Al Ampacity | Metric ↔ AWG/MCM

Related Cable & Wire Specs


© 2026 WireChartUSA · US reference based on NEC (NFPA 70), TIA/EIA and UL standards. For information only; verify with the current code adopted by your local AHJ and a licensed electrician. Updated 2026-12-04. Home