Shanghai weather by month — averages, rainfall & climate trends
The Yangtze delta's global metropolis wears its humid subtropical climate openly — steamy summers, typhoon-season drama, and cool, surprisingly brisk winters when Siberian air can reach straight through the city's towers. Average temperatures and rainfall by month, a climate graph, today's conditions versus the long-term average, and how the climate has shifted since 1940 — all on one page for Shanghai, China.
Today vs average
+1.7°Cwarmer than usual
How it’s changed
Right now
What it's doing today vs the historical average for this date.Right now
27.4°
On this date — July 19
About average
- Record high: 36.7° · 2024
- Record low: 21.7° · 1941
- One year ago: 31.8°
Every July 19 in history — coldest to hottest
Dots show daily highs (top) and lows (bottom) for each July 19 on record (n = 87). Outlined dots are today's forecast.
Area we sample
Each city's history comes from one ERA5 grid cell — about 28 km across, shown by the dashed box. Near mountains or coasts, conditions can vary across the cell.
Location & data
Historical weather for Shanghai is sampled from the ECMWF ERA5 reanalysis at 31.22°N, 121.46°E, with daily records since 1940.
- Coordinates
- 31.22°N, 121.46°E
- Time zone
- Asia/Shanghai
- Period
- 1940–2026
- Data source
- ERA5 (ECMWF)
Last 30 days
20 of the last 31 days were warmer than the historical average for that date. Average difference: +1.1°C.
Each bar is one day, from morning low to afternoon high. Warm-colored bars are days whose mean ran above average; cool bars ran below. The dot inside the bar is the daily mean. The shaded band is the typical 10–90% range expected for that date. Average = the day's mean temperature averaged across every year of record (1940–2026) for that calendar date.
This date over the years
One dot per year — the mean temperature on this calendar date. Dots are warmer or cooler than the long-term average (dashed line); the shaded band is the typical 10–90% range, and the highlighted dot is today's forecast. Based on ERA5 reanalysis — modelled estimates, not station readings.
Weather by month
Average temperatures and rainfall for each month — what a typical year looks like, from the full record.Climate overview
Shanghai spreads along the Yangtze Estuary on China's central coast, with a humid subtropical climate (Köppen Cfa) of four distinct seasons. Summers are hot and humid; winters are cool and damp, often cold, with northwesterly winds arriving from Siberia capable of dropping temperatures sharply. Autumn tends to be the clearest and most settled season. The coastal position exposes the city to typhoons in summer and early autumn, which can deliver intense rainfall and storm surges.
Shanghai sits at the confluence of two great climatic systems — the cold continental interior to the north and the humid subtropical coastline — making for variable and sometimes extreme weather. On 21 July 2017, and again on 13 July 2022, the city set new all-time temperature records during heat events that highlighted a warming trend across recent decades.
The warmest month is July, with a daily mean around 28.1°C and typical afternoon highs of 31.2°C. On about 135 nights a year, the temperature never drops below 20°C. The coolest month is January, when daily means fall to about 4.6°C and overnight lows sit around 1.7°C. Around 13 days a year dip below freezing.
In total, Shanghai averages about 1343 mm of precipitation a year; June is usually the wettest month (266 mm) and December the driest (39 mm).
The record here starts in 1940, and since then the annual mean in Shanghai has climbed 1.7°C from the first ten years to the last ten. Days above 30°C have grown noticeably more frequent — from around 45 a year in the first decade to about 75 in the last.
Climate graph (climograph)
July is the warmest month, January the coolest — a yearly swing of 24°C. Wettest month: June (~266 mm). Whole year averages ~1343 mm of rain.
Bars = average monthly rainfall (right axis). Lines = average daily high and low (left axis). Average = each month's value averaged across every year of record (1940–2026).
Monthly wind
Average daily peak wind at 10 m, by month.
Monthly solar energy
Average daily incoming solar energy in megajoules per square metre — a measured proxy for how sunny the month is.
Shanghai month by month — what to expect
Typical conditions for each month, averaged across the full record (since 1940). Daylight is the time from sunrise to sunset. Record high/low are the most extreme values in the ERA5 dataset (modelled since 1940), so they can differ from official weather-station readings.
| Month | Avg high | Avg low | Rain | Daylight | Record high | Record low |
|---|---|---|---|---|---|---|
| January | 7.7° | 1.7° | 51 mm | 10.2 h | 23.2° (1950) | -9.4° (1958) |
| February | 8.9° | 3.0° | 64 mm | 10.9 h | 24.4° (2014) | -8.5° (1980) |
| March | 12.9° | 6.8° | 94 mm | 11.8 h | 29.3° (2025) | -3.6° (1958) |
| April | 18.5° | 12.0° | 118 mm | 12.8 h | 32.0° (1967) | 2.0° (1962) |
| May | 23.3° | 17.1° | 146 mm | 13.6 h | 34.6° (1991) | 9.0° (1965) |
| June | 26.8° | 21.6° | 266 mm | 14.0 h | 37.7° (1946) | 13.5° (1954) |
| July | 31.2° | 25.9° | 173 mm | 13.8 h | 38.8° (2013) | 18.0° (1976) |
| August | 30.9° | 25.8° | 138 mm | 13.1 h | 39.5° (2013) | 19.7° (1974) |
| September | 27.0° | 22.0° | 137 mm | 12.2 h | 40.1° (1946) | 13.2° (1957) |
| October | 22.0° | 16.4° | 65 mm | 11.2 h | 35.3° (2025) | 4.7° (1978) |
| November | 16.6° | 10.6° | 52 mm | 10.4 h | 28.4° (2023) | -5.0° (1979) |
| December | 10.5° | 4.1° | 39 mm | 10.0 h | 22.8° (2023) | -7.0° (1967) |
How it has changed
Year-by-year signals from 1940 to today.Climate stripes
Annual mean shifted from 1940–1949 to 2016–2025 by +1.7°C.
Each vertical stripe is one year. Color encodes how much that year's annual mean differed from the long-term average. Average = each year's annual mean compared to the average of all years (1940–2026). cooler ← → warmer
Annual mean temperature
Long-term trend: +0.21°C per decade.
One point per year — the temperature averaged across the whole year. The dashed line is the least-squares long-term trend. Based on ERA5 reanalysis — modelled estimates, not station readings.
Seasonal warming
Mar–May is warming fastest: +0.29°C per decade.
Each faint line is one three-month period's average per year; the bold dashed line is its long-term trend. Different parts of the year often warm at different rates. Based on ERA5 reanalysis — modelled estimates, not station readings.
Hot days vs frost days
Days ≥ 30°C per year: 46.6 early in the record → 73.2 recently. Frost days: 25 → 13.
Thin lines are raw yearly counts; thick lines are the smoothed trend that removes year-to-year noise. The hot-day threshold is auto-picked per city so the line actually moves. Average = a centered 5-year rolling average to smooth weather noise.
Yearly hot & cold extremes
All-time high in 1946, all-time low in 1958: 40.1°C / -9.4°C.
One point per year — the single hottest and coldest day recorded that year.
Annual rainfall
~1343 mm/year on average. Last decade ran +2% vs that average. Long-term trend: +7 mm per decade.
One bar per year of total rainfall. Dashed line is the long-term average. Average = the average annual rainfall across every year of record (1940–2026).
Day-by-day grid
Each tiny square is one calendar day across the full record — ~30,000 days per city. Use the mode switch above the chart: Anomaly colors each day by how far it ran from the historical average for that date (red = warmer, blue = cooler), Daily mean temp shows the absolute mean temperature for the day (useful to see seasons and heatwaves), and Precipitation shows daily rainfall (useful to spot wet/dry seasons and droughts). Average = the long-term average for that calendar date (1940–2026).