Skip to main content
climate sciencefogmicroclimates

What Is the Marine Layer? The Bay Area's Coastal Fog Engine Explained

By SFBayWeatherPublished Last updated 7 min read
What Is the Marine Layer? The Bay Area's Coastal Fog Engine Explained

Key Takeaways

  • ✓The marine layer is a mass of cool, moist air that forms over the cold Pacific, usually 1,000 to 2,000 feet deep in summer. A temperature inversion caps it.
  • ✓It is responsible for San Francisco's summer fog, 30°F temperature differences between coast and inland, and the natural air conditioning that keeps the Bay Area mild.
  • ✓The marine layer is not the same as fog, because fog forms only when the marine layer's cloud base drops to the ground. You can have a marine layer without fog (just overcast skies).
  • ✓The marine layer peaks May through August, driven by the temperature contrast between the cold ocean (50-56°F) and the hot Central Valley (95-105°F).
  • ✓The marine layer weakens in September-October, which is why those months are San Francisco's warmest despite being "fall" on the calendar.

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.

The marine layer is a mass of cool, moist air that forms over the Pacific Ocean and pushes inland over the Bay Area coast. It is the main driver of summer weather in the region. It brings San Francisco's summer fog and creates the 30-degree temperature differences between the coast and inland valleys. It also shapes the sharp San Francisco microclimates and acts as natural air conditioning that keeps the coast mild while Sacramento tops 100 degrees. In summer, the layer is usually 1,000 to 2,000 feet deep, capped by a temperature inversion, a warm layer of air that acts as a lid. When the top of the marine layer fills with moisture, it condenses into the low clouds and fog that define Bay Area summers.

How Does the Marine Layer Form?

The marine layer forms through a specific chain of atmospheric events. The California Current carries cold water southward along the coast, keeping ocean surface temperatures between 50 and 56 degrees F year-round. The North Pacific High, a semi-permanent high-pressure system that parks itself off the California coast in summer, creates persistent sinking air at altitude. That sinking air warms as it descends (a process called subsidence), creating a warm layer above the cool ocean air. The boundary between the cool air below and the warm air above is the inversion.

Below the inversion, air in contact with the cold ocean cools and picks up moisture from the water. That creates a layer of cool, humid air, usually 1,000 to 2,000 feet deep in summer and sometimes much shallower. When the humidity in this layer reaches 100%, the moisture condenses into fog or low clouds. How deep and moist the marine layer is decides what the Bay Area gets. It can bring fog at the ground, a low cloud deck overhead or clear skies with just cool air. A deep, moist marine layer produces thick fog, while a shallow, drier one produces gray skies that burn off by noon.

Cross-section diagram showing the marine layer, temperature inversion, and fog formation over the Bay Area coastline

Why Does the Marine Layer Matter for Bay Area Weather?

The marine layer is the mechanism behind nearly every distinctive Bay Area weather pattern. It is why San Francisco is 15-20 degrees colder than Oakland on summer afternoons. It is why the Outer Sunset averages 60 degrees in July while Walnut Creek hits 95 degrees. It is the reason the sea breeze pulls cool air through every gap in the coastal mountains each afternoon, creating the wind that defines Golden Gate recreation.

The marine layer also affects air quality, especially when the inversion is strong. When the inversion is low and strong, it traps pollution and wildfire smoke near the ground. When the inversion lifts or weakens, the air mixes upward and clears. The same inversion that brings fog can also trap smoke from fires 100 miles away, so some days bring both fog and unhealthy air.

Marine Layer vs. Fog: What’s the Difference?

The marine layer is the whole mass of cool, moist ocean air below the inversion, while fog is a cloud that touches the ground. Fog forms inside the marine layer when the layer is deep and moist enough for its cloud base to drop to the surface. So all Bay Area summer fog is part of the marine layer, but the marine layer is not always fog.

On many days the marine layer shows up as low gray overcast instead. The air at the ground is cool and damp, but the cloud base sits 500 to 1,000 feet up, so you can see under it. Forecasters often describe that as "low clouds" rather than fog. When the cloud base drops to the ground and visibility falls, it becomes fog, and below a quarter mile it can bring a dense fog advisory.

Marine Layer vs. Fog
Marine layerFog
What it isA layer of cool, moist ocean air under a warm inversionA cloud at ground level
How it looksGray overcast, low clouds or fogLow visibility at the surface
Typical depthAbout 1,000 to 2,000 feetFrom the ground up to the cloud top
Can exist without the other?Yes, as overcast with no fogYes, as inland tule or radiation fog

The marine layer is also distinct from tule fog, which is a radiation fog that forms inland in the Central Valley during winter. Tule fog forms from ground cooling on clear, calm nights, while the marine layer is driven by ocean temperature and the Pacific High. They are fundamentally different fog types with different formation mechanisms, seasons, and geographic distributions.

Deep Dive: Where Does the Marine Layer's Warm Lid Come From?

