Common fruit fly (Drosophila melanogaster) close-up
November 12, 2026

The Beginner's Guide to Breeding Fruit Flies at Home

If you keep ants and want a reliable live feeder that you can produce yourself at almost no cost, fruit flies are the place to start. They are soft-bodied, protein-rich, easy to breed, and completely manageable in a home setting. This guide covers everything you need to get a culture going, keep it healthy, and maintain a steady supply for your colony.

We also made a full video tutorial walking through the entire process, so you can follow along while you read.

Why fruit flies work so well as ant food

Live food triggers natural hunting behavior in ants, and fruit flies are ideal prey. They move, they are the right size for most species, and they do not bite back or carry parasites that would harm your colony. Because the flightless varieties used in the hobby cannot fly, they stay where you put them rather than escaping around your home.

Which fruit fly to start with

The hobby uses two flightless species: the small Drosophila melanogaster and the larger Drosophila hydei. Start with melanogaster if you are new to this, since it is the more forgiving of the two. Our article Drosophila melanogaster vs Drosophila hydei explains which one suits your colony.

What you need

The equipment list is short. You need a ventilated container such as a plastic deli cup with a mesh lid, some excelsior or crumpled paper towel for the flies to climb on, and the ingredients for a growing medium.

For the medium, combine instant mashed potato flakes, warm water, a splash of apple cider vinegar or beer, and a pinch of dry active yeast. Mix until you have a thick paste, press it into the bottom of your container, and let it cool before adding your starter flies. The vinegar discourages mold and the yeast is the actual food source the larvae need to develop.

Setting up and maintaining your culture

Once your medium is ready and cooled, add excelsior for the adults to land on, then introduce your starter flies. Seal the container with a mesh lid and place it somewhere warm, roughly 72 to 79°F (22 to 26°C), out of direct sunlight.

The most important habit is rotation. Start a fresh culture while your current one is still going strong, so you always have one at peak production. Every culture slows down after a while, and if it is your only one you will face a gap in supply. Watch how many flies each culture produces and start the next one as soon as the numbers begin to drop.

Common problems and how to fix them

Mold usually comes from medium that is too wet or a container that is not getting enough airflow. Reduce the water slightly and check that your lid mesh is not blocked. Mites are almost always introduced from cross-contamination with other organic material stored nearby. Keep cultures isolated, and if a culture gets mites, discard it and start fresh.

Feeding your ants

Tap a small number of flies into your enclosure. Start with fewer than you think you need, as leftover flies that die can foul the enclosure. Watch how quickly the flies are eaten and offer more when the previous portion is gone, adjusting for colony size and species. For the full picture on protein and sugar, read our complete feeding guide.

Cover photo: Common fruit fly (Drosophila melanogaster) in Orange, CA. © Jesse Rorabaugh, via iNaturalist, licensed under CC0 1.0.

Share