Quick answer: what kills maggots fast?
- Boiling water + white vinegar: fastest household method, kills on direct contact
- Bleach + hot water solution: kills maggots and disinfects the bin simultaneously
- 70% rubbing alcohol: spray directly, maggots die in under 2 minutes
Got maggots specifically in a green bin or compost cart? See our complete BagEZ green bin holder guide for the long-term fix. Or jump to long-term prevention →
In this guide
Maggots are fly larvae. A fly found something wet and rotting in your bin, laid eggs, and the eggs hatched. Penn State Extension says eggs can hatch in about 7½ hours in high heat, or take two days at 59°F. One hot afternoon is enough.
Below: why they show up, how to kill them, and how to keep them from coming back.

Once the maggots are gone, the follow-up matters just as much: our full trash can cleaning guide covers the 20-minute wash and the setup that keeps the can clean afterward.
What Are Maggots?
Maggots are the larval stage of flies, most commonly houseflies (Musca domestica), blowflies, or bottle flies. When a fly lays eggs on organic matter, those eggs hatch into maggots: small, pale, worm-like creatures that feed on decomposing material. They are not a separate insect species. Every maggot will eventually pupate and emerge as an adult fly, which will then go on to lay more eggs.
A maggot is typically 3 to 12 mm long depending on its age and species. It is off-white to cream in colour, legless, and tapers to a point at the head end. When disturbed, maggots move by contracting their bodies in a rippling motion. In warm temperatures, a maggot reaches full size and begins pupating within 5 to 7 days of hatching.
In a trash can, maggots are almost always the larvae of houseflies or blowflies. Both are strongly attracted to food waste, especially meat, fish, dairy, and decomposing fruit. Understanding the lifecycle makes prevention far more straightforward.
What Do Maggot Eggs Look Like? How to Spot an Infestation Early
Fly eggs are tiny, about 1 mm long, and appear in clusters. They are white or off-white, oval, and slightly ridged along their length. In a trash can, you'll typically find them laid in tight masses directly on food waste, on the inner walls near the bin rim, or on the underside of the bin lid.
If your eggs/maggots are showing up in a curbside green bin or compost cart specifically, the prevention setup is slightly different. See our BagEZ green bin holder guide for the green-bin-specific approach.
What Causes Maggots in a Trash Can?
Flies go for moist, decaying waste. Virginia Cooperative Extension says house fly maggots turn up in cans that are left uncovered and not emptied regularly. One female can lay up to 100 eggs in a cluster.
So it comes down to three things. A lid that doesn't seal. Food scraps and liquid sitting in the bin. Too many days between pickups. Liquid that gets past a thin liner and pools on the bin floor is the worst part.
How to Kill Maggots in a Trash Can: 7 Methods That Work
Boiling water + white vinegar (fastest household method), bleach + hot water (kills + sanitizes), baking soda (safe for compost bins), 70% rubbing alcohol (kills in minutes, reaches crevices), table salt (osmotic dehydration), lime or food-grade diatomaceous earth (natural dual kill + barrier), or permethrin spray (severe/recurring outdoor cases only). All work on contact within seconds to minutes.
Boiling water, step by step. Virginia Cooperative Extension calls it a cheap, organic way to kill maggots in garbage cans.
- Tie up the bag and take it out.
- Pour boiling water slowly over the maggots.
- Let it sit a few minutes, then scoop the dead ones into a bag and tie it.
- Scrub the bin with hot soapy water and rinse it.
Boiling water is dangerous to carry. Keep kids and pets away, pour slowly, wear closed shoes.
What Kills Maggots Instantly?
Fastest-Acting Methods
The fastest ways to kill maggots instantly are boiling water, bleach solution, and rubbing alcohol. All kill on direct contact within seconds to minutes. Boiling water combined with vinegar is the most immediately available option for most households and requires no special products.

