
Einar H. Dyvik
Research expert covering Nordics and global data for society, economy, and politics
With a population of over 20 million people, Mexico City is the second-largest metropolitan area in the American continent and one of the ten most populated in the world. Ciudad de Mexico (CDMX), formerly known as Distrito Federal (DF), is the capital of the United Mexican States, but due to the city’s history and importance, it is also the cultural and economical center of the country.
An eagle perched on a prickly pear cactus devouring a snake is not only the coat of arms of Mexico, but the foundational myth of its capital as well. This story dates back to when the Mexica people parted from Aztlan, home of the Aztecs, in search of such a symbol under the guidance of the god Huitzilopochtli. Thus, Mexico-Tenochtitlán was founded in 1325 CE on an islet over the Lake Texcoco, where the mythic eagle stood. After the fall of the Aztec Empire and the Spanish conquest, the city, rebuilt under colonial standards and renamed Ciudad de Mexico, became the capital of the Viceroyalty of New Spain. During the following centuries, and despite the frequent floods, the city’s population grew remarkably as it became, once again, a political, religious and economic hub.
After the Mexican War of Independence from Spain, the Federal Constitution of the United Mexican States of 1824 federalized Mexico City and maintained it as the nation’s capital. Distrito Federal (DF) was more or less spared by the Mexican–American War, the French Intervention, the Reform War, and the Mexican Revolution, attracting migrants from the war-torn countryside throughout decades. The 20th century was characterized by rapid development and modernization in the city, which also led to by-products such as pollution, violence, the expansion of shantytowns and overcrowding.
During the past years, Mexico City's economic output has hovered at a value of 3.6 trillion Mexican pesos, making it, by far, the federal entity with the largest contribution to the nation’s GDP. As with many other big metropolises, the city’s economy used to be more diversified during the second half of the 20th century, relying on a mix of industrial activity, services, and a large administrative apparatus. However, services kept growing while industries closed and, nowadays, the tertiary sector accounts for most of the capital’s GDP, and employs about 64 percent of the working population . CDMX's position as one of the most attractive financial center in Latin America and Caribbean is just more proof of how the service sector has come to spearhead the local economy.
Nevertheless, the preeminent economic, political, and cultural position of Mexico City has not prevented the metropolis from suffering the problems affecting the rest of the country, namely, inequality and violence. Even if it stood well below the national average, one fourth of the population in Mexico City still lived with at least one unmet need. Poverty, together with worrisome levels of population density, pushes hundreds of thousands of residents to live in slums. Simultaneously, and testament to the economic breach that separates the richest and poorest elements of the CDMX society, the average purchasing power in the city is amongst the highest in Latin America and the Caribbean. On the other hand, the rising levels of violence and crime registered across the country in recent years have not spared Mexico City. In 2023, it registered one of the highest crime rate in Mexico, with 32,497 crimes per 100,000 inhabitants, as well as 779 homicides. Violence in the North American nation is tightly tied to organized crime, and fortunately for citizens in CDMX, the capital is not the main focus of operations of the numerous cartels present in the country, such as Jalisco Nueva Generación or Sinaloa, nor has it been a major stage in the the Mexican war on drugs.
In summary, Mexico City is a faithful representation of the country, full of culture and history but constantly under the shadow of poverty, corruption, and organized crime. The capital still has a long way to go to achieve relative peacefulness and sustained growth, but remains as the economic, political, and cultural center of the country.

Detailed statistics
Mexico City: population 1990-2020

Detailed statistics
Population density in Mexico City 1990-2020

Detailed statistics
Gross domestic product of Mexico City 2003-2024

Largest cities in Latin America by population 2026
Most populated metropolitan areas in Latin America and the Caribbean in 2026 (in million inhabitants)

Latin America & Caribbean: cities with the highest purchasing power 2024
Cities with the highest local purchasing power in Latin America and the Caribbean in 2024 (based on index score)

Leading Latin America city destinations 2025, by traveler ratings
Best-rated cities in Latin America in 2025, based on traveler scores

