Farmahin is a city located in the Central District of Farahan County within the Markazi province of Iran. It serves as the administrative capital for both Farahan County and its central district, while also functioning as the administrative center for the Farmahin Rural District.
The location originally existed as a village before being officially converted into a city in 1994.