Can Fruit Flies Survive in Your Refrigerator
Fruit flies cannot survive long in a working refrigerator
Fruit flies die in cold temperatures. A refrigerator set to 35–40°F (1.5–4°C) will kill fruit flies within a few hours because their bodies cannot function below about 50°F (10°C). However, the real problem is not whether they survive inside — it is how they got there in the first place, and what happens when you leave the door open.
Fruit flies are attracted to ripening fruit and fermenting liquids before you put them in the fridge. If you bring infested produce into your kitchen, some flies may slip inside during the seconds the door is open. Once inside the cold, they become sluggish and die. But if your refrigerator is warmer than it should be, or if flies are trapped in the sealed compartment long enough, a few may survive and lay eggs on fruit or in drain areas.
The real risk is not the cold — it is the time between when you notice fruit flies in your kitchen and when you store the food that attracted them. That window is where infestations start.
Key Takeaways
- Fruit flies cannot survive temperatures below 50°F, so a properly working refrigerator at 35–40°F will kill them within hours.
- Flies enter the refrigerator on infested produce or during the seconds the door is open, not by surviving the cold itself.
- Inspect fruit and vegetables before storing them, and rinse them under running water to remove any eggs or flies clinging to the skin.
- Store ripening fruit on a counter only if you plan to eat it within one or two days; move it to the fridge or a sealed container if you will not.
- Clean the refrigerator drain and check under crisper drawers weekly, because standing liquid and decomposing food create breeding grounds even in cold air.
Why cold stops fruit flies but does not stop infestations
Fruit flies are cold-sensitive insects. Below 50°F, their metabolism slows dramatically, and they cannot move, feed, or reproduce. At refrigerator temperature, they lose consciousness within minutes and die within a few hours. This is why storing fruit in the fridge is one of the most effective ways to stop an active infestation from spreading — the flies cannot lay eggs on cold fruit.
But cold does not prevent flies from entering the refrigerator in the first place. A fruit fly can ride into your fridge on a banana, a tomato, or a head of lettuce. It can slip through the door gap while you are loading groceries. Once inside, it will die from the cold. The problem is that you may not notice it happened, and by the time you do, other flies have already laid eggs on produce still sitting on your counter.
If your refrigerator is running warmer than 40°F — which can happen if the door seal is loose, the coils are dirty, or the thermostat is set too high — a few flies may survive long enough to breed. This is rare, but it is why checking your refrigerator temperature and keeping the door seal clean matters.
How to inspect produce before it enters the refrigerator
The best defense is to stop flies from entering your home on produce in the first place. When you bring groceries home, inspect fruit and vegetables before you store them. Look for small brown or tan insects on the skin, especially around the stem end of bananas, apples, and stone fruits. Fruit flies are about the size of a sesame seed and move quickly, so look carefully.
Rinse all produce under cool running water, rubbing gently with your fingers or a soft brush. This removes eggs, flies, and debris. Pay special attention to berries, grapes, and other fruit with crevices where flies hide. Do not use soap or produce wash — plain water is enough and safer for food you will eat raw.
If you see flies on produce, do not bring it inside. Leave it in a sealed bag in the garage or outside until you can dispose of it, or rinse it thoroughly and store it immediately in a sealed container or the coldest part of your fridge. The goal is to break the cycle: no flies on food means no eggs laid, no eggs means no new generation of flies.
When to refrigerate ripening fruit and when to leave it out
Ripening fruit on the counter is a common source of fruit fly infestations because flies are drawn to the smell of fermenting sugars. If you have an active fruit fly problem in your kitchen, move all fruit to the refrigerator immediately — even if it is not fully ripe. Cold will stop any flies or eggs already on the fruit, and the lack of ripening smell will stop attracting new flies from elsewhere in your home.
If you do not have an infestation yet, you can leave fruit on the counter for one or two days while it ripens, but only if you keep it in a sealed container or a mesh produce bag that lets air through but keeps insects out. Bananas, avocados, and stone fruits ripen faster at room temperature, so this is a practical compromise. Once ripe, move the fruit to the refrigerator or eat it.
Overripe or fermenting fruit is a magnet for flies. Check your counter and fruit bowl daily. If you see soft spots, mold, or liquid leaking from fruit, throw it away immediately in a sealed bag or compost bin, not an open trash can. A single overripe banana can attract dozens of flies within hours.
Cleaning the refrigerator to remove hidden breeding grounds
Even though fruit flies cannot survive the cold, they can breed in places inside the refrigerator where conditions are warmer or wetter. The most common spot is the drain pan — the shallow tray under the fridge that collects condensation and spilled liquid. If this pan is not cleaned regularly, it becomes a warm, wet breeding ground for flies and other pests.
Pull out the drain pan at least once a month and empty it. Rinse it with hot water and a little dish soap, then dry it completely before sliding it back. While you are at it, check under the crisper drawers for pooled water, rotting vegetables, or sticky residue. These areas stay slightly warmer than the rest of the fridge and can harbor flies if they are not cleaned.
Wipe down the walls and shelves of your refrigerator every two weeks with a damp cloth and a little baking soda or white vinegar. Pay attention to corners and seams where fruit juice or condensation collects. A clean refrigerator is less attractive to flies and makes it easier to spot new problems before they spread.
Signs that fruit flies are breeding inside your refrigerator
It is rare, but fruit flies can breed inside a refrigerator if the temperature is too warm or if there is standing liquid and decomposing food. Signs include seeing live flies inside the fridge, finding small white larvae (they look like tiny grains of rice) in the drain pan or under crisper drawers, or noticing a sour smell coming from the back of the fridge.
If you spot any of these signs, check your refrigerator temperature with a thermometer. It should read 35–40°F. If it is warmer, adjust the thermostat dial or check the digital display. Clean the drain pan, remove any spoiled food, and wipe down all surfaces with a cloth dampened in white vinegar. Vinegar kills fly eggs and larvae and removes the smell that attracts adult flies.
If the temperature is correct but you still see flies, the infestation is likely coming from your kitchen counter or trash can, not from inside the fridge. Focus on cleaning those areas and storing all fruit in sealed containers or the refrigerator until the problem clears.
Storing fruit to prevent flies from laying eggs
Once fruit is in the refrigerator, keep it in sealed containers or produce bags whenever possible. This adds a second barrier: even if a fly somehow survives the cold and finds its way to the fruit, it cannot lay eggs on food inside a sealed container. Glass containers with tight lids work best, but even a plastic bag twisted closed at the top will help.
Store berries, grapes, and other delicate fruit in their original packaging or in a shallow container lined with paper towels. The paper absorbs excess moisture, which slows mold growth and makes the environment less attractive to any flies that might be present. Replace the paper towels every few days or when they become damp.
Keep bananas, avocados, and other fruit that continues to ripen in the fridge separate from vegetables. Ripening fruit releases ethylene gas, which speeds up the decay of nearby vegetables and creates more smell that could attract flies if they somehow entered the fridge. Storing them apart keeps both types of produce fresher longer.
Frequently Asked Questions
Can fruit flies survive in the freezer?
No. Freezer temperatures (0°F or below) kill fruit flies even faster than refrigerator temperatures. Any fly that enters the freezer will die within minutes. However, the same rule applies: flies enter on food, not by surviving the cold. Inspect produce before freezing it, and keep the freezer door closed as much as possible.
Do fruit flies lay eggs inside the refrigerator?
Rarely. Fruit flies need temperatures above 50°F to lay eggs successfully. A refrigerator at 35–40°F is too cold for them to reproduce. However, if your fridge is running warmer than 40°F due to a broken seal or thermostat problem, a few flies could survive long enough to lay eggs. Check your temperature and clean the drain pan regularly to prevent this.
Why do I still see fruit flies if I put all my fruit in the fridge?
Flies in your kitchen are likely coming from your trash can, compost bin, or a piece of fruit you missed on the counter. They are not coming from inside the fridge. Check for overripe fruit, spilled juice, or fermenting food in open containers. Clean your trash can with hot water and baking soda, and store all fruit in sealed containers or the refrigerator until the flies are gone.
Should I throw away fruit that had flies on it?
Not necessarily. If the fruit is otherwise fresh and you rinse it thoroughly under running water, it is safe to eat. Fruit fly eggs are harmless if swallowed, and the cold of the refrigerator will kill any eggs or flies on the fruit. If the fruit is already soft, moldy, or fermenting, throw it away — not because of the flies, but because it is spoiled.
How long does it take for fruit flies to die in the refrigerator?
Most fruit flies lose consciousness within a few minutes at refrigerator temperature and die within two to four hours. Some may take longer if they are sheltered in a warm spot like the drain pan or under a crisper drawer. This is why cleaning these areas regularly is important — it removes the warm pockets where flies might survive longer.