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