The saying that San Francisco is 20 degrees colder than the inland Bay Area is close to the truth for an average summer afternoon. NOAA's July normals put downtown San Francisco about 20 degrees cooler than Walnut Creek, and the foggy west side even cooler. On strong fog days, the gap can grow past 30 degrees. The real number changes with the day, the hour and the inland town you pick. Knowing when the gap is biggest helps with planning, and it shows how one of the sharpest temperature gradients of any American metro area works.
The Summer Temperature Gradient
On a strong fog day in July, the gap can be remarkable. San Francisco's west side might sit at 58 degrees under thick fog while Walnut Creek, about 20 miles away, reaches the low 90s in full sun. Concord can reach the mid to upper 90s at the same time. Gaps of 30 to 35 degrees are not freak events on days like that. They are part of the normal summer pattern when the marine push is strong.
On days when the marine push is weak, the sea breeze is lighter and the marine layer shallower, so the gap shrinks. San Francisco might reach 70 while Walnut Creek reaches 88, which is still a big difference but less extreme. During hot, dry Diablo wind spells in fall, the marine layer disappears and San Francisco itself can reach the upper 80s or 90s. The inland valleys may hit 100 or more, but the gap between them narrows.

Why the Difference Exists
The gap exists because the marine layer cools most strongly near the ocean and weakens with distance inland. San Francisco sits where the marine air enters, inside the thickest part of the marine layer and surrounded by water on three sides. It gets the strongest cooling. Each mile inland weakens that ocean influence, and the hills block and change the flow along the way.

The bay also keeps the East Bay cities on its shore cooler. Oakland and Berkeley run cooler than Walnut Creek or Concord partly because marine air reaches them across open water. Beyond the Berkeley Hills, the ocean's influence is weak enough that summer temperatures depend mostly on the strong sun of long June, July and August days.
Seasonal Variation in the Gradient
The big coast-to-inland gap is mainly a summer pattern. In winter, inland towns can actually be colder than the coast on clear, calm nights. The ground inland loses heat quickly, while the bay and ocean keep the coast mild. On a January morning, San Francisco might be at 50 degrees while Livermore sits at 35 with frost on the valley floor. In winter, the water keeps the coast warmer rather than cooler.
In April and October, the gap swings the most as the marine layer comes and goes. The “20 degrees colder” rule really describes summer, and the gap is usually largest in July and August, when the marine layer reaches farthest inland.















