Yes, flies do lay eggs on food, and they can do it surprisingly fast. Houseflies, fruit flies, and blowflies all target food as a place to deposit eggs, though each species has different preferences. Understanding what attracts them, what their eggs look like, and whether eating them poses a real health risk can help you protect your kitchen and your meals.
Which Flies Lay Eggs on Food
The three most common culprits are houseflies, fruit flies, and blowflies, and they don’t all go after the same things.
Fruit flies lay their eggs near the surface of fermenting or overripe foods. Tomatoes, melons, grapes, squash, bananas, potatoes, and onions left out on counters are prime targets. They’re especially drawn to produce that’s starting to break down, and a single female can lay around 500 eggs in her lifetime. If you make your own wine, cider, beer, or canned goods, fruit flies will lay eggs under poorly sealed lids, and the tiny larvae can work their way into the container after hatching.
Houseflies prefer moist, decaying organic material. They’ll lay eggs on meat, fish, and other protein-rich foods left uncovered, as well as garbage and compost. Blowflies (the iridescent green or blue ones) are the fastest to arrive on raw meat or animal products. They can detect exposed food within minutes and begin laying eggs almost immediately.
What Fly Eggs Look Like
Fly eggs are easy to miss. Housefly eggs are creamy white, roughly 1 millimeter long, and typically deposited in clusters on or just beneath the surface of moist food. They look like tiny grains of rice, often packed tightly together. Fruit fly eggs are even smaller and nearly transparent, making them almost invisible on the surface of soft, wet produce. You could easily mistake a cluster of fly eggs for a bit of food residue or moisture.
In warm conditions, these eggs can hatch into larvae (maggots) within 8 to 24 hours. That’s why food left out overnight in summer can seem fine one evening and have visible larvae the next morning.
What Happens If You Eat Fly Eggs
Accidentally swallowing a few fly eggs or tiny larvae is not a medical emergency. Your stomach acid destroys most of them before they can do anything. In rare cases, if larvae survive the digestive process, they can cause a condition called intestinal myiasis, where the larvae temporarily live in the gut. Symptoms can include abdominal pain, nausea, vomiting, or itching around the anus, though some people have no symptoms at all.
Intestinal myiasis from food is considered accidental and uncommon. In documented cases, symptoms resolved completely within hours of the larvae passing through the digestive system. Patients remained healthy afterward. The condition doesn’t cause lasting harm, though it can be alarming if you notice larvae in your stool.
The Bigger Risk: Bacteria, Not Eggs
The eggs themselves are less concerning than what the fly carried in on its body. Houseflies pick up bacteria, viruses, and fungi from the garbage, feces, and decaying material they visit before landing on your food. Research from the University of Georgia found that houseflies carry E. coli O157:H7, one of the more dangerous foodborne pathogens. Some of the microbes found on houseflies were antibiotic-resistant, making any resulting infection harder to treat.
Flies don’t just walk on your food. They also regurgitate digestive fluids onto it to break it down before eating, which deposits even more bacteria onto the surface. So a fly that lands on your plate for just a few seconds can leave behind pathogens, even if it doesn’t have time to lay eggs.
How to Keep Flies Off Your Food
Preventing egg-laying comes down to reducing access and removing what attracts flies in the first place.
- Cover food immediately. Don’t leave plates, cutting boards, or serving dishes exposed, especially outdoors or in warm weather. Mesh food covers work well for picnics and outdoor dining.
- Refrigerate produce promptly. Fruit flies target ripening and fermenting produce on counters. Storing tomatoes, melons, bananas, and other soft fruits in the refrigerator once they’re ripe eliminates the main attractant.
- Seal containers tightly. If you ferment, can, or brew at home, make sure lids are airtight. Fruit flies will find gaps you wouldn’t expect.
- Empty trash and compost regularly. Both houseflies and fruit flies breed in decomposing organic waste. A sealed trash can and frequent disposal cut down fly populations dramatically.
- Clean up spills and residue. A thin layer of juice on a counter or a bit of food stuck in a drain is enough to attract fruit flies. Cleaning drains with a stiff brush removes the organic film larvae feed on.
If you find eggs or larvae on food, discard it. While the health risk from a small amount of contamination is low, the bacterial load a fly deposits alongside its eggs makes the food unsafe to eat.