Tainai is a city located in Niigata Prefecture, Japan. As of 31 December 2020, the city had an estimated population of 28,495 in 10,821 households, and a population density of 110 persons per km². The total area of the city was 264.89 square kilometres.