Climate and average weather in Shanghai

In Shanghai, the summers are oppressive, hot, showery, and partly cloudy and the winters are cool and partly cloudy.

Best: mid September to mid November

Over the course of the year, the temperature in Shanghai typically varies from 3°C to 31°C, and is rarely below -2°C or above 36°C. July is the hottest month of the year, while January is the coldest.

Based on the travel score, the best times of year to visit Shanghai for warm-weather activities are from late April to early June and mid September to mid November.

Hottest
Jul
31°
Coldest
Jan
Wettest
Jun
270 mm
Driest
Dec
45 mm
Rain / yr
1300 mm
123 wet days
Daylight
10.0–14.0 h
shortest–longest
Elevation
12 m
31.2°N
Clearest
Dec
52% cloud

Shanghai is provincial-level municipality in China.

Air quality
Very high
PM2.5 37.7 µg/m³ · 2018
Density
3,923/km²
people per km²
Founded
1292

Air quality: WHO Ambient Air Quality Database. Density & description: Wikidata (CC0), GeoNames.

Shanghai weather by month, at a glance

The whole year in one picture — sky, rain, humidity, temperature and travel score. Click any band to jump to its full chart.

Each stripe is one measure across the whole year, stacked so a single day reads top to bottom. The sky band runs overcast grey on top down to clear blue at the base — more blue means sunnier — followed by the rainfall curve, the humidity band, a temperature strip that tints each stretch of the year by how warm its average high is, and the travel-score line at the foot. Scan straight down any date to read that day across every measure at once; the score climbs highest around mid September to mid November.

Temperature through the year

Average highAverage lowShaded bands: 10–90% of days

Daily average highs and lows in Shanghai, from 1991–2020 of climate data. The shaded bands show the range most days fall in — 10th to 90th percentile.

The hot season lasts 3.5 months, from June 9 to September 21, with daily high temperatures above 26°C. The hottest month of the year in Shanghai is July, with an average high of 31°C and low of 26°C.

The cool season lasts 3.1 months, from December 5 to March 8, with daily high temperatures below 13°C. The coldest month of the year in Shanghai is January, with an average low of 3°C and high of 8°C.

Days typically run about 6°C warmer than nights year-round.

10°20°30°40°JanFebMarAprMayJunJulAugSepOctNovDec
Avg high (°C)Avg low (°C)
Jan83
Feb104
Mar147
Apr1912
May2417
Jun2722
Jul3126
Aug3126
Sep2722
Oct2317
Nov1711
Dec115

How hot and cold Shanghai really feels

Feels-like highFeels-like lowactual air temp

The felt-temperature range through the year — heat index on the day's high (summer humidity), wind chill on the night's low (winter wind). The dashed lines are the plain thermometer; the gap is how much hotter or colder it really feels.

On the hottest afternoons, once humidity is folded in, Shanghai feels like about 41°C (around July 27). About 71 days a year carry some heat stress, and 26 of them tip into dangerous heat (feels-like above 39°C), peaking in July.

On the coldest nights, wind chill pulls the feels-like down to about -1°C (around January 24), with roughly 40 freezing days a year (feels-like at or below 0°C), worst in January.

10°20°30°40°JanFebMarAprMayJunJulAugSepOctNovDecdangerous heat
Feels-like high (°C)Air high (°C)Feels-like low (°C)Air low (°C)
Jan88-13
Feb101014
Mar141457
Apr19191212
May24241717
Jun29272222
Jul38312626
Aug38312626
Sep29272222
Oct23231717
Nov17171011
Dec111125

Average hourly temperature in Shanghai

A compact picture of the whole year, hour by hour: each column is a day, each row an hour, and the color is the modeled average temperature. Darker overlays mark night, lighter ones the civil-twilight hours around sunrise and sunset.

