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