How far is San Francisco, CA from Shafter, CA?

The driving distance from San Francisco, CA to Shafter, CA is about 264 miles (424.8 km), with a travel time of about 05h 02m by car.

  • The straight-line flight distance is about 234.8 miles (377.9 km).
  • For a round trip, plan for roughly 10h 04m of driving time before adding stops, traffic, or weather delays.
  • A comfortable departure window is usually 6:00 AM to 8:00 AM PDT.
Trip Tools

Reverse, save, or send this route

This drive is better planned with a longer stop or an overnight stay. Copy the route link, send it to another device, or print a clean version before you head out.

Reverse Route
Quick Snapshot
Road
263.98 mi
05h 02m
Flight
234.81 mi
377.89 km direct

This drive is better planned with a longer stop or an overnight stay.

Learn Distance

Choose another destination from San Francisco.

Flight Distance

Direct air line
234.81 mi
Kilometers
377.89 km
Flight Time
00h 28m

Driving Distance

Road route
263.98 mi
Kilometers
424.84 km
Drive Time
05h 02m

Gas Cost Calculator

Leave and Arrive Planner

Pick a departure time to see your estimated arrival and same-day return window.

Drive time stays fixed at 05h 02m.

Arrival Snapshot
Arrive in Shafter
Thu, May 7, 4:43 PM PDT
Return by in San Francisco
Thu, May 7, 9:46 PM PDT
Useful when you're deciding between a quick errand, a day trip, or a longer stop.
Leave San Francisco
2026-05-07T11:41
Arrive Shafter
Thu, May 7, 4:43 PM PDT
Route Timing
05h 02m
One way by road
Best Departure Window
6:00 AM to 8:00 AM PDT
Leave early for more breathing room
Arrive between
11:02 AM to 1:02 PM PDT

An early departure helps you fit a real stop into the day without turning the return into a late-night drive.

Leave by
6:56 AM PDT
Keeps a same-day return open with about 04h 00m at the destination.
Back in San Francisco
9:00 PM PDT
Early departure recommended

You are leaving earlier than the recommended window, which gives you extra margin for breaks and traffic.

Halfway Point

A useful midpoint for breaks, coffee, or meeting in the middle.

Mid-route stop
South Dos Palos
CA

Census-designated place in Merced County, California

From San Francisco
132 mi
02h 31m
To Shafter
132 mi
02h 31m

Route Weather Snapshot

Check the forecast at both ends before you head out.

Origin
74°F
Thursday

Patchy Fog then Mostly Sunny

Starts
Thu, May 7 6:00 AM PDT
Wind
0 to 9 mph W
Destination
89°F
Thursday

Sunny

Starts
Thu, May 7 6:00 AM PDT
Wind
0 to 5 mph NW

Driving Route Map

The map below follows the saved road route between San Francisco and Shafter.

Turn-by-Turn Driving Directions

Step-by-step road directions between San Francisco and Shafter.

  1. 1

    Start on Market Street

    95 m · 8 sec · Market Street

  2. 2

    Turn right onto 11th Street

    3173 ft · 2 min · 11th Street

  3. 3

    Turn left onto Bryant Street

    1724 ft · 1 min · Bryant Street

  4. 4

    Take the ramp left toward I 80 East: Oakland

    1538 ft · 26 sec

  5. 5

    Merge slight right onto Route 80

    1.5 km · 1 min · Route 80

  6. 6

    Continue on Dwight D. Eisenhower Highway

    5.8 mi · 9 min · Dwight D. Eisenhower Highway

  7. 7

    Take the exit slight right toward I 580 East: Downtown Oakland, Hayward-Stockton

    1.6 km · 1 min

  8. 8

    Merge slight left onto MacArthur Freeway

    15.9 mi · 18 min · MacArthur Freeway

  9. 9

    Merge slight left onto Arthur H. Breed Junior Freeway

    11.5 mi · 13 min · Arthur H. Breed Junior Freeway

  10. 10

    Keep slight right to continue on Arthur H. Breed Junior Freeway

    17.8 mi · 21 min · Arthur H. Breed Junior Freeway

  11. 11

    Keep slight right to continue on William Elton Brown Freeway

    11.1 mi · 12 min · William Elton Brown Freeway

  12. 12

    Keep slight left to continue on William Elton Brown Freeway

    5.9 mi · 6 min · William Elton Brown Freeway

  13. 13

    Merge slight left onto Westside Freeway

    177.5 mi · 3 hr 10 min · Westside Freeway

  14. 14

    Take the exit slight right toward Lerdo Highway

    1290 ft · 39 sec

  15. 15

    Turn left onto West Lerdo Highway

    14.9 mi · 26 min · West Lerdo Highway

  16. 16

    Turn left onto Jackson Avenue

    98 m · 14 sec · Jackson Avenue

  17. 17

    Arrive at your destination

    0 m · 1 sec · Jackson Avenue

Car Route Details

A richer read on the saved driving route between San Francisco and Shafter.

OSRM road route
Drive Character

Highway-focused drive

Most of the mileage stays on named highways, so the important moments are ramps, exits, merges, and the final local approach.

