Jump to main content

Make a Homemade Fly Trap

18 reviews


Active Time
< 10 minutes
Total Project Time
Up to 1 day
Key Concepts
Animal behavior, smell, chemotaxis
Ben Finio, PhD, Science Buddies
Make a Homemade Fly Trap


Have some pesky flies in your kitchen that you cannot seem to get rid of? In this project you will build your own simple fly trap from a plastic bottle. Get ready to get rid of those flies!

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.


  • Plastic bottle
  • Utility knife or scissors
  • Sugary liquid like honey, corn syrup, juice, etc.
  • Tape
  • Adult helper
  • Video instructions are available in English and Spanish.

Prep Work

You will need to find an area with some flies to do this project. Common houseflies and fruit flies tend to congregate around rotting food and garbage cans, so your kitchen might be a good place. Be careful—try not to do the project outside, where you might catch beneficial insects like bees.


  1. Have an adult help you cut the top part off the plastic bottle.

  2. Partially fill the bottom of the bottle with your sweet liquid.
  3. Remove the cap, flip the top of the bottle upside down, and insert it into the bottom of the bottle.
  4. Optionally, tape around the edge to seal the two pieces together. This will make it more difficult for smaller insects like fruit flies to escape through any gaps. However, it will also make it more difficult to empty and clean out your trap.

  5. Let your fly trap sit for a few days in an area where you see a lot of flies. Check on it each day to see how many flies you catch!
  6. If your trap does not seem to be working, rinse it out and try using a different liquid as bait. You can also use solid food, like rotting fruit or meat, but you will need to add some water so the flies drown. Flies will lay eggs in rotting food—so if you see maggots, get rid of them before you wind up with more flies!


You can remove the top, empty, rinse, and reuse your fly trap! If you are done using it, throw the contents in the trash, then wash and recycle the plastic bottle.

What Happened?

Flies are attracted to the sweet scent of the bait in your trap. The funnel shape made by inverting the top of the bottle makes it easy for the flies to crawl down into the trap, but difficult for them to fly back out. If they try to fly away, they will get stuck against the edges of the bottle. The flies will try to feed on the sweet liquid, but flies are not good swimmers—they will eventually get stuck and drown.

Digging Deeper

You might wonder how flies seem to magically appear out of nowhere. Despite being so tiny, flies have an excellent sense of smell. Just like you might follow the scent of fresh cookies baking in the oven into the kitchen, flies will follow the scents of sugary liquids or rotting foods to the source. They will even notice the smells from outside, and sneak into your house through tiny gaps and cracks to get to the food. The act of using your sense of smell to navigate is called chemotaxis. In this project, the flies followed the smell all the way into your fly trap, and then could not get back out.

Depending on where you live, the time of year, and the type of bait you used, you might have caught different species of flies. Houseflies (the big, black ones) and fruit flies (the really tiny ones) are typically the most common. Humans generally consider flies pests, and they can spread disease since they also feed on animal feces. However, flies are very important for the environment. They help decompose organic matter in nature, and provide a food source for many different predators. So while it is OK to get rid of those pesky flies in your kitchen, we do not want to get rid of all the flies!

icon scientific method

Ask an Expert

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

For Further Exploration

  • What bait works best? Build several different traps and put different bait in each one, then leave them all in the same location. Which one attracts the most flies?
  • Does the shape of the bottle matter? Compare bottles with different size openings. If the opening is bigger, it might be easier for flies to get into the bottle, but also easier for them to escape.

Project Ideas

Science Fair Project Idea
You are coming into the house after a game of flashlight tag with your friends, but the front porch light is not on for you to see the doorknob! What is going on? Maybe your parents know that turning a light on means moths will gather there, and they do not want you letting moths inside when you open the door. You have probably noticed how moths are attracted to lights at night. They will even fly dangerously close to flames in their journey toward light. In this project, you will learn a… Read more


Career Profile
Ever wondered what wild animals do all day, where a certain species lives, or how to make sure a species doesn't go extinct? Zoologists and wildlife biologists tackle all these questions. They study the behaviors and habitats of wild animals, while also working to maintain healthy populations, both in the wild and in captivity. Read more
Career Profile
Environmental engineers plan projects around their city or state—like municipal water systems, landfills, recycling centers, or sanitation facilities—that are essential to the health of the people who live there. Environmental engineers also work to minimize the impact of human developments, like new roads or dams, on environments and habitats, and they strive to improve the quality of our air, land, and water. Read more
Career Profile
Life is all around you in beauty, abundance, and complexity. Biologists are the scientists who study life in all its forms and try to understand fundamental life processes, and how life relates to its environment. They answer basic questions, like how do fireflies create light? Why do grunion fish lay their eggs based on the moon and tides? What genes control deafness? Why don't cancer cells die? How do plants respond to ultraviolet light? Beyond basic research, biologists might also apply… Read more
Free science fair projects.