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