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