There are
333 mi
from Lancaster, CA to Los Altos, CA
That's the driving distance. It would take 6 hours 27 mins to go from Lancaster, California to Los Altos, California.
The flight distance (direct flight from Lancaster, CA to Los Altos, CA) is 289.28 mi.
333 mi = 536.68 kms