The warm lid on the marine layer is made by air sinking out of the North Pacific High. Sinking air is squeezed by the rising pressure around it, and that squeezing heats it. The result is a layer of warm, dry air resting on top of cool ocean air, with a sharp boundary between them that can hold for weeks.

Why Does Sinking Air Get So Warm?

Air pressure increases as you go down, so a pocket of sinking air is steadily compressed. Compression packs the same energy into a smaller space, which raises the temperature. For dry air the rate is about 5.5°F for every 1,000 feet of descent, the same rate at which rising air cools.

Over the subtropical Pacific, air rises near the equator, flows toward the poles high up and sinks again around 30 degrees north. That sinking branch feeds the North Pacific High. By our calculation, air that sinks 5,000 feet would warm by about 27°F if nothing else affected it. In reality the air also loses some heat by radiating it away, but it still arrives far warmer than the marine air below. It also arrives very dry, because it lost most of its moisture as rain long before, when it first rose near the equator.

What Decides How Deep the Marine Layer Gets?

Two processes push against each other at the top of the marine layer. The sinking air presses the top of the layer down. Meanwhile, turbulence inside the layer churns against the lid and mixes a little of the warm air above into it, which raises the top. Scientists call this mixing entrainment.

Robert Wood of the University of Washington describes this balance in a 2012 review of ocean cloud layers in Monthly Weather Review. When sinking is strong, it wins and the layer gets shallower. When sinking weakens, the mixing lets the layer grow deeper. The depth settles where the two rates match, which is why the marine layer often sits at a similar height for days.

The sinking near the top of the layer is slow, typically a few millimeters per second. By our calculation, 4 millimeters per second adds up to about 1,100 feet a day. That steady push is strong enough to hold the marine layer near 1,000 to 2,000 feet through most of the summer. When an upper-level trough weakens the sinking, the marine layer can deepen to 3,000 feet or more within a day or two.

When Is the Marine Layer Strongest?

The marine layer is strongest from May through August, peaking in June and July. That is when the gap between the cold ocean and the hot Central Valley is greatest and the North Pacific High is strongest. The inversion is also most persistent then. At the peak of the season, the marine layer pushes through the Golden Gate and across the bay every afternoon and evening. It stays overnight and pulls back toward the coast by late morning.

The marine layer weakens in September and October as the Central Valley cools, the Pacific High shifts and the inversion fades. That is why September and October are San Francisco's warmest months, because the marine layer's grip loosens and sun and warmth reach the coast. In winter, the marine layer is largely absent, because Pacific storms break up the inversion. Winter weather in the Bay Area is driven by storms, not by the marine layer.

Understanding the marine layer goes a long way toward understanding Bay Area weather. It is the reason for the region's famous microclimates and the summer fog along the coast. It is also why you can drive 30 minutes from a cold, gray coast to a hot, sunny valley.

Frequently Asked Questions

What is the marine layer?

The marine layer is a mass of cool, moist air that forms over the Pacific Ocean and pushes inland over the Bay Area coast. It sits between the ocean surface and an altitude of 1,000 to 2,000 feet, capped by a temperature inversion that prevents the cool air from mixing upward. When the moisture in the marine layer condenses, it produces the fog and low clouds that define Bay Area summers.

Is the marine layer the same as fog?

The marine layer is not the same as fog. The marine layer is the whole mass of cool, moist ocean air below the inversion, while fog is a cloud that touches the ground. Fog forms inside the marine layer when its cloud base drops to the surface. On other days the marine layer appears as low gray overcast with clouds 500 to 1,000 feet up.

Can the marine layer turn into fog?

Yes. The marine layer turns into fog when its cloud base drops all the way to the ground. That usually happens overnight and in the early morning as the air cools. It also happens on hills such as Twin Peaks and the Marin Headlands, where the land rises into the cloud. As the day warms, the cloud base lifts again and the fog becomes low gray overcast before it clears.

What is the difference between fog and the marine layer?

Fog is a cloud at ground level, while the marine layer is the layer of cool ocean air that often produces it. All Bay Area summer coastal fog forms in the marine layer, but the marine layer can also show up as overcast without fog. Fog can also form without a marine layer, as tule fog does in the Central Valley.

When is the marine layer strongest in the Bay Area?

The marine layer peaks from May through August, with June and July being the strongest months. This is when the temperature contrast between the cold ocean and the hot Central Valley is greatest and the North Pacific High is most robust. It weakens in September and October, which is why those months are the warmest in San Francisco.

What causes the marine layer in the Bay Area?

Three things create the marine layer. The cold California Current keeps the ocean at 50-56°F, and sinking air under the North Pacific High creates a lasting inversion. The contrast with the hot Central Valley then pulls the air onshore. These factors combine most strongly in summer.

How is the marine layer different from tule fog?

The marine layer and tule fog are fundamentally different. The marine layer is driven by ocean temperature and forms along the coast in summer. Tule fog is a radiation fog that forms inland in the Central Valley during winter from ground cooling on clear, calm nights. Different mechanisms, different seasons, different locations.

Was this article helpful?

Related Destinations

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