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