There are
504 mi
from San Marcos, CA to Rocklin, CA
That's the driving distance. It would take 9 hours 24 mins to go from San Marcos, California to Rocklin, California.
The flight distance (direct flight from San Marcos, CA to Rocklin, CA) is 451.59 mi.
504 mi = 811.16 kms