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.

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 | Fog | |
|---|---|---|
| What it is | A layer of cool, moist ocean air under a warm inversion | A cloud at ground level |
| How it looks | Gray overcast, low clouds or fog | Low visibility at the surface |
| Typical depth | About 1,000 to 2,000 feet | From the ground up to the cloud top |
| Can exist without the other? | Yes, as overcast with no fog | Yes, 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.















