PurposeThis paper aims to present a comprehensive theoretical framework that seeks to explore the impact of cultural, legal and social factors within the external environment on the relationship between women on corporate boards and firm performance. By investigating these boundary conditions, the paper aims to shed light on how these pressures influence the aforementioned relationship.Design/methodology/approachTo build the sample of companies, the authors selected companies listed on the stock exchanges of countries that represent a diverse range of institutional contexts. These contexts encompass countries with individualistic cultures, collectivist cultures, environments with mandatory gender quotas, environments without gender quotas, contexts with substantial progress toward gender equality and contexts with limited progress in achieving gender equality. To test the hypotheses, the authors used linear regression analysis as a primary analytical approach. Furthermore, they used the propensity score matching technique to address potential issues of reverse causality and unobserved heterogeneity.FindingsThe findings indicate that the positive influence of a critical mass of women on corporate boards on firm performance is contingent upon the institutional context. Specifically, the authors observed that this relationship is strengthened in institutional contexts characterized by an individualistic culture, whereas it is not as pronounced in collectivist cultural contexts. Furthermore, this research provides compelling evidence that the presence of a critical mass of women on boards leads to enhanced firm performance in institutional settings where gender quotas are not binding, as opposed to settings where such quotas are enforced. Lastly, the results demonstrate that the presence of a critical mass of women on boards is associated with improved firm performance in institutional settings characterized by low progress in achieving gender equality. However, the authors did not observe the same effect in institutional contexts that have made significant strides toward gender equality.Originality/valueThis research offers a unique perspective by investigating the relationship between women’s presence on corporate boards and firm performance across different institutional contexts. In this investigation, the authors recognize that gender diversity on corporate boards is not a one-size-fits-all solution and that its effects can be shaped by the unique institutional contexts in which companies operate.