Mexico City or Shanghai: which is better?

World city: head-to-head comparison

Mexico City
1.0
points out of 1
Shanghai
1.0
points out of 1

Mexico City and Shanghai are even: 1.0 : 1.0 points out of 1.

  • Climate and risks: tie 1.0:1.0

All indicators weigh the same. The better value in a pair gets 1 point, the other gets its share of the better one (for "lower is better" indicators the better value is divided by the worse). This is a score based on data, not advice on where to live: different people have different circumstances.

Biggest differences

IndicatorMexico CityShanghaiMargin
Urban centre population growth, 2015–2025%-6.727.2+33.9
Distance to the seakm2481913×
Daylight on December 21hours11.010.1+8%
Daylight on June 21hours13.314.2+7%
Urban centre densitypeople per km²8,2669,808+19%
All 9 indicators ↓

Differences are picked by how far apart the two places rank among the 81 places in the set. This compares against the rest of the set; it is not a rating of how suitable a place is to live in.

Mexico City
Shanghai

Population

no winner
City population
neutral indicator: higher does not mean better
12,294,193 people
GeoNames snapshot (all-the-cities 3.1.0 package, 2022), exact date not stated
22,315,474 people
GeoNames snapshot (all-the-cities 3.1.0 package, 2022), exact date not stated
Urban centre population
neutral indicator: higher does not mean better
17,639,164 people
2025
30,678,616 people
2025
Urban centre area
neutral indicator: higher does not mean better
2,134 km²
2025
3,128 km²
2025
Urban centre density
neutral indicator: higher does not mean better
8,266 people per km²
2025
9,808 people per km²
2025
Urban centre population growth, 2015–2025
neutral indicator: higher does not mean better
-6.7 %
2015–2025
27.2 %
2015–2025

Climate and risks

Tie (1.0 : 1.0)
Daylight on December 21
neutral indicator: higher does not mean better
11.0 hours
December 21 and June 21 (does not depend on the year)
10.1 hours
December 21 and June 21 (does not depend on the year)
Daylight on June 21
neutral indicator: higher does not mean better
13.3 hours
December 21 and June 21 (does not depend on the year)
14.2 hours
December 21 and June 21 (does not depend on the year)
Distance to the sea
neutral indicator: higher does not mean better
248 km
2006-2025
19 km
2006-2025
Earthquakes M4.5+ within 100 km
tie
0.00 per year
2006-2025
0.00 per year
2006-2025

A winner is named only for indicators with a known “better / worse” direction. Population and other neutral indicators are shown without a winner. Outdated and missing values are not counted. Details for each place: Mexico City, Shanghai.

More comparisons