"Although gender differences follow essentially stereotypical patterns on achievement tests in which boys typically score higher on math and science, females have the advantage on school grades regardless of the material," said lead study author Daniel Voyer of the University of New Brunswick, Fredericton, Canada.
"School marks reflect learning in the larger social context of the classroom and require effort and persistence over long periods of time, whereas standardised tests assess basic or specialised academic abilities and aptitudes at one point in time without social influences," Voyer said.
The female advantage in school performance in math and science did not become apparent until junior or middle school, according to the study published in the American Psychological Association's journal Psychological Bulletin.
The degree of gender difference in grades increased from elementary to middle school, but decreased between high school and college.
Also Read
The researchers examined 369 samples from 308 studies, reflecting grades of 538,710 boys and 595,332 girls.
Countries represented by one sample included Belgium, Czech Republic, Estonia, Mexico, Hong Kong, India, Iran, Jordan, the Netherlands, Portugal, Saudi Arabia, Serbia and Slovenia.
The study said that recent claims of a "boy crisis", with boys lagging behind girls in school achievement, are not accurate because girls' grades have been consistently higher than boys' across several decades with no significant changes in recent years.
As for why girls perform better in school than boys, the authors speculated that social and cultural factors could be among several possible explanations.
Parents may assume boys are better at math and science so they might encourage girls to put more effort into their studies, which could lead to the slight advantage girls have in all courses, they wrote. Gender differences in learning styles is another possibility.