Course library

San Francisco Marathon

San Francisco, CA. 234 days to race day.

The San Francisco Marathon is 26.2 miles (42.195 km) in San Francisco, CA, with 1,045 ft of climbing, starting and finishing at about the same elevation. It scores 67/100 on the Runner's Math Difficulty Index (#3 of 75 marathons): the profile costs about 5:07 versus a flat course at 4:00-marathon pace. Next race: Sunday, July 25, 2027.

Goal finish time
::
Start time
:

Your pace and splits

Type a goal finish time. You get the average pace and a mile-by-mile split sheet that slows for every climb on this course and speeds up on the descents, with race-morning weather worked in.

Mile by mile

Climb and grade for each split. Add a goal time above for paces.

MileGrade
1−0.1%
20.0%
30.0%
4+0.1%
50.0%
6+0.8%
7+2.5%
8−0.2%
9+0.6%
10−1.5%
11−1.1%
12+2.0%
13+0.1%
14+0.9%
15−2.2%
16+1.0%
17+1.8%
180.1%
19−0.5%
20+0.3%
21−1.9%
22−2.5%
23−0.2%
24+0.3%
25−0.4%
260.0%
26.20.0%

Elevation profile

Hover or drag along the profile; the map follows.

Loading elevation…

Course map and facts

Loading map…
Distance
26.22 mi
Total climb
+1,045 ft
Total descent
−1,044 ft
Net elevation
+1 ftuphill
Steepest grade
9.8%
Start altitude
12 ft

Weather during the race

Climate average for this date over the last three years. The real forecast arrives in 218 days. Rows follow your start time and goal.

TimeTempDew pointWind
Start57–58°F54°8 mph SW
6 AM57–59°F54°9 mph SW
7 AM57–60°F54°9 mph W
8 AM58–62°F54°10 mph W
9 AM59–64°F54°11 mph W
Finish60–66°F54°11 mph W

How hard the course is

67out of 100, hard

The profile costs 5:07 against a flat course at 4:00-marathon pace. That ranks the San Francisco Marathon 3 of 75 marathon courses, hardest first.

See every course ranked

San Francisco Marathon pace chart

The fitness that runs the flat-course time finishes here in about the time beside it, after hills and altitude. Weather is extra. Choose a time to load it into the planner.

Flat courseHerePace /miPace /km
3:003:03:507:014:21
3:303:34:288:115:05
4:004:05:079:215:49
4:304:35:4510:316:32
5:005:06:2311:417:16
5:305:37:0212:517:59

How the San Francisco Marathon compares

Head to head with nearby and similar races: which is harder, by how much at your pace, and both profiles on one scale.

Race-morning weather, past 10 years

From the 5:00 a.m. start on this date, the median race morning is 59°F with a 54°F dew point and 10 mph of wind. To see what a warmer, more humid morning would cost at your goal, try the heat pace calculator.

Race mornings at the San Francisco Marathon, 2017–2026

2 of the last 10 race mornings were warm and humid enough to slow race pace.

TemperatureDew point
5052.55557.560°F▲20172018▲20192020202120222023202420252026▲ warm enough to slow race pace

Average over the four hours from the race start on this calendar date, ERA5 reanalysis via Open-Meteo.

YearTempDew pointWind
202659°F53°F7 mph
202557°F54°F9 mph
202459°F55°F10 mph
202359°F54°F6 mph
202255°F52°F13 mph
202155°F52°F14 mph
202057°F53°F10 mph
201960°F (warm)55°F10 mph
201859°F55°F12 mph
201759°F (warm)56°F9 mph

Conditions averaged over the four hours from the start on the San Francisco Marathon’s calendar date each year, from the ERA5 reanalysis archive. The window opens at the race’s official start time (to the nearest hour). The date is the race’s usual slot, not always each edition’s exact day. Warm mornings are marked in orange.

Train for this course

A free week-by-week plan at your own paces, shaped by the San Francisco Marathon’s hills and its race-morning weather.

For race day, the fueling calculator turns your finish time into gels, fluid and sodium, and the Boston qualifier calculator checks it against your age group’s standard.

See the San Francisco Marathon plan

See all July 2027 marathons

San Francisco Bay Area Marathon Pace Calculator & Race Plan

The San Francisco Marathon is the premier bay area marathon, running through some of the most iconic scenery in American road racing. The course crosses the Golden Gate Bridge, winds through the Presidio and Haight-Ashbury, and follows the Embarcadero along the waterfront. With 319 meters of elevation gain, this is a genuinely hilly marathon that includes steep neighborhood climbs and the sustained ascent to the bridge deck.

The marathon in SF's Bay Area presents a unique weather challenge. July mornings typically start in thick fog with temperatures in the low 50s, but by late morning the sun can break through and push temps into the 60s or higher. Our pace model adjusts for the front-loaded hills and shifting conditions so you can stay conservative through the climbs and run the flatter back half with confidence.

Questions about the San Francisco Marathon

When is the next San Francisco Marathon?

The next San Francisco Marathon is on Sunday, July 25, 2027.

How many miles is the San Francisco Marathon?

The San Francisco Marathon is 26.2 miles (42.195 km), the standard marathon distance. It runs in San Francisco, CA.

How much elevation gain does the San Francisco Marathon have?

The San Francisco Marathon course has about 1,045 ft (319 m) of total elevation gain and 1,044 ft (318 m) of elevation loss, with a maximum grade of 9.8%.

Is the San Francisco Marathon flat, downhill, or hilly?

The San Francisco Marathon starts and finishes at roughly the same elevation (net +0 m). With 1,045 ft of total climbing along the way, the profile rolls even though the net change is small.

How hard is the San Francisco Marathon?

Runner's Math scores the San Francisco Marathon 67/100 (Hard) — #3 of 75 marathon courses in our library, ranked by modeled time cost. The profile costs about 5:07 versus a flat course for a runner at 4:00-marathon pace.

What's the weather usually like at the San Francisco Marathon?

Over the past 10 years on this date, median conditions from 5am to 9am were 59°F with a 54°F dew point and 10 mph wind. 2 of 10 years were warm enough to slow race pace.