Coding for Girls: STEM Confidence and Breaking Barriers

Coding for Girls: STEM Confidence and Breaking Barriers in 2026
Women hold around 26% of computing jobs globally despite making up roughly 50% of the workforce. In the UK, women represent just 19% of technology roles. In the USA, the share of computer science degrees awarded to women has fallen from 37% in 1984 to around 22% today. These numbers represent a structural problem that starts long before university.
Coding for girls is not a niche issue. It is one of the most consequential gaps in technology education, and research is clear about where it begins: not in secondary school, not in university, but in the primary years when children first form beliefs about who does what and who belongs where. Girls who develop genuine coding confidence before age 12 are significantly more likely to pursue technology throughout their education. Girls who first encounter "coding is for boys" messaging in their environment before they've had the chance to code are significantly less likely to try.
This guide covers the research on what drives the gender gap in computing, what the evidence says about closing it, what parents can do at home, and what good coding instruction looks like for girls specifically.
Key Takeaways
The gender gap in tech is not caused by differences in ability. Research consistently finds no meaningful difference in coding aptitude between girls and boys given equivalent instruction and encouragement.
Girls who try coding before age 12 are more than twice as likely to choose computing subjects in secondary school compared to those who don't engage until later.
The 1:1 instruction format is particularly effective for girls because it removes the social dynamics of group settings that often suppress girls' willingness to experiment and make mistakes.
Coding projects connected to social impact, creativity, and real-world problems tend to produce stronger engagement in girls than abstract technical challenges alone.
Parents are the single most influential factor in whether a girl tries coding. Neutral encouragement, not specialist knowledge, is what matters most.
Why Does the Gender Gap in Coding Exist?
The answer is not biology. Study after study, from the OECD, from Stanford's education research group, from Cambridge's computer science department, has failed to find meaningful differences in mathematical or computational aptitude between girls and boys when controlling for instruction and environment. The gap in outcomes is real. The gap in capability is not.
What the research consistently finds instead are environmental factors that compound from childhood through adolescence.
Stereotype threat and belonging signals
Stereotype threat is the performance-reducing effect of being aware that your group is stereotyped as less capable at a task. Girls who are aware (through media, peer culture, or direct messages) that "coding is for boys" perform worse on coding assessments than girls in environments where that stereotype has been actively countered. The effect is not hypothetical. It is measurable, reproducible, and meaningful in size.
Belonging signals matter equally. A classroom where the posters show male coders, where the examples use male pronouns, where the culture implicitly treats technical interest as a male trait, produces lower engagement from girls regardless of the quality of the technical instruction. Conversely, environments that visibly include women as coders, that celebrate diverse motivations for learning technology, and that connect coding to a wide range of applications including social, creative, and health-related domains produce equal or higher engagement from girls compared to boys.
The confidence gap vs the competence gap
One of the most consistent research findings in girls' STEM education is that girls systematically underestimate their own ability relative to their actual performance. In a classroom where all students score similarly on a coding assessment, girls will consistently rate their own performance lower than boys who scored the same. This confidence gap, not a competence gap, is the primary driver of girls opting out of advanced computing subjects.
Girls who build genuine coding competence through projects they are proud of, games they designed, websites they built, programmes they finished, close this confidence gap because the evidence of their own capability is tangible and undeniable. Their project works. They built it. That experience is harder to dismiss than a test score.
What the Research Says About Closing the Gap
Several decades of research on girls in STEM have produced consistent findings about what actually works. The interventions with the strongest evidence are not complicated, but they are specific.
Early exposure is the most powerful single factor. A 2022 Computing Research Association study found that girls who engaged with coding activities before age 12 were 2.4 times more likely to express interest in a computing career than those who first encountered it in secondary school. The window between ages 8 and 12 is disproportionately important.
Applications matter more than abstraction. Girls consistently show stronger engagement with coding when it is connected to concrete impact: building something a friend will use, solving a problem they identified, creating something expressive. Abstract technical challenges and competitive hackathon formats produce disproportionately lower engagement in girls. Project-based, purpose-connected instruction produces consistently higher engagement.
Same-gender role models produce measurable effects. Girls who can point to a woman they know personally who codes show significantly higher coding confidence than those who only know about famous women in tech. Instructors who are women, older students who are girls, and parent figures who code all contribute meaningfully.
Removing competitive framing increases participation. Environments that frame coding as competition (fastest solution, hardest problem, most lines of code) disproportionately deter girls. Environments that frame coding as craft, creation, and collaboration produce more equal participation across genders.
Individual instruction outperforms group instruction for girls specifically. In group settings, girls are statistically less likely to ask questions, more likely to defer to boys who take control of shared projects, and more susceptible to negative group dynamics that reinforce imposter syndrome. One-to-one instruction removes these dynamics entirely. Research on coding instruction consistently shows that the gender gap in participation and progress largely disappears in 1:1 settings.
What Can Parents Do to Build Coding Confidence in Their Daughters?
Parents don't need technical knowledge to make a meaningful difference. The most impactful parental contributions are attitudinal and structural rather than content-based.
The single most effective thing a parent can do
Express genuine, specific interest in what your daughter builds, not in coding in the abstract, but in her specific project. "What does your programme do?" "What was the hardest part to figure out?" "Can you show me how you made the score work?" These questions signal that coding is something worth talking about, that her work is interesting, and that you see her as someone who builds things. That framing, repeated consistently, has a larger effect on long-term persistence in coding than any specific curriculum choice.
Normalise female coders. Point out women who code in media, in your professional network, in everyday technology. The goal isn't to lecture about gender representation, it's to make "women code" a background fact rather than a remarkable exception in your daughter's mental model of the world.
Avoid gender-coding praise. "You're so creative" (implied: not technical) and "You're good at the artistic parts" both inadvertently signal that the technical parts belong to someone else. Specific, technical praise, "You figured out how to make the loop stop at the right time", builds technical identity directly.
Choose a 1:1 instruction format. As noted above, group coding classes are where the gender gap in participation is most visible. 1:1 instruction is where it largely disappears. The format decision is particularly consequential for girls.
Connect coding to what she already cares about. A girl who loves animals can build a game featuring animals. One who loves music can code a simple music visualiser. One who cares about environmental issues can build a project that tracks or visualises environmental data. The entry point into coding should connect to existing passion, not require a prior interest in technology for its own sake.
Want your daughter to build real coding skills in a 1:1 environment with no group dynamics or competitive pressure? Codeyoung offers a free trial coding class for girls aged 6 to 17, adapted to her specific interests and pace.
What Good Coding Instruction Looks Like for Girls
The qualities that make coding instruction effective for girls are substantially the same as those that make it effective for any child, but a few dimensions matter more for girls specifically.
Project ownership and creative choice
Girls who design their own projects, choose their own themes, and make their own creative decisions show higher persistence and more positive coding identity than those who follow prescribed projects. The creative ownership of a project is not just motivating. it is identity-forming. A girl who has built a game she invented, with characters she drew and mechanics she designed, has concrete evidence of her capability that no test result can replicate.
A safe environment to be wrong
Debugging, identifying and fixing errors, is the most cognitively demanding part of coding. It requires a willingness to be visibly wrong, to try things that don't work, to fail iteratively in the service of eventually succeeding. Girls in group settings are often less willing to do this publicly. Girls in 1:1 settings are regularly described by Codeyoung's instructors as among the most persistent and thoughtful debuggers they work with.
The 1:1 format doesn't just remove negative group dynamics. It creates a specific environment where errors are normal, trying things that don't work is expected, and the instructor's response to failure is curiosity rather than judgement. That environment is where genuine coding confidence develops.
Explicit connections to impact
Coding instruction for girls benefits from explicit connections between technical skills and real-world impact. Not as a substitute for technical rigour, but as a complement to it. "You're learning to write functions so your code is reusable, here's what that means for the app you want to build" connects technical concepts to purpose. "You're learning to handle data, here's how a climate scientist might use this exact skill" connects to aspiration. Both framings produce higher engagement than "you're learning functions because they're in the curriculum."