Directions
17 steps
4 turns on the saved route
Ramps & Exits
7
4 merges, 3 ramps or exits
Navigation Density
6.4 / 100 mi
Decision points by distance
Main Roads
Westside Freeway
177 mi · 67%
Arthur H. Breed Junior Freeway
29.3 mi · 11%
William Elton Brown Freeway
17 mi · 6%
MacArthur Freeway
15.9 mi · 6%
West Lerdo Highway
14.9 mi · 6%
Dwight D. Eisenhower Highway
5.76 mi · 2%
Longest Stretch

Westside Freeway

Merge slight left onto Westside Freeway

177 mi · 03h 10m

Route Summary

A quick read on whether this route feels easy, ambitious, or worth planning around.

Trip Read

A longer out-and-back drive

This is still possible in one day, but it becomes a long driving day. Leaving early and planning your stop window matters more here.

Drive Time
05h 02m
Long day trip
Same-Day Return
10h 04m
Round-trip wheel time
Road vs Air
+29.2 mi
234.8 mi direct line
Halfway Stop
South Dos Palos
02h 31m from San Francisco
Leave By
6:56 AM PDT
Early departure recommended
Weather Watch

Patchy Fog then Mostly Sunny leaving San Francisco and Sunny near Shafter.

Trip Questions

Direct answers travelers usually want before committing to the drive.

How long does it take to drive from San Francisco to Shafter?

The road trip is about 264 miles (424.8 km) and usually takes 05h 02m in normal driving conditions.

Is this a same-day trip or an overnight route?

This is still possible in one day, but it becomes a long driving day. Leaving early and planning your stop window matters more here.

What is the halfway point on this route?

South Dos Palos is a useful midpoint, sitting about 132 miles from San Francisco and 132 miles from Shafter.

How much longer is the road route than the straight-line distance?

The direct path is about 234.8 miles (377.9 km), while the road route adds roughly 29.2 extra miles because roads do not follow the straight air line.

When is the best time to leave for this route?

A good departure window is usually 6:00 AM to 8:00 AM PDT. If you want a more comfortable same-day return, try to leave by 6:56 AM PDT.

How much will gas cost for this route?

Using about 28.3 MPG, regular gas is estimated at $53.71 one way or $107.42 round trip. Estimated CO2 is about 82.7 kg one way.

What should you check before leaving?

Before you leave, expect Patchy Fog then Mostly Sunny around San Francisco and Sunny near Shafter.

Stop Ideas Near South Dos Palos

Useful break, food, and waypoint ideas within about 15 miles of the route midpoint.

Mid-route Guidance
Local place coverage is thin around South Dos Palos, so nearby transit and meeting points are shown instead.
Reviewed stop coverage is still thin around this midpoint, so practical transit waypoints are shown on the right.

Transit and Meeting Points

Useful pickup, handoff, or rendezvous points close to South Dos Palos.

RAIL

Merced station

41 mi away
324 West 24th St
RAIL

Madera

56 mi away
Avenue 15 1/2 at 29th Road
RAIL

Denair station

64 mi away
3800 Santa Fe Avenue
RAIL

Fresno station

81 mi away
2650 Tulare St.

Flight Path Map

This map shows the direct air route between San Francisco and Shafter. Straight-line distance: 234.81 mi (377.89 km).

San Francisco

#1 San Francisco

The seventeenth most populous city in the United States and the center of the San Francisco Bay Area.

Population866,606
Coordinates37.7749300, -122.4194200
Altitude16
CountryUnited States
Shafter

#2 Shafter

City in Kern County, California, United States

Population20,739
Coordinates35.5005100, -119.2717800
Altitude106
CountryUnited States
Start: San Francisco (-122.41942, 37.77493)
End: Shafter (-119.27178, 35.50051)

Estimated Travel Time

Distance: 425 km by road

SpeedTime
30 mph (48.3 km/h)08h 47m
40 mph (64.37 km/h)06h 35m
50 mph (80.47 km/h)05h 16m
60 mph (96.56 km/h)04h 23m
70 mph (112.65 km/h)03h 46m
80 mph (129 km/h)03h 17m

Fuel, Round Trip and CO2

Estimated fuel cost and emissions for this route.

One-way fuel
9.31 gal
35.26 L · about $53.71
Round trip
$107.42
18.62 gal · 70.52 L
Estimated CO2
82.7 kg one way
Round trip: 165.5 kg / 365 lb CO2, using regular gasoline.
Fuel$/galOne wayRound trip
Regular gas $5.77 $53.71 $107.42
Mid-grade $6.07 $56.47 $112.95
Premium $6.24 $58.12 $116.24
Diesel $7.57 $70.45 $140.90

Assumes 8.3 L/100 km (about 28.3 MPG). CO2 is an estimate and varies by vehicle, fuel blend, traffic, and terrain.

Prices in California · May 07, 2026

There is no time difference between San Francisco and Shafter. The current time is 11:41:24.

Distance to Other Cities

Planning a road trip? See the full trip guide on Trip.ovh — stops, fuel costs, weather, and departure timing.

How did we calculate? Place names are translated into coordinates. The Haversine formula calculates straight-line distance; driving distance uses road network data.