The calculated distance (air line) between Mahdishahr and Karaj is approximately 133 miles respectively 214 kilometers.
By car or train, the actual journey to Karaj is certainly longer, as only the direct route (as the crow flies) between Mahdishahr and Karaj has been calculated here.
Air line (approximately)
214 kilometers
115 nautical miles