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
| Standard | Year | Resolutions | Colours | Horizontal rate | Signal |
|---|---|---|---|---|---|
| MDA | 1981 | 720 x 350 text, 80 x 25 | Mono (text only) | 18.4 kHz | TTL digital, 9 pin |
| Hercules | 1982 | 720 x 348 graphics | Mono | 18.4 kHz | TTL digital, 9 pin |
| CGA | 1981 | 320 x 200, 640 x 200, text 40 or 80 x 25 | 4 or 2, text 16 | 15.7 kHz | TTL digital (RGBI), 9 pin |
| EGA | 1984 | 640 x 350 and the CGA modes | 16 from 64 | 21.8 kHz (15.7 for CGA modes) | TTL digital, 9 pin |
| VGA | 1987 | 640 x 480, 320 x 200, text 720 x 400 | 16 or 256 from 262,144 | 31.5 kHz | Analog RGB, 15 pin |
| Super VGA and VESA | 1988 on | 800 x 600, 1024 x 768 and higher | 256, then thousands and millions | Varies | Analog RGB, 15 pin |
Where the video memory lives
| Mode | Segment | Size | Notes |
|---|---|---|---|
| Mono text (MDA) | B000 | 4 KB used | 80 x 25 characters with attributes |
| Colour text (CGA, EGA, VGA) | B800 | 4 KB for 80 x 25 | Two bytes per character: the character and its colour |
| CGA graphics | B800 | 16 KB | Two interleaved banks of rows |
| EGA and VGA planar graphics | A000 | 64 KB window | Four colour planes selected through registers |
| VGA mode 13h | A000 | 64,000 bytes | 320 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.
| Mode (hex) | Type | Resolution | Colours |
|---|---|---|---|
| 03 | Text | 720 x 400 (80 x 25 characters) | 16 |
| 12 | Graphics | 640 x 480 | 16 |
| 13 | Graphics | 320 x 200 | 256 |
| X (unchained 13) | Graphics | 320 x 240 | 256, 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
| Pin | Signal |
|---|---|
| 1 | Red video |
| 2 | Green video |
| 3 | Blue video |
| 4 | Monitor ID 2 (reserved) |
| 5 | Ground |
| 6 | Red ground |
| 7 | Green ground |
| 8 | Blue ground |
| 9 | Key (no pin) or +5 V on DDC monitors |
| 10 | Sync ground |
| 11 | Monitor ID 0 |
| 12 | Monitor ID 1 or DDC data |
| 13 | Horizontal sync |
| 14 | Vertical sync |
| 15 | Monitor ID 3 or DDC clock |
DE-9 pinouts for MDA, CGA and EGA
| Pin | MDA and Hercules | CGA | EGA |
|---|---|---|---|
| 1 | Ground | Ground | Ground |
| 2 | Ground | Ground | Secondary red (intensity) |
| 3 | Not used | Red | Red |
| 4 | Not used | Green | Green |
| 5 | Not used | Blue | Blue |
| 6 | Intensity | Intensity | Secondary green (intensity) |
| 7 | Video | Reserved | Secondary blue, or mono video |
| 8 | Horizontal sync | Horizontal sync | Horizontal sync |
| 9 | Vertical sync | Vertical sync | Vertical 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
| Symptom | Likely cause |
|---|---|
| Rolling or flickering picture | Monitor cannot lock to the card's sync rate. Check the mode the game uses against what the monitor supports |
| Picture in one colour | A missing signal line. Check pins for a bent or pushed-back pin, or a damaged cable |
| Text fine, graphics unreadable | Graphics mode runs at a rate the monitor does not support. Try a different resolution or monitor |
| Everything too dim | Weak CRT, or the brightness and contrast are set low. A worn tube may need a replacement |
| Black screen, power light on | Wrong cable or monitor type, a dead card, or the BIOS is waiting for a keystroke. Listen for beep codes |
| Wavy lines | Interference 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
- Wikipedia: Video Graphics Array
- Wikipedia: Enhanced Graphics Adapter
- Wikipedia: Color Graphics Adapter
- Wikipedia: VGA connector
From the timeline
- IBM Color/Graphics Adapter (CGA) 1981
- IBM Enhanced Graphics Adapter (EGA) 1984
- IBM PS/2 and VGA 1987
- Genoa SuperVGA 1987
Read next
- How to connect retro consoles to a modern TVWhich cables and converters give the best picture from NES, SNES, Genesis, N64 and PlayStation on an HDMI TV, and why a cheap adapter can add lag.
- The DOS memory map, explainedWhy DOS stops at 640K, where the upper memory area, HMA, XMS and EMS live, the address map from 00000 to FFFFF, and how to read MEM /C on a real machine.
- IRQ, DMA and I/O address cheat sheet for ISA PCsStandard IRQ, DMA channel and I/O port assignments for 286, 386 and 486 PCs, common sound card, modem and network defaults, and how to untangle a hardware conflict.
More to explore
- Retro PC starter kit: the gear worth buying
- How to fix a dead vintage computer
- How to play old PC games today
- Buying a vintage computer: what to check before you pay
- How to run DOS games on Windows, Mac and Linux
- BIOS beep codes for vintage PCs
- Floppy disk sizes and capacities explained
- How to replace a dead CMOS battery in a vintage PC
- Yellowed retro plastic: what works and what to skip
- How to store vintage computers and games
- CONFIG.SYS and AUTOEXEC.BAT: free up conventional memory
- Serial and parallel port pinouts and null modem cables
- IDE hard drive size limits explained
- Hayes modem AT commands cheat sheet
- Sound Blaster IRQ, DMA and the BLASTER variable
- MS-DOS version history, from 1.0 to 8.0
- Intel PC processors, from 8088 to Pentium 4
- Game console release dates in Japan, North America and Europe
- How to make a DOS boot floppy disk
- Best soldering station for vintage computer repair
- Best multimeter for retro electronics and vintage computer repair
- Replace a dying hard drive in a retro PC
- Gotek vs USB floppy drive vs Greaseweazle
- The retro bench kit
- How to buy a vintage computer on eBay without getting burned
- RetroTINK vs OSSC vs Framemeister: which retro scaler to buy
- Best capacitor kits and tools for recapping retro computers
- How to clean and test retro game cartridges
- Best sound card and MIDI setup for DOS games
- Game Boy IPS screen and battery upgrades: what to buy
- The holiday gift guide for retro fans
- The retro computing glossary
- The Bookshelf: books on computer and game history