BackgroundSTEM education has experienced significant growth due to its pivotal role in innovation and economic development. While cognitive factors like prior knowledge are known predictors of STEM success, non-cognitive factors, including attitudes and demographics, also play vital roles. However, there is a notable scarcity of research focusing on the "S" in STEM—science—compared to extensive studies in fields like mathematics. This study aims to address this gap by exploring gender differences in science test performance and related attitudes, providing insights into this under-researched aspect of STEM education.ResultsThe effective sample comprised 1839 Estonian 12th-grade students who took a computer-assisted science test. The test consisted of tasks combining chemistry, physics, biology, and geography, and a post-test survey was also administered. Across the total sample, the results showed that test performance positively correlated with test-taking duration, effort, and test importance. Test performance was negatively correlated with perceived test difficulty. Interestingly, while general science anxiety was not associated with test performance, subject-specific anxiety, especially chemistry anxiety had a negative association with test performance. While there were no gender differences in test performance, female students scored consistently higher on all science anxiety measures, compared to male students. Furthermore, female students assessed the science test to be more difficult, and they also took more time to complete the test. The correlations in gender subsamples mirrored those observed in the total sample.ConclusionsThe association between science test performance and test-related variables is nuanced: students might not necessarily have a “general” STEM anxiety but it may be associated with a specific subject. Moreover, the findings imply that although there are no gender differences in test performance, girls have a greater anxiety when it comes to natural sciences subjects. These findings indicate the need for investigating the origin of such anxieties, which do not seem to stem from aptitude.