Most polluted cities based on PM2.5 concentration in Latin America 2024
Average PM2.5 concentration in selected cities in Latin America in 2024 (in micrograms per cubic meter of air)

Apartment sales price per square meter in Latin America 2025, by city
Average square meter selling price of an apartment in selected Latin American cities in September 2025 (in U.S. dollars)

Mexico City: population 1990-2020
Total population in Mexico City between 1990 and 2020 (in 1,000 inhabitants)

Population density in Mexico City 1990-2020
Population density in Mexico City from 1990 to 2020 (inhabitants per square kilometer)

Male-female ratio expressed as men per 100 women in Mexico City 1910-2020
Male-female ratio expressed as men per 100 women in Mexico City from 1910 to 2020

Distribution of economically inactive population in Mexico City 2020, by category
Structure of non-working population in Mexico City in 2020

Mexico City: median age of population 1995-2020
Average age of population in Mexico City between 1995 and 2020

Mexico City: senior population in relation to children 1990-2020
Aging index in Mexico City between 1990 and 2020

States with the highest share of Afro-Mexicans 2020
Share of population who self-perceived as Afro-descendant in Mexico in 2020, by federal entity

Contribution of Mexican states to the national GDP 2024
Distribution of gross domestic product (GDP) of Mexico in 2024, by federal entity

Gross domestic product of Mexico City 2003-2024
Gross domestic product (GDP) of Mexico City from 2003 to 2024 (in billion Mexican pesos)

Distribution of working population in Mexico City 2024, by sector
Distribution of employed population in Mexico City in 2024, by economic sector

Wage income per capita in Mexico City Q1 2017-Q1 2024
Quarterly per capita wage income in Mexico City from 1st quarter 2017 to 1st quarter 2024 (in Mexican pesos)

Mexico: poverty rate 2022, by state
Share of population living in poverty in Mexico in 2022, by state

FDI in Mexico City 2016-2024
Foreign direct investment (FDI) in Mexico City from 2016 to the first quarter of 2024 (in billion U.S. dollars)

Mexico City: international airport's passenger traffic 2014-2021
Number of commercial passengers handled at Mexico City International Airport from 2014 to 2021 (in millions)

Number of hotels in Mexican states 2025
Number of hotel establishments in Mexico as of January 2025, by federal state

Foreign tourist arrivals to hotels in Mexico City 2010-2024
Number of international tourist arrivals to hotels in Mexico City from 2010 to July 2024 (in 1,000s)

Hotel guests' economic contribution in Mexico City 2010-2024
Economic contribution of tourist hotel accommodation in Mexico City from 2010 to July 2024 (in billion Mexican pesos)

Average monthly hotel prices in Mexico City 2021-2024
Average price of hotel rooms in Mexico City, Mexico from September 2021 to February 2024 (in U.S. dollars per night)

Perception of insecurity in Mexico City 2011-2025
Perception of insecurity in Mexico City from 2011 to 2025

Monthly number of reported crimes in Mexico City 2025
Monthly number of reported crimes committed in Mexico City from January 2023 to April 2025

Mexico: victimization rate 2024, by state
Victimization rate in Mexico in 2024, by state (per 100,000 inhabitants)

Mexico City: crime rate 2014-2024
Crime incidence in Mexico City from 2014 to 2024 (per 100,000 inhabitants)

Reported crimes in Mexico City 2024, by municipality
Number of reported crimes committed in Mexico City in 2024, by municipality

Crimes in Mexico City 2023, by region
Number of crimes committed in Mexico City in 2023, by area (in 1,000s)

Crimes committed in Mexico City 2023, by type
Number of crimes committed in Mexico City in 2023, by type of crime

Monthly intentional homicides in Mexico City 2024
Number of murders committed in Mexico City from January 2022 to December 2024

Femicides in Mexico City 2018-2024
Number of femicides in Mexico City from 2018 to 2024
Feel free to contact us anytime. We will respond to your inquiry as quickly as possible.