Skip to main content
CONNECTORS · SERIAL, VIDEO AND I/O

What Is a D-Sub Connector?

A D-sub connector is a multi-pin connector with a D-shaped metal shell that only fits one way round. It comes in five shell sizes with 9 to 50 standard pins, and is used for RS-232 serial ports (DE-9, often called DB9), VGA video (DE-15) and parallel and I/O connections (DB25, DC-37).

01

How a D-sub connector works

A D-sub connector is a multi-pin connector whose metal shell is shaped like a capital D, so the plug can only go in one way round. The full name is D-subminiature. ITT Cannon introduced it in the early 1950s, when it was small by the standards of the day, and it is now covered by the US military specification MIL-DTL-24308 and matching IEC standards.

Inside the shell the contacts sit in two or more staggered rows. The male half carries pins and the female half carries sockets. The shell grounds the cable shield to the equipment chassis, and two jackscrews, or a slide latch on older equipment, hold the plug in place. That screw retention is a large part of why D-sub is still fitted to industrial computers: a COM port cable fastened with jackscrews does not fall out when a cabinet door is slammed.

The shell size is given by a letter and the pin count by a number. A DB-25 is a B-size shell with 25 pins, and a DE-9 is an E-size shell with nine pins.

02

Types of D-sub connector

There are five standard shell sizes, plus high-density versions that fit an extra row of thinner contacts into the same shell. The same shell can also carry mixed layouts with larger power or coax contacts.

Connector Shell Contacts Common names Typical uses
DE-9 E 9 in 2 rows DB9 RS-232, RS-422 and RS-485 COM ports, CAN bus
DA-15 A 15 in 2 rows DB15 Legacy game ports, some industrial I/O
DE-15 HD E 15 in 3 rows VGA, HD15 Analog VGA video
DB-25 B 25 in 2 rows DB25 Parallel printer ports, older serial, audio and I/O
DC-37 C 37 in 2 rows DB37 Digital and analog I/O cards
DD-50 D 50 in 3 rows DB50 Data acquisition and legacy SCSI

“DB9” and “DB15” are everyday names rather than strict ones. A nine-pin serial connector is correctly a DE-9, and the three-row VGA connector is a DE-15. Catalogs and datasheets use both, so check the pin count and row count rather than the name.

03

Male vs female D-sub

The male connector has exposed pins and the female has sockets. On a PC, convention puts a male DE-9 on serial COM ports, a female DE-15 on VGA outputs and a female DB-25 on parallel ports. Cables are usually built to match, with a gender changer or a null modem adapter used to join two connectors of the same gender.

Contacts are made in several termination styles: solder cup for hand-built cables, crimp for production harnesses, insulation displacement for ribbon cable, and straight or right-angle PCB pins for board mounting.

Pins are numbered from the top row, left to right when you look at the face of the male connector, and right to left on the female. Pin 1 is usually marked on the insulator. Getting this mirror image wrong is the most common mistake when wiring a D-sub by hand, so check the pinout against the face you are looking at before soldering, and test the finished cable with a continuity tester before it goes into a cabinet.

04

Where D-sub is still used

D-sub has gone from consumer PCs, but it remains common on industrial and embedded equipment, where machines and instruments last for decades.

  • //
    Serial COM ports. Most embedded box PCs and industrial motherboards still carry one or more DE-9 COM ports for PLCs, barcode scanners, scales, GPS receivers and instruments.
  • //
    Serial expansion. Serial I/O modules add four or eight extra ports, usually brought out on DE-9 breakout cables.
  • //
    CAN bus. Many CAN interfaces use a DE-9 with CAN_H on pin 7 and CAN_L on pin 2, following the CiA 303-1 recommendation. Our guide to how CAN bus networks work covers the protocol.
  • //
    VGA video. DE-15 VGA outputs remain on many industrial boards and panel equipment for legacy monitors and KVM switches.
  • //
    Data acquisition. DC-37 and DD-50 connectors carry dozens of digital or analog channels from I/O cards to terminal blocks.
FAQ · 01
What is RS-232?
RS-232 is a serial communication standard that sends data one bit at a time between two devices, usually over a DE-9 connector. It suits point-to-point links of up to around 15 m and is still the standard interface on many instruments, PLCs and scanners.
Read the full FAQ —
05

D-sub in harsh environments

A standard D-sub is not sealed, so it suits clean cabinets and enclosures rather than washdown or outdoor use. Where a serial or I/O connection has to survive water, dust or vibration, the usual options are IP67-rated D-sub connectors with a gasket and sealed backshell, or a switch to circular connectors such as M12. Metal backshells with strain relief and fully tightened jackscrews are the simplest improvement on any D-sub cable that sits on a machine.

For long or electrically noisy serial runs, the connector matters less than the interface. Changing from RS-232 to RS-485 on the same DE-9 typically extends reach to hundreds of meters.

06

Quick answers on D-sub

D-sub connectors: common questions

What is a DB9 connector?

A nine-pin D-sub, correctly called a DE-9. It is the standard connector for RS-232 COM ports and is also used for RS-422, RS-485 and CAN bus.

What is D-sub on a monitor?

The VGA input. Monitors label their DE-15 VGA socket “D-sub” to tell it apart from HDMI and DisplayPort. It carries analog video only.

Is D-sub the same as VGA?

Not exactly. VGA uses one type of D-sub, the three-row DE-15. D-sub is the whole connector family, which also includes serial and parallel connectors.

What is a DB25 connector used for?

Mainly parallel printer ports. PCs used a female DB-25 for the parallel port, and older modems and terminals used DB-25 for serial. It still appears on audio interfaces and industrial I/O.

Can you hot-plug a D-sub connector?

It depends on the interface, not the connector. RS-232 and VGA tolerate hot-plugging in practice, but power down first where the pins carry power or where the interface datasheet advises it.

We build industrial computers with the COM ports, serial cards and breakout cables the installation needs as standard, and set the RS-232, RS-422 or RS-485 mode on each port before the system ships. Send us your device list and we will specify the ports and cables to match.