There are
456 mi
from San Marcos, CA to Hayward, CA
That's the driving distance. It would take 8 hours 32 mins to go from San Marcos, California to Hayward, California.
The flight distance (direct flight from San Marcos, CA to Hayward, CA) is 417.45 mi.
456 mi = 733.41 kms