The calculated distance (air line) between Villanueva de Córdoba and Madrid is approximately 153 miles respectively 246 kilometers.
By car or train, the actual journey to Madrid is certainly longer, as only the direct route (as the crow flies) between Villanueva de Córdoba and Madrid has been calculated here.
Air line (approximately)
246 kilometers
133 nautical miles