Skip to content

AsiaChinaShanghai

30-year normals (1991-2020)

Average Temperature in Shanghai by Month

Monthly Temperature Table

MonthAvg High °CAvg Low °CRain Days
January8°1°8
February10°3°9
March14°7°11
April19°12°10
May24°17°10
June27°21°15
July31°25°14
August31°25°16
September27°21°11
October22°16°6
November17°10°7
December11°4°6

Climate Overview

Shanghai has a oceanic/humid subtropical climate, classified as Cfa in the Köppen system. The warmest month is July with an average high of 31°C, while the coldest month is January with lows dropping to 1°C. The annual temperature range of 30°C reflects moderate seasonal variation.

The driest month is December with only 6 rain days and 45mm of precipitation. For travellers, December through to the following month typically offers the best balance of warm temperatures and dry conditions. Average humidity ranges from 70% to 70% throughout the year.

Best Time to Visit Shanghai

Based on temperature and rainfall data, the best months to visit Shanghai are October, April, May. These months offer the most comfortable temperatures with relatively low rainfall, ideal for sightseeing and outdoor activities.

Warmest Month

31°C

July

Coldest Month

1°C

January

Driest Month

6 days

December

Annual Range

30°C

1° to 31°

Temperature Trend

Year-Round Climate

MonthHighLowRain DaysSunDetails
January8°C1°C86hView
February10°C3°C96hView
March14°C7°C117hView
April19°C12°C108hView
May24°C17°C109hView
June27°C21°C158hView
July31°C25°C1410hView
August31°C25°C1610hView
September27°C21°C119hView
October22°C16°C68hView
November17°C10°C77hView
December11°C4°C67hView

Monthly Precipitation (mm)

Frequently Asked Questions: Shanghai in July

In July, Shanghai experiences average highs of 31°C (88°F) and lows of 25°C (77°F). Expect around 14 rainy days and 10 hours of sunshine per day, with humidity averaging 70%. The 6°C gap between daytime and overnight temperatures is worth planning around: light layers work for most visitors during the day, but an overshirt or cardigan handles the cooler evenings. UV index averages 9, so sun protection is advisable on clear days.
Shanghai typically sees 14 rainy days in July, with total precipitation of around 160mm. Rain is moderate and manageable. Showers tend to pass quickly, and a light rain layer or foldable umbrella is sufficient protection for most days. For context, the driest month in Shanghai typically sees 4-6 fewer rain days than July.
Pack lightweight, breathable clothing (linen or cotton), a wide-brim sun hat, SPF 50+ sunscreen, and a refillable water bottle for Shanghai in July. The 31°C daytime heat demands sun protection during midday hours, typically 11am to 4pm. A compact travel umbrella is also worth packing, as 14 rainy days means afternoon showers are a real possibility. Quick-dry synthetic fabrics are preferable to cotton in 70% humidity.
July is a reasonable time to visit Shanghai. Expect 14 rainy days, so pack a light rain layer for flexibility. Average temperatures of 31°C make outdoor exploration comfortable during the dry periods. With 10 daily sunshine hours, there are reliable windows of good weather to plan outdoor activities around, even if the month is not the driest on the calendar.
The average high temperature in Shanghai in July is 31°C (88°F), and the average low is 25°C (77°F). The mean daily temperature is approximately 28°C (82°F). The day-to-night range of 6°C is moderate, meaning a single light jacket covers most situations. These are 30-year climate normals based on the 1991 to 2020 reference period; individual years will vary, particularly in transitional months like spring and autumn.
The best month to visit Shanghai is generally May. May offers the most sunshine at 9 hours per day and only 10 rainy days. Average temperatures reach 24°C, making it comfortable for sightseeing, outdoor dining, and exploring the city. If your travel dates are flexible, planning your trip around May gives you the best chance of dry, bright weather.
July is shoulder or low season in Shanghai, meaning fewer tourists and generally lower prices than peak months. With 10 sunshine hours and 14 rainy days, the weather is less of a draw for mass tourism. This is an advantage for travellers who prefer a quieter, more relaxed experience with shorter queues and easier accommodation availability.
In July, Shanghai suits a range of activities thanks to warm temperatures of 31°C. Mix of indoor and outdoor activities works well given the moderate chance of rain. Top options include exploring historic neighbourhoods, visiting museums and galleries, local food markets, and day trips to surrounding areas. With 10 hours of sunshine, parks and waterfront walks are particularly enjoyable.

Data Sources for Shanghai

Climate normals represent 30-year averages (1991-2020). Individual years may vary.