San Francisco’s reputation for chilly weather comes down to cold ocean water, persistent fog, and steady wind working together in a way that is unusual for a city at the same latitude as Seville, Spain, or Richmond, Virginia. The Pacific Ocean just offshore hovers around 10–13 °C (50–55 °F) even in midsummer, thanks to a process called coastal upwelling that constantly pulls frigid deep water to the surface. That cold water chills the air above it, which rolls inland as fog, blanketing the city in a gray marine layer that blocks the sun and keeps temperatures stubbornly low. The result is a place where a July afternoon can feel more like early spring, and where locals learn to layer up year-round.
Cold Water Right at the Doorstep
The engine behind San Francisco’s chill is the California Current system, a broad southward-flowing ocean current that carries cold subarctic water along the West Coast. But the current alone does not explain how cold the nearshore water gets. That requires coastal upwelling, a process driven by the prevailing northwesterly winds that blow along the California coastline, particularly from spring through early fall. These winds push surface water offshore through a physics effect related to the Earth’s rotation, and deep, cold, nutrient-rich water rises to replace it. Research on this system shows that active upwelling is concentrated in a narrow coastal band roughly 10 to 25 kilometers wide, though the zone of influence stretches much farther out to sea.1ScienceDirect. Coastal upwelling in the California current system San Francisco sits right in that band, meaning the ocean water lapping at its shores is drawn from depths where temperatures are far below what you would expect at this latitude.
The upwelling season off central and northern California runs roughly from April through June, with the strongest and most consistent equatorward winds during that stretch. From July through September, winds weaken into what researchers call the “relaxation season,” though upwelling does not shut off entirely.2Journal of Geophysical Research: Oceans. Seasonality of coastal upwelling off central and northern California: New insights, including temporal and spatial variability Even during relaxation, the accumulated cold water from weeks of upwelling keeps sea surface temperatures low, and the ocean’s thermal inertia means it barely warms before winter storms arrive. Other cities at similar latitudes on the East Coast or in the Mediterranean enjoy warm coastal waters by summer. San Francisco does not, and that one difference shapes everything else about its climate.
How Fog Forms and Why It Sticks Around
When warm, moist air from the open Pacific drifts eastward and passes over that band of cold upwelled water near the coast, the air cools rapidly. Once it drops below its dew point, moisture condenses into tiny water droplets suspended in the air. This is advection fog, and it is the direct product of warm air meeting cold ocean. The fog often thickens into a dense marine layer, a low blanket of stratus cloud that can sit just a few hundred meters above the surface.
San Francisco’s geography invites this fog right into the city. The Golden Gate is a natural gap in the coastal hills, acting like a funnel for the marine layer. As high pressure over the Pacific pushes the fog bank against the coast, it squeezes through the Golden Gate and spreads across the bay side of the peninsula. On many summer evenings you can watch the fog pour through the gap in real time, a spectacle that has its own informal fan base. Once inside, the fog suppresses daytime warming by reflecting sunlight back into space. Studies of California’s summertime marine stratus confirm that higher cloud cover produces cooler daytime temperatures, though it also moderates nighttime cooling by trapping some heat near the surface.3Journal of Geophysical Research: Atmospheres. The variability of California summertime marine stratus: Impacts on surface air temperatures The net effect during the day is strongly cooling: temperatures in foggy neighborhoods can stay 10 degrees or more below neighborhoods just a few miles inland that sit in sunshine.
Why Summer Is the Coldest Season
This is the part that genuinely baffles visitors. In most of the Northern Hemisphere, summer means warmth. In San Francisco, the coldest-feeling months are often June and July, not January and February. Winter temperatures in the city hover in the low 50s Fahrenheit, while summer highs regularly land in the upper 50s to low 60s. The gap is small, and on a foggy July afternoon with wind, summer can feel colder than a mild winter day.
The reason ties back to upwelling and fog timing. Upwelling-favorable winds peak in late spring, chilling the nearshore ocean right as the rest of the continent heats up. That temperature contrast between the cold coastal water and the warming land intensifies the pressure gradient that draws marine air inland, producing more fog. Satellite-based research tracking coastal low cloud cover along California shows that cloudiness peaks in different months at different latitudes: along northern California’s coast, July is the cloudiest month, and the core of peak cloud cover reaches its northernmost extent in late July or early August before retreating.4Geophysical Research Letters. The northward march of summer low cloudiness along the California coast San Francisco sits squarely in the path of this northward march, meaning its foggiest stretch aligns with what should be the warmest weeks of the year.
By September and October, the upwelling winds have weakened, the ocean surface has warmed slightly, and the inland valleys begin to cool, reducing the onshore pressure gradient. Fog retreats. These early-fall months often bring San Francisco its warmest, sunniest weather, which is why locals sometimes call October the city’s true summer.
The Temperature Inversion That Traps Cool Air
Above the fog layer, a temperature inversion acts like a lid. Normally, air gets cooler as you go up in altitude. In a temperature inversion, a layer of warmer air sits on top of a layer of cooler air, preventing the cool air below from rising and mixing. Along the California coast in summer, this inversion is created by the large-scale sinking of air associated with the North Pacific High, a semi-permanent high-pressure system parked over the eastern Pacific.
Research on the summertime marine atmospheric boundary layer off California shows that the boundary-layer depth decreases as you approach the coast, while wind speed increases, forming a coastal jet.5Quarterly Journal of the Royal Meteorological Society. Variability in the summertime coastal marine atmospheric boundary‐layer off California, USA In plain terms, the cool, foggy air near San Francisco is squeezed into a thin layer close to the ground, and the inversion above keeps it from dissipating. This is why the fog can sit stubbornly over the city all day while the sky is blue just 500 meters overhead. If you have ever hiked Twin Peaks or driven across the Golden Gate Bridge on a foggy morning and popped above the cloud layer into bright sunshine, you have experienced the inversion firsthand.
A City of Microclimates
One of the more striking things about San Francisco’s weather is how dramatically it varies across a city that covers only about 120 square kilometers. During a September 2017 heat wave, researchers measured an outdoor air temperature difference of up to 11 °C between coastal and downtown areas on the same day.6Elsevier (Urban Climate). Urban microclimate and its impact on building performance: A case study of San Francisco That is roughly 20 °F of variation within a single compact city, which is remarkable. The western neighborhoods along the ocean, like the Sunset and Richmond districts, are reliably foggier and cooler. The eastern neighborhoods closer to the bay, like the Mission and Potrero Hill, sit in a relative sun belt, partly shielded from the marine layer by the city’s central ridge of hills.
The San Francisco Department of Planning formally recognizes three microclimate zones within the city: a Coastal Zone or Fog Belt on the western side, a Transition Zone in the middle, and a Bay Zone or Sun Belt on the eastern side.7Elsevier / Urban Forestry & Urban Greening. Survival is not enough: The effects of microclimate on the growth and health of three common urban tree species in San Francisco, California These zones affect everything from real estate prices to which street trees survive. A species that thrives in the sunny Mission may struggle in the fog-soaked Outer Sunset, even though the two neighborhoods are only a few miles apart. For visitors, this means that checking the weather for “San Francisco” gives you only a rough guide. Packing a jacket even for a sunny day in the Mission is smart, because a walk to Ocean Beach after lunch might feel like a different season.
The Wind Factor
Cold air and fog are only part of the equation. San Francisco is also one of the windiest major cities in the United States, and wind makes cool temperatures feel dramatically colder. The same pressure gradient that pulls marine air through the Golden Gate produces strong, persistent afternoon winds across much of the city, particularly in exposed western neighborhoods and along the waterfront. Afternoon gusts of 20 to 30 miles per hour are common in summer, which can push the perceived temperature down by 10 °F or more compared to what a thermometer reads.
The city’s topography amplifies the wind in certain corridors. Streets that line up with the prevailing westerly flow act as wind tunnels, while hills create eddies and pockets of calm. Downtown’s tall buildings add another layer of complexity, accelerating wind at street level in some spots and blocking it in others. The practical result is that two blocks in the same neighborhood can feel meaningfully different: one calm and pleasant, the other blustery and raw.
Is San Francisco Getting Less Foggy?
There is evidence that San Francisco’s signature fog has become less frequent over the past century. A study published in the Proceedings of the National Academy of Sciences inferred a 33% reduction in coastal summer fog frequency since the early twentieth century, based on long-term records of daily maximum land temperatures along the California coast.8PubMed Central. Climatic context and ecological implications of summer fog decline in the coast redwood region The researchers linked this decline to broader changes in the wind-driven upwelling system and to the Pacific Decadal Oscillation, a large-scale pattern of ocean temperature variability.
A one-third drop in fog sounds dramatic, and it has real ecological consequences (more on that below), but it does not mean San Francisco is suddenly warm. The city’s baseline chill from cold ocean water and wind remains. Even with reduced fog, the upwelling system still cools nearshore waters, and the marine layer still forms regularly in summer. What fewer foggy days means in practice is more variability: more sunny, warm days interspersed with the classic gray, cold ones, rather than weeks of unbroken fog. Some longtime residents say they have noticed the change, particularly in neighborhoods that once rarely saw the sun in July. Whether this trend will continue, reverse, or accelerate with broader climate change remains an open question. The dynamics linking ocean temperatures, atmospheric pressure patterns, and fog formation are complex enough that confident projections are difficult.
What the Fog Means for Redwoods and Coastal Ecosystems
San Francisco’s fog is not just a human inconvenience; it is an ecological lifeline. The coast redwood forests that grow in the Bay Area and along the northern California coast depend on summer fog for survival. California’s Mediterranean climate means virtually no rain falls between May and October, which is exactly when the trees are actively growing. Fog fills the gap. Research on fog inputs to redwood forests found that on average, about 34% of the annual water entering a redwood ecosystem came from fog dripping off the trees themselves.9PubMed. Fog in the California redwood forest: ecosystem inputs and use by plants In summer, when fog was most frequent, understory plants obtained roughly two-thirds of their water from fog that had dripped through the canopy into the soil. Even the redwoods themselves drew 13 to 45% of their annual transpiration from fog-sourced water.
This dependence creates a feedback loop: the trees intercept fog with their vast canopy surface area, channeling moisture to the ground that would otherwise blow past. Without the trees, the same study found that fog water input dropped to about 17% of the annual total. The trees, in a sense, harvest their own rain. The decline in fog frequency noted by climate researchers is therefore a concern for these ecosystems. Less fog means more drought stress during the dry season, particularly in years when winter rainfall is also below average. The redwood groves in places like Muir Woods, just north of San Francisco, exist in large part because of the city’s famously cold, foggy summers. If that fog continues to retreat, the long-term viability of some of these forests could be affected.
Why Other California Coastal Cities Are Warmer
Visitors sometimes wonder why Los Angeles or San Diego feel so much warmer than San Francisco, given that all three sit on the Pacific coast. The answer is partly latitude but mostly upwelling intensity and coastal geography. Upwelling along California’s coast varies significantly by location. The stretch of coastline near San Francisco, including Point Reyes and the Farallon Islands, is one of the most active upwelling zones on the entire West Coast, which keeps nearshore water temperatures among the coldest anywhere on the California coast.
Southern California also experiences upwelling, but its effects are moderated by several factors. The Southern California Bight, a concavity in the coastline south of Point Conception, partially shelters the Los Angeles and San Diego coasts from the strongest upwelling-favorable winds. Additionally, water temperatures in the southern part of the California Current system are warmer to begin with, since the current has been absorbing solar radiation during its long southward journey. The result is that nearshore water off San Diego in summer is typically in the mid-to-upper 60s Fahrenheit, while water off San Francisco struggles to reach the mid-50s. Warmer water means less fog, less cooling, and beach days that actually feel like summer.
San Francisco’s geography also plays a unique role. The city sits on the tip of a narrow peninsula between the open Pacific and San Francisco Bay, with a gap in the coastal mountains at the Golden Gate that lets marine air flood in without obstruction. Most of the Southern California coast is backed by broad coastal plains or sits south of mountain barriers that partially block the marine layer. In San Francisco, the fog has a highway straight into the city.
Living with the Chill
San Franciscans have adapted to their climate in ways that might seem odd to outsiders. The city has far less air conditioning than you would expect for a major California metropolis; most older homes and apartment buildings do not have it at all, because it is rarely needed. Heating, on the other hand, gets used year-round in some neighborhoods. Research on building energy performance across the city’s microclimates showed that heating energy use varied by over 100% between coastal and downtown weather stations, while cooling energy use differed by about 65%.6Elsevier (Urban Climate). Urban microclimate and its impact on building performance: A case study of San Francisco In homes without climate control, indoor air temperatures in coastal neighborhoods can swing by up to 5 °C compared to downtown, which matters for comfort and health, especially for older residents.
The practical advice for anyone visiting is simple: dress in layers regardless of the calendar month. A sunny morning in Noe Valley can give way to a foggy, windy afternoon at Lands End within the span of a short drive. Locals joke about wearing parkas in July, but the joke reflects real experience. The city’s cold is not the bone-deep, prolonged cold of a Midwest winter. It is a damp, penetrating chill that catches people off guard precisely because it arrives when the rest of the country is sweltering. The famous quote often misattributed to Mark Twain captures the feeling perfectly, even if Twain never actually said it: the coldest winter many people experience is a summer in San Francisco.