There are
3,130 mi
from Oakley, CA to Barnstable, MA
That's the driving distance. It would take 2 days 7 hours to go from Oakley, California to Barnstable, Massachusetts.
The flight distance (direct flight from Oakley, CA to Barnstable, MA) is 2,698.61 mi.
3,130 mi = 5,037.49 kms