Building Math Problem-Solving Skills Through Computational Thinking
by Heather Sherwood
Each December, school districts around the country participate in Computer Science Education Week (CSEdWeek) to celebrate learning in computer science (CS) and artificial intelligence (AI). This celebration gives teachers across content areas an opportunity to explore computational tools and CS concepts in their curricula. For elementary math teachers, it is also a chance to consider how computational thinking (CT)—a problem-solving process used by computer scientists—can support students as they solve mathematical problems.
Although CT was once viewed as relevant only to CS, it can support learners, including students with disabilities, in solving a wide range of problems (International Society for Technology in Education, & Computer Science Teachers Association, 2011). And while CT and mathematics are often taught as separate subjects, CT concepts can help students work through complex math problems. When children tackle a math problem, they may already be using some of the thinking at the heart of CT: noticing patterns, following clear and repeatable steps, breaking a challenge into smaller problems, and trying out solutions. CT gives students another way to explore math, explain their reasoning, and carry useful strategies from one problem to the next.
Computational thinking is often defined as a systematic approach to problem-solving that breaks complex challenges into clear, logical steps a person or computer can follow (Wing, 2006). It consists of four key concepts: abstraction, algorithmic thinking, decomposition, and pattern recognition.
Abstraction is the process of filtering out unnecessary or irrelevant details so that you can focus on the details that are relevant for solving a problem and helping students to focus on only the information needed. In math classrooms, abstraction can involve setting aside irrelevant details, identifying the relevant numbers, and then representing the problem using only the details needed. For example, students may feel overwhelmed or distracted by the amount of text or by irrelevant numbers in a word problem. They can practice abstraction by crossing out details that do not help them solve the problem and focusing on the information they need. For example:
Students have set up 4 snack tables for a school fair. Each table has 6 paper cups.
The cups are blue, and the fair starts at 10 a.m. How many cups are there altogether?
4 tables x 6 cups each = 24 cups total
In the example above, students use abstraction by crossing out the color of the cups and the start time. This helps them focus on the relevant information—four tables and six cups per table—needed to solve the problem.
Algorithmic thinking is the process of creating a set of rules, or an algorithm, for solving a problem consistently. In CS, an algorithm is written as code that tells a computer how to perform a task or solve a problem. In math classrooms, an algorithm is a repeatable series of steps for solving a problem. For example, when solving a multi-digit multiplication problem, students multiply by the 1s digit and then by the 10s digit and add the partial products. The sequence stays the same even when the numbers change. Elementary math teachers can support students by modeling the steps, often with a class chart that shows the routine.

As students follow an algorithm, they can cross out or check off each step as they complete it, helping them focus on what comes next. This routine can be especially helpful for students with learning disabilities: clearly laid out, predictable steps can reduce the amount of information they need to manage at once.
Decomposition is the process of breaking a large complex problem into smaller manageable problems. Computer programs use multiple lines of code that work together to complete a task. In math classrooms, decomposition can help students break a problem into smaller parts, solve each one, and combine the results. For example, a complex word problem may require students to solve two mathematical problems to reach the final answer. They can decompose it into smaller tasks.
Fourteen classrooms each need 23 pencils. The school has 300 pencils. How many pencils are needed altogether, and how many more should the school order?
Decompose it into smaller tasks:
- Find the pencils needed for 10 classrooms: 23 × 10 = 230
- Find the pencils needed for the other 4 classrooms: 23 × 4 = 92
- Add the amounts: 230 + 92 = 322 total pencils needed
- Compare with the pencils on hand: 322 − 300 = 22
Final answer: The school needs 322 pencils all together and should order 22 more.
Breaking problems into smaller clear steps can make the process more manageable: It can reduce working-memory demands, help students organize their approach, and give them a structure for tracking their progress toward a solution.
Pattern recognition is the process of finding similarities or recurring elements across problems. In CS, it means noticing repeated features or steps in data or problems so they can be grouped, predicted, or handled with a reusable solution; for example, using a loop to repeat the same instruction. In math classrooms, students use pattern recognition in many ways:
- Identifying multiples of a number (2, 4, 6, 8, and so on)
- Recognizing odd and even numbers
- Noticing that multiplying a fraction’s numerator and denominator by the same number creates an equivalent fraction
Solve the Growing Tile Pattern
Figure 1 has 4 tiles. Figure 2 has 7 tiles. Figure 3 has 10 tiles.
- How many tiles will Figure 4 have?
- What changes from one figure to the next?
- Show or explain how you found your answer.
Pattern recognition helps students notice connections between math ideas and to then apply similar strategies to new problems. This process can make unfamiliar problems feel more manageable and build students’ confidence in their mathematical thinking.
Learning CT gives all students a flexible toolkit for choosing and applying strategies that fit their needs. Practicing these strategies in math strengthens students’ reasoning and can help them transfer their learning to CS, building confidence as they approach unfamiliar problems in both subjects.
Suggested Resources
BootUp elementary CS curriculum: As described on their website, “BootUp’s curriculum equips K–8 educators and students with engaging, research-based computer science and AI learning experiences designed to build creativity, problem-solving, and computational thinking skills.”
Digital Promise CT for educators: Digital Promise is an organization that connects research, practice, and ed tech with the goal of preparing learners to thrive. The CT area of their site provides an overview of CT as well as links to blogs, projects, and reports about CT.
References
International Society for Technology in Education, & Computer Science Teachers Association. (2011). Operational definition of computational thinking for K–12 education
Wing, J. M. (2006). Computational thinking. Communications of the ACM, 49(3), 33–35.
The contents of this blog post were developed under a grant from the Department of Education. However, those contents do not necessarily represent the policy of the Department of Education, and you should not assume endorsement by the Federal Government.
This work is licensed under CC BY-NC-SA 4.0
Math for All is a professional development program that brings general and special education teachers together to enhance their skills in
planning and adapting mathematics lessons to ensure that all students achieve high-quality learning outcomes in mathematics.