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