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