How Do Airport Codes Work? Why O’Hare Is ORD and LAX Has an X

How do airport codes work? IATA assigns each airport a unique three-letter code. Here is why Chicago is ORD, LAX has an X and Canada starts with Y. Plus tips.

A baggage tag on a suitcase showing a three-letter airport code at an airport check-in area.

This post contains affiliate links. If you buy through them, Ease Advise may earn a small commission at no extra cost to you.

How do airport codes work? Each airport gets a unique three-letter code from the International Air Transport Association (IATA), the airline trade body. Some codes spell out the city name, like AMS for Amsterdam. Others are fossils of an old airport name, an old weather-station code or a code that was already taken, which is why Chicago O’Hare is ORD and Los Angeles is LAX. This guide explains the logic and the famous exceptions.

Who assigns airport codes?

The three-letter codes on your boarding pass and baggage tag are IATA codes. According to the reference summary of the system, IATA assigns them under its Resolution 763, and its Montreal headquarters administers the process. IATA describes its location database as covering about 12,000 locations, each with its own unique identifier. These include airports, metropolitan areas and intermodal locations, such as stations used in airline journeys.

Three letters give 17,576 possible combinations, so the supply is limited. Codes are unique, and once a code is used it is rarely reused or changed. That is why history gets frozen into them: an airport can be renamed or moved, but its code often stays.

IATA codes vs ICAO codes

There is a second system. The International Civil Aviation Organization (ICAO) issues four-letter codes. According to Afar’s explainer, passengers see the IATA code, while ICAO codes are mainly used by air traffic controllers and air navigation providers. The first letter or two point to the country or region. For example, U.S. airports start with K (Los Angeles is KLAX), Canadian ones start with C (Vancouver is CYVR) and Chinese ones with Z.

FeatureIATA codeICAO code
Length3 letters4 letters
Issued byIATA (airline trade body)ICAO (international aviation agency)
Mostly used forTickets, bag tags, timetables, booking sitesAir traffic control, flight planning
Example (Los Angeles)LAXKLAX
Example (Heathrow)LHREGLL

The United States also has its own FAA identifiers, which usually match the IATA code but not always. The reference summary gives Saipan as an example: GSN in FAA terms and SPN in IATA terms.

Why some codes look like nonsense

Most codes fall into a few patterns.

  • The city name. Many are simple: AMS (Amsterdam), DEL (Delhi), HKG (Hong Kong).
  • The airport’s current or former name. The code may follow an older name that has since changed.
  • An older weather-station code. The system grew out of two-letter weather-station identifiers from the 1930s, and some codes are those two letters plus a filler.
  • A workaround. If the obvious code was already taken, or a letter was off limits, the airport got something else.

Famous puzzling codes and the reason behind each

CodeAirportWhy
ORDChicago O’HareFrom the original name, Orchard Field (also called Orchard Place). The city council renamed it O’Hare in 1949, but the code stayed.
LAXLos AngelesOld two-letter code “LA” plus an added X. The X has no special meaning.
MCOOrlandoThe airport sits on the former McCoy Air Force Base.
YYZToronto PearsonToronto’s city code YTO was already used, so it took a code from a station in Malton, near the airport.
DXBDubaiDUB was already assigned to Dublin, so an X was used.
EWRNewarkCodes starting with N were reserved for the U.S. Navy, so Newark got an irregular code.
PEKBeijingKeeps the old English spelling “Peking.”
BOMMumbaiKeeps the old name Bombay.

Why Chicago is ORD

According to the Chicago Department of Aviation, as reported by Yahoo News, the airport was built on land called Orchard Place and was first known as Orchard Field. In 1949 the Chicago City Council renamed it for Lt. Cmdr. Edward “Butch” O’Hare, a World War II naval aviator. Commercial service began in 1955. The code kept the old name. Sources differ on exactly when Orchard Field was registered (Aviation Week says 1945), and none of the sources listed below explains why the code was never changed.

Why LAX has an X

Before three-letter codes, U.S. airports used two-letter identifiers, and “LA” was Los Angeles. When the system moved to three letters, an X was added as filler. Phoenix (PHX) is described the same way by Aviation Week. A popular idea is that the X stands for “international” or “airport,” but the aviation sources listed below say it has no meaning.

Why Canadian airports start with Y

Canadian airports had two-letter codes taken from nearby weather stations, radio transmitters or similar sites. When three letters were needed, Canada added a Y in front. One Mile at a Time calls the idea that Y marked an airport with a weather station the most popular theory, and notes the origin is debated. Wikipedia’s summary says Y meant the weather station shared its location with an airport. Not every Y code is Canadian: YUM is Yuma, Arizona. And not every Canadian code begins with Y. Some start with other letters.

How to use airport codes when booking

Codes matter most when you book, because the wrong one can send you to a different airport. Here are some practical steps.

  1. Check the code, not just the city. Many cities have more than one airport. Confirm the three letters on your ticket match the airport you plan to use.
  2. Use city codes to compare all airports. IATA also assigns codes to whole metro areas. LON covers London airports such as LHR, LGW and STN, and NYC covers JFK, LGA and EWR. Searching by city code shows flights to any of them. Beijing (BJS) works the same way.
  3. Look up unfamiliar codes before you pay. A code that looks like a city you know may be a different place. Toronto Pearson (YYZ) and Billy Bishop Toronto City Airport (YTZ) are two separate airports.
  4. Check your bag tag. The three letters printed on it are your final destination. If they are not what you expect, tell the agent. See what happens to your checked luggage after check-in.
  5. Compare fares across nearby airports. You can search flights on Skyscanner using a city name or code, or browse our cheap air tickets page.

Curious about the other numbers at an airport? Our guide to what runway numbers mean explains those.

FAQ

Who decides what an airport’s code is?

IATA assigns the three-letter codes, usually after a request from the airlines or authorities involved. ICAO separately issues the four-letter codes used in air traffic control.

Can an airport change its code?

It is uncommon. IATA’s database is updated daily for new assignments, withdrawals and changes, but in practice codes tend to stay even when names change, as O’Hare shows. Beijing’s PEK and Mumbai’s BOM still reflect older names.

Does the X in LAX mean anything?

No. According to Aviation Week and Afar, it was added as a filler letter to the older two-letter code LA when airports moved to three letters.

Bottom line

Airport codes are a mix of city names, old airport names, old weather-station codes and workarounds, fixed in place because IATA keeps each code unique and rarely changes them. ORD is Orchard Field, LAX is “LA” plus a filler X, and Canada’s Y comes from older two-letter codes. When booking, confirm the three letters and use city codes like LON and NYC to compare all airports. Information as of 29 November 2026.

Sources