There are
1,402 mi
from San Marcos, CA to Gainesville, TX
That's the driving distance. It would take 1 day to go from San Marcos, California to Gainesville, Texas.
The flight distance (direct flight from San Marcos, CA to Gainesville, TX) is 1,154.42 mi.
1,402 mi = 1.61 kms