This article examines whether relationships between social capital characteristics and the willingness of farmers to cooperate in collective action is moderated by the farmers' income level. We employed a structural equation model to analyze the influence of social capital components (social networks, interpersonal trust, social reciprocity, and social participation) on the willingness of farmers to cooperate in collective small‐scale irrigation in Guangling County, Shanxi Province of China. This analysis was complemented by a multigroup analysis to measure the potential variance effects across income groups. Our results show that low‐ and middle‐income farmers give more importance to the aspects of social networks, social reciprocity, and social participation, while high‐income farmers place emphasis on interpersonal trust and social participation. Accordingly, the willingness of farmers to cooperate for the different income groups was influenced in different ways in relation to the various social capital components. Therefore, social capital and income differences have complex effects on the willingness of farmers to cooperate. In this regard, our research provides an alternative way to understand the complex process involved in the formation of collective action under the presence of increasing economic heterogeneity in local communities.