PurposeThis study aims to examine how entrepreneurship education influences intentions for starting a technology venture among science, technology, engineering and mathematics (STEM) students with particular attention to gender differences. This study builds on the model of entrepreneurial event and social role theory to assess the impact of entrepreneurship education on feasibility, desirability and intentions for technology entrepreneurship.Design/methodology/approachThe hypotheses are tested with a sample of 879 Bulgarian science and engineering students from 15 universities. To test the models, this study uses ordinary least squares and logistic regressions with robust standard errors and Hayes mediation analysis with bootstrap bias-corrected confidence interval estimations for indirect effects. Two-stage Heckman regressions to control for sample selection bias and other robustness checks including propensity score matching were used.FindingsResults show that entrepreneurship education, measured as participation in an entrepreneurship course, has a stronger impact on feasibility, desirability and intentions for technology entrepreneurship for female STEM students compared to their male counterparts. As such, this study supports the notion that entrepreneurship education could be part of a solution to counteract societal norms that position technology entrepreneurship as a less desirable and/or less feasible choice for women in STEM. However, attention should be paid to the operationalization of entrepreneurship education, as other measures of entrepreneurship education (role models, entrepreneurship education support) did not have a moderation effect with gender.Research limitations/implicationsThe authors assume a positive correlation between entrepreneurial intentions and entrepreneurial behavior. Future studies should include actual entrepreneurial behavior to paint a more complete picture of the effect of entrepreneurship education.Originality/valueLittle is known about the role of entrepreneurship education in the field of technology entrepreneurship, and even less about the potential gender differences in entrepreneurship education among STEM students. The study contributes to the literature by examining factors that could help close the persistent gender gap in technology entrepreneurship.