How far is San Bernardino, CA from Castro Valley, CA?

The driving distance from San Bernardino, CA to Castro Valley, CA is about 409.6 miles (659.2 km), with a travel time of about 07h 34m by car.

  • The straight-line flight distance is about 365.2 miles (587.7 km).
  • For a round trip, plan for roughly 15h 09m of driving time before adding stops, traffic, or weather delays.
  • A comfortable departure window is usually 6:00 AM to 7:30 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
409.63 mi
07h 34m
Flight
365.2 mi
587.74 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
365.2 mi
Kilometers
587.74 km
Flight Time
00h 44m

Driving Distance

Road route
409.63 mi
Kilometers
659.23 km
Drive Time
07h 34m

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 07h 34m.

Arrival Snapshot
Arrive in Castro Valley
Sun, Apr 19, 7:57 AM PDT
Return by in San Bernardino
Sun, Apr 19, 3:31 PM PDT
Useful when you're deciding between a quick errand, a day trip, or a longer stop.
Leave San Bernardino
2026-04-19T00:22
Arrive Castro Valley
Sun, Apr 19, 7:57 AM PDT
Route Timing
07h 34m
One way by road
Best Departure Window
6:00 AM to 7:30 AM PDT
Treat this as a longer travel day
Arrive between
1:35 PM to 3:05 PM PDT

Starting early still helps, but most travelers will want a longer stop or an overnight stay on a route this long.

Leave by
8:50 PM PDT
Keeps a same-day return open with about 08h 00m at the destination.
Back in San Bernardino
8:00 PM PDT
Overnight-style route

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
Lost Hills
CA

Census-designated place in Kern County, California

From San Bernardino
204.8 mi
03h 47m
To Castro Valley
204.8 mi
03h 47m

Route Weather Snapshot

Check the forecast at both ends before you head out.

Origin
85°F
Sunday

Mostly Sunny

Starts
Sun, Apr 19 6:00 AM PDT
Wind
0 to 15 mph S
Destination
Castro Valley Weather
CA
Live fallback forecast
66°F
Sunday
Using Cherryland as the closest live forecast in the Alameda County weather hub.

Chance Light Rain

Starts
Sun, Apr 19 6:00 AM PDT
Wind
6 to 14 mph WSW

Driving Route Map

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

Turn-by-Turn Driving Directions

Step-by-step road directions between San Bernardino and Castro Valley.

  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 right to continue on Westside Freeway

    225.6 mi · 4 hr 2 min · Westside Freeway

  18. 18

    Keep slight left to continue on William Elton Brown Freeway

    15.9 mi · 17 min · William Elton Brown Freeway

  19. 19

    Keep slight right to continue on William Elton Brown Freeway

    1.1 mi · 1 min · William Elton Brown Freeway

  20. 20

    Merge slight left onto Arthur H. Breed Junior Freeway

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

  21. 21

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

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

  22. 22

    Take the exit slight right toward Strobridge Avenue

    1207 ft · 30 sec

  23. 23

    Turn right onto Strobridge Avenue

    565 ft · 14 sec · Strobridge Avenue

  24. 24

    Turn right onto Castro Valley Boulevard

    1058 ft · 22 sec · Castro Valley Boulevard

  25. 25

    Turn right onto Lake Chabot Road

    18 m · 3 sec · Lake Chabot Road

  26. 26

    Arrive at your destination

    0 m · 1 sec · Lake Chabot Road

Car Route Details

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

OSRM road route
Drive Character

Long-distance drive

This route is long enough that fuel, rest stops, weather, and timing matter more than any single maneuver.

Directions
26 steps
3 turns on the saved route
Ramps & Exits
7
4 merges, 3 ramps or exits
Navigation Density
6.3 / 100 mi
Decision points by distance
Main Roads
Westside Freeway
226 mi · 55%
Foothill Freeway
111 mi · 27%
Arthur H. Breed Junior Freeway
29.2 mi · 7%
Golden State Freeway
22.3 mi · 5%
William Elton Brown Freeway
17 mi · 4%
San Bernardino Freeway
1.52 mi
Longest Stretch

Westside Freeway

Keep slight right to continue on Westside Freeway

226 mi · 04h 02m

Route Summary

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

Trip Read

Better with a longer stop

This route is long enough that most travelers will be better off planning an overnight stay or a more deliberate stop window.

Drive Time
07h 34m
Overnight route
Same-Day Return
15h 10m
Round-trip wheel time
Road vs Air
+44.4 mi
365.2 mi direct line
Halfway Stop
Lost Hills
03h 47m from San Bernardino
Leave By
8:50 PM PDT
Overnight-style route
Weather Watch

Mostly Sunny leaving San Bernardino and Chance Light Rain near Castro Valley.

Trip Questions

Direct answers travelers usually want before committing to the drive.

How long does it take to drive from San Bernardino to Castro Valley?

The road trip is about 409.6 miles (659.2 km) and usually takes 07h 34m in normal driving conditions.

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

This route is long enough that most travelers will be better off planning an overnight stay or a more deliberate stop window.

What is the halfway point on this route?

Lost Hills is a useful midpoint, sitting about 204.8 miles from San Bernardino and 204.8 miles from Castro Valley.

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

The direct path is about 365.2 miles (587.7 km), while the road route adds roughly 44.4 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 7:30 AM PDT. Starting early still helps, but most travelers will want a longer stop or an overnight stay on a route this long.

How much will gas cost for this route?

Using about 28.3 MPG, regular gas is estimated at $83.42 one way or $166.84 round trip. Estimated CO2 is about 128.5 kg one way.

What should you check before leaving?

Before you leave, expect Mostly Sunny around San Bernardino and Chance Light Rain near Castro Valley.

Stop Ideas Near Lost Hills

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

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

RAIL

Wasco station

33 mi away
700 G Street
BUS

Kettleman City, California

47 mi away
3300 Hubert Way
RAIL

Corcoran station

55 mi away
1099 Otis Ave.
RAIL

Bakersfield

67 mi away
601 Truxtun Ave

Flight Path Map

This map shows the direct air route between San Bernardino and Castro Valley. Straight-line distance: 365.2 mi (587.74 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
Castro Valley

#2 Castro Valley

A city in Alameda County, California.

Population61,388
Coordinates37.6941000, -122.0863500
Altitude50
CountryUnited States
Start: San Bernardino (-117.28977, 34.10834)
End: Castro Valley (-122.08635, 37.6941)

Estimated Travel Time

Distance: 659 km by road

SpeedTime
30 mph (48.3 km/h)13h 38m
40 mph (64.37 km/h)10h 14m
50 mph (80.47 km/h)08h 11m
60 mph (96.56 km/h)06h 49m
70 mph (112.65 km/h)05h 51m
80 mph (129 km/h)05h 06m

Fuel, Round Trip and CO2

Estimated fuel cost and emissions for this route.

One-way fuel
14.46 gal
54.72 L · about $83.42
Round trip
$166.84
28.92 gal · 109.44 L
Estimated CO2
128.5 kg one way
Round trip: 257 kg / 567 lb CO2, using regular gasoline.
Fuel$/galOne wayRound trip
Regular gas $5.77 $83.42 $166.84
Mid-grade $6.07 $87.71 $175.43
Premium $6.24 $90.27 $180.55
Diesel $7.57 $109.42 $218.84

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 · Apr 19, 2026

There is no time difference between San Bernardino and Castro Valley. The current time is 00:22:22.

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.