Monthly climate in Shanghai, China

Last updated: July 31, 2025

Under the Köppen–Geiger climate classification Shanghai features a humid subtropical climate (Cfa). Temperatures typically range between 6 °C (44 °F) and 29 °C (85 °F) through the year, but rarely can drop to -8 °C (19 °F) or can rise to as high as 39 °C (102 °F). The average annual precipitation amounts to about 1353 mm (53.3 inches) and receives 126 rainy days on the 1 mm (0.04 inches) threshold annually. Shanghai enjoys an average of 3005 hours of sunshine throughout the year, and daylight varies from 10 hours 9 minutes to 14 hours 7 minutes per day.

Monthly average temperatures in Shanghai, China

The warmest months in Shanghai are July, August and September, with daily mean temperatures ranging from 25 to 29 °C (78 - 85 °F) throughout the day. The coldest temperatures usually occur in January, February and December, when daily mean temperatures range from 6 to 8 °C (44 - 47 °F) throughout the day. On average each year, Shanghai experiences 119 days above 25 °C (77.0 °F) and 9 days below 0 °C (32.0 °F).

Monthly average temperatures with daily means, minimums and maximums for period, average high and low temperatures in Shanghai. Generated using Copernicus Climate Change Service information. Data for period from January 2017 to June 2022.
 JanFebMarAprMayJunJulAugSepOctNovDec
Maximum22°C
(71°F)
24°C
(76°F)
26°C
(79°F)
31°C
(87°F)
34°C
(94°F)
36°C
(96°F)
39°C
(102°F)
38°C
(100°F)
35°C
(94°F)
31°C
(89°F)
27°C
(81°F)
20°C
(69°F)
Mean maximum17°C
(64°F)
19°C
(67°F)
24°C
(76°F)
28°C
(83°F)
32°C
(90°F)
32°C
(90°F)
36°C
(98°F)
36°C
(96°F)
33°C
(92°F)
29°C
(85°F)
24°C
(75°F)
18°C
(64°F)
Average high9°C
(49°F)
10°C
(51°F)
16°C
(60°F)
20°C
(69°F)
25°C
(77°F)
28°C
(82°F)
31°C
(89°F)
32°C
(90°F)
28°C
(83°F)
23°C
(74°F)
18°C
(65°F)
12°C
(54°F)
Daily mean6°C
(44°F)
7°C
(45°F)
12°C
(54°F)
16°C
(61°F)
21°C
(71°F)
25°C
(76°F)
29°C
(84°F)
29°C
(85°F)
25°C
(78°F)
20°C
(68°F)
15°C
(59°F)
8°C
(47°F)
Average low4°C
(39°F)
4°C
(40°F)
9°C
(48°F)
13°C
(55°F)
18°C
(65°F)
22°C
(72°F)
26°C
(79°F)
27°C
(81°F)
23°C
(74°F)
17°C
(63°F)
12°C
(54°F)
5°C
(42°F)
Mean minimum-4°C
(26°F)
-1°C
(31°F)
4°C
(39°F)
6°C
(44°F)
14°C
(57°F)
19°C
(66°F)
23°C
(74°F)
24°C
(75°F)
19°C
(66°F)
11°C
(53°F)
5°C
(42°F)
-2°C
(29°F)
Minimum-8°C
(19°F)
-3°C
(27°F)
2°C
(37°F)
5°C
(42°F)
12°C
(53°F)
18°C
(65°F)
20°C
(69°F)
20°C
(69°F)
17°C
(63°F)
10°C
(51°F)
2°C
(37°F)
-5°C
(22°F)

Compare climate in Shanghai with other places

Compare temperature, precipitation, sunshine, UV index in Shanghai, China with other places around the world.

Monthly average precipitation in Shanghai, China

Shanghai usually has the most precipitation in June, July and September, with an average of 14 rainy days and 209 mm (8.2 inches) of precipitation per month. The driest months in Shanghai are January, November and December. On average, 52 mm (2.1 inches) of precipitation falls during these months.

Monthly average precipitation and precipitation days in Shanghai. Generated using Copernicus Climate Change Service information. Data for period from January 2017 to January 2022.
 JanFebMarAprMayJunJulAugSepOctNovDec
Average precipitation mm (inches)55 (2.2)60 (2.4)83 (3.3)72 (2.8)117 (4.6)201 (7.9)250 (9.8)167 (6.6)177 (7.0)69 (2.7)51 (2.0)50 (2.0)
Average precipitation days (≥ 1 mm)681291015161513778

Monthly sunshine hours in Shanghai, China

The sunniest months in Shanghai are May, July and August, when the sun shines an average of 9 hours 46 minutes a day. Least sunny months in Shanghai: January, February and December receive an average of 6 hours 24 minutes of sunshine daily.

Mean monthly sunshine duration, average sunshine hours per day and mean daily daylight hours in Shanghai. Generated using Copernicus Atmosphere Monitoring Service information. Data for period from January 2017 to January 2022.
 JanFebMarAprMayJunJulAugSepOctNovDec
Mean monthly sunshine hours157210244266290273301317260245223214
Mean daily daylight hours10h 21m11h 4m11h 59m12h 55m13h 43m14h 7m13h 55m13h 13m12h 19m11h 23m10h 34m10h 9m

Solar UV radiation in Shanghai, China

Shanghai experiences the highest level of ultraviolet (UV) radiation in July, August and September, when the maximum UV index can reach values of 11 - 12, which corresponds to the Extreme category of sun exposure. January, February and December are in the Moderate / High exposure category. In these months, the maximum values of the UV index do not exceed 6. For more detailed information, check out our hourly Shanghai UV Index data.

Average daily maximum UV levels by month for Shanghai. Generated using Copernicus Atmosphere Monitoring Service information. Data for period from January 2022 to January 2023.
 JanFebMarAprMayJunJulAugSepOctNovDec
UV Index (month maximum)568101011121111864