There are
2,829 mi
from Cupertino, CA to Gaithersburg, MD
That's the driving distance. It would take 2 days 1 hour to go from Cupertino, California to Gaithersburg, Maryland.
The flight distance (direct flight from Cupertino, CA to Gaithersburg, MD) is 2,411.44 mi.
2,829 mi = 4,553.29 kms