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