Why Is San Francisco So Foggy? The Science Explained

San Francisco owes its famous fog to a collision between a frigid ocean current, a stubborn high-pressure system parked over the Pacific, and the city’s own peculiar geography. Cold water wells up just offshore, chilling the moist marine air above it until that moisture condenses into a thick, low-hanging cloud bank. When hot air rises over California’s inland valleys, it creates a vacuum effect that sucks that fog straight through the Golden Gate and across the city’s hills. The result is one of the most reliably foggy urban landscapes on Earth, especially during summer, which is the opposite of what most visitors expect.

The Pacific High and the Cold Water Factory

The engine behind San Francisco’s fog is a semi-permanent atmospheric feature called the North Pacific High, a massive zone of high pressure that sits over the eastern Pacific Ocean during the warmer months. This high-pressure system drives persistent northwesterly winds along the California coast. Those winds push surface water offshore through a process called coastal upwelling: as warm surface water gets shoved away from the shore, cold water from hundreds of feet deep rises to replace it. The sea surface temperatures off San Francisco in midsummer can hover in the low 50s°F, far colder than what you’d find at similar latitudes on the East Coast or even farther south along the California coast.

That cold water is the critical ingredient. When warm, moisture-laden air from the open Pacific drifts over this frigid upwelled water, it cools rapidly. Once it cools below its dew point, the water vapor condenses into tiny droplets, forming a dense layer of fog or very low stratus cloud. Research on California sea fog has shown that these fog events are characterized by long over-water trajectories in persistent northwesterly flow, where the sea surface temperatures are actually warmer than the air along those trajectories, and strong subsidence from the anticyclone gradually lowers the stratus until it reaches the surface as fog.1Journal of Geophysical Research. Sea fog off the California coast: Viewed in the context of transient weather systems The sinking air associated with the Pacific High acts like a lid, compressing the marine layer and strengthening the temperature inversion above it, which traps the fog close to the surface.

Why Summer Is the Foggiest Season

Newcomers to San Francisco often arrive in June expecting warm sunshine and instead find themselves shivering in a gray blanket. Mark Twain probably never actually said “the coldest winter I ever spent was a summer in San Francisco,” but the sentiment resonates because it captures something genuinely strange about the city’s climate. Summer fog is not a fluke; it is the dominant weather pattern.

During the summer months, the Pacific High strengthens and moves northward, intensifying the northwesterly winds and turbocharging coastal upwelling. At the same time, California’s Central Valley heats up dramatically, with temperatures regularly exceeding 100°F. That superheated inland air rises, creating a low-pressure zone that acts like a giant bellows. Cooler marine air, along with its fog, gets drawn inland through the lowest available gaps in the coastal mountains. The Golden Gate is the most prominent of those gaps, essentially a sea-level corridor between the Pacific Ocean and San Francisco Bay. The fog funnels through it like water through a nozzle.

The large-scale subsidence associated with the Pacific High, combined with the thermal trough over the southwestern United States, creates a well-mixed marine boundary layer capped by a strong temperature inversion.2Atmospheric Research. An experimental simulation of a coastal fog-stratus case using COAMPS(tm) model This inversion is the invisible ceiling that keeps fog penned close to the ground rather than mixing upward and dissipating. In winter, the Pacific High weakens and shifts south, upwelling slackens, and the temperature contrast between coast and interior fades. Rain-bearing storms take over, and the fog largely disappears until the following spring.

Geography as Fog Funnel

San Francisco’s topography amplifies what the atmosphere delivers. The city sits at the tip of a narrow peninsula, surrounded on three sides by water. The Golden Gate strait is about a mile wide and sits at sea level, creating a perfect channel for marine air to pour through. Once fog enters the bay, it encounters the city’s hills, which range up to about 925 feet. The fog wraps around and between these hills, pooling in valleys and spilling over ridgelines, which is why some neighborhoods can be socked in while others a few blocks away sit in sunshine.

The western neighborhoods facing the ocean, particularly the Sunset and Richmond districts, bear the brunt of the fog. These areas can see weeks of gray skies in July and August while the Mission District, sheltered by Twin Peaks, enjoys noticeably warmer and clearer conditions. This hyperlocal variation is one of the city’s most distinctive features: San Francisco does not have one climate so much as a patchwork of microclimates determined by elevation, exposure, and proximity to the gap in the hills.

