Khatt-e Ahi () is a village in, and the capital of, Harazpey-ye Gharbi Rural District in the Central District of Mahmudabad County, Mazandaran province, Iran.
At the time of the 2006 National Census, the village's population was 733 in 193 households. The following census in 2011 counted 528 people in 155 households. The 2016 census measured the population of the village as 1,620 people in 533 households. It was the most populous village in its rural district.