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