Skip to main content
climate sciencefogmicroclimates

Temperature Inversions: Why Cold Air Gets Trapped in Bay Area Valleys

By SFBayWeatherPublished Last updated 6 min read
Temperature Inversions: Why Cold Air Gets Trapped in Bay Area Valleys

Key Takeaways

  • ✓A temperature inversion occurs when warm air sits above cool air, preventing vertical mixing and trapping the lower air layer in place. That is the opposite of normal atmospheric conditions.
  • ✓The marine layer's sharp fog ceiling is the visible signature of the subsidence inversion created by the descending air of the North Pacific High.
  • ✓Winter valley fog forms when the ground loses heat on clear nights and chills the air above it, creating a radiation inversion. In the Central Valley, tule fog under stubborn high pressure can last several days.
  • ✓Inversions are the main driver of Bay Area air quality. Pollutants from traffic, industry and wood burning build up below the inversion ceiling with nowhere to go.
  • ✓Wildfire smoke at altitude can descend through the inversion base and become trapped at ground level, producing dangerous air quality from fires hundreds of miles away.

Live fog map

Check the San Francisco Bay Area fog forecast

Reading about Bay Area fog is useful. Seeing where it is right now is better. Use the live fog map to compare the next 36 hours, or open the fog heat map to see which Bay Area microclimates receive the most fog over a typical year.

On a typical summer morning in the Bay Area, you can drive out of the fog and into warm sunshine just by climbing 1,000 feet or so. That seems backwards, because air normally gets cooler as you go higher. The reason is a temperature inversion, one of the most important features of Bay Area weather. Inversions give the marine layer its sharp top, hold winter fog in the valleys for days and trap pollution over the region's crowded lowlands. Once you understand them, much of the region's weather starts to make sense.

What Is a Temperature Inversion?

Normally, air temperature drops with height, by an average of about 3.5°F for every 1,000 feet. Air warmed at the ground is lighter than the cooler air above it, so it rises and keeps the lower atmosphere well mixed. In a temperature inversion, a layer of warmer air sits on top of cooler air. That warm layer forms a stable cap, acting like a lid that stops the cool air below from rising and mixing.

The Bay Area has two main kinds of inversions. The marine layer inversion forms when air sinking under the North Pacific High is squeezed and warmed as it descends. That leaves a layer of warm, dry air on top of the cool, moist marine air near the surface, and it is called a subsidence inversion. The second kind is a radiation inversion, which forms on clear nights when the ground cools and chills the air just above it. Both trap air near the ground and stop it from mixing upward. A broad version of the radiation inversion is what holds tule fog in the Central Valley.

Bay Area temperature inversion diagram showing cold marine air below the inversion layer and warm dry subsidence air above, with fog trapped beneath the inversion ceiling
The marine layer inversion is the most important weather feature in the Bay Area: a warm, dry subsidence air layer above traps the cool, moist marine air below, creating the fog's sharp ceiling and preventing it from mixing with the atmosphere above.

The Marine Layer Inversion

The sharp top of the marine layer, where fog gives way to blue sky, is the visible sign of the subsidence inversion. Below it, the air is cool and moist enough to form fog. Above it, the air is warm, dry and clear. The height of the inversion controls how much land the fog covers. When the inversion sits at 1,000 feet, the fog covers the cities and lower hills, and higher ridges poke out into sunshine. When it rises to 2,500 feet, the marine layer is deep enough to bury most of the hills too.

The height of the inversion changes from day to day and season to season. In summer, the strong North Pacific High presses down on the marine layer and often holds the inversion at a few hundred to about 2,000 feet. When the high is especially strong, it can squeeze the marine layer to 500 or 600 feet. Fog then hugs the coast and the bay while inland areas stay sunny. When the high weakens or a low moves in offshore, the marine layer deepens and fog can push far inland and linger. Bay Area forecasters watch the inversion height closely, because it is one of the best clues to how the fog will behave.

Valley Inversions and Tule Fog

Winter radiation inversions work differently but can be just as dramatic. On clear, calm nights in fall and winter, the ground loses heat to space and cools. The air touching the cold ground cools too and becomes denser than the air above it. That cold air drains off slopes and ridges and pools in the lowest valleys. If it cools to its dew point, its moisture condenses into fog. The inversion holding that fog is often only a few hundred feet deep, but it can keep the fog in place all night and into the morning.

The Bay Area's many valleys make it prone to these winter inversions. The Livermore Valley, the Santa Clara Valley around San Jose and the North Bay valleys all trap cold air on still nights and often wake to radiation fog. The biggest example lies just to the east, in the Central Valley, where tule fog can fill the valley floor. Once that fog forms, its bright top reflects sunlight back to space and keeps the ground from warming enough to break the inversion. Under stubborn high pressure, Central Valley tule fog can last for several days with few breaks.

Inversions and Air Quality

Temperature inversions are one of the biggest drivers of Bay Area air quality. When an inversion caps the lower atmosphere, pollution from traffic, industry and wood burning is trapped in the shallow layer beneath it. The Bay Area Air Quality Management District calls Spare the Air alerts when it expects unhealthy air. In winter, those alerts usually come during calm, cold spells with strong inversions, and they ban burning wood in fireplaces and stoves.

