San Francisco's summer fog follows a pattern as predictable as the tides, driven by the same large-scale atmospheric dynamics that shape the entire Bay Area's weather. The fog is not random. It peaks in July, not June or August. It is most intense in the evening and night, not the afternoon. It burns off by noon in some neighborhoods and never burns off in others. And the foggiest days are not the coldest ones. They are the ones when the temperature contrast between the coast and the inland valley is sharpest. Once you know the pattern, you can plan around it.
July Is the Foggiest Month
July is statistically San Francisco's foggiest month, not the coldest or the most overcast in the sense of winter, but the month with the most intense marine layer fog measured by frequency, persistence, and density. This seems paradoxical: July is midsummer, with the longest days and highest sun angles. But July is when the North Pacific High reaches peak strength, when the pressure gradient between the coast and the inland valleys is greatest, and when the sea surface temperature is coldest relative to the land temperature. All three factors drive maximum marine air flow and maximum fog production.
June is often called "June Gloom" locally for its persistent morning overcast, but June's overcast tends to burn off reliably by midday or early afternoon; the sun angle is still high enough to break the inversion. In July, the marine layer deepens and the inversion strengthens, making afternoon burn-off less reliable. Some July days in San Francisco see no afternoon sun at all, with the fog persisting through the entire day. August begins to see the marine layer weaken slightly as the North Pacific High starts its fall retreat.

When During the Day Is Fog Most Intense?
San Francisco's fog is most intense in the late evening through early morning. After the afternoon burn-off, the marine layer reforms as the land cools and the temperature gradient between land and ocean reverses or weakens. The fog flows back in through the Golden Gate, typically in the late afternoon or evening, and densifies overnight. By dawn, the marine layer is at its maximum depth and density. Then the morning cycle begins: solar heating warms the surface, gradually weakening the inversion, and the fog burns off from inland and high-elevation areas outward toward the coast.

Whether and when the fog burns off depends on the marine layer depth and the strength of the inversion. On weak marine layer days in late June or September, the fog burns off by 9 a.m. and the afternoon is sunny and warm. On strong marine push days in July, the fog may not burn off until 2 or 3 p.m., or it may persist all day. The weather forecast phrase "patchy morning fog, clearing by noon" describes the median July day. "Dense fog advisory through the afternoon" describes the strong marine push days that characterize the foggiest parts of the fog season.
Neighborhood Variation in SF Fog
Not all of San Francisco experiences the same fog on the same day. The western neighborhoods, the Outer Sunset, Outer Richmond, and Ocean Beach, are consistently foggier than the eastern neighborhoods, because they face directly toward the Pacific and are in the first path of the marine air. The Mission District, sheltered on its western side by the Twin Peaks ridge, is noticeably sunnier than the Sunset, often by 10 to 15 degrees, on the same afternoon. Neighborhoods at higher elevation that poke above the marine layer ceiling see sun on foggy mornings when the streets below are gray.
The practical implication for visitors is that San Francisco's fog is not a uniform blanket. A July day that seems completely fogged in from the outside may offer sunshine in the Mission District by noon, while the Sunset remains gray. Planning activities for the eastern neighborhoods or the mid-afternoon hours can provide far better weather than assuming the city is uniformly overcast.
