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

The driving distance from San Bernardino, CA to Shafter, CA is about 181.1 miles (291.4 km), with a travel time of about 03h 29m by car.

  • The straight-line flight distance is about 147.9 miles (238.1 km).
  • For a round trip, plan for roughly 06h 59m 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
181.04 mi
03h 29m
Flight
147.97 mi
238.13 km direct

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

Learn Distance

Choose another destination from San Bernardino.

Flight Distance

Direct air line
147.97 mi
Kilometers
238.13 km
Flight Time
00h 17m

Driving Distance

Road route
181.04 mi
Kilometers
291.36 km
Drive Time
03h 29m

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 03h 29m.

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

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

Leave by
10:00 AM PDT
Keeps a same-day return open with about 04h 00m at the destination.
Back in San Bernardino
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
Val Verde
CA

Census-designated place in Los Angeles County, California

From San Bernardino
90.5 mi
01h 44m
To Shafter
90.5 mi
01h 44m

Route Weather Snapshot

Check the forecast at both ends before you head out.

Origin
87°F
Thursday

Sunny

Starts
Thu, May 7 6:00 AM PDT
Wind
0 to 15 mph SW
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 Bernardino and Shafter.

Turn-by-Turn Driving Directions

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

  1. 1

    Start on West 5th Street

    1.1 km · 1 min · West 5th Street

  2. 2

    Take the ramp right toward I 215 North: Barstow

    1769 ft · 45 sec

  3. 3

    Merge slight left onto San Bernardino Freeway

    1.5 mi · 2 min · San Bernardino Freeway

  4. 4

    Continue on Barstow Freeway

    2632 ft · 35 sec · Barstow Freeway

  5. 5

    Take the exit slight right toward CA 210 West: Pasadena

    1 mi · 2 min

  6. 6

    Merge slight left onto Foothill Freeway

    21.4 mi · 25 min · Foothill Freeway

  7. 7

    Keep slight right to continue on Foothill Freeway

    1.2 mi · 1 min · Foothill Freeway

  8. 8

    Keep slight right to continue on Foothill Freeway

    2.4 mi · 3 min · Foothill Freeway

  9. 9

    Keep slight right to continue on Foothill Freeway

    1.4 mi · 2 min · Foothill Freeway

  10. 10

    Keep slight right to continue on Foothill Freeway

    1.8 mi · 2 min · Foothill Freeway

  11. 11

    Keep slight right to continue on Foothill Freeway

    20 mi · 23 min · Foothill Freeway

  12. 12

    Keep slight right to continue on Foothill Freeway

    25.6 mi · 30 min · Foothill Freeway

  13. 13

    Keep slight right

    686 ft · 9 sec

  14. 14

    Merge slight right

    1.6 km · 1 min

  15. 15

    Keep slight left

    36.1 mi · 42 min

  16. 16

    Keep slight left to continue on Golden State Freeway

    22.3 mi · 25 min · Golden State Freeway

  17. 17

    Keep slight left to continue on Golden State Freeway

    27.4 mi · 30 min · Golden State Freeway

  18. 18

    Keep slight left to continue on Golden State Freeway

    6 mi · 7 min · Golden State Freeway

  19. 19

    Continue on Golden State Highway

    3.8 mi · 4 min · Golden State Highway

  20. 20

    Take the exit slight right toward Lerdo Highway

    1338 ft · 35 sec

  21. 21

    Turn left onto Lerdo Highway

    6.2 mi · 8 min · Lerdo Highway

  22. 22

    Turn right onto Central Valley Highway

    129 m · 12 sec · Central Valley Highway

  23. 23

    Turn left onto Jackson Avenue

    14 m · 2 sec · Jackson Avenue

  24. 24

    Arrive at your destination

    0 m · 1 sec · Jackson Avenue

Car Route Details

A richer read on the saved driving route between San Bernardino 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
24 steps
3 turns on the saved route
Ramps & Exits
6
3 merges, 3 ramps or exits
Navigation Density
13.3 / 100 mi
Decision points by distance
Main Roads
Foothill Freeway
111 mi · 61%
Golden State Freeway
55.6 mi · 31%
Lerdo Highway
6.42 mi · 4%
Golden State Highway
3.79 mi · 2%
San Bernardino Freeway
1.52 mi · 1%
CA 210 West
1.02 mi · 1%
Longest Stretch

Foothill Freeway

Keep slight left

36.1 mi · 00h 42m

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
03h 29m
Long day trip
Same-Day Return
07h 00m
Round-trip wheel time
Road vs Air
+33.2 mi
147.9 mi direct line
Halfway Stop
Val Verde
01h 44m from San Bernardino
Leave By
10:00 AM PDT
Early departure recommended
Weather Watch

Sunny leaving San Bernardino 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 Bernardino to Shafter?

The road trip is about 181.1 miles (291.4 km) and usually takes 03h 29m 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?

Val Verde is a useful midpoint, sitting about 90.5 miles from San Bernardino and 90.5 miles from Shafter.

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

The direct path is about 147.9 miles (238.1 km), while the road route adds roughly 33.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 10:00 AM PDT.

How much will gas cost for this route?

Using about 28.3 MPG, regular gas is estimated at $36.86 one way or $73.73 round trip. Estimated CO2 is about 56.8 kg one way.

What should you check before leaving?

Before you leave, expect Sunny around San Bernardino and Sunny near Shafter.

Stop Ideas Near Val Verde

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

Mid-route Guidance
Local place coverage is thin around Val Verde, 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 Val Verde.

RAIL

Santa Clarita-Newhall, California

14 mi away
24300 Railroad Avenue
RAIL

Simi Valley

20 mi away
5050 Los Angeles Avenue
RAIL

Chatsworth station

22 mi away
10040 Old Depot Plaza Road
BUS

Fillmore, California

24 mi away
718 West Ventura St.

Flight Path Map

This map shows the direct air route between San Bernardino and Shafter. Straight-line distance: 147.97 mi (238.13 km).

San Bernardino

#1 San Bernardino

The second most populous city in San Bernardino County, California.

Population217,491
Coordinates34.1083400, -117.2897700
Altitude321
CountryUnited States
Shafter

#2 Shafter

City in Kern County, California, United States

Population20,739
Coordinates35.5005100, -119.2717800
Altitude106
CountryUnited States
Start: San Bernardino (-117.28977, 34.10834)
End: Shafter (-119.27178, 35.50051)

Estimated Travel Time

Distance: 291 km by road

SpeedTime
30 mph (48.3 km/h)06h 01m
40 mph (64.37 km/h)04h 31m
50 mph (80.47 km/h)03h 37m
60 mph (96.56 km/h)03h 01m
70 mph (112.65 km/h)02h 35m
80 mph (129 km/h)02h 15m

Fuel, Round Trip and CO2

Estimated fuel cost and emissions for this route.

One-way fuel
6.39 gal
24.18 L · about $36.86
Round trip
$73.73
12.78 gal · 48.36 L
Estimated CO2
56.8 kg one way
Round trip: 113.6 kg / 250 lb CO2, using regular gasoline.
Fuel$/galOne wayRound trip
Regular gas $5.77 $36.86 $73.73
Mid-grade $6.07 $38.76 $77.52
Premium $6.24 $39.89 $79.79
Diesel $7.57 $48.35 $96.71

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 Bernardino 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.