C:\>ConventionalMemory.io

Guide · Updated October 8, 2026 · 7 min read

CGA, EGA and VGA video modes and monitor pinouts

A monitor from 1985 and a monitor from 1995 look alike and are wired completely differently. This page has the standards in order, the numbers each one uses and the pinouts you need before you plug anything into anything.

How we pick. A product makes the list only when reviewers and long-time collectors keep recommending it, it does one job well and it will still work in five years. No filler, no mystery brands, and no paid placements. Not every item has been through our own bench, so we go by reputation. Prices change, so check the listing.

Some links on this page are affiliate links. If you buy through one, Conventional Memory earns a small commission at no cost to you. Affiliate links. As an Amazon Associate I earn from qualifying purchases. Disclosure

Careful. CGA and EGA monitors use TTL signals on a 9-pin connector, and VGA is analog on a 15-pin one. They are not interchangeable. Match the card to the monitor before you power anything on. Never open a CRT monitor, because the tube holds a lethal charge even when unplugged.

The standards in order

PC video standards at a glance
StandardYearResolutionsColoursHorizontal rateSignal
MDA1981720 x 350 text, 80 x 25Mono (text only)18.4 kHzTTL digital, 9 pin
Hercules1982720 x 348 graphicsMono18.4 kHzTTL digital, 9 pin
CGA1981320 x 200, 640 x 200, text 40 or 80 x 254 or 2, text 1615.7 kHzTTL digital (RGBI), 9 pin
EGA1984640 x 350 and the CGA modes16 from 6421.8 kHz (15.7 for CGA modes)TTL digital, 9 pin
VGA1987640 x 480, 320 x 200, text 720 x 40016 or 256 from 262,14431.5 kHzAnalog RGB, 15 pin
Super VGA and VESA1988 on800 x 600, 1024 x 768 and higher256, then thousands and millionsVariesAnalog RGB, 15 pin

Where the video memory lives

Video memory addresses (real mode)
ModeSegmentSizeNotes
Mono text (MDA)B0004 KB used80 x 25 characters with attributes
Colour text (CGA, EGA, VGA)B8004 KB for 80 x 25Two bytes per character: the character and its colour
CGA graphicsB80016 KBTwo interleaved banks of rows
EGA and VGA planar graphicsA00064 KB windowFour colour planes selected through registers
VGA mode 13hA00064,000 bytes320 x 200, 256 colours, one byte per pixel, laid out in a straight line

Mode 13h is the one game programmers loved. A pixel at column x and row y is the byte at A000:(y x 320 + x), and a 256-entry palette of 18-bit colours (six bits per red, green and blue) decides what each byte looks like. Setting it up is one BIOS call: MOV AX,13h then INT 10h.

CGA in detail

CGA drew colour with a 4-bit digital signal: red, green, blue and an intensity wire. That gives 16 colours in text modes. In 320 x 200 graphics it displays four colours at a time, chosen from two fixed palettes (cyan, magenta and white, or green, red and brown/yellow), with the background colour selectable from the 16. Mode 6, 640 x 200, is two colours.

Some composite monitors and TVs make the 640 x 200 mode show up as 16 colours through artifacting, a trick used by games such as King's Quest and by 1980s home software. It is a quirk of the NTSC colour burst, not real colour, and it only works on an NTSC composite display.

EGA in detail

EGA doubled the colour wires to six, two per colour, which allows four levels of each primary: 64 colours in all. A card with 64 KB of memory shows four colours at 640 x 350, and 128 KB or 256 KB gives you the full 16 at once. EGA monitors have a mode switch, and they sync at 21.8 kHz for the 350-line mode and 15.7 kHz for CGA modes.

VGA in detail

VGA was an analog interface from the start, which meant any colour on the screen was possible, limited only by the digital-to-analog converter. IBM's design used 6 bits per primary, giving 262,144 colours, and a palette of 256 entries chosen from them. The main modes are listed below.

Standard VGA modes
Mode (hex)TypeResolutionColours
03Text720 x 400 (80 x 25 characters)16
12Graphics640 x 48016
13Graphics320 x 200256
X (unchained 13)Graphics320 x 240256, with page flipping

Standard VGA timing for 640 x 480 is 25.175 MHz pixel clock, 31.469 kHz horizontal and 59.94 Hz vertical. The text mode and the 320 x 200 mode both use 70 Hz and a 400-line frame, which is why the picture is shorter and sometimes a little off-centre on a monitor that handles both.

DE-15 VGA connector pinout

