In addition to Gainfarn village, the cadastral community consists of the hamlet of Haidlhof and a few individual sites, including Merkenstein Castle.
After Gainfarn had been devastated by Hungarian troops of Matthias Corvinus, Johann von Hohenberg sold the dominion to Emperor Frederick III in 1484.
In the Franciscan cadastre of 1819, the triangular street village is already listed with numerous smaller and larger farmsteads.
In 1864 a cold water medical institution was built at a previously discovered spring; in 1879 it was expanded and a sanatorium was added.
In 1932 it had to be closed due to economic difficulties; the building was redesigned in 1953/54 as a company housing complex for employees of the Vöslauer Kammgarnfabrik (Vöslau Worsted Factory).