Jump to main content

Candy Rainbow

20 reviews


Active Time
< 10 minutes
Total Project Time
< 10 minutes
Key Concepts
Chemistry, molecules, diffusion, gradient
Ben Finio, PhD, Science Buddies
Candy Diffusion Art


Here is a fun project you can try with leftover candy you have. You will make some amazing art using nothing but colored candy and hot water—and a little bit of science. Save some of your candy and get started!

This activity is not recommended for use as a science fair project. Good science fair projects have a stronger focus on controlling variables, taking accurate measurements, and analyzing data. To find a science fair project that is just right for you, browse our library of over 1,200 Science Fair Project Ideas or use the Topic Selection Wizard to get a personalized project recommendation.


  • Hard-shelled colored candies, such as M&Ms® or Skittles®
  • Small plate
  • Glass or measuring cup
  • Warm tap water
  • Dish towel or paper towels
  • Spoon
  • Sugar
  • Workstation than can tolerate spills and color dyes
  • Food coloring (optional)

Prep Work

  1. Arrange pieces of candy in a circle around the inner rim of the plate. Use at least two different colors, alternating them in groups of two or three.
  2. Fill a measuring cup or glass with warm tap water.


  1. Slowly pour warm tap water into the middle of the plate, until it partially covers the candy (or fully, depending on how deep the plate is).
  2. Watch the plate closely for a few minutes. What happens?
  3. Empty and dry off the plate.
  4. Make a circle of candy around the plate again.
  5. Put a small pile of sugar (about a quarter teaspoon) directly in the middle of the plate.
  6. Slowly pour warm tap water near the center of the plate (but not directly onto the pile of sugar).
  7. Watch the plate closely for a few minutes.
    Think about:
    What happens this time? Is it different from what happened the first time?
  8. Clean off the plate and repeat the test. Try different color patterns and/or arranging the candy (and sugar) in different shapes. What patterns and artwork can you make?

    A rainbow pattern in a plate of water made by dissolving MM's.


  1. Pour the water down the drain and throw any non-dissolved candy and sugar in the trash.

What Happened?

When you pour water onto the plate, the candy's colored coating starts to dissolve in the water. As a result, you can see the colored dye diffuse towards the center of the plate. This diffusion can result in amazing, colorful rainbow patterns, as the colors remain mostly separate at first instead of bleeding together. You might have seen a "pie wedge" type pattern with different slices of each color you arranged around the rim.

When you put sugar in the middle of the plate something strange happens. The dye seems to hit an invisible wall in the water and stop diffusing at first, then diffuses much more slowly. This occurs because in addition to colored dye, the candy's coating also contains sugar. Both the sugar and the dye dissolve into the water, forming a mixture called a solution. With your first test the sugar wants to spread out from where there is a high concentration of sugar (right next to the candy) to where there is a lower concentration of sugar (the middle of the plate). The whole solution (sugar and dye molecules) moves along this gradient from high concentration to low concentration. Although you can't see the sugar from the candy coatings, you can see the colored dye. With your second test, however, there is already a lot of sugar in the middle of the plate—there is not a steep sugar gradient between the rim of the plate and the center. This prevents the sugar (and the dye) from spreading towards the center as rapidly. You might wonder "well, there are still no dye molecules in the middle of the plate, so shouldn't the dye molecules keep diffusing, even if the sugar doesn't?" That's a good question! Different types of molecules diffuse at different rates in water. In this case the solution with the sugar molecules diffuses much faster than the dye molecules would on their own. This explains why, if you drop some food coloring into still water, it diffuses much more slowly than the dye from the candy. The food coloring does not contain any sugar.

If you watch the plate for a while, you might have noticed that the colors remain separated for quite some time. This can seem surprising—you might expect the colors to all blend together and turn a muddy brown. Remember, however, that it's the sugar gradient that drives the diffusion. After the whole plate is filled up with colors, the sugar concentration is the same everywhere—there is no sugar gradient between the different colors. So the colors will continue to diffuse slowly due to random motion of the molecules—but this process is much slower than the initial diffusion caused by the sugar gradient.

Digging Deeper

Many of the foods we eat are colored with artificial dyes. Some of these dyes will easily dissolve in water. This means that when foods containing the dyes are placed in water, the molecules that make up the dye will break away from the food and start to spread out in the water. The process where molecules spread out like this is called diffusion. The molecules tend to spread from areas where there are a lot of that type of molecule (a high concentration) to areas where there are fewer of that type of molecule (a lower concentration). Eventually the molecules all spread out enough that the concentration is equal everywhere. This is called equilibrium. The molecules, however, do not stop moving completely at that point. They will still bounce around randomly, and diffusion will still occur—but much more slowly.

Does all that sound confusing? Don't worry! You experience molecular diffusion every day with your sense of smell. Have you ever noticed how a smell will seem stronger when you are very close to the source or when the source of the smell just started out (for example, pulling a batch of fresh-baked cookies out of the oven)? This is because initially there is a higher concentration of odor-causing molecules in the air close to the source. Gradually these molecules will diffuse through the air into the rest of the room so you can detect the smell from farther away. In this experiment you saw diffusion in action instead of smelling it—by using liquids instead of gases.

Rainbow candies in water demonstrate diffusion and create colorful, artistic patterns
icon scientific method

Ask an Expert

Curious about the science? Post your question for our scientists.

For Further Exploration

  • Watch the plate for about five to 10 minutes. Do the colors continue to diffuse at the same rate they did initially?
  • Leave the plate out all day and check on it periodically or let it sit overnight. How long does it take the colors to blend completely?
  • Try the test with cold water instead of warm water. Do the colors diffuse at a different rate?
  • Drop some food coloring into a plate of still water and watch how it diffuses. How is it similar to or different from the way the dye diffused from the candy? Can you figure out why?


STEM Activity
41 reviews
Have you ever wondered how predators, like wolves, lions, and hawks, are able to find their prey? And what can an animal do to stay off of a hunter's menu? To survive, some animals have developed specific camouflage tactics to fool their predators. One strategy some animals use is to look very similar to other animals that are poisonous or that the predator doesn't like to eat. This camouflage tactic is called mimicry. In this science activity, you will be the hungry predator and you will hunt… Read more
STEM Activity
45 reviews
Have you ever poured sand out of a bucket, or poured cereal out of a box, and noticed it is a lot like pouring water? It is because sand and cereal are granular materials. This means they are made up of solid particles, but they can actually flow like liquids! Candies, like Skittles®, M&M's®, Nerds® candies and many others, are also granular materials. In this science activity, you will investigate how the size and shape of granular materials affect how they flow. And what… Read more


Career Profile
Everything in the environment, whether naturally occurring or of human design, is composed of chemicals. Chemists search for and use new knowledge about chemicals to develop new processes or products. Read more
Career Profile
The role that the chemical technician plays is the backbone of every chemical, semiconductor, and pharmaceutical manufacturing operation. Chemical technicians conduct experiments, record data, and help to implement new processes and procedures in the laboratory. If you enjoy hands-on work, then you might be interested in the career of a chemical technician. Read more
Career Profile
There is a fraction of the world's population that doesn't have enough to eat or doesn't have access to food that is nutritionally rich. Food scientists or technologists work to find new sources of food that have the right nutrition levels and that are safe for human consumption. In fact, our nation's food supply depends on food scientists and technologists that test and develop foods that meet and exceed government food safety standards. If you are interested in combining biology, chemistry,… Read more
Career Profile
Good taste, texture, quality, and safety are all very important in the food industry. Food science technicians test and catalog the physical and chemical properties of food to help ensure these aspects. Read more
Free science fair projects.