There are
1,656 mi
from Hayward, CA to Gainesville, TX
That's the driving distance. It would take 1 day 5 hours to go from Hayward, California to Gainesville, Texas.
The flight distance (direct flight from Hayward, CA to Gainesville, TX) is 1,423.85 mi.
1,656 mi = 1.61 kms