The #1 Maggot Prevention Tool
Stop maggots for good with BagEZ
BagEZ works with the bags you already buy. A powder-coated steel frame holds a regular bag open inside your outdoor bin, with a gap of air all the way around. The waste stays in the bag and never touches the bin walls.
See the BagEZ Green Bin Guide →How to Keep Maggots Out of Your Trash Can: Long-Term Prevention
Killing maggots solves today's problem. Preventing them requires addressing the root cause: exposed organic waste making contact with the bin interior.
- Seal every bag before it goes in the bin. Tie food waste bags tightly. Double-bag meat, fish, and dairy.
- Prevent waste from touching the bin walls. Even sealed bags can rupture when dropped from height. A suspended bag system like BagEZ holds a standard kitchen bag in an elevated frame inside the bin, protecting it from impact damage and compression. If a bag does leak, the BagEZ frame keeps it contained. The bin walls stay dry.
- Reduce moisture inside the bin. Sprinkle baking soda or cat litter at the bottom. Leave the lid propped open to dry on dry days. Cool food before bagging it.
- Use natural repellents at the bin. Peppermint or eucalyptus oil under the rim deters flies from landing.
- Keep the bin in shade. Sun accelerates decomposition and egg hatching.
- Reinstall the liner system after every cleaning. Without containment, a freshly cleaned bin reverts within days.
Extension advice is short. Texas A&M says tie bags securely, remove food residue and clean your cans weekly. Utah State Extension adds that lids stay closed. Wrap wet food waste before it goes in, and rinse the bin after every pickup. Full steps are in our guide to cleaning a trash can.

Use 13 gallon (49 litre) bags or larger. Works with all regular and drawstring bags you already buy.
- Confines waste. The bag holder keeps waste contained and off the bin walls.
- Avoids contact. No wet waste or garbage juice touches the bin, so it stays clean.
- Less odor and a cleaner bin.
Video: how the BagEZ system keeps maggots out of a green bin or food waste cart.
Maggots in Outdoor Trash Cans: Why It's Worse Outside
Outdoor bins are especially prone to maggot infestations: higher temperatures, longer intervals between collections, larger volumes that compress and rupture bags, and the bag-size mismatch problem (a 13-gallon (49 L) kitchen bag won't stretch over a 35+ gallon (132+ L) bin).
The BagEZ Large trash bag holder is made for big wheeled bins, from 50 gallons (189 L) up to 96 gallons (363 L). It takes standard bags from 20 gallons (76 L) up, holding the bag inside the large bin so you don't need oversized liners, and keeping wet organic waste contained and off the bin walls.
How to Get Rid of Maggots in a Green Bin / Compost Cart
Green bins are the most maggot-prone of all bin types because they contain exclusively organic food waste. Additional measures for green bins:
- Use certified compostable bags for kitchen food scraps. They contain odors better than loose food disposal.
- Freeze particularly odorous waste (meat scraps, fish bones) and add to the green bin on collection day rather than days before.
- Line the bottom with newspaper to absorb leakage. Replace after each collection.
- A BagEZ suspended bag system inside the green bin keeps food waste elevated and protected, reducing the direct contact that makes green bins so hospitable to maggots. For complete sizing and setup specific to compost carts, see our BagEZ green bin holder guide.
Video: compost bin liners compared with the BagEZ holder for keeping food waste carts clean.
Maggots in Trash Cans: Your Questions Answered
The Bottom Line
Maggots are caused by exposed organic waste that flies can access. The solution is two-part: eliminate any current infestation using boiling water, vinegar, bleach, rubbing alcohol, or baking soda. Then prevent future infestations by stopping organic waste from making direct contact with your bin interior.
A suspended bag system like BagEZ changes how waste is contained inside the bin, removing the residue buildup, liquid accumulation, and exposed organic matter that make garbage bins an attractive breeding environment throughout summer.
Related Guides
→ The BagEZ Green Bin Holder: Complete Guide
→ Large Trash Bag Holder for Big Outdoor Bins
→ How to Clean a Trash Can (and Never Have to Again)
→ Is Trash Can Cleaning Service Worth It?
→ How to Stop Trash Can Smell for Good
Shop BagEZ Hanging Trash Bag Holders
Ready to solve the problem? Choose the BagEZ size that fits your setup:
- BagEZ Small (13 by 10 in). Fits 13 to 33 gallon (49 to 125 L) bags. Ideal for kitchens, camping, RVs and small spaces.
- BagEZ Large (17 by 16 in). Fits 20 to 96+ gallon (76 to 363+ L) bags. Made for large bins, green bins and event venues.
- BagEZ Large 2-Pack. Two Large holders.
