China flag

Shanghai, China

Megacity · Population 24.9M

Shanghai is the largest city in China with a population of approximately 24,874,500 people as of 2026. This makes it the 1st largest city in the world, accounting for 1.77% of China's total population of 1.41B. Shanghai is classified as a megacity and operates in the Asia/Shanghai timezone. The average annual temperature is 17.6°C with 1,588 mm of rainfall per year. The city sits at an elevation of 7 meters above sea level.

Population

24,874,500

Global Rank

#1

Country Rank

#1

% of China

1.77%

Avg Temperature

17.6°C

Annual Rainfall

1,588 mm

Elevation

7 m

Timezone

Asia/Shanghai

Shanghai on the Map

Loading map...

Climate in Shanghai

Shanghai's warmest month is Aug and the coldest is Jan. The wettest month is Jun with 363 mm of rainfall.

Average Monthly Temperature

5.1°C
Jan
6.4°C
Feb
11°C
Mar
16°C
Apr
19.7°C
May
23.6°C
Jun
29.6°C
Jul
30.7°C
Aug
27.2°C
Sep
19.8°C
Oct
14.7°C
Nov
7.2°C
Dec
5.1°C30.7°C

Monthly Rainfall

39 mm
Jan
138 mm
Feb
39 mm
Mar
151 mm
Apr
105 mm
May
363 mm
Jun
195 mm
Jul
61 mm
Aug
205 mm
Sep
147 mm
Oct
128 mm
Nov
17 mm
Dec

China at a Glance

Country Population

1,408,280,000

Capital

Beijing

Region

Eastern Asia

Major Cities

640

GDP per Capita

$13,303

Life Expectancy

78.0 years

Urban Population

65.9%

Growth Rate

0.00%

Nearest Major Cities

Closest cities to Shanghai with over 100,000 people

Cities closest to Shanghai by distance
CityPopulationDistance
Zhabei840,0004 km
Pengpu152,7257 km
Changzheng229,9259 km
Qibao283,35212 km
Songjiang130,21831 km
Taicang831,11343 km
Kunshan2,092,49651 km
Jiashan137,11266 km

Frequently Asked Questions

What is the population of Shanghai?

The population of Shanghai, China is approximately 24,874,500 people, making it the 1st largest city in the world and the 1st largest in China.

Is Shanghai the capital of China?

No, the capital of China is Beijing. Shanghai is the 1st largest city in the country.

What is the climate like in Shanghai?

Shanghai has an average annual temperature of 17.6°C and receives 1,588 mm of rainfall per year. The warmest month is Aug and the coldest is Jan.

What timezone is Shanghai in?

Shanghai is in the Asia/Shanghai timezone.