There are
338 mi
from Lancaster, CA to Hayward, CA
That's the driving distance. It would take 6 hours 22 mins to go from Lancaster, California to Hayward, California.
The flight distance (direct flight from Lancaster, CA to Hayward, CA) is 300.64 mi.
338 mi = 544.73 kms