Read left to right for the day of the year and top to bottom for the hour of the day; the color is the modeled temperature, cool blues through to hot reds on the same scale as the other charts. A vertical slice is a single day's swing — coolest just before dawn, warmest in the mid-afternoon — while a horizontal slice follows one hour across the seasons. The darker overlay marks night and the lighter one the twilight around sunrise and sunset. Colors run warmest on July afternoons, near 31°C, and coldest before dawn in January, near C.

JanFebMarAprMayJunJulAugSepOctNovDec12 AM2 AM4 AM6 AM8 AM10 AM12 PM2 PM4 PM6 PM8 PM10 PM12 AM

Shanghai weather by month

Every month at a glance. Click a month for its detailed page.

MonthHigh / Low (°C)Rainfall (mm)Wet daysSnow daysDaylight (hours)Travel score
Jan / 638.40.510.21.5
Feb10° / 628.70.510.92.2
Mar14° / 9611.30.111.83.8
Apr19° / 12°10410.2012.75.9
May24° / 17°12710013.66.7
Jun27° / 22°27014.50145.4
Jul31° / 26°15713.9013.83.8
Aug31° / 26°15414.8013.13.9
Sep27° / 22°10610.9012.26.1
Oct23° / 17°616011.27.4
Nov17° / 11°567.4010.45.8
Dec11° / 456.70.3103.0

Chance of rain

How likely it is to rain on a typical day, and how that shifts across the wetter and drier seasons.

Shanghai gets about 1300 mm of precipitation a year. On a typical day the chance of rain is often wet, but that rises and falls sharply with the seasons.

The wetter season lasts 3.6 months, from around Jun 3 to Sep 21, peaking in June at about 59% chance on a given day. The drier stretch runs the rest of the year, bottoming out around Oct 20.

June is the wettest month by volume, with 270 mm over about 15 wet days; December is the driest, with 45 mm.

0%10%20%30%40%50%60%70%JanFebMarAprMayJunJulAugSepOctNovDecdrierwetterdriermostly drysome rainoften wetvery wetJun 29 · 59%Oct 20 · 17%
Rain on a day (%)Rain days
Jan278
Feb319
Mar3611
Apr3510
May3210
Jun4715
Jul4614
Aug4615
Sep3711
Oct206
Nov247
Dec227

Monthly rainfall

Over a full year, Shanghai collects about 1300 mm of rain across 123 wet days — roughly 108 mm in an average month.

It doesn’t fall evenly. June is the wettest month with 270 mm, while December is the driest at just 45 mm. The three wettest months alone bring about 45% of the year’s total, and some of the cold-season precipitation falls as snow.

050100150200250300JanFebMarAprMayJunJulAugSepOctNovDec636296104127270157154106615645
Rainfall (mm)Rain daysSnow days
Jan6381
Feb6291
Mar96110
Apr104100
May127100
Jun270150
Jul157140
Aug154150
Sep106110
Oct6160
Nov5670
Dec4570

Clouds and sunshine

ClearMostly clearPartly cloudyMostly cloudyOvercast

How often the daytime sky is clear, partly cloudy or overcast.

In Shanghai, the average share of the sky covered by clouds shows significant seasonal variation over the course of the year.

The clearer part of the year begins around July 22 and lasts for 5.6 months, ending around January 8. The clearest month is October, when the sky is clear, mostly clear, or partly cloudy 56% of the time on average.

The cloudier part of the year begins around February 14 and lasts for 5.2 months, ending around July 21. The cloudiest month is June, when it is overcast or mostly cloudy 78% of the time.

0%100%10%90%20%80%30%70%40%60%50%50%60%40%70%30%80%20%90%10%100%0%JanFebMarAprMayJunJulAugSepOctNovDecOct 25 · 58%Jun 26 · 15%clearmostly clearpartly cloudymostly cloudyovercastcloudierclearer
Clearer (%)Cloudier (%)
Jan4258
Feb4159
Mar3664
Apr3763
May3862
Jun2278
Jul3466
Aug4753
Sep4852
Oct5644
Nov5347
Dec5248

Daylight, sunrise and sunset

DaylightNight

Hours of daylight through the year, with sunrise and sunset times.