The fog’s journey doesn’t stop at the city limits. It can push across the bay and through other low points in the coastal ranges, reaching as far inland as the eastern edges of the Bay Area before the warmer air finally burns it off. On especially strong fog days, tendrils of cloud will pour over the ridges of the Marin Headlands and cascade down the far side like a slow-motion waterfall, a spectacle that has become one of the most photographed weather phenomena in the world.

The Daily Rhythm

San Francisco fog follows a surprisingly predictable daily cycle during the summer. The fog bank typically builds offshore during the night, when radiative cooling helps thicken and lower the marine stratus layer. By early morning, the fog has often pushed through the Golden Gate and settled over much of the city. As the sun climbs and heats the ground, the fog begins to thin and lift. By late morning or early afternoon, many neighborhoods see blue sky, though the western edges of the city may remain gray all day.

Then, in the late afternoon and evening, the cycle reverses. As the Central Valley cools slightly and the onshore pressure gradient rebuilds, the fog creeps back in. Locals sometimes describe it as “Karl the Fog” rolling in for the night, a reference to the fog’s popular social media persona. This rhythmic advance and retreat can repeat for days or weeks at a stretch during peak fog season, roughly June through August, with September and October often bringing the year’s warmest and clearest weather as upwelling weakens and the Pacific High begins to fade.

What Fog Does for Redwood Forests

San Francisco’s fog is not just a weather curiosity; it is a lifeline for the ecosystems along the Northern California coast. Coast redwoods, the tallest trees on Earth, depend on summer fog for survival. California’s Mediterranean climate means virtually no rain falls between May and October. During those dry months, fog provides moisture that redwoods and their understory plants absorb directly.

Research on the redwood forest ecosystem has shown that about 80% of the dominant plant species in coast redwood forests can take up water directly through their leaf surfaces when fog wets their crowns.3PubMed Central. Foliar water uptake: a common water acquisition strategy for plants of the redwood forest This foliar uptake increases leaf water content by roughly 2 to 11%, providing direct hydration during the driest part of the year. Fog also drips from tree canopies to the forest floor, recharging soil moisture and feeding streams that would otherwise run dry. The relationship is so tight that the geographic range of coast redwoods maps almost perfectly onto the coastal fog belt.

Beyond redwoods, fog supports a web of organisms. Lichens, mosses, and ferns that blanket redwood bark and forest floors rely on fog moisture. Some invertebrates and amphibians in these forests are adapted to the cool, humid conditions that fog maintains. When fog declines, these species face desiccation stress long before anyone turns on a sprinkler.

The Fog Is Declining

One of the more troubling findings in recent climate research is that San Francisco’s fog appears to be fading. A study using long-term temperature records inferred a roughly 33% reduction in fog frequency along the coast redwood region since the early twentieth century.4PubMed Central. Climatic context and ecological implications of summer fog decline in the coast redwood region The method behind that estimate relies on the relationship between coastal fog and cooler daytime temperatures: when fog is present, it blocks sunlight and suppresses heating, so maximum temperatures stay lower. Rising maximum temperatures over the past century suggest fewer foggy days.

The causes of this decline are still debated. Warmer ocean temperatures could alter the temperature gradient that drives fog formation. Changes in the strength or position of the Pacific High, shifts in upwelling patterns, and broader atmospheric circulation changes tied to climate warming are all plausible contributors. Some researchers have pointed to the Pacific Decadal Oscillation and other ocean cycles as factors that could be superimposed on the long-term trend, making it hard to separate natural variability from a persistent shift.

For the redwood forests and their associated species, less fog could mean serious trouble. Trees that evolved to sip moisture from clouds during a rainless summer may struggle as that moisture supply dwindles. Water stress could slow growth, reduce reproductive success, and shift competitive dynamics within the forest. The fog decline is still an active area of research, and how much of it is reversible versus locked in by ongoing warming remains an open question.

What Is Actually in the Fog

