It is one of the most common weather complaints in America: "Why is San Francisco so cold in summer?" Mark Twain's apocryphal "coldest winter I ever spent was a summer in San Francisco" survives because the phenomenon is real. The answer is not weather — it is geography, and it is measurable across just 80 km.

The numbers first

Averaged over 1991–2020, June-to-August daytime highs run 22 °C at San Francisco's airport, 26 °C in San Jose — a difference of 4.2°C in 65 km — and 33 °C in Sacramento, 10.5°C warmer still, 130 km inland. Same state, same week, completely different summer.

Average daytime highJanuaryAprilJulyAugustOctober
San Francisco (airport, by the ocean)14 °C18.2 °C22.1 °C22.6 °C21.9 °C
San Jose (south of the Bay, sheltered)15.1 °C20.1 °C26.6 °C26.7 °C23.6 °C
Sacramento (Central Valley, 130 km inland)13.3 °C22.2 °C33.6 °C33.1 °C25.9 °C

Notice the strangest number: San Francisco's September average high (23.3 °C) beats its August (22.6 °C) — and both beat July. The city's "summer" arrives two months late.

The mechanism: the ocean is a giant air conditioner

Three ingredients combine. First, the California Current drags cold water south along the coast — sea surface temperatures off San Francisco stay near 11–14 °C even in July. Second, warm interior air rising over California's Central Valley pulls that cold marine air in through the Golden Gate every afternoon. Third, when moist marine air passes over the cold water it condenses into the famous marine layer — a deck of low fog and stratus that streams into the Bay at night and burns off, if at all, by midday.

The geography decides who gets hit. San Francisco sits right at the Gate's mouth, so it takes the full marine layer. San Jose sits 65 km south at the end of the Bay, sheltered by the Santa Cruz Mountains, which wall off most of the fog: hence 4.2°C more summer heat. Sacramento, beyond the coast range entirely, escapes it completely — and instead gets scorching Central Valley afternoons plus evening "Delta breezes" that briefly import a hint of that marine air 130 km inland.

Why September, not July, is SF's warmest month

The marine layer's strength depends on the temperature difference between the interior and the ocean. In June, the inland valleys are already heating up while the ocean lags the calendar — maximum contrast, maximum fog, coldest summer month. By September the interior begins to cool, the contrast weakens, the fog retreats, and the city gets its genuine warm weeks. Locals call late September–October "summer"; the tourists who packed hoodies for July agree.

Practical takeaways

  • Packing: for a San Francisco summer trip, pack for 15–20 °C afternoons and 11–13 °C foggy evenings — and for a 10 °C swing within one day. A windproof layer beats an umbrella: summer rain is nearly nonexistent, but fog-wet wind is not.
  • Micro-climate itinerary: foggy morning at Ocean Beach, sunny 20-minute drive to San Jose or over the bridge to Marin. The Bay Area is the rare metro where you can choose your weather by crossing a bridge.
  • Karl the Fog: the marine layer has a fan account for a reason — it is the reason the city's redwoods and coastal ecosystem exist.

The same station-data method is now applied to 60+ cities in our climate guides — including Los Angeles and Seattle — and the live picture for any Bay Area town is on the San Francisco forecast page.