From Sacramento, CA bus to San Francisco Caltrain then Caltrain to Palo Alto Caltrain. 2hrs 58min $16. From Sacramento, CA train to San Jose Diridon Caltrain then Caltrain to Palo Alto Caltrain. 3hrs 50min $44. From Sacramento drive to Palo Alto. 2hrs 02min $14. From Capitol Mall & 7th St bus to Sacramento airport, fly to San Francisco airport, BART to Millbrae Caltrain, then Caltrain to Palo Alto. 3hrs 25min $194.