Barnhart is a unincorporated community in Irion County, Texas, United States. Founded by Willam A. Barnhart, it was a major railroad stop that served as a livestock loading point for major railways in the 1900s. The Irion County Independent School District serves area students.