July in San Francisco is cool, dry and often foggy, with an average downtown high near 66°F and almost no rain. Fog hangs on longest over the west side of the city. The Mission and the East Bay are sunnier, and inland towns reach the mid-80s.
Mark Twain never wrote “The coldest winter I ever spent was a summer in San Francisco,” but the weather records back up the joke. Downtown's average July high is a little lower than June's and nearly 4 degrees below September's.
What Is July Weather Like in San Francisco?
July weather in San Francisco feels like summer almost everywhere in California except the city itself. Inland valleys bake in the mid-80s while the west side of the city sits under fog. Visitors who packed for California heat often end up buying sweatshirts. The useful question is not whether July is cold, but where and when it is cold, and how far you have to go to find sun.
| Average high / low | 66.3°F (19.1°C) / 54.4°F (12.4°C) |
|---|---|
| Average rain | Almost none: 0.01 in (under 1 mm) |
| Days at 70°F or warmer | About 7 |
| Foggy mornings | Most days on the west side; fog often lingers all afternoon at the coast |
| Inland at 3 PM | About 86°F in Walnut Creek, 83°F in San Jose |
| Ocean temperature | About 56°F offshore; about 68°F in the bay at Alameda |
| Record high | 99°F on July 3, 1931 |
| Wettest July | 0.73 in, nearly all on July 8, 1974 |
| Sunset | About 8:36 PM on July 1, 8:19 PM on July 31 |
San Francisco Downtown station (USW00023272), NOAA 1991-2020 normals and records via RCC-ACIS. Fog and inland temperatures from NOAA High-Resolution Rapid Refresh (HRRR) model analysis, September 2014 to April 2026. Ocean temperatures from the NOAA NCEI Coastal Water Temperature Guide (buoy 46026 and Alameda 9414750). Sunset times computed for 2027.
Why Is San Francisco So Cold in July When It's Hot Inland?
San Francisco is cold in July because the heat inland pulls cool ocean air into the city. Hot air over the Central Valley rises, and cool, damp air from the ocean rushes in to replace it. That ocean air flows through the Golden Gate and carries the fog with it. The hotter the valley gets, the harder it pulls, and July is when that pull is strongest.
That is why July's average high downtown is slightly below June's and almost 4 degrees below September's, the warmest month of the year in the city. Our guides to why San Francisco is so cold in summer and the science of Karl the Fog explain the pattern in more detail.
Where in San Francisco Is It Sunny in July?
The east side of San Francisco is the sunny side in July. In NOAA weather model records going back to 2014, fog still covers the Outer Sunset on about half of July afternoons. Golden Gate Park is foggy on about a quarter of them, and downtown almost never.
| Outer Sunset | Fog in about 50% of 2 PM hours; about 57°F at 3 PM |
|---|---|
| Golden Gate Park | Fog in about 25% of 2 PM hours |
| Downtown | Fog in about 2% of 2 PM hours (35% at 7 AM) |
| Mission District | About 69.5°F at 3 PM |
| Oakland | About 71°F at 3 PM |
| Walnut Creek | About 86°F at 3 PM |
Share of July hours with fog at the surface and average July 3 PM temperature, NOAA HRRR model analysis, September 2014 to April 2026. In July 2025, the model put the Outer Sunset at about 7 hours of sun a day and downtown at about 11.
The Mission District is about 12 degrees warmer than the Outer Sunset on a typical July afternoon. Plan afternoons in the Mission, SoMa, Potrero Hill or along the bay-side waterfront, and save the coast for a sunny break.
The time of day matters as much as the place. Downtown, July fog is mostly a morning event that covers the area on about one morning in three. By 2 PM it is almost always gone, so a gray morning downtown usually turns into a bright afternoon.
Along the bay shore, the price of sun is wind. At Crissy Field, the afternoon wind averages about 18 mph in July and reaches 15 mph or more on nine afternoons in ten. Sunny and windy is a normal July afternoon on the waterfront. For more, see San Francisco weather by neighborhood and why some neighborhoods are foggier.

How Much Warmer Is It Across the Bay in July?
At the extremes, it is about 25 to 30 degrees warmer across the bay and inland. On a typical July afternoon, the Outer Sunset sits in the upper 50s while Oakland is in the low 70s. Inland, Walnut Creek, San Jose and Napa all reach the 80s.

In practice, a one-hour BART ride or drive is the difference between a fleece and a T-shirt. For more on the gap, see whether San Francisco is really 20 degrees colder than inland and the 30-degree coastal-inland gap.
Does It Ever Rain or Get Hot in San Francisco in July?
Rain almost never falls in San Francisco in July. Nearly two of every three Julys from 1991 to 2020 had no measurable rain at all. The wettest July on record had less than an inch, nearly all of it on July 8, 1974. Thick fog can still leave drizzle on windshields and sidewalks on the west side.
Real heat is just as rare, with about one day at 80°F or warmer downtown in a typical July. Only about one July in ten reached 90°F from 1991 to 2020. Most of the cold-weather complaints in July come from windy afternoons in the 60s, not from extremes. For the records, see the hottest temperatures on record.
The ocean stays cold all summer, at about 56°F off San Francisco in July. Swimmers at Ocean Beach need wetsuits, and the surf there has dangerous rip currents. The shallow bay is much warmer, and at Alameda it is warm enough in July for a comfortable wade. Our guide to Bay Area water temperatures has the details.
What Is the Weather Like for July 4, the Fillmore Jazz Festival and the San Francisco Marathon?
The Fourth of July is reliably dry in San Francisco. The downtown station has recorded no measurable rain on any July 4 since at least 1950, and the day averages a high near 67°F. The real risk for the evening fireworks is fog over the bay. Our guide to Fourth of July weather and fireworks fog covers where to watch.
The Fillmore Jazz Festival fills Fillmore Street on Fourth of July weekend. It is a daytime street fair in the middle of the city, where midday sun is common. The afternoon sea breeze turns cool by late day, so bring a layer.
The San Francisco Marathon runs on the last weekend of July with very early starts. The marine layer, the cool and cloudy ocean air over the coast, usually keeps runners cool. The Golden Gate Bridge crossing is often in fog and wind. The free Stern Grove Festival plays on summer Sundays on the foggy southwest side of the city. Bring a warm layer and a blanket for the afternoon shows.
Is July a Good Time to Visit San Francisco?
July is a good time to visit San Francisco if you plan for cool weather. It is dry, the days are long, and sunset comes after 8:15 PM all month. Real summer heat is only a short trip inland. Pack long pants and a warm fleece or light down jacket for the coast and evenings. Add a T-shirt and sunglasses for sunny afternoons in the Mission or across the bay.
If you want warmer days in the city itself, September is the better bet. You can compare months in the best month to visit, or look at the month before in San Francisco weather in June.
On a July day, check the Bay Area fog forecast to see how far the fog reaches before you pick a neighborhood. Then compare the Outer Sunset and Mission District forecasts, or check Walnut Creek if you want heat.
