Flies and Maggots in Dog Poop, Bins and Litter Boxes
You open the dog poop bin and something is moving. Or there is a cloud of tiny flies over the litter box, or white worms in the food bowl you forgot to wash last night. It is gross, but it is also easy to fix once you know what the flies are after. Flies lay their eggs in poop, wet litter, leftover pet food and dirty bins, and in warm weather a new batch of adult flies can come out of that mess in about a week. Take away the places they breed, and the flies and maggots stop.
This guide covers the yard, the poop bin, the litter box, food bowls and food storage, and what to do if you see maggots on your pet. The facts on how flies breed come from the extension sources listed under Sources near the end; the cleaning steps are our own view.
The short version
- Flies breed in warm, moist, rotting material: poop, wet litter, food scraps and the film left inside bins. In summer heat they can go from egg to adult in about 7 days.
- Pick up dog poop every day in warm weather, bag it, tie the bag and keep it in a bin with a tight lid.
- Scoop the litter box at least once a day, twice in summer, and give it a full litter change and wash if flies are already there.
- Don’t leave wet food out for more than about an hour. Wash bowls after every wet meal, and keep kibble in a closed container.
- Maggots already in a bin: tip them into a bag, tie it, then wash the bin with hot soapy water and let it dry fully.
- Maggots on your pet’s skin or fur, or moving worms in poop that was just passed: call the vet.
- Skip fly sprays, bug bombs and fly bait where pets can reach them. Removing the breeding spot works better and is safer.
Which flies are you dealing with?
You don’t need an exact name, but the type tells you where to look:
- House flies (gray, medium size) lay eggs in poop, garbage and grass clippings. Their maggots are cream-colored and up to about half an inch long. These are the usual flies around dog poop in the yard.
- Blow flies (shiny green or blue) are drawn to meat and dead animals, so they show up in bins with food scraps, wet food cans or a dead mouse. Their maggots are bigger.
- Small flies around the litter box are usually phorid flies or fruit flies. They are tiny, walk and run more than they fly, and breed in wet litter, poop left in the box and the gunk under the litter.
- Fruit flies around bowls breed in any thin film of fermenting food: wet food residue, a dirty water fountain, a sour sponge, a drain.
- Drain flies (fuzzy, moth-like) come from drains, not from your pet. If they hang around a litter box in a bathroom, check the sink and shower drain.
“Worms” in a dry kibble container are often not fly larvae at all. They are usually pantry moth caterpillars, which leave silky webbing in the food. The fix is the same: bin the food and clean the container (see below).
Why the flies keep coming back
A female fly lays batches of about 100 eggs or more in moist, rotting material. The eggs hatch in about a day in warm weather, the maggots feed for several days, then crawl to a drier spot to turn into a hard brown casing (the pupa), and a new fly comes out. The whole cycle can take about a week in summer. That is why a fly problem can grow fast from one forgotten pile of poop or one bag of wet food scraps.
It also explains what works. Sprays and traps catch adult flies, but if the poop, litter or food is still there, new flies keep hatching. Taking away the breeding spot breaks the cycle, and the adults die off within a couple of weeks.
Flies around dog poop in the yard
- Scoop every day in warm weather. Fresh poop that is picked up within a day doesn’t have time to grow maggots. If you can’t do daily, every other day is the bare minimum in summer.
- Bag each pickup and tie the bag closed. An open bag in a bin is still a fly nursery.
- Do a full sweep of the yard once. Old piles under bushes, behind sheds and along fences are often where the flies are breeding. If a pile has maggots, scoop it up with some of the soil under it.
- Rinse the spots where your dog goes on patios and paths. Leftover smears still attract flies.
- Keep grass clippings and fallen fruit picked up too. Flies breed in those as well, and they add to the problem around the dog’s area.
For the full scooping and disposal routine, see dog poop in the yard: how to scoop, dispose of it and keep things clean. If the flies are coming from a neighbor’s yard, a friendly word usually helps more than anything you spray on your side of the fence. Many towns also have rules about pet waste on private property.
Maggots in the dog poop bin
This is the one most people find first, usually in summer, when the bin sits in the sun and the bags have been in there for a week.
- Put on gloves. Tip the bags and loose maggots into a heavy trash bag, tie it, and put it in the main trash bin, or straight out for collection if it is due.
- Kill what’s left. Stand the empty bin on a hard surface away from plants and pour a kettle of boiling water into it. This kills maggots and eggs stuck to the sides. Be careful with thin plastic bins, which can warp; very hot tap water works for those.
- Scrub the bin with hot water and dish soap, including the lid, the rim and the hinge, where eggs get laid. Rinse.
- Dry it completely, upside down, in the sun if you can. Maggots need moisture.
- Change how you fill it. Bag and tie every pickup. Use a bin with a lid that closes tight, or a lidded bin with a small bin bag inside so you can take the whole lot out at once. A layer of clay cat litter or newspaper in the bottom soaks up moisture.
- Empty it more often in summer. Once a week is too slow in hot weather if the bin is getting a lot of poop. Twice a week, or straight into the main trash on the day before collection, keeps it under the maggot stage.
Shade helps as well. A bin sitting in full sun gets hotter, smellier and more attractive to flies.
Flies and larvae in the litter box
Tiny flies around a litter box, or small brown “seeds” or larvae in the litter, mean something in the box is staying wet for days. Usually it is poop left in the box, urine soaked into the bottom layer, or litter that hasn’t been fully changed in a long time.
- Dump all the litter into a bag, tie it and put it out with the trash.
- Wash the box with hot water and unscented dish soap, scrubbing the corners and under the rim. Rinse well and dry it fully before refilling. Our guide on how to deep clean a litter box has the details.
- Clean around it: the litter mat, the floor under the box, and the gap behind it, where kicked-out litter and spills collect.
- Refill with fresh litter and scoop at least once a day, ideally twice in warm weather. Clumping litter helps, because the urine is removed with the clumps instead of soaking the bottom.
- Check the litter disposal bin (Litter Genie and similar) and the waste drawer of a self-cleaning box. These are warm, closed and full of poop, and they breed flies fast. Empty and wash them, and empty them more often. See how to clean a self-cleaning litter box for robot boxes.
- Check the drains if the box is in a bathroom or laundry room. Fuzzy little drain flies around the box usually come from the drain, and cleaning the box won’t stop them.
The flies should be gone within one to two weeks, as the adults that already hatched die off. For smell and daily routine, see litter box smell control.
If your cat is leaving poop outside the box or has diarrhea that sticks to the fur, flies will find that too. Our guides on how to clean a cat’s bum and cleaning up when a cat poops outside the litter box cover both.
Maggots in the food bowl or food container
Wet food left out on a warm day can have fly eggs on it within hours. The maggots you find the next morning hatched from those eggs. They didn’t come from the food factory.
- Bin the food. Tie it in a bag and take it outside.
- Wash the bowl in hot soapy water or the dishwasher. Do the same with the mat or tray under it, and the floor where food got pushed around. Our guide on how to clean pet food and water bowls has a full routine.
- Pick up wet food after about an hour. Put leftovers in the fridge, covered. In fly season, feed wet meals indoors.
- Rinse cans and pouches before they go in the recycling or trash. An empty wet food can is one of the best places for blow flies to lay eggs.
- Kibble container: if you find larvae or webbing, throw out the food that is in it, wash the container with hot soapy water and dry it fully. Check nearby pantry shelves for moths, since they spread to flour and cereal. Keep kibble in a container with a sealing lid, and don’t pour a new bag on top of old crumbs.
- Water fountains and outdoor water bowls grow a film that draws small flies and mosquitoes. Clean them weekly.
Ants in the bowl are a different problem with a different fix; see ants in your pet’s food bowl.
Is it maggots or worms in the poop?
This matters, because one is a cleanup job and the other needs your vet.
- Poop that sat outside for a day or more and then has moving white larvae in it: almost always fly maggots that hatched there. Pick it up and scoop more often.
- Poop that was just passed and already has moving white worms or rice-like bits in it: those came from inside your pet. Common causes are roundworms (look like spaghetti) and tapeworm segments (look like moving grains of rice). Bag a sample and call your vet. Our guide on how to clean up after a dog or cat with worms covers the house, and how to get rid of worm eggs in your yard covers the grass.
Now and then a dog that ate garbage or a dead animal passes maggots it swallowed. If your dog got into either and seems unwell, call the vet.
Flies inside the house
A sudden swarm of flies indoors often means there is something hidden: an accident behind the sofa, poop stuck in a rug, a forgotten bag of litter, or a dead mouse. Follow the flies to the spot, clean it fully (see how to clean dog poop out of carpet for soft surfaces), and check that kitchen and diaper bins are closed too. Screens on doors and windows keep new flies out while you deal with the source.
Maggots on your pet
Flies sometimes lay eggs on a pet, usually on fur that is matted with poop or urine, a wound, a hot spot or a skin fold. Older, overweight, long-haired and less mobile pets and rabbits are most at risk in summer. Maggots on the skin can cause serious damage in hours.
- If you see maggots on your pet, or eggs (tiny white or yellow specks stuck to the fur near the bottom or a wound), call your vet the same day. Don’t try to pull them out of a wound yourself.
- To prevent it, keep the fur around the bottom clean and trimmed, check older pets daily in warm weather, and treat wounds and diarrhea quickly.
If your dog has rolled in something dead and is now attracting flies, see what to do when your dog rolls in a dead animal.
What not to use
- Fly bait (granules, strips or bait stations) where a dog or cat can reach it. Many baits taste sweet to pets and contain insecticides that are dangerous if eaten.
- Insecticide sprays on poop, litter or the grass your pet walks on. They don’t stop new flies hatching while the poop is still there, and your pet’s paws and nose are right in it.
- Bug bombs (foggers). They don’t reach the breeding spot and leave residue on floors and bowls.
- Bleach in a litter box that still has urine in it. Bleach and urine can give off harsh fumes. Wash the box with soap and water first.
- Essential oil “fly repellents” on or near cats. Many essential oils are toxic to cats.
- Salt, lime or chemicals poured on the lawn to kill maggots. Picking up the poop does the job without harming the grass.
Sticky fly paper or a fly trap placed well out of reach can help catch adult flies while you clear the source, but on its own it won’t fix the problem.
When to call the vet
- You see maggots or fly eggs on your pet’s skin or fur.
- Fresh poop has moving worms or rice-like segments in it.
- Your pet ate fly bait, a pest-control product or spoiled food and is drooling, vomiting, shaking or very tired.
- Your pet has diarrhea for more than a day, which also draws flies and can lead to fly strike.
Sources
Facts on this page about how flies breed (where they lay eggs, how many, how fast they develop, why traps and baits fail without sanitation) come from these sources. The cleaning steps are our own view.
- University of California Statewide IPM Program: Pest Notes: Flies.
- University of Kentucky Entomology: Fruit Flies.
Frequently asked questions
How do I stop maggots in my dog poop bin?
Tie every bag closed, use a bin with a tight lid, keep it in the shade, and empty it at least twice a week in summer. After emptying, wash it with hot soapy water and let it dry fully. A layer of cat litter or newspaper in the bottom keeps it dry.
What can I put on dog poop to keep flies away?
Nothing works as well as picking it up. Sprays and powders don’t stop flies laying eggs for long, and your dog walks and sniffs where you spray. Scoop daily in warm weather and the flies have nowhere to breed.
How do I get rid of tiny flies in my cat’s litter box?
Change all the litter, wash and dry the box, clean the floor around it, and then scoop at least once or twice a day. Empty and wash the litter disposal bin too. Most of the flies are gone within one to two weeks.
Is it normal to find maggots in dog poop?
In poop that has been outside for a day or more in warm weather, yes: flies lay eggs on it and the maggots hatch there. In poop that was just passed, moving worms usually mean intestinal worms, so call your vet.
Why are there maggots in my dog’s food bowl?
Flies laid eggs on wet food or residue that was left out, often overnight. Throw the food away, wash the bowl and mat in hot soapy water, and pick up wet food within about an hour in fly season.