Boiling water is the fastest way to kill maggots in a garbage can. Pour a full kettle directly onto them and they die on contact. But killing the maggots is only half the job. If you don’t clean and dry the bin thoroughly afterward, flies will return and lay new eggs within hours. Here’s how to handle the whole problem from start to finish.
Why Maggots Appear So Quickly
A single housefly can lay up to 300 eggs at once, and those eggs hatch in roughly 24 hours. The tiny larvae that emerge are about 2 mm long, but they grow fast. Within four days they can reach 20 mm, molting twice as they feed. Warm weather accelerates the entire cycle, which is why maggot infestations spike in summer. Any food residue, meat juice, or organic waste left in a garbage can is an open invitation.
Boiling Water: The Fastest Fix
Maggots can’t regulate their body temperature, so boiling water kills them instantly. It also destroys eggs clinging to the surface that you can’t see. Boil the largest pot or kettle you have, carefully pour it directly over the maggots, and watch for any movement. If stragglers are still wriggling, hit them with a second round. Once the water cools, dump the contents, scoop out the dead maggots, and seal them in a plastic bag for disposal.
This method costs nothing, uses no chemicals, and works on any type of trash can. It’s the best starting point before you move on to disinfecting.
Other Methods That Work
Vinegar and Hot Water
Mix one part white vinegar with three parts hot water and pour it into the garbage can. Close the lid and let it sit for 30 minutes. The acidity kills the maggots and neutralizes the odors that attract flies in the first place. Adding a few drops of dish soap helps the solution penetrate faster by breaking surface tension. After 30 minutes, dump the liquid, rinse the bin, and spray it down again with the vinegar solution to disinfect.
Salt
Pouring a thick layer of table salt directly onto maggots pulls moisture out of their bodies and dehydrates them. This takes longer than boiling water, but it works well for smaller clusters or hard-to-reach corners. After the maggots stop moving, rinse out the bin and dispose of the remains in a sealed bag.
Diatomaceous Earth
Food-grade diatomaceous earth is a fine powder made from fossilized algae. It works like salt, shredding the soft outer layer of the larvae and drying them out. Sprinkle a generous coating over the maggots and wait several hours. Sweep up the dead maggots and powder, seal them in a bag, then clean the bin with a vinegar solution or disinfecting spray.
Bleach
Combine equal parts bleach and hot water, pour it into the garbage can, and close the lid. This kills maggots and disinfects the surface at the same time. For stubborn residue, follow up by wiping down the inside with undiluted bleach.
One critical safety note: never mix bleach with ammonia or ammonia-based cleaners. The combination releases chloramine gas, which can cause coughing, difficulty breathing, chest pain, and in high concentrations, death. This matters more than you might think around garbage cans. Urine (from diapers, pet waste, or animal scavenging) contains ammonia, so if your bin has any trace of it, skip the bleach and use vinegar instead.
Cleaning the Bin After the Kill
Killing the maggots without sanitizing the can just resets the clock. Fly eggs can be nearly invisible, and any remaining organic film will attract new flies within a day. After you’ve killed and removed the maggots, here’s what to do:
- Rinse thoroughly with a hose or several buckets of clean water to flush out all residue.
- Scrub the interior with a stiff brush and your disinfectant of choice (vinegar solution, bleach solution, or a commercial cleaner).
- Dry the bin completely in direct sunlight. This is the step most people skip, and it matters. Moisture is what makes a trash can hospitable to fly eggs. Leaving the lid open in the sun for a few hours kills any remaining bacteria and ensures the interior is bone dry before you put a new bag in.
Keeping Maggots From Coming Back
Prevention comes down to three things: blocking flies from getting in, removing what attracts them, and making the environment hostile to egg-laying.
Always bag your trash before it goes in the can. Double-bag meat scraps, fish, and anything with grease or juices. Keep the lid fully closed at all times. Even a small gap is enough for a fly to slip in, and a single visit can mean 300 eggs.
Rinse the bin with a vinegar-and-water solution every couple of weeks during warm months, especially after collection day when residue tends to pool at the bottom. If you notice liquid accumulating, sprinkle a layer of baking soda or salt on the bottom of the can beneath the bag. Both absorb moisture and discourage larvae.
Peppermint oil is a natural fly repellent that can help between cleanings. Dilute several drops in water, pour it into a spray bottle, and mist the rim and interior of the can. You can also soak cotton balls in peppermint oil and drop them in the bottom of the bin. Flies find the scent overwhelming and tend to avoid it. Eucalyptus oil works similarly. Reapply after every trash collection or heavy rain.
Trash collection timing also plays a role. If your pickup is weekly and temperatures are high, maggots can establish themselves in as little as two days. On weeks when you have especially odorous waste, consider storing it in a sealed bag in a cool area (like a garage) rather than the outdoor bin, and putting it out the morning of collection.