Science project

Rainbow in a Jar

In both cases, you need two things: a source of light, and a transparent substance like glass or water.

But wouldn’t it be spectacular to hold a rainbow in a jar?


How can we use chemicals to make a rainbow in a jar?


  • 1 jar
  • 1/2 cup blue dishwashing liquid
  • 1/2 cup olive oil
  • 1/2 cup rubbing alcohol
  • 1/2 cup light corn syrup
  • Food coloring
  • 5 spoons
  • 5 bowls for mixing


  1. Make your purple layer by mixing 1/2 cup of the light corn syrup with 1 drop of blue and 1 drop of red food coloring.
  2. Carefully pour it into the bottom of your jar.
  3. Carefully pour the blue dish soap down the side of the jar.
  4. Mix 1/2 cup of water with 2 drops of green food coloring.
  5. Carefully pour in your green water down the side of the jar.
  6. Gently pour 1/2 cup olive oil down the side of your jar.
  7. Mix 1/2 cup of rubbing alcohol with 2 drops of red food coloring.
  8. Carefully pour the red rubbing alcohol down the inside of your jar.
  9. Being careful not to disturb your liquids, set your jar down on the table and enjoy your rainbow!


You should have produced a beautifully layered rainbow in a jar with distinct lines that separate each layer of liquid without them mixing.


So what keeps all these layers all separated from each other? It’s how dense, or heavy, each liquid is. The corn syrup is heaviest, and sits nicely on the bottom. The dishwashing soap is not quite as heavy as the corn syrup, but it’s heavier than the olive oil, and so on.

Layering them from heaviest to lightest from the bottom up ensures that the rainbow maintains its distinct lines. 

What if you had added the layers in the reverse order? Would you still see a rainbow? Try it. What if you changed the colors around but added each liquid in the original order? Go for it. What happens if you mix your rainbow with a spoon? No matter which new experiments you attempt, be sure to record your results to learn even more about density.

Disclaimer and Safety Precautions provides the Science Fair Project Ideas for informational purposes only. does not make any guarantee or representation regarding the Science Fair Project Ideas and is not responsible or liable for any loss or damage, directly or indirectly, caused by your use of such information. By accessing the Science Fair Project Ideas, you waive and renounce any claims against that arise thereof. In addition, your access to's website and Science Fair Project Ideas is covered by's Privacy Policy and site Terms of Use, which include limitations on's liability.

Warning is hereby given that not all Project Ideas are appropriate for all individuals or in all circumstances. Implementation of any Science Project Idea should be undertaken only in appropriate settings and with appropriate parental or other supervision. Reading and following the safety precautions of all materials used in a project is the sole responsibility of each individual. For further information, consult your state's handbook of Science Safety.

Add to collection

Create new collection

Create new collection

New Collection


New Collection>

0 items