The gold band is daylight — sunrise runs along its lower edge, sunset along the upper — so it widens toward summer and pinches toward winter, with night the dark area above and below. The longest day, around June 8, brings about 14 hours of light; the shortest, around January 1, only 10 hours — a swing of roughly 4 hours.

12 AM4 AM8 AM12 PM4 PM8 PM12 AMJanFebMarAprMayJunJulAugSepOctNovDec
Daylight (h)Sunrise (AM)Sunset (PM)
Jan10.26:585:09
Feb10.96:435:35
Mar11.86:115:57
Apr12.75:326:17
May13.65:036:38
Jun14.04:546:55
Jul13.85:046:55
Aug13.15:246:33
Sep12.25:435:54
Oct11.26:025:16
Nov10.46:284:51
Dec10.06:514:50

Sunny days

How many genuinely sunny days each month brings — days the sky stays clear or mostly clear — banded into plain-language zones.

Shanghai averages about 9 sunny days a month — counting the days the sky stays clear or mostly clear — with a clear seasonal swing between 2 and 13 days.

The sunnier stretch runs 3.9 months, from around Sep 18 to Jan 15. The sunniest month is November, with roughly 12 sunny days (mixed).

The greyest month is June, down near 4 sunny days — about 67% fewer than the November peak.

05101520JanFebMarAprMayJunJulAugSepOctNovDecgreyersunniergloomymixedbrightNov 113 daysJun 272 days
Sunny daysSky
Jan10Mixed
Feb9Mixed
Mar8Gloomy
Apr8Mixed
May8Gloomy
Jun4Gloomy
Jul7Gloomy
Aug10Mixed
Sep9Mixed
Oct13Mixed
Nov12Mixed
Dec12Mixed

Humidity comfort

DryComfortableHumidMuggyOppressiveMiserable

Share of days at each humidity comfort level, based on the dew point — the measure that tracks how muggy it actually feels.

Humidity comfort is graded by the dew point — the temperature at which the air would be fully saturated — because it tracks how muggy it actually feels far better than relative humidity does. A low dew point feels dry and crisp; a high one feels sticky and oppressive no matter the reading on a humidity gauge.

In Shanghai, how humid it feels changes dramatically over the year.

The more humid part of the year lasts 5.2 months, from around May 9 to October 13. The muggiest month is June, when the air feels humid, muggy or worse about 96% of the time.

The most comfortable stretch runs from around October 14 to May 8, and January is the most comfortable month — the air is dry or comfortable 100% of the time.

0%10%20%30%40%50%60%70%80%90%100%JanFebMarAprMayJunJulAugSepOctNovDecJan 6 · 100%Jun 23 · 0%miserableoppressivedrymuggycomfortablehumidcomfortablehumidcomfortable
Dry (%)Comfortable (%)Humid (%)Muggy (%)Oppressive (%)Miserable (%)
Jan10000000
Feb10000000
Mar9641000
Apr681811200
May2025292150
Jun0315382816
Jul00051975
Aug00162271
Sep2718302617
Oct3030221531
Nov75157300
Dec9820000

Wind

Average wind speed through the year, banded into plain-language speed zones so a number reads as 'breezy' or 'calm' without knowing the scale.

This is the average sustained wind speed at the standard 10 metres above open ground — the steady flow a weather station reports, not the sharper gusts that come and go, which can run half again as fast. It's the number that says whether a place is generally breezy or calm.

Wind in Shanghai is steady company: average speeds sit near 13 km/hlight breeze — in every month of the year, with no meaningful windy or calm season.

05101520JanFebMarAprMayJunJulAugSepOctNovDeccalmlight breezeAug 4 · 14 km/hOct 28 · 12 km/h
Wind speed (km/h)Feels
Jan13light breeze
Feb13light breeze
Mar14light breeze
Apr14light breeze
May14light breeze
Jun12light breeze
Jul13light breeze
Aug14light breeze
Sep13light breeze
Oct12light breeze
Nov12light breeze
Dec13light breeze