Wildfire smoke and inversions can be an especially unhealthy combination. Smoke from distant fires often arrives high overhead, and it can mix down to the ground as the air stirs during the day. Once near the surface, it can be trapped under an inversion and linger at breathing level, even when the fire is hundreds of miles away. Some of the worst air quality days in Bay Area history came when strong inversions held smoke from major Northern California fires near the ground for days. Over the ocean, the same warm-over-cold layer can make the Farallon Islands appear to float, as our guide to Fata Morgana mirages explains.

Deep Dive: What Makes a Layer of Air Stable?

Stability describes what happens to a pocket of air that gets nudged up or down. In unstable air, a rising pocket keeps rising on its own. In stable air, it is pushed back to where it started. An inversion is the most stable arrangement the lower atmosphere can take.

Why Does Stable Air Resist Rising?

A pocket of dry air that rises cools by about 5.5°F for every 1,000 feet, because it expands as the pressure around it drops. Whether it keeps going depends on how its temperature compares with the air around it. If the surrounding air cools faster with height, the rising pocket stays warmer and lighter than its surroundings, and it keeps rising.

If the surrounding air cools more slowly, the rising pocket quickly becomes colder and heavier than its neighbors. It sinks back down. In an inversion, the surrounding air actually gets warmer with height, so the contrast grows very fast.

By our calculation, consider a pocket of marine air pushed 1,000 feet up into an inversion where the air warms by 10°F over that distance. The pocket cools by 5.5°F as it rises, so it ends up about 15°F colder than the air around it. That is a strong force pulling it back down, which is why the inversion acts as a lid.

Meteorologists often use a quantity called potential temperature to compare air at different heights. It is the temperature a pocket of air would have if it were brought down to sea level and warmed by compression. When potential temperature rises with height, the air is stable, and an inversion is where it rises fastest.

Why Does Pollution Build Up Under an Inversion?

Air near the ground mixes freely up to the base of the inversion, but not beyond it. Air quality forecasters call that depth the mixing height. Smoke and exhaust released at the ground spread through the air below the mixing height and stop there.

A simple way to see the effect is to treat the air below the inversion as a box. If the same amount of pollution goes into a box half as tall, the concentration doubles. By our calculation, lowering the mixing height from 2,000 feet to 500 feet raises the concentration of the same emissions fourfold.

That is why winter mornings in the inland valleys can bring Spare the Air days. Clear, calm nights build shallow radiation inversions, and wood smoke and exhaust collect below them. The air stays smoky until the sun warms the ground and breaks the inversion. A strong marine inversion can do the same thing to wildfire smoke in summer and fall.

Frequently Asked Questions

What is a temperature inversion?

A temperature inversion is a layer of the atmosphere where temperature increases with altitude rather than decreasing, as it normally does. This warm-over-cool configuration is stable. The cool air below is denser than the warm air above, so it cannot rise. The warm layer acts as a lid, trapping the lower air and preventing the vertical mixing that normally keeps the atmosphere well-stirred. The Bay Area has two main types, subsidence inversions, which cap the marine layer, and radiation inversions, which create tule fog.

Why does fog have a sharp ceiling in the Bay Area?

The sharp line where fog ends and blue sky begins marks the base of the subsidence inversion created by the North Pacific High. Below the inversion, the air is cool, moist and saturated, forming fog. Above it, the air is warm, dry, and clear. The inversion height decides how much land the fog covers. At 1,000 feet the fog buries the cities while higher ridges sit in sunshine. At 2,500 feet the marine layer is deep enough to cover most of the hills too.

Why does tule fog persist for days?

Once tule fog forms in the Central Valley, it creates a self-reinforcing feedback loop. The fog reflects sunlight back to space, preventing the solar heating that would normally warm the ground and break the inversion. Without solar heating, the radiation inversion that created the fog stays in place, the fog persists, and the cycle continues. This can maintain zero-visibility conditions for 3-7 days without a weather system strong enough to mix the atmosphere. The Sacramento Valley north of the Bay Area is the most extreme example of this pattern in California.

How do temperature inversions affect Bay Area air quality?

Inversions are the primary driver of the Bay Area's worst air quality episodes. Pollutants from traffic, wood burning, and industry accumulate below the inversion ceiling because there is nowhere for them to go. Vertical mixing is suppressed. The result is a concentrated layer of smog and particulate at ground level. Spare the Air alerts are issued precisely when strong inversions are forecast to trap pollution. Wildfire smoke at altitude can also descend through the inversion base and become concentrated near the surface, producing hazardous air quality from fires hundreds of miles away.

Can you escape a temperature inversion by going uphill?

Yes. Hillside neighborhoods above the inversion base sit in the warm, dry air above it. The valley floors stay in the cool, foggy or smoggy air below. This is why upper Berkeley Hills residents can look down on a blanket of fog covering the flatlands below. The elevation needed varies by day. Sometimes 800 feet is sufficient, other days the inversion base is higher and you need 1,500 feet to break free. Weather forecasts describing "fog below X feet" are telling you the approximate inversion height.

Was this article helpful?

Live Bay Area Conditions

Compare temperature, wind, clouds, and comfort across the map.

See which microclimates are clear, cool, windy, smoky, or warming up right now.

Open the Weather Map