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