Skip to main content

Which State Is Mexico City Located In?

by
Last updated on 6 min read
Mexico City is not located in any state.

Quick Fact
Mexico City covers 1,494.3 km² (577.0 sq mi) and sits at 19.4326° N, 99.1332° W, perched at 2,240 m (7,350 ft) above sea level. By 2026, its metro area tops 22 million people—easily the biggest urban zone in North America.

Which state contains Mexico City?

Mexico City is a federal entity, not part of any state.

Here’s the thing: it’s its own thing. Mexico City is a federal entity, meaning it operates like a state but isn’t part of one. It’s on par with states such as Jalisco or Nuevo León, but it stands alone. (Honestly, this setup makes sense when you consider its size and political weight.)

Why isn’t Mexico City part of a state?

Mexico City is a federal entity with its own constitution and government.

After the 2016 constitutional reform, Mexico City became a federal entity with its own constitution and local government. That change recognized its massive population and economic influence. Before that, it was part of the State of Mexico, but the shift gave it more autonomy. (You’ll still hear locals call it “CDMX,” its official abbreviation.)

Geographic Context

Mexico City sits in the Basin of Mexico, a high-altitude valley surrounded by mountains.

Nestled in the Basin of Mexico, this high-altitude valley is part of the central Mexican Plateau. For centuries, it’s been a natural crossroads—first for the Aztecs, who founded Tenochtitlán in 1325, and later for the Spanish, who rebuilt the city as Mexico City in 1521. The surrounding ring of mountains, like the Sierra de las Cruces and Sierra Nevada, traps pollutants and creates a basin effect that worsens air quality. On top of that, the city sits in the Trans-Mexican Volcanic Belt, putting it at risk for earthquakes—several active volcanoes lie within 100 km.

Key Details

Metric Value
Official name Ciudad de México (Mexico City)
Country Mexico (federal entity)
Metropolitan population (2026) ~22.2 million
City proper population (2026) ~9.2 million
Altitude 2,240 m (7,350 ft)
Metropolitan area size 9,560 km² (3,691 sq mi)
Nearest ocean coastline Gulf of Mexico: ~350 km east
Pacific Ocean: ~450 km west

Interesting Background

Mexico City was built on an ancient lakebed that’s still sinking today.

The city’s story starts on Lake Texcoco, an ancient lake that once covered most of the valley. The Aztecs got creative with chinampas—floating gardens—that turned the lake into one of the most productive farming systems in the pre-Columbian world. After the Spanish arrived, they started draining the lake to stop flooding, and by the 17th and 18th centuries, the project really ramped up. Fast-forward to today: groundwater pumping has made parts of the city sink over 10 meters. In the city center, the ground still drops about 50 cm every decade, warping roads and cracking old buildings.

How did Mexico City become a federal entity?

The 2016 constitutional reform elevated Mexico City to federal entity status.

That 2016 change wasn’t just paperwork. Mexico City’s population had exploded, and its economy was booming, so giving it its own constitution and government made sense. Before, it was part of the State of Mexico, but the reform gave it more control over its budget, laws, and infrastructure. (Locals will tell you this shift also meant faster responses to issues like water shortages and transit problems.)

What’s the difference between Mexico City and CDMX?

CDMX is the official abbreviation for Mexico City, used in formal contexts.

Think of CDMX like NYC for New York City. It’s the same place, just a shorter, official way to write it. You’ll see CDMX on government documents, license plates, and tourism ads. (Honestly, it rolls off the tongue a little easier than “Mexico City” in casual conversation.)

Practical Information

Mexico City is served by Benito Juárez International Airport and has extensive public transit.

Getting in and out is easy. Benito Juárez International Airport (MEX) handled over 48 million passengers in 2025. Once you’re there, the Mexico City Metro is one of the busiest systems in the world, with 12 lines and 195 stations. Ride-hailing apps like Uber and Didi are everywhere. Air quality can be an issue—ozone levels often exceed WHO guidelines—so check the official air quality index before heading outside. The U.S. State Department lists Mexico City at Level 2 (“Exercise Increased Caution”) as of 2026, mainly due to petty theft and scams in certain areas.

Is Mexico City sinking?

Yes, parts of Mexico City are sinking due to groundwater extraction.

Absolutely. The city’s built on an old lakebed, and pumping out groundwater has caused some areas to sink over 10 meters. The subsidence isn’t slowing down—it’s still dropping about 50 cm per decade in the city center. That’s why you’ll see uneven sidewalks, cracked buildings, and even tilted structures in historic neighborhoods. (It’s a slow-motion problem that engineers are still trying to fix.)

What’s the nearest coastline to Mexico City?

The Gulf of Mexico is about 350 km east, and the Pacific Ocean is about 450 km west.

If you’re craving a beach day, you’ve got options. The Gulf of Mexico is roughly 350 km to the east, while the Pacific Ocean is about 450 km to the west. Neither is close enough for a quick trip, but both are doable for a weekend getaway. (Just don’t expect to pop over for a swim after lunch.)

How big is Mexico City’s metro area?

The metro area covers 9,560 km² and is home to about 22.2 million people.

It’s massive. The metro area stretches across 9,560 km² and packs in around 22.2 million residents as of 2026. That makes it the largest urban area in North America, bigger even than New York City’s metro region. (Honestly, the sheer scale of it can be overwhelming when you first see the skyline.)

What’s the population of Mexico City proper?

The city proper has about 9.2 million residents.

Within the official city limits, you’ll find roughly 9.2 million people. That’s a lot, but it’s just a fraction of the metro area’s total population. (The contrast between the dense downtown and the sprawling suburbs is pretty striking.)

What’s the altitude of Mexico City?

Mexico City sits at 2,240 meters (7,350 feet) above sea level.

High up, indeed. At 2,240 meters (7,350 feet), the city’s elevation gives it a crisp, dry climate most of the year. That altitude also means thinner air, so don’t be surprised if you feel a little winded walking uphill. (Locals will tell you it takes a day or two to adjust.)

What’s the official name of Mexico City?

The official name is Ciudad de México (Mexico City).

It’s not just “Mexico City” in formal contexts. The official name is Ciudad de México, often shortened to CDMX. The name reflects its status as a federal entity and its deep historical roots. (You’ll see it on everything from street signs to government websites.)

James Cartwright
Author

James Cartwright is a geography writer and former high school geography teacher who has spent 20 years making maps and distances interesting. He can name every capital city from memory and insists that geography is the most underrated subject in school.

How Old Is DTW Airport?What Are The 5 Islands In Jurassic Park?