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