How to Get Rid of Fruit Flies in Your Fridge

Fruit flies can and do survive inside your refrigerator. While cold temperatures slow them down significantly, a standard fridge set to 40°F won’t kill adult fruit flies outright. They can actually survive more than 45 days at around 39°F (4°C), just in a sluggish, low-activity state. So if you’ve spotted tiny flies buzzing around your produce drawer, they’re not going away on their own.

How Fruit Flies Get Into Your Fridge

The most common way fruit flies end up in your refrigerator is as invisible hitchhikers on produce. An adult female can lay up to 2,000 eggs on the surface of anything moist, and they actually prefer to lay eggs on unripened fruit so the food source lasts until the eggs hatch. When you bring home berries, bananas, or tomatoes from the store, the eggs may already be on the skin. Place that fruit in the fridge unwashed, and you’ve just introduced the next generation into cold storage.

The second entry point is the door gasket, the rubber seal running around the edge of your fridge door. Food residue and sticky spills on the gasket attract fruit flies by smell. They hide in small gaps or folds in the rubber and then fly inside when you open the door. A damaged or torn gasket makes this even easier, essentially leaving a doorway permanently cracked open.

Why Cold Slows Them but Doesn’t Kill Them

Fruit flies are chill-intolerant insects, meaning cold temperatures stress their bodies but don’t necessarily kill them at refrigerator range. They cannot survive two hours at 23°F (-5°C), but at the 35 to 40°F range of a typical fridge, they simply become sluggish and lethargic. Their metabolism drops, they stop flying much, and they stop reproducing effectively, but they stay alive for weeks.

The good news is that their eggs are far more vulnerable. Fruit fly eggs are less likely to hatch at temperatures below 75°F, and refrigerating produce for 24 hours helps kill eggs that may be on the surface. So your fridge does act as a brake on population growth, even if it doesn’t eliminate adults already inside.

Cleaning Out an Infested Fridge

If you’ve already got fruit flies living in your refrigerator, a surface wipe won’t solve it. You need to remove the food source and clean thoroughly. Start by taking everything out. Toss any produce that’s overripe, bruised, or showing signs of decay. Check the backs of shelves and the bottom of produce drawers where juice from fruit can pool unnoticed.

Wipe down every shelf, wall, and drawer with warm soapy water. Pay special attention to the door gasket: use a toothbrush or sponge dipped in rubbing alcohol to clean food residue out of the rubber folds. This removes both the grime that attracts flies and any eggs tucked into crevices. If the gasket is torn or no longer seals flush against the door frame, it needs to be replaced, or you’ll keep having the same problem.

Before putting food back in, inspect each item. Anything with soft spots or sticky residue should be washed or discarded. Let the fridge run empty for a few hours after cleaning so remaining flies have no food source and are easier to spot and remove.

Trapping Stragglers

For any fruit flies still lingering in your kitchen (since the fridge population almost certainly came from a larger infestation nearby), a simple vinegar trap works well. Pour about half an inch of apple cider vinegar into a small jar, add a drop or two of dish soap, then cover the top with plastic wrap secured by a rubber band. Poke several small holes in the plastic with a fork. Fruit flies crawl through the holes toward the vinegar, and the dish soap breaks the surface tension so they can’t escape. Place the trap near your fruit bowl, trash can, or wherever you see the most activity, and empty it when it fills up.

Preventing Them From Coming Back

The single most effective habit is washing produce as soon as you bring it home, before it goes into the fridge. A rinse under running water removes eggs and larvae from the surface of fruit and vegetables. This alone eliminates the main introduction route.

Keep your fridge at or below 40°F. At this temperature, any eggs that do sneak in are unlikely to hatch, and adult flies that wander in through an open door won’t thrive. Clean up spills inside the fridge promptly, especially fruit juice or anything sugary. Wipe down the door gasket every couple of weeks as part of routine kitchen cleaning.

Outside the fridge, reduce the attractions that draw fruit flies into your kitchen in the first place. Empty compost bins and trash cans regularly, and wash them with warm soapy water between bag changes. Don’t leave cut fruit or vegetable scraps sitting on the counter. Rinse out wine glasses and juice containers before they sit in the sink overnight. Fruit flies breed incredibly fast, so even a small food source left out for a day or two can spark a new cycle.