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

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

  • The straight-line flight distance is about 147.9 miles (238.1 km).
  • For a round trip, plan for roughly 06h 31m 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
182.11 mi
03h 15m
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 Shafter.

Flight Distance

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

Driving Distance

Road route
182.11 mi
Kilometers
293.08 km
Drive Time
03h 15m

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 15m.

Arrival Snapshot
Arrive in San Bernardino
Thu, May 7, 2:48 PM PDT
Return by in Shafter
Thu, May 7, 6:03 PM PDT
Useful when you're deciding between a quick errand, a day trip, or a longer stop.
Leave Shafter
2026-05-07T11:32
Arrive San Bernardino
Thu, May 7, 2:48 PM PDT
Route Timing
03h 15m
One way by road
Best Departure Window
6:00 AM to 8:00 AM PDT
Leave early for more breathing room
Arrive between
9:16 AM to 11:16 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:28 AM PDT
Keeps a same-day return open with about 04h 00m at the destination.
Back in Shafter
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 Shafter
90.4 mi
01h 37m
To San Bernardino
91.7 mi
01h 37m

Route Weather Snapshot

Check the forecast at both ends before you head out.

Origin
89°F
Thursday

Sunny

Starts
Thu, May 7 6:00 AM PDT
Wind
0 to 5 mph NW
Destination
87°F
Thursday

Sunny

Starts
Thu, May 7 6:00 AM PDT
Wind
0 to 15 mph SW

Driving Route Map

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

Turn-by-Turn Driving Directions

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

  1. 1

    Start on Jackson Avenue

    14 m · 4 sec · Jackson Avenue

  2. 2

    Turn right onto Central Valley Highway

    129 m · 10 sec · Central Valley Highway

  3. 3

    Turn left onto East Lerdo Highway

    6 mi · 8 min · East Lerdo Highway

  4. 4

    Take the ramp right toward CA 99 South

    1447 ft · 35 sec

  5. 5

    Merge slight left onto Golden State Highway

    3.9 mi · 4 min · Golden State Highway

  6. 6

    Continue on Golden State Freeway

    5.2 mi · 6 min · Golden State Freeway

  7. 7

    Keep slight left to continue on Golden State Freeway

    27.4 mi · 30 min · Golden State Freeway

  8. 8

    Keep slight left to continue on Golden State Freeway

    58.2 mi · 1 hr 7 min · Golden State Freeway

  9. 9

    Keep slight left to continue on Golden State Freeway

    2 mi · 2 min · Golden State Freeway

  10. 10

    Take the exit slight right toward I 210 East: Pasadena

    1347 ft · 18 sec

  11. 11

    Continue on Foothill Freeway

    24.4 mi · 28 min · Foothill Freeway

  12. 12

    Keep slight right to continue on Foothill Freeway

    19.1 mi · 22 min · Foothill Freeway

  13. 13

    Keep slight right to continue on Foothill Freeway

    2.9 mi · 3 min · Foothill Freeway

  14. 14

    Keep slight right to continue on Foothill Freeway

    1.4 mi · 2 min · Foothill Freeway

  15. 15

    Keep slight right to continue on Foothill Freeway

    1.2 mi · 1 min · Foothill Freeway

  16. 16

    Keep slight right to continue on Foothill Freeway

    1.8 mi · 2 min · Foothill Freeway

  17. 17

    Keep slight right to continue on Foothill Freeway

    22.8 mi · 26 min · Foothill Freeway

  18. 18

    Take the exit slight right toward I 215: Barstow, Riverside

    1209 ft · 29 sec

  19. 19

    Keep slight right to continue on I 215 South: Riverside

    3196 ft · 1 min

  20. 20

    Merge slight left onto Barstow Freeway

    1033 ft · 14 sec · Barstow Freeway

  21. 21

    Continue on San Bernardino Freeway

    1.8 mi · 2 min · San Bernardino Freeway

  22. 22

    Take the exit slight right toward CA 66 West: 5th Street, Civic Center

    1873 ft · 53 sec

  23. 23

    Turn left onto West 5th Street

    1.2 km · 2 min · West 5th Street

  24. 24

    Arrive at your destination

    0 m · 1 sec · West 5th Street

Car Route Details

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

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
2 merges, 4 ramps or exits
Navigation Density
13.2 / 100 mi
Decision points by distance
Main Roads
Golden State Freeway
92.8 mi · 51%
Foothill Freeway
73.7 mi · 40%
East Lerdo Highway
5.99 mi · 3%
Golden State Highway
3.85 mi · 2%
San Bernardino Freeway
1.84 mi · 1%
West 5th Street
0.76 mi
Longest Stretch

Golden State Freeway

Keep slight left to continue on Golden State Freeway

58.2 mi · 01h 07m

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 15m
Long day trip
Same-Day Return
06h 32m
Round-trip wheel time
Road vs Air
+34.2 mi
147.9 mi direct line
Halfway Stop
Val Verde
01h 37m from Shafter
Leave By
10:28 AM PDT
Early departure recommended
Weather Watch

Sunny leaving Shafter and Sunny near San Bernardino.

Trip Questions

Direct answers travelers usually want before committing to the drive.

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

The road trip is about 182.1 miles (293.1 km) and usually takes 03h 15m 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.4 miles from Shafter and 91.7 miles from San Bernardino.

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 34.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:28 AM PDT.

How much will gas cost for this route?

Using about 28.3 MPG, regular gas is estimated at $37.09 one way or $74.19 round trip. Estimated CO2 is about 57.1 kg one way.

What should you check before leaving?

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

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 Shafter and San Bernardino. Straight-line distance: 147.97 mi (238.13 km).

Shafter

#1 Shafter

City in Kern County, California, United States

Population20,739
Coordinates35.5005100, -119.2717800
Altitude106
CountryUnited States
San Bernardino

#2 San Bernardino

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

Population217,491
Coordinates34.1083400, -117.2897700
Altitude321
CountryUnited States
Start: Jackson Avenue (-119.271701, 35.500446)
End: West 5th Street (-117.289794, 34.108326)

Estimated Travel Time

Distance: 293 km by road

SpeedTime
30 mph (48.3 km/h)06h 04m
40 mph (64.37 km/h)04h 33m
50 mph (80.47 km/h)03h 38m
60 mph (96.56 km/h)03h 02m
70 mph (112.65 km/h)02h 36m
80 mph (129 km/h)02h 16m

Fuel, Round Trip and CO2

Estimated fuel cost and emissions for this route.

One-way fuel
6.43 gal
24.33 L · about $37.09
Round trip
$74.19
12.86 gal · 48.66 L
Estimated CO2
57.1 kg one way
Round trip: 114.3 kg / 252 lb CO2, using regular gasoline.
Fuel$/galOne wayRound trip
Regular gas $5.77 $37.09 $74.19
Mid-grade $6.07 $39.00 $78.01
Premium $6.24 $40.14 $80.28
Diesel $7.57 $48.66 $97.31

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 Shafter and San Bernardino. The current time is 11:32:42.

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.