Science project

Fruit Fly Lab: Phototaxis, Geotaxis and Chemotaxis

A common type of taxis is called phototaxis, which is movement of organisms in response to light. Moths show a positive phototaxis when they flutter around lights at night. Cockroaches, on the other hand, show a negative phototaxis—they scurry into dark corners when a flashlight is shined on them. Geotaxis is the movement of living things in response to the Earth’s gravity, and chemotaxis is the movement of organisms in response to chemicals. In this experiment, you investigate phototaxis,  geotaxis, and chemotaxis in fruit flies. Observing chemotaxis in this experiment should be particularly fun, because you can test whatever foods you’d like.

do fruit flies show?


Some Suggested substances for chemotaxis investigation, but feel free to try your own!

  • Sugar
  • Salt
  • Baking soda
  • Fresh fruit (some under-ripe and some over-ripe)
  • Honey
  • Vinegar
  • Water
  • Wine
  • Rubbing alcohol


  1. First, you will need to make two “choice chambers.” Using the scissors, cut the bottoms off the empty water bottles.
  2. Slide one bottle into the empty bottom of the other bottle.
  3. Secure the edges with clear packing tape.
  4. Place cotton balls at each end.
  5. Make a second choice chamber identical to the first.

Fruit Fly Choice Chamber

  1. For the phototaxis experiment, tape a piece of black construction paper around one side of one of the choice chambers.
  2. Because you’ll want to load a small number of fruit flies into the chambers, distribute some of the flies into the extra vials first. You may also want to put your vials of fruit flies in the refrigerator for 15-30 minutes to slow them down before doing so. Here’s how:
  3. Uncap an empty vial and set it on the table.
  4. Take the vial your fruit flies shipped in and tap it on the table so that many of the adult flies fall to the bottom of the vial.
  5. Uncap and place the vial with fruit fly culture on top of your empty vial.
  6. Transfer 10-20 adult flies into the new vial.  The flies might move into the new vial, but if they are very sleepy, you might have to tap them in.
  7. Now, it is time to put some flies into your choice chamber.
  8. Remove the cotton ball from one side of your chamber, hold the chamber upright, and insert the narrow end of the funnel into the opening.
  9. Gently tap the capped vial so the flies fall to the bottom of the vial before you open the vial’s cap.
  10. Carefully pour 6-20 flies into the funnel, counting them as they enter the chamber.
  11. Place the cotton ball back in the opening of the chamber. Set the chamber back on its side.
  12. Wait about twenty minutes for the flies to warm up again and start moving around.
  13. Count how many flies are in the light side of the chamber. Subtract this number from the total number of flies to determine how many were in the dark side of the chamber.
  14. Record your results.
  15. Remove the black paper and allow your flies to rest for a few minutes.
  16. Next, you will test geotaxis in the second chamber you made.  Load 6-20 flies into this chamber.
  17. Hold this chamber vertically for ten minutes.
  18. After ten minutes have elapsed, count the flies at the bottom half of the chamber.
  19. Compare this number to the number of flies present in the top half of the chamber.
  20. Record your results.
  21. Let the flies in both of your chambers rest before you set up your chemotaxis experiment.
  22. If you are interested in testing dry substances like baking soda or sugar, dissolve a spoonful of the dry substance in water first.
  23. Place 5-10 drops of the substances you are interested in on separated cotton balls.
  24. Place a cotton ball soaked with one of the two substances you’re testing in one end of each choice chamber. Each of the other ends should be plugged with a cotton ball soaked in water only. Why is it a good idea to test a cotton ball soaked in water in one of your choice chambers?
  25. After 10 minutes, count how many fruit flies are on each side of your choice chambers.
  26. Record your data and think about your results.


Fruit flies show a strong negative geotaxis, which means they like to move up. Adult fruit flies generally show a positive phototaxis, meaning they move towards light, but they show some variability in this preference. During your chemotaxis experiment, you should have observed that fruit flies generally move towards the chemicals in their preferred food: rotting fruit.  Sweet substances, wine, and vinegar are often popular fruit fly choices.


A lot of fruit fly behavior can be understood by thinking about how the action helps the fruit fly to better survive in its natural environment. Moving away from gravity makes sense for a flying insect. Preferring light over dark also helps the flies find their food. Many of the chemotaxes you observed can be explained by investigating what fruit flies regularly eat. Since alcohol and vinegar are common byproducts of rotting fruit, you might expect fruit flies to show a strong positive chemotaxis towards them. For your chemotaxes experiment, we asked you to use water as a control to see whether it was the water or the substances dissolved in it that the flies were attracted to.

Going Further

There is so much you can do with fruit flies! Next, you should learn how to tell males from females.  You could repeat your experiment and determine whether one gender likes certain substances more than the other gender does. You also could experiment with fruit fly larvae instead of adults—and if you continue to enjoy experimenting with fruit flies, you might consider doing a genetics experiment.

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