VGA 15-pin connector (DE-15)
PinSignal
1Red video
2Green video
3Blue video
4Monitor ID 2 (reserved)
5Ground
6Red ground
7Green ground
8Blue ground
9Key (no pin) or +5 V on DDC monitors
10Sync ground
11Monitor ID 0
12Monitor ID 1 or DDC data
13Horizontal sync
14Vertical sync
15Monitor ID 3 or DDC clock

DE-9 pinouts for MDA, CGA and EGA

9-pin TTL monitor connectors
PinMDA and HerculesCGAEGA
1GroundGroundGround
2GroundGroundSecondary red (intensity)
3Not usedRedRed
4Not usedGreenGreen
5Not usedBlueBlue
6IntensityIntensitySecondary green (intensity)
7VideoReservedSecondary blue, or mono video
8Horizontal syncHorizontal syncHorizontal sync
9Vertical syncVertical syncVertical sync

Why 320 x 200 looks tall on a modern display

Games from the VGA era drew at 320 x 200 and the monitor stretched the picture across a 4:3 screen. That makes each pixel taller than it is wide, at a ratio of about 1.2 to 1. Run them on a modern 16:9 screen with square pixels and the picture looks squashed.

Good scalers and emulators fix this by stretching the picture to 4:3 (the DOSBox setting is aspect=true). On a real machine feeding a modern display, a scaler that supports 4:3 output will do the same, as will an LCD with an aspect control.

Quick troubleshooting

Symptoms and likely causes
SymptomLikely cause
Rolling or flickering pictureMonitor cannot lock to the card's sync rate. Check the mode the game uses against what the monitor supports
Picture in one colourA missing signal line. Check pins for a bent or pushed-back pin, or a damaged cable
Text fine, graphics unreadableGraphics mode runs at a rate the monitor does not support. Try a different resolution or monitor
Everything too dimWeak CRT, or the brightness and contrast are set low. A worn tube may need a replacement
Black screen, power light onWrong cable or monitor type, a dead card, or the BIOS is waiting for a keystroke. Listen for beep codes
Wavy linesInterference or failing monitor capacitors. Check for dried-out caps on the monitor board, which should be done by a qualified person

Put the picture on a screen

Old video cards need old monitors or a converter, and a meter helps when a cable is suspect.

RetroTINK scalers

Modern display

Turn old video signals into a clean picture on a modern TV or monitor. Check the seller, because copies exist.

A vintage CRT monitor

Period display

A real VGA or CGA monitor shows the modes as designed. Pick one up locally if you can, because shipping a tube is costly.

VGA and DE-9 monitor cables

Cables

Spare cables for testing a card or monitor in isolation.

Multimeter

Pick your level

Checks battery voltage, tests continuity and tells you when a power supply is fibbing. Buy Fluke at any level, because a meter with no safety rating is a bad bargain.

Top shelf

Fluke 87V

The bench legend. Rugged, accurate and True-RMS, it will outlast every machine you test with it.

The sweet spot

Fluke 117

Auto-ranging, True-RMS and a built-in non-contact voltage detector. Everything a retro bench needs.

Value pick

Fluke 101

A pocket-size Fluke for the basics: voltage, continuity and capacitance. Still a real Fluke.

Skip these

  • Plugging an analog VGA monitor into a TTL card with an adapter and hoping. The signals are not compatible.
  • Opening a CRT monitor without discharging it. Leave it to someone with the training.
  • Judging a monitor only by its resolution. The scan rate matters more.

Questions people ask

What is the difference between CGA, EGA and VGA?

CGA is a 4-colour 320 x 200 or 2-colour 640 x 200 standard from 1981. EGA reached 640 x 350 with 16 colours from a palette of 64. VGA added analog video, 640 x 480 with 16 colours, 320 x 200 with 256 colours, and an 18-bit palette.

What is VGA mode 13h?

It is the standard 320 x 200, 256 colour VGA graphics mode. The screen is 64,000 bytes at segment A000, one byte per pixel, and it was the favourite of DOS game programmers.

Can I plug a VGA monitor into a CGA or EGA card?

Not directly. CGA and EGA output digital TTL signals on a 9-pin connector, and a VGA monitor expects analog RGB on a 15-pin connector. Converters exist but add cost and complexity.

What is the VGA connector pinout?

Pins 1, 2 and 3 carry red, green and blue video, pin 13 horizontal sync, pin 14 vertical sync and pins 5 to 8 and 10 are grounds. The remaining pins carry monitor ID or DDC data.

Why is my DOS game stretched on my modern monitor?

The game was drawn at 320 x 200 for a 4:3 CRT, where the pixels are taller than wide. A modern screen with square pixels shows it differently unless the display or an emulator corrects the aspect ratio.

Sources

From the timeline

Read next

More to explore

Visit the museum