In 1947, Los Angeles International Airport was "LA." Just LA, borrowed from the National Weather Service's two-letter code for the city. Then the industry ran into a math problem that forced every airport code to grow a letter, and LA became LAX. If you have ever wondered why airport codes went from two letters to three, the answer starts here: two letters stopped being enough.
Two letters give you 676 combinations. Twenty-six times twenty-six. That was plenty in the 1930s, when a handful of airlines picked their own codes and most cities had a single airfield. By the late 1940s, air travel was exploding and the world had more airports than two-letter slots. Three letters give 17,576 combinations, room for every airport on the planet with space to spare. So the industry added a letter. For airports that already had two-letter codes, the easiest move was to append an X rather than invent a new one, and that is how LA became LAX, Phoenix became PHX, and Portland became PDX.
The two-letter era was informal. In the 1930s, pilots in the United States used the National Weather Service's city codes for location identification, and airlines chose their own two-letter codes on top of that. Nobody administered it. The three-letter era is administered. In the 1960s, the International Air Transport Association stepped in to document and standardize codes internationally, and IATA's Airline Coding Directory is now the official registry. A code has to be unique worldwide before it is assigned.
The two-letter to three-letter switch, and the X it left behind
The X was the path of least resistance. Renaming every existing code would have confused pilots, printers, and telex operators across the industry, so the old codes kept their first two letters and the gap was filled. Travelers assume the X stands for something technical. It stands for nothing. It is a leftover from a 1940s paperwork problem, a filler letter chosen because it was easier than starting over.
The same changeover explains a few other oddities. Birmingham, England, was "BH" and became BHX. Dubai was "DB" and became DXB. Any code that looks like two familiar letters with an X bolted on probably predates the switch. The newer the airport, the more likely its code was designed from scratch under the three-letter system, which is why modern codes tend to read more sensibly.
New airports today never see the two-letter era. IATA assigns each new code through a request process, and the registry has grown beyond airports: location identifiers now cover bus stations, rail stations, and ferry ports involved in intermodal airline travel, anywhere a ticket might need a code. The system that started with pilots borrowing weather station abbreviations now catalogs the whole transportation network.
One question I hear a lot: could codes ever grow to four letters? They already exist in a parallel system. ICAO codes, the ones pilots and air traffic control use, are four letters: KLAX, EGLL, OMDB. The three-letter IATA codes on your boarding pass are the commercial shorthand. Both systems run side by side, and neither is going anywhere, so the codes you see when you book are staying three letters.
You can look up any US code and the story behind it on the free US airport codes database, which covers IATA, ICAO, and FAA identifiers in one search.
Search the US airport code database
Frequently asked questions
When did airport codes switch from two letters to three?
The changeover happened in the late 1940s as air travel expanded beyond what 676 two-letter combinations could cover. IATA standardized the three-letter system internationally in the 1960s.
Why do so many airport codes end in X?
The X is a filler letter. When codes grew from two letters to three, airports with existing two-letter codes like LA, PH, and PD kept their letters and appended an X instead of inventing new codes.
Who assigns airport codes today?
IATA, the International Air Transport Association. Its Airline Coding Directory and Location Identifiers are the official industry registry for the three-letter codes used in booking and ticketing.
Do any two-letter airport codes still exist?
Not as IATA codes; those are all three letters now. The FAA uses three- or four-character alphanumeric identifiers for small US airports that lack ICAO codes, such as 65S for Bonners Ferry, Idaho.
Why is Newark EWR instead of something starting with N?
The US Navy reserved all codes beginning with N, so civilian airports cannot use them. Newark took EWR, and the same rule is why Nashville is BNA (from its old name, Berry Field) and New Orleans is MSY (from the Moisant Stock Yards site).
Sources: IATA airport code history (Wikipedia); Simple Flying; The Points Guy; Travel Tomorrow. Figures verified October 2026.