Improving farm animal welfare requires modifications to the behavior of many stakeholders. Investments in more animal-friendly barns to improve animal welfare have already been made by some farmers. However, more farmers must be persuaded to modernize their barns. The marketing of animal-friendly products is the responsibility of retailers, and consumers have to purchase these products. Currently, little is known about what (and how) underlying psychological factors influence a farmer’s intention to construct pig housing to improve farm animal welfare. Pig farmers in Germany were questioned via an online questionnaire in May 2020 (n = 424). Based on the Theory of Planned Behavior (TPB), partial least squares path modeling was used. The constructs: attitude, subjective norm, direct and indirect experience associated with the construction of pig housing substantially influenced the farmers’ behaviors. As expected, the impact of perceived behavioral control on intention was negative but was also very low and only slightly significant. Contrary to expectations, the perceived behavioral control had no significant influence on farmers’ behaviors. Pig farmers who have already rebuilt their pigs’ housing should be motivated to share their experiences to influence their colleagues’ intentions to construct. Our results will encourage policy makers to consider the important role of the different psychological and intrinsic factors influencing pig farmers. Thus, the sustainability of pig farming can be improved by giving politicians a better understanding of farmers´ behaviors.