San Francisco is a compact city of approximately 808,000 people occupying 121 square kilometers at the tip of a narrow peninsula between the Pacific Ocean to the west and San Francisco Bay to the east. The city's terrain is famously hilly — 43 named hills rise across the peninsula, creating the steep grades and dramatic vistas that define the city's character. Twin Peaks, near the geographic center of the city, rises 282 meters and offers panoramic views of the bay, the ocean, and the surrounding mountains.
Introduction
The Golden Gate, a narrow strait just 1.6 kilometers wide, connects San Francisco Bay to the Pacific Ocean. This strait — and the magnificent 2,737-meter suspension bridge that spans it — is the city's defining geographic feature. San Francisco Bay itself is the largest Pacific estuary in the Americas, covering approximately 1,600 square kilometers. The bay was unknown to European explorers until 1769 because fog frequently obscured the narrow Golden Gate entrance from ships passing along the coast.
Physical Geography & Terrain
- City Area: 121 km² (land)
- Elevation Range: 0–282 m (Mount Davidson)
- Named Hills: 43
- Golden Gate Strait: 1.6 km wide, 113 m deep
- Founding Year: 1776 (Spanish mission)
San Francisco's terrain was sculpted by a combination of tectonic uplift, erosion, and the advance and retreat of glacial-era sea levels. The peninsula is composed of several distinct geological formations, including the Franciscan Complex (a jumble of sandstone, chert, serpentinite, and volcanic rock) and younger sand dune deposits that cover much of the western half of the city. The Marina District is built on fill material, much of it rubble from the 1906 earthquake, making it particularly vulnerable to liquefaction during seismic events.
The 43 named hills create a topography unlike any other American city. Nob Hill, Russian Hill, and Telegraph Hill rise steeply from the waterfront in the northeastern part of the city. The famous cable cars, introduced in 1873, were invented specifically to navigate these grades, some exceeding 30 percent. The hills also create distinct microclimates — sunny and warm on south-facing slopes, foggy and cool on the western side.
Bay, Ocean & Waterways
- San Francisco Bay: ~1,600 km²
- Pacific Coastline: ~11 km of ocean beach
- Tidal Range: ~1.8 m at Golden Gate
- Alcatraz Island: 0.09 km², 2.4 km from shore
San Francisco Bay is a complex estuarine system fed by the Sacramento and San Joaquin rivers, which drain roughly 40 percent of California's land area. The bay has been dramatically reduced from its original extent — roughly one-third has been filled in for development or diked for salt production since the Gold Rush era. A vigorous preservation movement beginning in the 1960s halted further filling and established the San Francisco Bay Conservation and Development Commission.
The city's Pacific coastline features Ocean Beach, a 5.6-kilometer stretch of sand backed by the Great Highway and Golden Gate Park. The waters off San Francisco are cold (averaging 10 to 15 degrees Celsius), rough, and known for strong currents — the tidal flow through the Golden Gate reaches velocities of 2.5 meters per second. Alcatraz Island, 2.4 kilometers offshore in the bay, served as a federal penitentiary from 1934 to 1963 and is now the city's most visited attraction.
Climate, Fog & Microclimates
- Climate Type: Mediterranean (Csb), cool-summer
- Average High (September): 22°C (warmest month)
- Average Low (January): 8°C
- Annual Precipitation: 508 mm
- Fog Season: June–August (heaviest)
San Francisco's climate is unique among major American cities — summer is the foggiest and coolest season, while September and October are the warmest and sunniest months. This counterintuitive pattern results from the interaction of the cold California Current and summer high-pressure systems. As the Central Valley heats up in summer, it draws cool marine air through the Golden Gate, producing the thick advection fog that regularly blankets the city. Mark Twain is often (apocryphally) credited with saying, "The coldest winter I ever spent was a summer in San Francisco."
Microclimates vary dramatically across the compact city. The Mission District, sheltered by Twin Peaks from western fog, is typically 5 to 8 degrees warmer than the Outer Sunset on the same day. The city's average annual temperature is a remarkably mild 14 degrees Celsius, with very little seasonal variation — winter lows average 8 degrees and summer highs average 20 degrees. San Francisco has never recorded a temperature above 41 degrees Celsius.
Earthquake Risk & Geology
- Major Faults: San Andreas (peninsula), Hayward (East Bay)
- 1906 Earthquake: Magnitude 7.9, destroyed 80% of city
- 1989 Loma Prieta: Magnitude 6.9, collapsed Cypress Freeway
- Probability: 72% chance of M6.7+ in Bay Area by 2043
The San Andreas Fault runs along the San Francisco Peninsula roughly 3 kilometers west of the city center, passing through Daly City and continuing offshore through the Gulf of the Farallones. The 1906 earthquake (magnitude 7.9) and subsequent fire destroyed approximately 80 percent of the city, killed over 3,000 people, and left 250,000 homeless. It remains one of the worst natural disasters in American history.
The 1989 Loma Prieta earthquake (magnitude 6.9) struck during the World Series, collapsing a section of the Cypress Freeway in Oakland and a span of the Bay Bridge. The USGS estimates a 72 percent probability of one or more magnitude 6.7 or greater earthquakes in the San Francisco Bay Area by 2043. The city has invested heavily in seismic retrofitting, but thousands of soft-story buildings and structures on filled land remain vulnerable.
Neighborhoods & Economic Geography
- Population: ~808,000 (city), ~4.7 million (metro)
- Population Density: 7,194/km²
- Key Neighborhoods: Financial District, Mission, Haight-Ashbury, Chinatown, Castro
- Metro GDP: $592 billion (2023)
San Francisco's compact geography creates some of the highest population densities west of New York City. The city's neighborhoods are strongly defined by topography — each hilltop and valley has a distinct character. Chinatown, the oldest in North America, occupies a dense cluster of blocks on the slopes of Nob Hill. The Mission District, in a sunny valley between Twin Peaks and Potrero Hill, is the city's Latino cultural center. The Castro, in a sheltered valley below Twin Peaks, is internationally recognized as the historic center of LGBTQ+ rights.
The tech industry's influence has transformed the city's economic geography. While Silicon Valley proper lies 50 kilometers to the south, San Francisco has become the preferred urban headquarters location for tech companies including Salesforce, Twitter (now X), Uber, and Airbnb. The resulting wealth has driven housing costs to among the highest in the nation — the median home price exceeds $1.3 million, and the city has struggled with displacement, homelessness, and growing inequality.
Key Facts
- San Francisco covers just 121 km² on a hilly peninsula with 43 named hills.
- The Golden Gate strait is just 1.6 km wide, connecting the bay to the Pacific Ocean.
- The 1906 earthquake (M7.9) destroyed 80% of the city and killed over 3,000 people.
- Summer fog is caused by cold ocean currents meeting hot inland air drawn through the Golden Gate.
- The median home price exceeds $1.3 million, among the highest in the US.
Fun Facts
- San Francisco's famous fog has a name — locals call it "Karl," after a popular social media account.
- The cable car system is the only mobile National Historic Landmark in the United States.
- Lombard Street's famous crooked section has eight hairpin turns in a single block, but it is not actually the crookedest street in San Francisco — that title belongs to Vermont Street on Potrero Hill.
- One-third of San Francisco Bay has been filled in since the Gold Rush, and the city sits on some of that fill.
Final Thoughts
San Francisco's geography — a hilly peninsula guarding a vast natural harbor through a fog-shrouded strait, crossed by major earthquake faults — has created one of the most beautiful and most precarious cities in the world. Its compact size forces density, its hills create microclimates and neighborhoods, and its seismic reality demands constant engineering vigilance. Understanding San Francisco's physical geography reveals why it looks, feels, and functions so differently from any other American city.
Test Your Knowledge!
Think you know American cities? Try our interactive geography quiz!
Play Geography Games →