Hazard calendar for Shanghai

In seasonPeak

When the seasonal hazards worth planning around — the rainy season, tropical-cyclone risk and dust haze — are active through the year.

Shanghai sits in the Pacific typhoon belt; the season peaks July–October.

Shanghai's rainy season runs May–August, when most of the year's rain falls.

Pacific typhoon
Rainy season
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec

Best time to visit Shanghai

TravelBeach/poolTemperatureCloudsPrecipitation

To characterize how pleasant the weather is in Shanghai throughout the year, we compute two travel scores — one for general sightseeing, one for beach and pool weather.

Around early November, Shanghai is still near the tail of its best-weather window — great conditions with the peak-season crowds already thinning.

Inferred from the travel-score curve; month-by-month visitor numbers are a planned addition.

The travel score favors clear, rainless days with daytime highs between 18°C and 28°C. Based on this score, the best times of year to visit Shanghai for general outdoor tourist activities run from late April to early June and again from mid September to mid November, with a peak score in the second week of October.

0246810JanFebMarAprMayJunJulAugSepOctNovDecbest timebest timetravel scoretemperaturecloudsprecipitationOct 14 · 7.6

The travel score (filled area), and its constituents: the temperature score (red line), the cloud cover score (blue line), and the precipitation score (green line).

Travel score (0–10)Rating
Jan1.5poor
Feb2.2poor
Mar3.8fair
Apr5.9good
May6.7good
Jun5.4fair
Jul3.8fair
Aug4.0fair
Sep6.0good
Oct7.4good
Nov5.8good
Dec3.0poor

The beach/pool score favors clear, rainless days with daytime highs between 24°C and 34°C. Based on this score, the best time of year to visit Shanghai for hot-weather activities is from early May to late October, with a peak score in the second week of September.

024681012JanFebMarAprMayJunJulAugSepOctNovDecbest timebeach/pool scoretemperaturecloudsprecipitationSep 9 · 6.4

The beach/pool score (filled area), and its constituents: the temperature score (red line), the cloud cover score (blue line), and the precipitation score (green line).

What to pack for Shanghai, by month

EssentialRecommendedOptional

Month by month, what's worth putting in the bag — from the temperature range, rain chance, sun and wind. Tap a month for a quick packing note.

For a warm-season trip around July (highs near 31°C), the essentials are light clothes, rain gear and sun protection. In the cold season around January (highs near 8°C), pack a warm layer and rain gear.

Light clothing
Warm layer
Winter coat
Rain gear
Sun protection
Windbreaker

In July, Shanghai sees daytime highs around 31°C and nights near 26°C. Pack light clothes and rain gear. Worth having: sun protection. About 14 days see rain.

Sea temperature near Shanghai

Average ocean temperature at the nearest coast, month by month, banded into swim-comfort zones — the other half of the beach question.

The sea at the nearest coast (about 23 km away) is warmest in August at about 28°C and coldest in February near 7°C.

It's comfortable for a long swim from May 27 to Oct 25 — about 5 months when the water holds above 20°C.

10°20°30°JanFebMarAprMayJunJulAugSepOctNovDecbracingcoolrefreshingwarmtropicalcomfortable to swim
Sea temperature (°C)Comfort
Jan8Bracing
Feb7Bracing
Mar10Bracing
Apr14Bracing
May19Cool
Jun22Refreshing
Jul26Warm
Aug28Warm
Sep26Warm
Oct21Refreshing
Nov17Cool
Dec12Bracing

UV index (midday) in Shanghai by month

LowModerateHighVery highExtreme

Clear-sky midday UV index through the year, shaded by the WHO exposure levels — how much sun protection each month calls for.

Under clear skies, the midday UV index in Shanghai peaks around August 16 at about 10 (very high) — sunscreen, a hat and midday shade are essential. It bottoms out near December 19 at about 3 (moderate).

The index reaches 3 or more — the level where the WHO recommends sun protection — in 11 months of the year.

