Nairobi (Kenya) vs Shanghai (China): Temperature, Rainfall and Sunshine

Across the 12 monthly averages, Nairobi (Kenya) is warmer in 7 months and Shanghai (China) in 5; 0 months are equal at the displayed precision.

Key monthly differences

Warmest months (mean temperature) (°C)

Nairobi
March: 20.43
Shanghai
August: 28.29

Coolest months (mean temperature) (°C)

Nairobi
July: 17.01
Shanghai
January: 5.26

Months with the lowest daily rainfall average (mm/day)

Nairobi
July: 0.53
Shanghai
December: 1.38

Months with the most daily sunshine (hours/day)

Nairobi
February: 10.93
Shanghai
August: 9.58
Share this climate chart on Share
Climate Compare: Shanghai (China)
Climate Compare: Nairobi (Kenya)
Compare the climate of two locations

Climate comparison questions

When are the temperatures most similar and most different?

The smallest difference in monthly mean temperature is 0.64 °C (October); the largest is 14.41 °C (January).

How much do temperatures vary across the year?

The difference between the warmest and coolest monthly means is 3.42 °C in Nairobi (Kenya) and 23.02 °C in Shanghai (China). This describes seasonal variation, not the range between daytime highs and nighttime lows.

Which location has more rainfall?

Nairobi (Kenya) has a higher daily rainfall average in 4 months and Shanghai (China) in 8; 0 months are equal at the displayed precision. Rainfall amounts do not tell us how many days it rains.

Which location has more sunshine?

Nairobi (Kenya) has more average sunshine hours per day in 10 months and Shanghai (China) in 2; 0 months are equal at the displayed precision. Sunshine duration is different from daylight duration.

Data and measurement guide

Daily values are averaged separately for each calendar month over the saved reference period. Temperatures are daily means, not daytime highs. Rainfall is an average daily amount, not a monthly total; sunshine is average hours per day. These historical averages are not a weather forecast. Each location’s reference period is listed below and may differ.

  • Nairobi (Kenya) — Reference period: 2013–2023
  • Shanghai (China) — Reference period: 2013–2023

Source: Open-Meteo Historical Weather API

Monthly climate data

Difference: Shanghai (China) minus Nairobi (Kenya)

Temperature °C

Month Nairobi Shanghai +/-
Jan 19.67 5.26 -14.41
Feb 20.34 6.44 -13.90
Mar 20.43 11.03 -9.40
Apr 19.18 15.74 -3.44
May 18.42 20.74 2.32
Jun 17.54 24.23 6.69
Jul 17.01 28.23 11.22
Aug 17.31 28.29 10.98
Sep 18.40 24.04 5.64
Oct 19.55 18.91 -0.64
Nov 18.54 13.71 -4.82
Dec 18.71 6.64 -12.07
⌀ Month 18.76 16.94 -1.82

Average sunshine (hours/day)

Month Nairobi Shanghai +/-
Jan 10.90 5.82 -5.08
Feb 10.93 5.73 -5.20
Mar 10.50 6.75 -3.75
Apr 9.65 7.97 -1.68
May 10.04 7.64 -2.40
Jun 9.22 6.55 -2.68
Jul 8.21 8.73 0.53
Aug 8.26 9.58 1.32
Sep 9.70 7.71 -1.98
Oct 10.37 7.16 -3.20
Nov 9.88 6.10 -3.78
Dec 10.43 6.33 -4.10
⌀ Month 9.84 7.17 -2.67

Average daily rainfall (mm/day)

Month Nairobi Shanghai +/-
Jan 1.42 1.91 0.49
Feb 1.76 2.35 0.59
Mar 2.62 2.67 0.05
Apr 5.96 3.16 -2.80
May 3.21 4.32 1.12
Jun 1.36 8.37 7.01
Jul 0.53 6.82 6.29
Aug 0.91 5.10 4.19
Sep 1.10 4.86 3.76
Oct 2.69 2.08 -0.61
Nov 4.42 2.11 -2.30
Dec 2.52 1.38 -1.14
⌀ Month 2.38 3.76 1.39

Snow (mm)

Month Nairobi Shanghai +/-
Jan 0.00 0.69 0.69
Feb 0.00 0.99 0.99
Mar 0.00 0.01 0.01
Apr 0.00 0.00 0.00
May 0.00 0.00 0.00
Jun 0.00 0.00 0.00
Jul 0.00 0.00 0.00
Aug 0.00 0.00 0.00
Sep 0.00 0.00 0.00
Oct 0.00 0.00 0.00
Nov 0.00 0.01 0.01
Dec 0.00 0.40 0.40
⌀ Month 0.00 0.17 0.17