San Francisco fog starts as marine air, so its chemical baseline is seawater: sodium, chloride, and other sea salts carried aloft in the spray from breaking waves. But by the time that fog drifts over an urban area, it picks up a lot more. Measurements of fog water collected in Berkeley found that marine fog showed clear signs of mixing with anthropogenic pollutants.5Atmospheric Environment. Chemical composition of fog water and interstitial aerosol in Berkeley, California About a quarter of the black carbon particles in the air had been incorporated into fog droplets, indicating that combustion emissions from vehicles, industry, and other urban sources were being scavenged by the fog. Researchers also measured nitrate, sulfate, ammonium, and potassium in the fog water, along with its pH.

This matters for a couple of reasons. First, fog droplets are much more concentrated than raindrops because they are smaller and contain less water relative to the dissolved material they pick up. The result is that fog water can be surprisingly acidic or carry higher concentrations of pollutants per unit volume than rain. Second, when fog deposits on surfaces, including the leaves of plants and the lungs of people breathing in foggy air, it delivers those concentrated chemicals directly. Coastal agriculture in foggy regions can actually receive measurable nutrient and pollutant inputs from fog deposition alone, a pathway that is easy to overlook if you only think about rain as the way things wash out of the atmosphere.

How San Francisco Compares to Other Foggy Places

San Francisco is far from the only place where fog dominates the climate, but the specific mechanism driving its fog is part of a broader pattern found along the western edges of continents. Wherever you have cold ocean upwelling, a subtropical high-pressure system, and a nearby landmass that heats up in summer, you get coastal fog. The coasts of Chile and Peru, northwestern Africa, Portugal, and Namibia all share this basic setup.

In Chile’s Atacama Desert, one of the driest places on Earth, fog is a critical water source. Research there found that advective fog, the same type driven by sea surface temperature and temperature inversions that produces San Francisco’s fog, accounts for about three-quarters of all fog events in the Atacama and contributes roughly 60% of water collected from fog-catching devices.6Atmospheric Research. Fog types frequency and their collectable water potential in the Atacama Desert The remaining fog events were mostly orographic, formed when air is forced upward over terrain. The shared physics between San Francisco fog and Atacama fog underscores how consistent the atmospheric recipe is: cold water, sinking air, a temperature inversion, and onshore flow.

What sets San Francisco apart is its urban context. Most of the world’s fog belts are either remote coastlines, desert margins, or sparsely populated areas. San Francisco is a major city of nearly 900,000 people built directly in the path of a reliable fog conveyor belt. That collision between dense urban life and persistent fog creates distinctive challenges: flight delays at SFO, hazardous driving conditions on the Golden Gate Bridge, and a housing market where “sunny side of the hill” carries a genuine price premium. It also gives the city its character. The fog has shaped local architecture, with buildings designed to cope with moisture and wind rather than heat. It influences what grows in city gardens, where certain warm-season crops struggle compared to communities just a few miles inland. And it defines the local aesthetic in ways that go far beyond weather, seeping into the city’s literature, photography, and identity in ways that few other weather phenomena do for any city anywhere.

Fog Harvesting and Practical Uses

In regions where fog is plentiful but rain is scarce, people have found ways to put fog to practical use. Fog-catching nets, typically made of mesh fabric strung between poles on ridgelines, intercept fog droplets as wind drives them through the mesh. The droplets coalesce, run down the net, and drip into collection troughs. This technology has been deployed most extensively in coastal deserts like the Atacama, where advective and orographic fog provide meaningful water yields.6Atmospheric Research. Fog types frequency and their collectable water potential in the Atacama Desert

San Francisco itself does not need fog collectors for drinking water, but the principle is the same one that redwoods exploit naturally: intercepting tiny water droplets that would otherwise drift past. Some experimental projects in the Bay Area and along the California coast have explored fog collection as a supplemental water source for small-scale agriculture or habitat restoration, though yields are modest compared to conventional supply. The more immediate practical applications in San Francisco involve coping with the fog’s effects rather than harvesting it. Navigation aids, airport instrument-landing systems, and the fog horns that have sounded from the Golden Gate since the 19th century all exist because the fog is dense enough, often enough, to be genuinely dangerous for ships and planes.

For residents, the fog’s cooling effect is essentially free air conditioning during California’s increasingly brutal heat waves. While inland cities broil, San Francisco’s summer highs rarely break 70°F during fog season. That thermal buffer has made the city a climate refuge of sorts, though the trade-off is a clammy chill that surprises anyone who packed for a California summer without checking the forecast first.