Code.org's Approach to Diversity and Equity in Computer Science
The fields of software, computing, and computer science are plagued by stark underrepresentation by gender, race, ethnicity, geography, and family income. While nearly 58% of U.S. high schools offer foundational computer science, disparities in access persist. Rural schools, urban schools, and schools with high percentages of economically disadvantaged students are less likely to offer computer science; and Black/African American students, Hispanic/Latino/Latina/Latinx students, and Native American/Alaskan students are less likely to attend a school that offers it.
This problem extends to university programs and to the software workplace, which suffer a similar lack of diversity. There are many issues to address to solve the entire problem of diversity in the tech workforce - from bias in hiring, retention, and promotion practices to capacity-building in university programs.
Our focus: computer science in grades K-12
More important than the tech workforce pipeline, computer science is now a foundational subject for all 21st-century careers, making access in K-12 to this knowledge an equity issue that must be addressed.
Past studies show that children who study computer science perform better in other subjects, excel at problem-solving, and are more likely to enroll in college. Among young women, those who try AP Computer Science in high school are more likely to major in computer science. Black and Hispanic/Latino students who try AP Computer Science in high school are 7-8 times more likely to major in computer science.
But access to computer science is unequal. A student’s opportunity should not be determined by the color of their skin, their family income, or the neighborhood they grow up in. But in the United States, the opposite is true when it comes to K-12 computer science. Data from the 2023 State of Computer Science report shows there are still big gaps in access and participation to computer science.
![](/images/marketing/diversity/access_race_ethnicity.png)
![](/images/marketing/diversity/access_geography.png)
![](/images/marketing/diversity/access_school_year.png)
![](/images/fit-1000/marketing/diversity/participation_race_ethnicity.png)
Our goal at Code.org is for every student in every school to have the opportunity to learn computer science, and to reach balanced representation in grades K-12. Working towards that goal, we use a holistic approach that spans marketing, curriculum, professional learning, and government policy to close gaps in participation and improve equity across gender, race, income, and geography. We measure our success not only by the total number of students learning computer science, but also by the participation of students from underrepresented groups.
Diversity in AP Computer Science
The charts below show participation in the AP Computer Science exam among young women and students from underrepresented racial and ethnic groups* since 2011. Not only has overall participation grown, but the overall proportion of students from these traditionally marginalized groups has been increasing.
The improvements aren't the result of Code.org's work alone. There is a whole community of organizations working on diversity in CS, but the real credit belongs to the thousands of teachers who have worked for years to improve diversity in their classrooms. While things are moving in the right direction, we have a long way to go to reach a balanced population in computer science.
![](/images/marketing/diversity/div_gender_number3.png)
![](/images/marketing/diversity/div_gender_percent3.png)
![](/images/marketing/diversity/div_race_number3.png)
![](/images/marketing/diversity/div_race_percent3.png)
Diversity of students in Code.org courses
Addressing diversity and equity issues is core to Code.org’s work, and is woven throughout our programs – from curriculum to teacher professional learning to advocacy to marketing. We focus not only on gender and socioeconomic diversity, but also on increasing participation among students from underrepresented racial and ethnic groups: Black, Hispanic/Latino, Native American, and Pacific Islander.
Because computer science is a foundational subject, Code.org courses are designed to enable every student to participate — with no prerequisite knowledge or background with technology. We also aim to introduce students to learning computer science at an early age, before stereotypes influence their decisions.
We increase diversity in computer science by reaching students of all backgrounds where they are — at their skill level, in their schools — and in ways that inspire them to keep learning. When our teachers integrate computer science into classrooms that all students attend, we have an immediate impact on diversity.
Underrepresentation isn't about lack of interest
As Black, Hispanic/Latino, Native American, and Pacific Islander students are dramatically underrepresented in university computer science departments (making up just 17 percent of CS majors) and in AP Computer Science exams, it may seem that they are less interested in studying computer science than their white or Asian peers. But their participation in Code.org courses suggests the opposite. When looking at middle-school and high-school classrooms studying CS Discoveries or CS Principles on Code.org, students from underrepresented racial and ethnic groups sign up for computer science classes at much higher rates than national AP data would suggest.
The chart below shows the data from hundreds of Code.org computer science classrooms in 2018. We compared the percent of students from underrepresented racial and ethnic groups at the school as a whole to the percent among students who enroll in our courses. The orange dots represent computer science classrooms that are more diverse than the school as a whole. The blue dots are those that are less diverse.
![](/images/infographics/fit-600/courses-diversity-scatterplot-2018-3.png)
Most Code.org classrooms are nearly evenly balanced. This shows that when educators and administrators offer a curriculum and program designed to support diversity and equity in computer science, participation by these underrepresented groups dramatically exceeds the nationwide numbers and the reality of the tech industry today.
Code.org’s holistic approach spans curriculum, professional learning, policy, and marketing
Below are examples of the many tactics of Code.org to address diversity and equity in K-12 computer science.
Curriculum
From elementary school all the way to high school, Code.org courses are designed specifically with a focus on diverse and equitable participation by traditionally underrepresented students. This is factored into the curriculum itself. As just one example, our high school course sequencing begins with a unit on problem solving, instead of jumping directly into computer programming. This allows students to learn together on an even playing field, even if some students have already had the opportunity to learn some coding elsewhere, like at a summer camp or after-school program.
![](/images/fit-1000/marketing/diversity/Diversity_2024.jpg)
As another example, across all the video tutorials we produce, we showcase a wide cast of presenters, featuring not only celebrities like Yara Shahidi and Serena Williams, but also computing professionals from underrepresented groups such as Paola Minaya (Latina engineer at Microsoft), Tess Winlock (female engineer at Google), Makinde Adeagbo (Nigerian-American engineer at Facebook and Pinterest), and Kate Starbird (former WNBA basketball player, current computer scientist and associate professor at University of Washington). By including an array of lecturers, diverse role models from different industries are part of our curriculum materials.
The outcomes speak for themselves:
Code.org program | Scale (students) | % Female students | % Black, Hispanic/Latino, Native American, Pacific Islander students |
---|---|---|---|
Hour of Code | Tens of millions | 61% | 49% (U.S.) |
CS Fundamentals for K-8 | Millions | 46% | 51% (U.S.) |
CS Discoveries - middle & high school intro class | Hundreds of thousands | 41% (U.S.) | 49% (U.S.) |
CS Principles - high school AP class | Tens of thousands | 34% (U.S.) | 42% (U.S.) |
Professional learning
The Code.org professional learning program enables new educators to teach computer science and helps schools establish new CS classrooms. The program is driven by a network of regional partners who prioritize reaching schools with underserved populations, particularly in urban or rural geographies. Code.org offers millions of dollars in professional learning scholarships to teachers from schools with low-income or racially diverse student populations, in order for our program to reach these students who typically lack access to computer science in school.
All Code.org professional learning workshops for teachers include a session on equity and access, to help teachers build awareness of their own stereotypes, and to give them tools to recruit or retain a diverse CS student population. We also hold workshops for district administrators and counselors, who play a critical role in helping students choose their fields of study, in order to guide them to build interest among diverse students for the new CS classes in their schools.
![](/images/2015AR/diversity.jpg)
Advocacy
Our early advocacy efforts focused on allowing rigorous computer science courses to count towards math or science high school graduation requirements. Polling done by the Computer Science Teachers Association has shown that when young women or students from underrepresented racial and ethnic groups decide whether or not to study computer science, a key factor in their choice is whether it counts for graduation credit. Our efforts have successfully implemented this policy in all 50 states and D.C.
Today, the Code.org Advocacy Coalition advances ten policies to make CS fundamental. Equity is a key component throughout these ten policies, and a rubric has been adopted to further develop states’ abilities to provide equitable opportunities for all students, such as prioritizing funding for under-represented groups in computer science.
Overall, there is a relationship between the number of computer science policies adopted by a state and the percentage of public high schools offering foundational computer science. States that adopt more of the policies have a greater percentage of high schools offering computer science.
![](/images/fit-1000/marketing/diversity/policymap.png)
Marketing
The Hour of Code is our campaign to encourage students and classrooms around the world to try computer science. Stereotypes and preconceptions are a major contributor to underrepresentation in computer science, especially among young women. The Hour of Code breaks these stereotypes and teaches through experience that anybody can enjoy learning computer science, and that any school can offer it.
A study of students before and after participating in the Hour of Code showed that the program leads to significant improvements in attitudes and self-efficacy towards computer science, with the greatest gains among female students, especially in high school.
A pre/post study shows attitudes changed after just an Hour of Code:
Statement | All high school students | Female high school students |
---|---|---|
"I like computer science" | 11% increase | 20% increase |
"I am better at computer science than most kids" | 14% increase | 16% increase |
The Hour of Code has been offered in classrooms by teachers of all backgrounds and subjects, reaching students globally in over 180 countries.
The results speak for themselves: After over a billion “hours served” reaching almost a quarter of the students on the planet, and with nearly 50% of participants being female, the Hour of Code is the largest-scale effort to introduce computer science to girls.
![](/images/marketing/diversity/hoc-2021-graph.png)
In addition to the Hour of Code, Code.org regularly produces new materials and programs to improve diversity in computer science. For example, we distribute recruitment posters, and other marketing materials to CS teachers to help them engage more young women and students from underrepresented groups in their classrooms. We also produced the following videos — featuring Black, LGBTQIA+, and female and female-identifying voices — on the importance of learning computer science.
![](/images/16x9.png)
![](/images/16x9.png)
![](/images/16x9.png)
The sum of all these efforts — the curriculum design, the professional learning program, the Code.org Advocacy Coalition, the Hour of Code, and countless smaller efforts and initiatives — is how Code.org is holistically addressing the historical problems with diversity and equity in K-12 computer science.
Our own team’s diversity
Code.org team diversity | % female and nonbinary | % people of color** | % Black | % Hispanic/Latino *** | % Native American/Pacific Islander **** |
---|---|---|---|---|---|
Full time staff | 60% | 34% | 6% | 6% | 1% |
Our leadership team | 60% | 40% | 7% | 7% | 0% |
Our engineering team (software engineers only) | 32% | 27% | 0% | 5% | 3% |
Our technical staff (software engineers, product managers, CS educators) | 44% | 30% | 2% | 8% | 2% |
Teachers attending our professional development workshops | 64% | 21% | 12% | 8% | 2% |
*URG or underrepresented racial/ethnic groups refers to students from marginalized racial/ethnic groups underrepresented in computer science including students who are Black/African American, Hispanic/Latino/Latina/Latinx, Native American/Alaskan, and Native Hawaiian/Pacific Islander. See how Code.org extrapolates this number from external data.
**Two or more races include students from more than one racial/ethnic group. 79% of students who identified as multiracial are from more than one marginalized racial and ethnic groups underrepresented in computer science (Black/African American, Hispanic/Latino/Latina/Latinx, Native American/Alaskan, and Native Hawaiian/Pacific Islanders). See how Code.org extrapolates this number from external data.
***Anybody not identifying as white