The cognitive benefits of learning computer programming: A meta-analysis of transfer effects.
Scherer, R., Siddiq, F., & Sánchez Viveros, B. · 2019
Current published assessment
Assessment status: Not yet compared
The published assessment remains the archive’s current judgment. Stored model readings are preserved separately and never replace it automatically.
There are multiple stored readings, but no claim-by-claim comparison has been recorded.
Bottom line
Current archive record
Students who took coding lessons scored higher than comparison groups on a mix of tests, including tests of skills outside coding. But when the comparison students had trained the skill being tested, the coders' advantage was small and uncertain. This review does not show that coding raises general intelligence or that any benefit lasts.
Read the full explanation
What happened
Researchers pooled 105 study reports. In each one, students took coding lessons and were compared with students who did not. Most were primary and secondary students in Asia and North America. The lessons averaged about 25 hours. The studies are mostly from the 1980s and 1990s, the era of the Logo programming language, with a second group from the 2010s.1
On average, students who learned to code scored higher. Counting coding tests and other tests together, the gap was moderate: about half of the usual spread in scores between students. This way of measuring a gap is called an effect size. On tests of skills outside coding, the average gap was about the same. Those tests covered a wide mix of tasks and teaching programs. On math tests, the average gap was a little larger than half the usual spread. On literacy tests, the average was close to zero. The full set of effects is in the table below.2
The gap was smaller in comparisons where the other group trained the tested skill. Sometimes the comparison students spent their time on lessons that trained the very skill being tested. In those comparisons, the coders' advantage on noncoding tests was small, and too uncertain to tell apart from no advantage at all. When the comparison students had not trained that skill, the coders' advantage was much larger. "Did not train that skill" does not mean "did nothing": some of those groups had other lessons. This pattern comes from comparing different studies and results, not from an experiment that tested it directly, so it is not settled (see below).3
On school-achievement tests, coders scored higher on average, by about a quarter of the usual spread. The gap stayed above zero when the authors left out one unusually influential finding, but that check rests on only five study reports and six results. The paper's main text calls that check not statistically clear, while its own supplemental table shows it positive.4
How sure are we?
The overall pattern is positive, but the studies behind it are uneven. Many were small or did not assign students to groups at random. Without random assignment, the coding groups may have started out different in ability or family background. The tests also varied. Some came from outside the projects, and others were built by the investigators themselves.5
The finding about the comparison group is the least direct. It compares across different studies and results. That comparison is not itself a randomized test of what the comparison group should do. So the gap could also reflect other differences between the studies or the programs. Grouped by individual results, the difference is statistically clear. The paper also reports a related comparison grouped by whole studies, and there the difference is not statistically clear. So this finding is suggestive, not settled.6
Studies with disappointing results often go unpublished, which can distort an average. This problem is called publication bias, and the authors ran checks for it. One check, using a simpler model, gave a slightly lower average. Another gave a higher one. Both adjusted averages stayed above zero. A separate test found that study size and effect size were linked. That is a warning sign, but it does not measure how much bias there is.7
What this does not tell us
- It does not show that coding raises general intelligence.
- It does not show a lasting benefit. The review pooled tests given at different times. It did not work out a separate average for tests given long after the lessons ended. At least one included study did test children later: 18 children were tested 18 months after three months of Logo or computer-assisted instruction. Only that study's publisher abstract has been read, so its delayed results are unknown. Whether any advantage lasted is also unknown.
- It does not show that coding gives the same advantage over every worthwhile alternative. Against lessons that trained the tested skill directly, the advantage was small and uncertain.
- It does not speak to graduation, credentials or earnings. The school-achievement category mixes school tests with digital literacy.
Footnotes
-
The 105 study IDs contributed 539 effect sizes. Study-level sample sizes add up to a nominal 9,139 (4,544 in coding groups, 4,595 in comparison groups), but related reports may share students, so this does not prove there were 9,139 distinct people. Mean study size was 87 (SD 72, median 66, range 14–416). Lessons ran 2–120 hours (median 20). ↩
-
All outcomes pooled: Hedges g = 0.49 (95% confidence interval 0.37 to 0.61). Tests outside coding: g = 0.47 (0.35 to 0.59). Math: g = 0.57 (0.34 to 0.80). Literacy: g = −0.02 (−0.12 to 0.08). The 539 results are not independent trials, and many repeat the same participants. The three-level meta-analysis model accounts for results clustered within studies. It does not explicitly model shared comparison groups or classroom clustering. ↩
-
Comparison group trained the tested skill: g = 0.15 (95% confidence interval −0.02 to 0.31). Comparison group did not train that particular skill: g = 0.64 (0.50 to 0.77). Difference at the level of individual results: Q_M(1) = 39.33, p < .001. This is an across-study comparison, not a randomized test of which comparison group to use. ↩
-
School achievement, all results: g = 0.28 (0.14 to 0.42). After one influential effect was removed, supplemental Table S18 reports 0.22 (0.06 to 0.39) in random-effects models and 0.23 (0.08 to 0.37) in a fixed-effect model, from five study IDs and six effects. All four confidence intervals shown in that table exclude zero, which conflicts with the main text's statement that the result was nonsignificant. The category includes digital literacy and is not a graduation, credential or earnings outcome. ↩
-
The paper's "standardized" label includes at least one investigator-made task, so that label does not guarantee an independent test. Results need to be read outcome by outcome and test by test. ↩
-
The study-level comparison of treated versus untreated comparison groups gave Q_M(2) = 1.95, p = .38. That study-level grouping differs from the result-level one, so the two may not test exactly the same contrast. Not statistically significant is not evidence that there is no difference. ↩
-
A two-level trim-and-fill model imputing zero effects gave g = 0.43 (0.37 to 0.50), against 0.49 from the main three-level model. A weight-function adjustment gave 0.63 (0.52 to 0.74). Egger's test, t(537) = 4.10, p < .001, flags an association between study size and effect size, not a measured amount of publication bias. ↩
Effect size (g, d)
An effect size states how big a difference is in units of the spread of scores, so results from different tests can be compared. A g of 0.4 means the treated group's average sits 0.4 standard deviations above the comparison group's — enough to move a median student to roughly the 66th percentile. (g and d are near-identical variants; g corrects a small-sample bias.)
Rough anchors: 0.1 is small and hard to distinguish from noise in most classroom studies; 0.2–0.4 is a solid, real intervention effect; above 0.6 is rare in well-controlled trials of school-age academics and deserves suspicion before celebration.
Two cautions. The same true improvement yields a bigger number on a narrow researcher-built test than on a broad standardized one (see measure alignment). And an effect measured the week treatment ends usually shrinks by follow-up (see fadeout) — so a headline number without its test and its timing is not yet information.
Publication bias
Publication bias is the filter between what researchers find and what gets printed: significant, positive, novel results are published; null results sit in file drawers. The published literature on a question is therefore a biased sample of the research actually done on it.
The consequence compounds with small studies. Underpowered studies produce scattered results; the filter keeps the lucky-large ones; a meta-analysis then averages the survivors and reports an effect bigger than the truth. Statistical checks (funnel plots, trim-and-fill) can detect the footprint but only roughly correct it.
Preregistration — publicly committing to the design and analysis before collecting data — is the strongest available fix, and preregistered studies are weighted accordingly here.
Confidence interval
A confidence interval is the range of effect sizes consistent with the data — the study's honest statement of its own precision. "g = 0.30 [0.10, 0.50]" says the best estimate is 0.30, and values from 0.10 to 0.50 would all fit the evidence comfortably.
The interval matters more than the point estimate. An interval that includes zero means the study cannot rule out "no effect." A wide interval means a small study: "g = 0.6 [−0.1, 1.3]" sounds impressive and establishes almost nothing (see statistical power).
When this site reports a number in brackets after an effect, it is this interval.
Meta-analysis
A meta-analysis combines numerical results from multiple studies into a weighted estimate. Its precision does not repair biased designs, missing studies, or mismatched outcomes in the evidence it pools.
Results
How the review worked
The recorded sample, comparison, methods, and practical details.
Evidence included
Who or what was studied
How the review worked
How much confidence should we place in this?
Limits of the research itself, separate from checks on this interpretation.