The calculated distance (air line) between San Francisco and Modesto is approximately 78 miles respectively 126 kilometers.
By car or train, the actual journey to Modesto is certainly longer, as only the direct route (as the crow flies) between San Francisco and Modesto has been calculated here.
Air line (approximately)
126 kilometers
68 nautical miles