The calculated distance (air line) between Madrid and Salamanca is approximately 110 miles respectively 176 kilometers.
By car or train, the actual journey to Salamanca is certainly longer, as only the direct route (as the crow flies) between Madrid and Salamanca has been calculated here.