The calculated distance (air line) between Ankara and İzmit is approximately 165 miles respectively 265 kilometers.
By car or train, the actual journey to İzmit is certainly longer, as only the direct route (as the crow flies) between Ankara and İzmit has been calculated here.