Skip to main content

How to Get Rid of Fruit Flies in Your Refrigerator

Fruit flies in the fridge mean something is fermenting or rotting—and the cold slows them down but doesn't stop them

Fruit flies survive in refrigerators because they hide in the warmest spots: around the door seal, under the crisper drawers, and in the drain pan at the bottom. The cold slows their reproduction but doesn't kill them. To get rid of them, you need to find what's fermenting (usually forgotten fruit, spilled juice, or a leaking vegetable), clean the spaces where they hide, and set a trap to catch the adults while you work.

The reason they're there in the first place is almost always food decay. Fruit flies lay eggs on fermenting fruit or vegetables—even a single overripe banana or a few grapes at the back of a shelf can sustain a population. Once you remove the food source and clean the breeding ground, the remaining flies will die within days because they have nowhere to lay new eggs.

Key Takeaways

  • Fruit flies breed in fermenting food, so your first step is to find and remove any rotting fruit, vegetables, or spilled juice inside the refrigerator.
  • Clean the crisper drawers, under the shelves, and the drain pan at the bottom with hot soapy water or a 1:1 vinegar-and-water solution to remove eggs and larvae.
  • Set a trap using a small bowl of apple cider vinegar with a drop of dish soap to catch adult flies while you eliminate their breeding sites.
  • Wipe down door seals and check for moisture or debris where flies hide between the rubber gasket and the frame.
  • Once the food source is gone and surfaces are clean, remaining flies will die within three to five days with no new eggs being laid.

Find and remove the fermenting food source

Open your refrigerator and look for the obvious culprits: soft or browning fruit, vegetables with liquid pooling around them, spilled juice or jam, or anything that smells sour or yeasty. Check the back corners of shelves, under the crisper drawers, and inside produce bags where moisture collects. Fruit flies are attracted to ethanol produced by fermenting fruit, so even a single overripe banana or a handful of grapes can sustain a population.

Remove anything questionable and throw it away in a sealed bag or outside trash—not the kitchen compost bin, which will just restart the cycle. If you find spilled juice or a leaking container, that's your breeding ground. Wipe up the spill completely. Check the drain pan at the very bottom of the refrigerator (usually accessible from the front or back) for standing water or decomposing food particles. This is a common hiding spot.

Clean the spaces where flies hide and breed

Fruit fly eggs and larvae live in the film of moisture and organic matter on surfaces. Pull out the crisper drawers and wash them with hot soapy water, paying attention to the corners and the rubber gasket. Wipe down the shelf where the drawer sits. Use a bottle brush or old toothbrush to clean the drain hole at the bottom of the fridge if it's accessible—this is where liquid pools and larvae develop.

For a stronger clean, mix equal parts white vinegar and water in a spray bottle and spray all interior surfaces, especially around the door seal, under shelves, and anywhere you see moisture. Let it sit for a minute, then wipe with a clean cloth. The acidity kills eggs and larvae. Don't forget the rubber gasket around the door—flies hide in the crevices. Wipe it thoroughly with a damp cloth, then dry it completely.

If your refrigerator has a drain pan underneath (most do), pull it out, empty it, and wash it with hot soapy water. This is where standing water collects and becomes a breeding ground. Dry it completely before sliding it back in.

Set a trap to catch adult flies

While you're cleaning, adult flies are still flying around. A simple trap will catch them. Pour about half an inch of apple cider vinegar into a small bowl or cup and add one drop of dish soap. The vinegar attracts the flies, and the soap breaks the surface tension so they sink and drown instead of landing on the surface and flying away.

Place the bowl on a shelf in the refrigerator, away from food. Check it daily and replace the vinegar every two to three days or when it's full of dead flies. You should see a noticeable drop in flies within 24 hours. Keep the trap running for at least a week after you stop seeing new flies—this catches any stragglers that emerge from hidden pupae.

If you prefer not to use vinegar inside the fridge, place the trap just outside the refrigerator door on the counter. Flies will be attracted to it as they try to escape, and you'll catch most of them before they spread to other areas of the kitchen.

Check the door seal and moisture problem areas

The rubber gasket around the refrigerator door is a warm microclimate where flies congregate. Wipe it down with a damp cloth, then dry it completely. Look for any cracks or gaps where the seal is damaged—if the seal is broken, cold air leaks out and creates a warm zone where flies thrive. If the gasket is visibly torn or no longer seals properly, it may need to be replaced, but cleaning it thoroughly will help in the meantime.

Check for condensation or moisture anywhere inside the fridge. Fruit flies need moisture to breed. If you notice water pooling on shelves or in the bottom of drawers, that's a sign of a humidity problem or a leak. Wipe it up and investigate the source. Sometimes a container is leaking, or the fridge's humidity setting is too high. Adjust the crisper drawer humidity controls if your model has them—lower humidity discourages fruit flies.

Prevent fruit flies from returning

Once the infestation is gone, keep it that way by storing fruit in sealed containers or bags rather than loose on shelves. Bananas, avocados, and stone fruits ripen quickly and ferment easily—move them to the counter if they're not ripe yet, and refrigerate them only when they're at the stage you want to eat them. Check the back of the fridge weekly for forgotten produce.

Wipe up spills immediately, and don't let juice or jam containers sit with sticky residue on the outside. Empty the drain pan monthly and rinse it with hot water. If you notice fruit flies in other parts of your kitchen, clean your trash can and compost bin thoroughly—they may be breeding there and flying into the fridge when you open the door.

Why fruit flies survive the cold

Fruit flies don't die in cold temperatures; they slow down dramatically. Their metabolism drops, and they become less active, but they can survive for weeks in a refrigerator. This is why simply turning down the temperature won't solve the problem—you have to remove the food they're breeding on and clean the surfaces where eggs and larvae hide.

The warmest parts of your refrigerator are the door (where warm air enters every time you open it) and the area around the compressor. Fruit flies migrate to these spots to breed. This is why cleaning the door seal and checking around the crisper drawers is so important—these are the nurseries.

Frequently Asked Questions

How long does it take to get rid of fruit flies in the refrigerator?

If you remove the food source and clean thoroughly, you should see a dramatic drop in flies within 24 to 48 hours. Most remaining flies will be gone within three to five days. Keep the vinegar trap running for a week to catch any stragglers that emerge from pupae you may have missed during cleaning.

Can I use bleach to clean the refrigerator to kill fruit flies?

Bleach is too harsh for food storage surfaces and can leave toxic residue. Use hot soapy water or a 1:1 vinegar-and-water solution instead. Both kill eggs and larvae effectively without contaminating your food or damaging the fridge interior.

What if the fruit flies keep coming back?

They're breeding on something you haven't found yet. Check the drain pan again, look under the crisper drawers for hidden fruit, and inspect the door seal for moisture. Also check your kitchen trash and compost bin—if flies are breeding there, they'll keep flying into the fridge when you open the door. Clean both thoroughly.

Do I need to throw out all my food?

No. Fruit flies don't contaminate food the way bacteria do. Throw out only the rotting fruit or vegetables they're breeding on. Everything else is safe to eat. Just make sure to clean the surfaces where they were hiding before storing new food.

Is it safe to use the vinegar trap with food in the refrigerator?

Yes. The trap is a separate bowl that doesn't touch your food. Place it on an empty shelf or in a corner away from produce. The vinegar smell is strong enough to attract flies from across the fridge, so it doesn't need to be near the food source.