025710JanFebMarAprMayJunJulAugSepOctNovDecModerateHighVery highModerateAug 16UV 10Dec 19UV 3
UV index (midday)Level
Jan3Moderate
Feb4Moderate
Mar6High
Apr7High
May7Very high
Jun9Very high
Jul10Very high
Aug10Very high
Sep10Very high
Oct5Moderate
Nov4Moderate
Dec3Moderate

Average hourly UV index in Shanghai

LowModerateHighVery highExtreme

Modeled clear-sky UV for every hour of every day — when in the day sun protection actually matters.

The whole year hour by hour: each column is a day, each row an hour, and the color is the modeled clear-sky UV index — the midday peak scaled down as the sun sits lower in the sky. Darker overlays mark night, lighter ones the civil-twilight hours around sunrise and sunset.

UV falls off far faster than brightness as the sun drops, so even in August the burn window is concentrated in the middle of the day: about 8 hours a day reach index 3 (protection recommended), and 5.5 hours reach 6 or more. Mornings and late afternoons stay comparatively gentle year round.

JanFebMarAprMayJunJulAugSepOctNovDec12 AM2 AM4 AM6 AM8 AM10 AM12 PM2 PM4 PM6 PM8 PM10 PM12 AM
UV ≥ 3 (h/day)UV ≥ 6 (h/day)
Jan2.50
Feb40
Mar61
Apr6.53
May73.5
Jun85
Jul8.55.5
Aug85.5
Sep7.55
Oct50
Nov3.50
Dec00

Air quality in Shanghai by month

GoodModeratePoorUnhealthyVery unhealthy

Average fine-particle pollution (PM2.5) through the year — so you can see which months the air is worst, not just the yearly average.

Air quality in Shanghai is worst in December — around 53 µg/m³ PM2.5 (poor), about 2.2× the cleanest month (August, 25 µg/m³).

Seasonal pattern from CAMS reanalysis, scaled to Shanghai's WHO annual average of 37.7 µg/m³.

0204060JanFebMarAprMayJunJulAugSepOctNovDecPoorModeratePoorDec 2153 µg/m³Aug 1625 µg/m³
PM2.5 (µg/m³)Level
Jan51Poor
Feb45Poor
Mar44Poor
Apr40Poor
May34Moderate
Jun29Moderate
Jul27Moderate
Aug25Moderate
Sep28Moderate
Oct32Moderate
Nov43Poor
Dec53Poor
Almanac & agriculture

Growing season

Chance of a frost-free dayReliably frost-free (≥90%)

Shanghai is mild enough that a frost-free day stays more likely than not even in midwinter. Nights are reliably above freezing from about February 16 to December 15 (303 days); outside that window a hard frost is an occasional risk.

0%25%50%75%100%JanFebMarAprMayJunJulAugSepOctNovDecreliably frost-freeFeb 1690%Dec 1590%
Frost-free chance (%)Frost nights
Jan7831
Feb8916
Mar990
Apr1000
May1000
Jun1000
Jul1000
Aug1000
Sep1000
Oct1000
Nov1000
Dec8917

Growing degree days

Degree days (base 10°C)Frost-free shaded

Growing degree days tally heat above 10°C: each day adds however many degrees its average temperature runs over that threshold, and cold days add nothing. Shanghai banks about 2,994 degree days a year, and the running total — which growers use to time plantings and predict maturity — climbs fastest around August.

01,0002,0003,000JanFebMarAprMayJunJulAugSepOctNovDec
Growing degree days (°C·days)
Jan0
Feb0
Mar27
Apr172
May335
Jun435
Jul577
Aug577
Sep444
Oct304
Nov123
Dec1

Solar energy

Average daily shortwave solar energy reaching the ground, banded into brightness zones so the number means something at a glance.

Solar energy is how much sunlight actually reaches the ground each day, measured in kilowatt-hours per square metre (kWh/m²) — the combined effect of how long the sun is up, how high it climbs, and how much cloud gets in the way. It's the raw fuel a solar panel has to work with: for scale, 1 kWh/m² a day is dim and wintry, while 7+ is desert-bright.

