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