Comparison
MX · Mexico

Mexico City

9,209,944 residents19.35°, -99.14°
CN · People's Republic of China

Shanghai

24,870,895 residents31.23°, 121.47°

Shanghai is about 3× the size of Mexico City by population; Mexico City is noticeably drier than Shanghai.

01 · Basics

At a glance

Population
9,209,944
24,870,895
Metro populationno data
Area (km²)
1,485
6,341
Density (per km²)no data
Elevation (m)
2,240
4
02 · Climate

Weather, month by month

Solid lines are monthly highs, dashed lines are lows (°C).
Mexico City high low Shanghai high low
Mexico City vs Shanghai monthly temperature-5°10°15°20°25°30°35°JFMAMJJASOND
Avg annual temp (°C)
17.7
17.2
Annual rainfall (mm)lower is better
1,068.5leads
1,419.1
Sunny days per yearno data
03 · Cost

Cost of living

Benchmarked against New York City at 100. Higher = more expensive.
Rent · 1BR, city centerlower is better
20,239.13
no data
Rent · 1BR, outside centerlower is better
13,352.94
no data
Rent · 3BR, city centerlower is better
46,523.81
no data
Groceries indexno data
Inexpensive meallower is better
200
no data
Midrange meal for twolower is better
1,000
no data
Transit · monthly passlower is better
360
no data
Utilities per monthlower is better
1,084.52
no data
06 · Vibes

What locals say

Synthesized from upvoted comments on each city's subreddit.
Mexico City

Mexico City feels huge, layered, and constantly in motion: a place where world-class food, historic landmarks, and dense neighborhoods coexist with traffic, scams, protests, and real arguments about who gets to live where. Daily life is shaped by the metro, Metrobus, walking through tree-lined streets, and a lot of neighborhood-level variation: Roma, Condesa, Juárez, Centro, and Coyoacán can feel very different from one another. Many residents and visitors praise how kind people are, how good the food is, and how walkable and beautiful the city can be, but they also talk a lot about gentrification, safety concerns, bedbugs, traffic, and road blockages. The city’s mood is energetic and often dramatic, with public life spilling into plazas, streets, concerts, protests, and all kinds of unexpected scenes.

Common complaints
  • Gentrification and rising rents7
  • Scams and petty crime4
  • Traffic and road disruptions4
  • Housing and short-term rental pressure3
  • Safety and cleanliness issues3
Common praises
  • Food10
  • People are kind and patient7
  • Walkability and transit4
  • Culture, history, and scenery6
  • Public life and spontaneity4

“If you come here, you will never eat tacos back in the states again. If you enjoy the occasional taco back home, DO NOT COME, stay safe in your blissful ignorance. It will never be the same again, you have been warned.”

r/???· 2903 votes

“One of the best food cities Ive been to.”

r/???· 1131 votes
Shanghai

Shanghai feels highly urban and convenient, but not always warm or easy for outsiders. Residents and visitors describe a city with cheap transit, strong food options, and impressive skyline districts, alongside real friction from language barriers, scammy dating scenes, smoky taxis, and a shrinking expat ecosystem. Day to day it can feel surprisingly calm in some places and times, with empty subways, uncrowded landmark areas, and very late-night mobility that makes the city feel usable around the clock. At the same time, people talk about a city that has changed fast: old neighborhoods, street life, and parts of the international social scene have thinned out, leaving a place that feels more polished, more local, and less carefree than before.

Common complaints
  • Scams and predatory social scenes5
  • Foreign-language friction4
  • Smoky or rough taxis / transport hassles4
  • Cooling expat and international business ecosystem3
  • Loss of old neighborhoods and street life3
Common praises
  • Extreme convenience and cheap transport6
  • Food variety and quality5
  • Visual drama and architecture5
  • Safety and walkability at odd hours4
  • City energy mixed with calm pockets4

“The subway ride is less than $1 and so as uber rides. Very strange considering sky high real estate prices and income level.”

r/Shanghai· 1548 votes

“Not as foreign tourist friendly. Cabs smell like smoke and drivers are angry. Literally had one yelling at me because my ride was priced cheaply. Be nicer to foreign visitors maybe?”

r/Shanghai· 1548 votes
07 · Culture

Food & nightlife

Mexico City
Food

Mexico City’s food scene is treated as a defining part of life, not a side attraction. Redditors repeatedly rave about tacos, street food, and the sheer range of things to eat, with several saying they won’t be able to enjoy tacos the same way after visiting. The city also seems to reward curiosity: people mention eating well in tourist areas, at neighborhood spots, and from street vendors, and even complaints about a single restaurant are framed against a backdrop of generally outstanding food. For many visitors, meals are one of the main reasons the city feels unforgettable.

Nightlife

Nightlife in Mexico City comes across as broad and public-facing rather than limited to a single club scene. Comments point to plazas, concerts, queer events, and casual nights out where major pop culture moments can spill into the street and draw huge crowds. The vibe seems less about one polished nightlife district and more about neighborhood bars, late dinners, music, and the possibility of stumbling into something large and festive by accident. There’s also an undercurrent of caution in nightlife-related stories, especially in tourist zones where scams or opportunistic crime can be part of the background.

Shanghai
Food

The food scene comes across as broad, convenient, and very good if you know where to look. Posts mention cheap everyday meals, late-night snacks, and easy access to delivery, while others rave about more polished dining experiences near the Bund and in central districts. At the same time, Shanghai is not portrayed as a place where language barriers disappear: reading menus can be a problem, and some of the most satisfying food appears to come from local spots that are not especially tourist-friendly. Overall it sounds like a city where food is both a daily utility and a serious pleasure, ranging from humble street-adjacent eats to high-end, theatrical restaurant experiences.

Nightlife

Nightlife sounds lively but somewhat changed from its peak years. Long-time residents describe a club scene that used to run very late and feel exciting, even with periodic raids and tension, while newer posts are thinner on a big, open party culture and more focused on bars, meetups, and occasional live music. The city still has a reputation for being able to go out late, but the tone is less carefree and more cautious, with scams and overcharging showing up in the social scene. In practice, nightlife seems strongest in central areas and among people already plugged into local networks.

08 · Reality check

Weather vs. what locals say

Mexico City
By the numbers

How locals feel

The weather is often described as excellent or even perfect, especially by visitors escaping colder climates. But the praise is less about official temperature readings and more about how it feels day to day: comfortable enough for walking, photography, and being outside, with a lot of comments calling it pleasant or rainy in a manageable way. Locals and frequent visitors seem to take the mildness for granted, while outsiders sound almost euphoric about the climate. When weather gets mentioned negatively, it is usually tied to rain rather than heat or cold extremes.

Shanghai
By the numbers

How locals feel

People describe Shanghai’s weather as more oppressive than romantic: hot, humid summers, rain that can be nonstop, and frequent comments about how the conditions affect walking around and crowd levels. There is also appreciation for the city’s atmosphere after rain or at sunrise, when the light and emptier streets can make it feel beautiful. In other words, the weather is not praised as pleasant in a neutral, year-round sense, but it is often treated as something that sharpens the city’s moods and photography-friendly moments. The stats may say it is a major coastal metropolis, but locals and visitors seem to remember the humidity, storms, and seasonal discomfort first.

09 · Summary

In short

  • Shanghai is about 3× the size of Mexico City by population.
  • Mexico City is noticeably drier than Shanghai.
Compare another pair
Plan a trip

Book your visit

Partner links — CityDiff may earn a commission at no extra cost to you.

More

Related comparisons

Profiles

Full city profiles