Mexico City is not located in any state; it is a federal entity.
Which state contains Mexico City?
Mexico City isn't contained within any state.
It’s a federal entity, running independently like a state but with its own special status. Think of it like Washington, D.C.—a capital district that isn’t part of any state. This autonomy lets Mexico City handle its own affairs with an elected government and constitution.
Why isn’t Mexico City part of a state?
Mexico City became a federal entity in 2016 to gain more autonomy and flexibility in governance.
For ages, Mexico City was tied to the State of Mexico as the federal seat. The 2016 reform recognized its massive population—now over 9 million in the city and 22 million in the metro area—and gave it federal status. That meant control over its budget, laws, and infrastructure, similar to states like Jalisco or Nuevo León. The change also made coordination between city and federal agencies smoother.
Geographic Context
Mexico City sits in the Basin of Mexico, a high-altitude valley surrounded by mountains.
The Basin of Mexico is a natural depression in the Trans-Mexican Volcanic Belt, bordered by ranges like the Sierra de las Cruces and Sierra Nevada. This geography traps air pollutants, making the air quality worse. At 2,240 meters (7,350 feet) above sea level, the city has a mild but dry climate. The surrounding mountains, including active volcanoes like Popocatépetl, bring risks of earthquakes and volcanic activity—something the city watches closely.
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 and is still sinking due to groundwater extraction.
The city’s roots go back to Lake Texcoco, where the Aztecs built Tenochtitlán on an island using chinampas, or floating gardens. After the Spanish arrived, they drained the lake to stop flooding—a process that kept going for centuries. Now, pumping groundwater for 22 million residents has caused parts of the city to sink over 10 meters. The ground drops about 50 cm per decade, warping roads, cracking buildings, and making infrastructure a nightmare to maintain. Engineers are testing water recharge systems, but the problem’s baked into the city’s geology.
How did Mexico City become a federal entity?
The 2016 constitutional reform gave Mexico City federal entity status.
Before 2016, Mexico City was part of the State of Mexico, which created messy governance and resource issues. The reform recognized its outsized role in Mexico’s economy—it contributes nearly 17% of the country’s GDP—and its complex challenges like traffic, water shortages, and pollution. The change gave Mexico City its own constitution, a locally elected Congress, and more control over taxes and spending. Critics say the shift hasn’t fixed everything, but supporters point to faster decisions in transit and housing.
What’s the difference between Mexico City and CDMX?
CDMX is the official abbreviation for Mexico City, used in formal and legal contexts.
CDMX is like a brand’s acronym—same city, but the abbreviation signals formality. You’ll see it on license plates, government sites, and official docs, just like “NYC” for New York City. The shift to CDMX started in the 2010s as part of a rebranding push to highlight the city’s unique identity. Locals use both terms interchangeably, though CDMX is snappier in Spanish. The abbreviation also fits better on maps and signs.
Practical Information
Mexico City is served by Benito Juárez International Airport and has one of the world’s busiest metro systems.
Benito Juárez International Airport (MEX) is the main hub, handling over 48 million passengers in 2025. The metro system—12 lines and 195 stations—is the busiest in the Americas and one of the cheapest globally. Ride-hailing apps like Uber and Didi are everywhere, but taxis in the city center run on fixed rates. The U.S. State Department warns about petty theft and scams in crowded spots like the historic center and public transit. Air quality’s another issue—ozone levels often break WHO limits, so check the official air quality index before heading out.
Is Mexico City sinking?
Yes, parts of Mexico City are sinking at about 50 cm per decade because of groundwater extraction.
The worst subsidence is in the city center, where historic buildings and infrastructure take the biggest hit. The problem started in colonial times when the Spanish drained Lake Texcoco, but it exploded in the 20th century with rapid urban growth. Groundwater pumping for the water supply remains the main culprit. The city’s tried importing water from afar and testing aquifer recharge projects, but the issue’s so massive it’ll take decades to fix. In some spots, buildings tilt so badly they’ve earned nicknames like the “Leaning Tower of Mexico City.”
What’s the nearest coastline to Mexico City?
The nearest coastline is the Gulf of Mexico, about 350 km east of Mexico City.
The Gulf of Mexico is closer than the Pacific Ocean, which sits about 450 km to the west. This distance shapes the city’s climate—drier and more stable than coastal areas, though pollution can drift in from the east. The nearest big ports are Veracruz (~400 km east) and Acapulco (~450 km southwest). Driving to the coast usually takes 5-7 hours, depending on traffic. The Gulf’s proximity also means occasional humidity spikes during rainy season.
How big is Mexico City’s metro area?
Mexico City’s metro area covers 9,560 km² and includes 60 municipalities across the State of Mexico and one in Hidalgo.
The metro area is one of the world’s largest, comparable to Greater London or the San Francisco Bay Area. It stretches way beyond the city’s official borders, swallowing up suburbs and satellite cities like Naucalpan and Ecatepec. With 22.2 million people, it’s North America’s most populous urban zone. This size creates headaches for governance and infrastructure, since services like water and transit have to juggle multiple jurisdictions. Growth has slowed lately, but urban sprawl keeps pushing the metro area outward.
What’s the population of Mexico City proper?
Mexico City’s city proper population is roughly 9.2 million as of 2026.
The population’s grown steadily since the 2010 census (8.8 million), but density varies wildly. Dense neighborhoods like Iztapalapa and Gustavo A. Madero sit next to leafy areas like Coyoacán and Polanco. Growth has slowed compared to past decades, thanks to lower birth rates and shifting migration patterns. The city’s also younger than Mexico’s average, with a median age around 29. That youthful vibe drives demand for education, housing, and jobs—especially in the informal sector.
What’s the altitude of Mexico City?
Mexico City sits at 2,240 meters (7,350 feet) above sea level.
This high altitude gives the city its mild, spring-like climate year-round, though nights can get chilly in winter. The thin air affects visitors—many get mild altitude sickness at first, with fatigue or headaches. Locals joke about the “Mexico City air,” which is drier and thinner than at sea level. The elevation comes from its spot in the Basin of Mexico, a high valley ringed by mountains. It’s also why volcanoes like Popocatépetl dominate the skyline to the southeast.
What’s the official name of Mexico City?
The official name is Ciudad de México, often shortened to CDMX.
In English, it’s Mexico City, but the Spanish name—Ciudad de México—reflects its capital status. The CDMX abbreviation came in the 2010s as part of a rebranding to highlight the city’s unique role in Mexico. It’s now used in official docs, tourism ads, and license plates. The name even appears in the city’s 2017 constitution. Most people use both names interchangeably, though CDMX feels more formal.
Edited and fact-checked by the FixAnswer editorial team.