Girls Who Code: What They Build and Where It Leads
One of the most effective ways to shift a girl's belief about coding is to show her what girls her age are building. These aren't hypothetical examples: they're representative of the kind of work girls produce at Codeyoung at each stage.
Age 8, 3 months of Scratch: An interactive story about ocean conservation, with multiple scenes, character dialogue, and a quiz at the end testing what the reader learned. Built because she cared about ocean plastic. Used coding to express that care.
Age 11, 6 months of Python: A Python programme that tracked her football team's match results, calculated average goals per game, and displayed simple statistics. Started as a personal project. Shared with her team coach.
Age 14, 12 months of Python/Web Development: A personal website built with HTML, CSS, and basic JavaScript, including a portfolio of her artwork, a blog section she writes herself, and a contact form that sends emails. Used in her secondary school application portfolio.
Age 16, Python AI/ML: A sentiment analysis project that classified social media comments as positive, negative, or neutral, exploring how AI can be used to study online bullying patterns. Presented at a school STEM fair.
In every case, the coding was in service of something the girl cared about. The technical skills were real and substantial. The motivation to develop those skills came from the project, not from abstract interest in coding as a concept.
For the complete picture of what children build across the coding journey from Scratch to advanced Python, see the complete guide to coding for kids.
What Should Parents Look for in a Coding Programme for Their Daughter?
Beyond the general quality criteria that apply to any coding programme, these factors are specifically relevant when choosing instruction for a girl.
1:1 format, not group class. The evidence on this is consistent. Group settings amplify the social dynamics that suppress girls' participation. 1:1 settings remove them.
Project-based, not exercise-based. Programmes that produce a complete project by the end of each session outperform those that work through sets of exercises. Girls show stronger persistence on projects they own than on exercises they complete.
Instructor responsiveness to creative direction. Can the instructor adapt the project theme to what the girl is interested in? Can she build a game about horses rather than space? Can she make a website about her favourite book series rather than a generic template? This flexibility is a strong quality signal.
Free trial with a real session. The trial should reveal whether the instructor connects with your daughter specifically, not just whether the programme is well-structured generally. One session is enough to tell you both.
For the broader framework on evaluating coding programmes by age, see How to Choose the Right Coding Course: An Age-by-Age Guide.
Frequently Asked Questions: Coding for Girls
Are girls naturally less suited to coding than boys?
No. Decades of research across multiple countries and cultures has found no meaningful difference in computational aptitude, mathematical reasoning, or programming ability between girls and boys when controlling for instruction quality and social environment. The persistent gap in participation and representation is explained by environmental factors including stereotype exposure, belonging signals, and differential encouragement: none of which are properties of individual girls.
What age should girls start coding?
The same age as boys: from around 6 to 7 with visual tools like Scratch, progressing to Python or web development from around age 10. The evidence suggests that the window between 8 and 12 is particularly important for girls, as early coding experience before girls have been significantly exposed to "coding is for boys" cultural messaging produces the strongest long-term effects on confidence and persistence. Starting at 8 rather than waiting for secondary school is not just fine, it's specifically beneficial.
My daughter says she's not interested in coding. What should I do?
First, check whether the disinterest is genuine or a reflection of "coding isn't for me" messaging she's internalised. Many girls who say they're not interested in coding are interested in making things, solving problems, creative expression, or real-world impact, all of which coding serves directly. Find the application that connects to what she already cares about and present that as the entry point, not "coding" as an abstract concept. A single well-matched trial session where she builds something connected to her interests converts a surprising proportion of initially reluctant girls.
Does it matter if my daughter's coding instructor is a woman?
Same-gender role models produce measurable positive effects on girls' confidence and persistence in STEM subjects. If a female instructor is available and well-qualified, this is a meaningful advantage for some girls. That said, the most important qualities in any instructor are adaptability, genuine enthusiasm for the child's project, and skill in making concepts accessible. A highly skilled male instructor who actively models inclusive attitudes and celebrates the girl's technical achievements is more valuable than a less skilled female instructor. Both matter, but skill matters more.
What types of coding projects engage girls most?
Research and Codeyoung's own instructor experience converge on the same answer: projects connected to things the girl already cares about. Common themes that produce strong engagement include projects related to animals, environmental or social issues, creative arts (music, visual design, storytelling), sport statistics, health and wellness, and social connection. The coding is the tool. The subject is hers. Projects that feel personally meaningful produce more persistence, more creative problem-solving, and more durable skill development than technically identical projects on generic or assigned themes.
Is competitive coding (hackathons, competitions) good for girls?
Competitive formats produce mixed results for girls. Girls who already have strong coding confidence and a competitive orientation often thrive in hackathons. Girls who are building confidence or who have a collaborative rather than competitive natural style frequently find hackathon environments discouraging. This is not a statement about girls' capability, it is a statement about format fit. For most girls, especially in the early and intermediate stages of coding, collaborative project-based instruction produces better outcomes than competitive events. Competitions can be valuable later, once coding identity and confidence are well-established.
How do I talk to my daughter about gender gaps in tech without making it feel discouraging?
Frame it as context rather than destiny. "Fewer women work in tech right now than should, and that's something the industry is working to change, and something you could be part of changing" is very different from "it's hard for women in tech." The former positions her as an agent; the latter positions her as a potential victim. Children respond better to framing that emphasises possibility and contribution than to framing that emphasises obstacle and unfairness, even when both are accurate.
My daughter enjoyed coding at age 8 but lost interest at 12. Is this recoverable?
Yes, and it's a common pattern. The period between ages 11 and 13 is when social identity pressures are strongest and when "tech is for boys" messaging in peer culture is most intense. Many girls who loved coding at 8 or 9 step back from it at 11 or 12 not because they stopped being capable or interested but because the social cost of being seen as "a coding girl" felt high. Re-engagement often works well through a different framing, AI, game design, creative web projects, data journalism, that connects to current interests and doesn't feel like going backwards to something she "failed at."
What can schools do to encourage more girls to code?
The interventions with the strongest evidence are: visible female role models in computing, project-based rather than competitive or exercise-based instruction formats, explicit connections between computing and social and creative applications, peer culture that normalises girls' coding identity, and teacher training that addresses implicit bias in how coding achievement is praised and attributed. Individual school decisions matter enormously, and the gap between the best and worst schools in supporting girls' coding participation is very large.
How does Codeyoung support girls in learning to code?
Codeyoung's 1:1 instruction format removes the group dynamics that most commonly suppress girls' participation. Every girl's project is built around her own interests and creative choices, from game themes to website subjects to the problems her Python programmes solve. Instructors are trained to praise technical achievement specifically rather than generically, and to connect coding concepts to the purposes the girl has identified for her work. The first session is free with no commitment, and there's no competition or ranking involved at any stage.
The Gap Is in Exposure and Encouragement, Not in Ability
Every girl who builds a working programme, debugs her own errors, and ships a project she is proud of has closed a gap that no statistic or policy can close for her. The confidence that comes from genuine technical achievement is the most durable possible counter to the cultural messaging that told her coding wasn't for people like her.
Parents are the most powerful factor in whether that happens. Not because they need to teach coding, but because they control the environment in which their daughter first encounters it. An early, positive, well-matched coding experience before age 12 changes the trajectory. It doesn't guarantee a career in tech. It does mean their daughter will make that choice from genuine capability and confidence rather than from a belief, absorbed from her environment, that the door was never open for her.
Explore Codeyoung's coding programmes for girls aged 6 to 17 or book a free trial class and let a skilled instructor show your daughter what she can build.
Give your daughter the coding confidence to make her own choices.
Codeyoung's 1:1 live coding classes adapt every project to what your daughter cares about. No group pressure. No competitive ranking. Just real skills built at her own pace, starting with a completely free first class.
Comments
Your comment has been submitted