Macfarlan (also MacFarlan) is an unincorporated community in southwestern Ritchie County, West Virginia, United States. It lies along West Virginia Route 47 southwest of the town of Harrisville, the county seat of Ritchie County. Its elevation is 653 feet (199 m). Although it is unincorporated, it has a post office, with the ZIP code of 26148.