Upslope fog forms when moist, stable air is pushed up a slope and cools as it rises until it reaches its dew point. In the Bay Area, the onshore wind lifts ocean air up the hills every summer. Over one year of NOAA weather model records, Oakland's Montclair hills logged 76% more fog hours than downtown Oakland.
That is why a street in the Oakland hills can sit in gray mist while downtown, a few miles away and 800 feet lower, stays sunny. The same ocean air covers both places, but only the hillside gets the fog, because only the hillside makes the air climb.
What Is Upslope Fog?
Upslope fog is fog made by the shape of the land. The National Weather Service defines it as fog that forms when moist, stable air is carried up a mountain slope. In everyday terms, the wind pushes damp air uphill, the air cools on the way up, and the hillside ends up inside a cloud.
The rest of this page follows one idea, which is that the same air sits over the flats and the hills, but the climb turns it into fog. Once you see that, you can predict which slopes will be socked in on a given day.
How Does Upslope Fog Form?
Upslope fog needs three things to form, and the first is wind. It has to push air toward rising ground, so the air has no choice but to climb. Second, the rising air expands and cools, by about 5.5°F for every 1,000 feet it rises, according to the NWS. Third, the air has to be moist enough to reach its dew point on the way up. It also has to be stable enough to stay in a layer instead of boiling up into showers.

Upslope fog lasts as long as the wind keeps pushing. When the wind weakens or turns, or the air dries out, the fog stops forming and thins out. Unlike the fog that forms on clear, calm nights, it can form under cloudy skies and in the middle of the day.
In the Bay Area, the wind doing the pushing is the same onshore flow that brings the marine layer ashore. The air arriving at the hills is already cool and nearly full of moisture, so it doesn't have to climb far before it condenses.
Why Are the Bay Area Hills Foggier Than the Flats Below Them?
The Bay Area hills are foggier because they make ocean air climb. In every area we checked, the hillside logged more fog hours than the flats below it. Oakland's Montclair hills had about 76% more than downtown, Twin Peaks about 73% more than the Mission, and Skyline Ridge three times as many as Palo Alto.

| Area | Flats | Fog hours | Hills | Fog hours | Coast |
|---|---|---|---|---|---|
| Oakland | Downtown, 42 ft | 1,631 | Montclair, 850 ft | 2,871 | n/a |
| San Francisco | Mission, 49 ft | 1,351 | Twin Peaks, 922 ft | 2,342 | 3,108 (Outer Sunset) |
| Peninsula | Palo Alto, 30 ft | 700 | Skyline Ridge, 2,300 ft | 2,098 | 3,373 (Half Moon Bay) |
| Marin | Mill Valley, 52 ft | 1,752 | Mt. Tam East Peak, 2,571 ft | 2,023 | 2,622 (Stinson Beach) |
The pattern runs in a clear order across the region. The coast is foggiest, because that is where the ocean air comes ashore, and the hills facing the wind come next because they lift that air. The sheltered flats behind the hills get the least fog of all. That is also part of why San Francisco is foggier than Oakland.
Not every extra hour on the hills is pure upslope fog. Some of it is a low cloud deck whose base already sits below the hilltops, so the hills simply poke into it. On the windward side, the lifting lowers that base further, and in practice the two work together.
Where Does Upslope Fog Hit Hardest in the Bay Area?
Upslope fog hits hardest on slopes that face the onshore wind. In the Bay Area, that means the Oakland and Berkeley hills, which face the Golden Gate across the bay. It also means Twin Peaks and Mount Sutro in San Francisco and San Bruno Mountain above Daly City. Farther out, the Santa Cruz Mountains along Skyline Boulevard and the west face of Mount Tamalpais get it too.
The other side of each ridge tells the rest of the story. Valleys and slopes on the sheltered side, such as Orinda behind the Oakland hills, Woodside below Skyline and the canyons of Mill Valley, often stay clearer. There, the air sinks and warms as it comes down the far side.
When Does Climbing Get You Above the Fog?
Climbing gets you above the fog when a ridge rises higher than the top of the marine layer. The summit then sits in sunshine while the slopes below are socked in. That is why Mount Tamalpais's East Peak, at 2,571 feet, logged fewer fog hours than Stinson Beach at the foot of the mountain.
How high you need to go depends on how deep the marine layer is that day. For the heights that usually rise above it, and where to find them, see how elevation affects Bay Area fog.
Deep Dive: How High Must Air Rise Before Fog Forms?
The height at which climbing air turns to fog depends on how close it already is to saturation. Meteorologists call that height the lifting condensation level. For the damp ocean air that reaches the Bay Area hills in summer, it is often only a few hundred feet above sea level.
How Can You Estimate Where Fog Will Form?
Rising air cools by about 5.5°F for every 1,000 feet. Its dew point, the temperature at which it would condense, also falls as it rises, but only by about 1°F per 1,000 feet. The gap between temperature and dew point therefore closes by about 4.5°F for every 1,000 feet of climb.
By our calculation, that works out to about 220 feet of climb for each degree Fahrenheit between the air temperature and the dew point. Marine air at 58°F with a dew point of 55°F has a 3-degree gap. It would reach saturation after climbing about 670 feet. That is why the Oakland hills, several hundred feet above downtown, so often sit in fog while downtown stays clear.
Above that level, the air keeps rising and condensing, and the fog grows wetter and thicker with height. That is why visibility often drops further near a ridgetop than it does partway up the slope.
Why Doesn't the Fog Just Flow Over the Ridge?
Whether air climbs over a hill or flows around it depends on the wind speed, the height of the hill and how stable the air is. Mountain weather textbooks, such as C. David Whiteman's Mountain Meteorology, describe this with a value called the Froude number. When the number is below 1, much of the air cannot get over the ridge and is blocked or turned aside.
The marine layer is very stable, because it sits under a strong inversion. By our calculation, an 11-mph wind pushing air that stable against a 1,600-foot ridge gives a Froude number of about 0.5. Much of the air stalls against the slope or slides sideways toward lower gaps, instead of pouring straight over the top.
That is why fog often piles up along the western face of the Berkeley and Oakland hills like water against a dam. It spills over first through low passes and canyons. Where the ridge stands taller than the top of the marine layer, the fog cannot cross at all, and the far side stays in sunshine.
Driving, Hiking and Flying in Upslope Fog
On the road, upslope fog can drop visibility to near zero within minutes on an afternoon with onshore wind. That is especially true on Skyline Boulevard, Grizzly Peak Boulevard and the roads over the coast ranges. Slow down and use low beams, and read driving in Bay Area fog before a foggy commute.
On the trail, ridge hikes can go from sun to cold, wind-driven fog quickly, and trails under redwoods stay wet from fog drip. Carry a windproof layer even on a warm inland day. For pilots, upslope fog is a classic hazard because it can hide rising terrain and hangs on as long as the upslope wind keeps blowing.
The thread through all of it is the wind. Watch which way it is blowing, not just the sky overhead, because a slope with ocean air pushing toward it will get the fog first.
Before heading up Skyline or Grizzly Peak on a day with onshore wind, check the Bay Area fog map. It shows how far inland the marine layer reaches and how high it sits. The Mount Tamalpais forecast shows whether the summit is above it. For the same lifting process in winter storms, see Bay Area orographic rain.