Shanghai receives about 4.0 kWh/m² a day of solar energy on average — moderate — with a clear seasonal swing between 2.5 and 5.7 kWh/m².

The brighter stretch of the year lasts 6.2 months, from around Mar 17 to Sep 21. The brightest month is July, averaging about 5.2 kWh/m² (bright).

The dimmest month is January, down near 2.6 kWh/m² — roughly 50% less than the July peak.

01234567JanFebMarAprMayJunJulAugSepOctNovDecdimmerbrighterdimmerdimmoderatebrightintenseJul 275.7 kWhJan 62.5 kWh
Solar energy (kWh/m²)Level
Jan2.6Moderate
Feb3.2Moderate
Mar4.0Moderate
Apr5.0Bright
May5.2Bright
Jun4.5Bright
Jul5.3Bright
Aug5.0Bright
Sep4.2Bright
Oct3.6Moderate
Nov2.7Moderate
Dec2.5Moderate

Where is Shanghai?

Shanghai sits at 31.2°N, 121.5°E, 12 m above sea level, in China. The nearest listed city is Suzhou, 83 km away.

TunxiGaigeturi

What Shanghai looks like

Topography around Shanghai

How much the land rises and falls, and what covers it, within 3, 16 and 80 km of Shanghai.

Within 3 km, the terrain around Shanghai has only modest variations in elevation — a maximum elevation change of 30 m around an average of 6 m above sea level; within 16 km, only modest variations in elevation — a maximum elevation change of 55 m; within 80 km, only modest variations in elevation — a maximum elevation change of 158 m.

The land around Shanghai is covered by artificial surfaces (86%) within 3 km, artificial surfaces (73%) within 16 km, and water (39%), cropland (29%) and artificial surfaces (22%) within 80 km.

3 km
30 m
16 km
55 m
80 km
158 m
treesgrasslandcroplandartificial surfacesbare terrainwaterwetland
Nearby: Suzhou 83 km · Wuxi 118 km · Ningbo 150 km · Hangzhou 161 km · Pingyao 169 km · Nanjing 270 km · Tunxi 345 km · Gaigeturi 520 km

China travel facts

Travel advisory
Level 2
Exercise Increased Caution
Power plugs
Type A / I
220 V · 50 Hz
Prices
≈ 47% of US
price level, 2025
GDP per capita
$13,862
2025
Happiness
6.1 / 10
World Happiness, 2025
Homicide rate
0.5
per 100k, 2020
Road deaths
17.4
per 100k/yr, 2019
Income group
Upper middle
World Bank
English
Low
EF EPI 464
Religion
unaffiliated 52%folk religion 22%Buddhist 18%Christian 5%

Sources: World Bank, US State Department, World Happiness Report, WHO/UNICEF, EF EPI, CIA World Factbook.

Data sources

Temperature, precipitation, cloud, humidity, wind and solar figures are a 1991–2020 climatology for Shanghai (31.2222°, 121.4581°, elevation 12 m), computed from hourly ERA5 reanalysis — contains modified Copernicus Climate Change Service information. Sun figures are astronomical calculations, not observations. City data © GeoNames, CC BY 4.0. Map outlines from Natural Earth (public domain); interactive map © Google. Tropical-cyclone seasons are the published climatological basin seasons (NOAA National Hurricane Center / regional warning centres). Sea temperatures are the NOAA OISST v2.1 1991–2020 monthly climatology (public domain), sampled at the nearest ocean point. UV index is derived from CAMS (Copernicus Atmosphere Monitoring Service) clear-sky UV data — contains modified Copernicus Atmosphere Monitoring Service information. Monthly air-quality (PM2.5) seasonality is from the CAMS EAC4 reanalysis (Copernicus Atmosphere Monitoring Service), scaled to the WHO annual mean where available. Topography is sampled from the Copernicus DEM GLO-90 elevation model (© ESA/Airbus) and ESA WorldCover 2021 land cover (CC BY 4.0).