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.

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.















