Population aging presents a significant global challenge. In China, the aging of the rural population coincides with inefficient rural homestead utilization. While the Chinese government has enacted policies to address this, their impact remains limited. Utilizing survey data from 403 rural families in Shenyang, Liaoning Province, China, this study applies the binary Logit and mediating effect models to analyze the impact of rural family population aging on farmers’ willingness to withdraw from homesteads with compensation and their compensation preference. Key findings include: (1) Family population aging intensifies farmers’ willingness to withdraw from homesteads, with a stronger preference for non-monetary compensation as aging increases. (2) Regarding the willingness to withdraw with compensation, farmers’ cognition of homestead security value masks the effect by 4.71%, while asset value cognition has no mediating effect. (3) With regard to promoting non-monetary compensation choices, farmers’ homestead asset value cognition fully mediates at 16.01%, but security value cognition is without mediating effect. Based on these findings, it is recommended that the government crafts tailored homestead withdrawal policies considering farmers’ family age structure. Further, efforts should aim at refining farmers’ understanding of homestead values, promoting a blend of non-monetary and monetary compensations.