Updated: August 26, 2026

If you need to know how to clean trash can with maggots, the fix is to remove the source, kill the larvae, and wash the bin hard enough to strip away the grease and residue that brought them in. The good news is that maggots are easy to kill, but you need to clean the can fully or flies will come right back and lay more eggs. Handle the bin with gloves, keep the lid closed while you work, and treat the surrounding trash area too.

Start by removing the trash and sealing the mess

Get the bag out of the can first, then tie it shut and move it straight to the curb or into an outdoor dumpster. If the bag has split, double-bag the contents before you move it. Do not shake the bin or spray it indoors, because that spreads larvae and odor into the air.

If there are loose maggots in the bottom of the can, scoop them into a disposable bag with paper towels or dump the can onto a hard outdoor surface that you can wash down. This step matters because the larvae keep feeding on scraps, spilled liquids, and grime inside the bin.

Kill the maggots fast

The fastest answer to what kills maggots in trash can is heat. Pour boiling water directly over the maggots inside the bin, using enough to cover the bottom and sidewalls. Let it sit for 10 minutes. For a standard 20 to 32 gallon trash can, use at least 2 to 4 kettles or pots of boiling water so the surface stays hot long enough to kill every larva.

If you want a chemical option, use a bleach solution made with 1 cup household bleach per 1 gallon of water. Pour or spray it into the can after the loose larvae are gone, then let it sit for 10 minutes before scrubbing. Never mix bleach with ammonia, vinegar, or other cleaners.

Scrub the trash can clean

Once the maggots are dead, the next step in how to clean maggots out of trash can is a full wash. Use a stiff brush, hot water, and a degreasing dish soap or all purpose cleaner. Scrub the bottom, corners, handle ledges, lid, and wheels, because eggs and fly residue collect in seams and under the rim.

For a strong cleaning routine, work in this order:

  1. Rinse out the can with hot water.
  2. Add dish soap or cleaner and scrub every inside surface.
  3. Rinse again.
  4. Apply the bleach solution or a disinfecting cleaner.
  5. Let it sit for 10 minutes.
  6. Rinse and drain the can upside down.

If the can still smells sour or greasy after washing, repeat the soap scrub. Fly eggs are laid on residue, not on clean plastic.

Dry the bin completely and clean the area around it

Drying matters because moisture helps flies return to the bin. Leave the lid open in direct sun for a few hours, or wipe the inside with old towels and let it air dry. If you have a hose-safe outdoor area, stand the can upside down so water drains from the rim and handle grooves.

Then clean the trash pad, fence line, or patio where the can sits. Wash away drips, spilled food, and pooled liquid with hot soapy water. If the area stays sticky, flies will keep treating it like a feeding spot even after the bin itself is cleaned.

How to get rid of maggots in trash bag, trash bin, and trash can lids

When the problem is in a trash bag, tie the bag shut first and move it outside. If maggots are writhing on the outside of the bag or in the can, pour boiling water on the affected area, then seal the bag inside another bag before disposal. Do not drag a leaking bag through the house.

For lids and hinges, use soap and hot water first, then disinfect with the bleach solution or a kitchen-safe disinfectant. The underside of the lid matters because flies land there and lay eggs near food odors. If your lid has drain channels or a recessed lip, clean those grooves with an old toothbrush.

Stop maggots from coming back

The best way to get rid of maggots in trash can problems for good is to stop flies from finding food and moisture in the bin. Put all food scraps in sealed bags before they go into the can. Empty meat trays, pet food cans, and takeout containers before tossing them. Wrap diapers, cat litter, and yard waste in closed bags as well.

Keep the lid shut tightly, rinse sticky containers before disposal, and take trash out before it overfills. In warm weather, line the can with a heavy duty bag and sprinkle a small layer of baking soda in the bottom after cleaning to reduce odor. If you compost, keep fruit scraps covered and move the compost away from the trash area.

Prevent flies, worms in trash can, and rodent problems around bins

What people call worms in trash can situations are usually fly larvae, but the same dirty conditions also attract rodents. Keep bins several feet away from walls, fences, and overhanging branches so pests cannot use them as cover. Clean spilled grease, pet food, and bird seed quickly, because those attract rats and mice just as fast as they attract flies.

Use a trash can with a tight lid and repair cracks in the bin, especially near the bottom where food juice collects. If you store trash outside for pickup day, wash the can on a fixed schedule, every 1 to 2 weeks in hot weather and after any leak or garbage spill. A clean, dry bin is far less likely to develop another maggot outbreak.

Frequently Asked Questions

How do I get rid of maggots in my trash can without bleach?

Use boiling water, soap, and scrubbing. Boiling water kills the larvae, and hot dish soap removes the grease and food film that feed flies. After that, rinse the can well and dry it in the sun. If odor remains, repeat the soap scrub before the next trash pickup.

How do you get rid of maggots in trash can if they are inside a bag?

Tie the bag shut, double-bag it if it is leaking, and move it outside right away. If maggots are outside the bag or in the bottom of the can, pour boiling water into the bin, then wash the bin with soap and hot water. Do not leave a compromised bag sitting in the can.

How do I stop maggots in trash can during hot weather?

Take food trash out before it sits overnight, keep the lid sealed, and clean the can after any leak. In summer, flies can lay eggs fast, so even one day of food residue is enough to start a maggot problem. A dry bin, tight lid, and regular cleaning stop the cycle.

What if the trash can still smells after cleaning?

The smell means residue is still inside the bin. Scrub the bottom, lid underside, and rim again with hot soapy water, then rinse and dry in the sun. If the odor came from meat juice or rotten food, use the bleach solution after scrubbing to remove the remaining bacteria and film.

Related Posts: