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