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