The First Transcontinental Railroad was a 1,912-mile continuous railroad line constructed between 1863 and 1869 that connected the existing eastern U.S. rail network at Omaha, Nebraska/Council Bluffs, Iowa with the Pacific coast at the Oakland Long Wharf on San Francisco Bay.
so, the answer is 1,912 miles