When you're dreaming of a stay in San Francisco, year-round temperatures and rainfall may be important factors to consider. The hottest months are usually August and July with an average temp of 86°F, while the coldest months are January and February with an average of 62°F. Average annual precipitation for San Francisco is 8 inches.