If you're looking for summer vibes, the best time to travel to Sorocaba is in January, February and September, when the average temperature reaches 31.96 °C, while July, August and September are the 3 sunniest months of the year, with an average of 132.62 hours.
If you prefer colder temperatures, however, make sure you visit Sorocaba during the months of July, May and June to experience an average of 12.41 °C.
For those who don't care too much about temperatures, but want to avoid getting wet in the rain, it's important to avoid travelling during February, March and April, when the average precipitation in Sorocaba is 4.5 mm, while the months of January, February and March are drier, with an average of 0 mm.