Grandma Knows: How to Keep Flies Out of the Kitchen
Flies in the kitchen? Learn timeless, practical methods to keep them out for good using simple ingredients you already have at home.
There are few things more frustrating than a clean kitchen that still seems to attract flies. You wipe the counters, you wash the dishes, you take out the trash — and still, there they are. Hovering over the fruit bowl, landing on the cutting board, circling the kitchen sink like they own the place. It's a problem as old as the kitchen itself, and it doesn't mean you're doing anything wrong. Flies are simply very good at finding their way in, and even better at making themselves at home once they do.
The good news is that this is a problem people have been solving for a very long time without the need for harsh chemical sprays or expensive gadgets. Generations of careful home keepers developed simple, reliable methods for keeping flies away using nothing more than what they had on hand. These approaches are just as effective today as they ever were — and in many cases, they work better than the commercial alternatives.
Why Flies Are Drawn to the Kitchen
Understanding why flies come inside in the first place makes it much easier to stop them. Flies are attracted to three things above everything else: food, moisture, and warmth. A kitchen offers all three in abundance. Even a spotlessly clean kitchen has small traces of food residue — on the stovetop, in the sink drain, on the underside of the trash can lid, or in a bowl of fruit sitting on the counter. To a fly, these are irresistible signals.
Common house flies and fruit flies behave a little differently, and it helps to know which one you're dealing with. Common house flies are larger, darker, and tend to land on all kinds of surfaces — they're drawn to garbage, pet food, and any exposed food. Fruit flies are tiny and tend to swarm around overripe fruit, fermented beverages, and damp organic matter like a slow drain or a damp sponge. Both can be deterred with the right approach, but the focus areas are slightly different.
Flies also tend to enter the home more readily in warm months when windows and doors are opened more often. Gaps around window screens, a door left open while cooking, or an open window without a screen are all common entry points. Knowing this helps you address both the attraction and the access.
Start With the Source
The most effective fly prevention doesn't come from a trap or a spray — it comes from removing what draws them in. This is the foundational step, and no other method works as well without it.
Fruit and Produce Storage
Ripe fruit sitting in a bowl on the counter is one of the biggest attractants in any kitchen. This doesn't mean you have to hide your fruit away or stop buying it — it just means being a little more attentive. Fruit that is fully ripe or starting to soften should go into the refrigerator. Bananas can stay out a little longer, but once they begin to spot heavily, they become a magnet for fruit flies. A covered fruit bowl or one with a mesh dome can help slow things down while keeping fruit accessible.
The Trash Can
A trash can with a loose or missing lid is an open invitation. Use a can with a tight-fitting lid, and rinse it out regularly — at least once a week — with hot water and a little dish soap or a splash of white vinegar. Food residue builds up on the inside walls and at the bottom, and even a small amount is enough to attract flies. Empty the trash daily during warm weather if possible.
The Kitchen Drain
The drain is one of the most overlooked sources of fly attraction, especially for fruit flies. Organic matter — food particles, grease, and soap scum — builds up inside the drain pipe and creates exactly the kind of damp, fermenting environment that fruit flies love. A simple weekly treatment goes a long way.
- Pour a generous amount of baking soda down the drain — about half a cup.
- Follow it with half a cup of white vinegar.
- Let the mixture fizz and work for ten to fifteen minutes.
- Flush with a kettle of boiling water.
This loosens buildup, neutralizes odors, and makes the drain far less hospitable to flies. Do this once a week during fly season and the difference will be noticeable.
Surfaces and Spills
Wipe down counters and the stovetop after every meal. Pay special attention to the areas around the stove burners and the sides of appliances where grease and food residue tend to gather. A damp cloth isn't always enough — use a little dish soap or a diluted vinegar solution to actually cut through sticky residue rather than just moving it around.
Traditional Fly Deterrents
Once the sources are managed, the next step is making the kitchen itself less welcoming. There are several time-tested deterrents that work by using scents that flies dislike. These are safe, pleasant-smelling (to people), and easy to put together.
Fresh Herbs
Certain herbs have a strong enough scent to repel flies naturally. Basil is one of the most effective and also happens to be a useful kitchen herb. A small pot of fresh basil placed near the window or on the counter acts as a natural barrier. Flies are also put off by the scent of lavender, mint, rosemary, and bay leaves. A bundle of dried lavender hung near a window or a few fresh sprigs of mint in a glass of water near the sink can make a real difference.
Bay leaves are particularly useful in cupboards and pantry areas. Tuck a few dry bay leaves into corners of shelves or near any stored dry goods. They won't harm anything and will help deter both flies and other pantry pests.
Cloves and Lemon
This is one of the oldest and most trusted fly deterrents in the home. Cut a lemon in half and press a generous number of whole cloves into the cut surface — fifteen to twenty cloves per half is a good amount. Place these near windows, on the table, or anywhere flies tend to gather. The combination of citrus and clove oil is deeply unappealing to flies, and it looks tidy and pleasant in a kitchen setting.
Replace the lemons every few days as they dry out or as the scent begins to fade. This method works well as part of a broader approach rather than as a standalone solution.
Essential Oil Sprays
A light spray made with water and a few drops of essential oil can be applied around window frames, door edges, and countertops as a deterrent. Peppermint, eucalyptus, lavender, and clove oils are all effective. Use about ten drops of oil per cup of water in a small spray bottle, shake well before each use, and apply lightly. Reapply every day or two, especially after wiping down surfaces.
This is a good option for people who want something they can apply actively rather than just set and forget.
Homemade Fly Traps
When flies are already inside, traps are the most direct way to reduce their numbers while you work on the prevention side. These homemade traps are inexpensive and genuinely effective, particularly for fruit flies.
The Apple Cider Vinegar Trap
This is perhaps the most well-known home remedy for fruit flies, and it works remarkably well. The fermented smell of apple cider vinegar mimics overripe fruit, which draws flies in.
- Take a small jar or glass and pour in about an inch of apple cider vinegar.
- Add a drop or two of dish soap — this breaks the surface tension so flies can't simply land and fly off again.
- Cover the top tightly with plastic wrap and secure it with a rubber band.
- Poke several small holes in the plastic with a toothpick or skewer.
- Place near the fruit bowl, sink, or trash can.
Flies are drawn in through the holes and cannot easily find their way back out. Empty and refresh the trap every few days. During a bad infestation, you may catch dozens in a single day.
The Red Wine Trap
If you have a bottle of red wine that's nearly empty and starting to turn, don't pour it down the drain just yet. Leave the bottle with just a small amount of wine at the bottom and place it near the area where flies are most active. The narrow neck makes it easy for flies to enter and very difficult for them to exit. This works in the same way as the vinegar trap and requires no setup at all.
A Simple Paper Funnel Trap
For common house flies, a slightly different approach works well. Take a jar and place a small piece of very ripe fruit or a little fruit juice mixed with a drop of dish soap in the bottom. Roll a piece of paper into a funnel shape — wide at the top, narrow at the bottom — and place it into the mouth of the jar without letting the narrow end touch the liquid. Tape it in place if needed. Flies enter through the funnel and struggle to find their way back out.
Blocking Entry Points
Traps and deterrents are most effective when you also reduce how many flies are getting in. A few simple steps can make a significant difference.
- Check window screens for tears or gaps and repair them with screen repair tape or replace the screen if needed.
- Keep doors closed as much as possible during peak fly hours, which tend to be mid-morning and late afternoon on warm days.
- A door with a magnetic self-closing screen insert allows ventilation without giving flies an open path inside.
- Fit a draft excluder or door sweep to the bottom of exterior doors to close off the gap at floor level.
When These Methods Work — and When They Don't
These traditional approaches work very well when the fly problem is moderate and when the source of attraction is addressed at the same time. If you set up vinegar traps but leave overripe fruit on the counter and an uncovered trash can in the corner, the traps will fill up quickly but the problem won't go away. Every method described here works best as part of a consistent routine rather than a one-time fix.
Herbal deterrents tend to lose effectiveness as the plants dry out or the scent fades, so they need to be refreshed regularly. Essential oil sprays need reapplication, especially after cleaning surfaces. Traps need to be emptied and reset.
In cases of a very heavy infestation — particularly if flies seem to be appearing in large numbers despite everything being clean and covered — it may be worth checking for a less obvious source. A forgotten potato or onion that has begun to rot in a dark cabinet, a cracked drain seal beneath the sink, or a small leak creating damp conditions behind appliances can all harbor fly activity without being immediately visible. If the problem persists despite consistent effort, a slow and careful search of the kitchen — including behind and beneath appliances — is worth the time.
Flies can also breed quickly, so what begins as a small problem can grow within days if not addressed. Acting promptly and consistently, even when the problem seems minor, is always the most effective approach.
Building Good Habits
The most durable solution to flies in the kitchen isn't any single remedy — it's the accumulation of small, steady habits that remove what attracts them and close off the ways they get in. Wiping surfaces after cooking, managing fruit and produce carefully, keeping drains clean, and refreshing natural deterrents regularly creates an environment that simply isn't hospitable to flies.
These are not complicated or time-consuming habits. Most of them take only a few minutes and fit naturally into an existing cleaning routine. Once they become second nature, the kitchen stays noticeably cleaner and calmer — not just during fly season, but all year round.
Related articles
Grandma Knows: How to Remove Tomato Sauce from Clothing
Learn how to remove tomato sauce stains from clothing using simple household methods that actually work on most fabrics.
Grandma Knows: How to Freshen Upholstery
Learn how to freshen upholstery the old-fashioned way with simple, effective methods using baking soda, vinegar, and gentle soap. Your furniture will thank you.
Grandma Knows: How to Clean Stainless Steel Oven
Learn how to clean a stainless steel oven the right way using simple, trusted methods. Get rid of grease, grime, and streaks with everyday pantry ingredients.