Sorting Bins Coding Activity

This post may contain affiliate links.

Sharing is caring!

Did you know that you can teach your kids to code while keeping your home clean and organized at the same time? With this Sorting Bins Coding Activity, you can do both in no time!

Sorting toys with toy bins

I don’t know about you, but I feel like my boys’ toy collection grows on its own. And just when I feel like they might be ready to part with something, it becomes their favorite toy all over again.

Sorting bins were big when my boys were tiny as a way to teach them small motor skills and colors, textures, etc. Now, we use sorting as a way to not only clean up after ourselves but reinforce the coding skills of if-then and pattern recognition.

Coding Concepts Learned

Students will learn about branching in this coding activity.


Branching means checking conditions which determine the choice being made. It means making a decision depending on what is happening or what has happened.

List of Materials

  • All your kid’s toys (or the ones that need to be organized)
  • Sorting bins, buckets, or boxes
  • Colored construction paper
  • Tape

How to Play the Sorting Bins Coding Activity


My boys and I pick up all the toys on the floor, shelves, etc., and put them into one or two big boxes. If I can see it, it’s getting picked up!


We look inside the box and discuss similarities and differences. This helps us decide which items are similar and why.


We start applying some “computer logic”. If something has wheels, it goes in Box A. If something is fluffy, it goes in Box B. We keep going until we have a place for everything.


You can go as far with this idea as you have boxes for. I have a friend who went so far as to have her girls separate out their doll accessories into items for heads vs. items for feet!

The nice thing about this activity is that just came out with AI for Oceans – which is super similar! In their game, the coder teaches the computer which items are fish and which items are trash. 

I am all about multi-tasking, so this game is a huge win for me! Organizing, cleaning up, and learning about computational thinking all in one!

Pin for Later!

Similar Posts