TL;DR
Fruit flies do not arrive from outside in most cases -- they breed in the film inside a drain, a bin, a disposal, or a recycling container, which is why they reappear a day after every countertop wipe. Ants come in on a scent trail to a specific food source. Both are removed by taking away food and moisture, and neither is solved by spraying the ones you can see.
Why this is a warm-season problem
Insect development is temperature-driven. A fruit fly that takes weeks to complete a life cycle in cool conditions can go from egg to adult in about a week in a warm kitchen, and ant colonies forage hardest when they are actively growing.
Warm months also change the kitchen itself. There is more fresh produce sitting on counters. Windows and doors open constantly. Drinks get abandoned half-finished. Recycling holds more sticky containers. Outdoor eating means food travels through the house.
That combination is why the same kitchen that had no insects in February has a cloud of fruit flies in August with no change in how carefully it is cleaned.
The important consequence is that the fix has to be seasonal too. The habits that matter in July are not the ones that matter the rest of the year.
How do you get rid of fruit flies in a kitchen?
Find and eliminate the breeding site rather than killing the adults. Fruit flies breed in the moist organic film inside drains, disposals, bins, recycling containers, and mop buckets. Clean those, remove overripe produce, and set a vinegar trap for the remaining adults. Flies return within a day if the breeding site is intact.
The breeding sites people miss
This is the whole game, and countertops are almost never the answer.
The drain and the disposal. A film of organic material coats the inside of the drain and the underside of the splash guard, and that is prime breeding habitat. Scrub the splash guard on both sides -- the underside is where the material actually is. Related odor causes are covered in why does my garbage disposal smell.
The recycling bin. Rinsed-looking bottles and cans hold enough residue, and a bin that is never washed holds a sticky layer at the bottom.
The trash bin itself. Not the bag -- the container. Liquid escapes bags, pools under them, and stays there. Wash bins on a schedule, as covered in how to keep trash and recycling bins pest free.
Under and behind appliances. The gap between the counter and the dishwasher, the space under the refrigerator, and the seam behind the stove hold spills for months.
Mop buckets, dish sponges, and cleaning cloths. Damp organic material is exactly what the flies need.
Compost containers. A countertop compost pail without a tight seal is a breeding chamber, not a container.
Produce handling that stops it before it starts
Fruit flies find fermenting sugar with astonishing sensitivity, so the produce bowl is the entry point.
Refrigerate anything ripe rather than displaying it. A bowl of ripening fruit on a warm counter is the single most effective fruit fly attractant in a house.
Remove one bad piece immediately. A single overripe peach or a split tomato supports a population.
Wash produce when it comes in, since eggs are often already on the skin when fruit is bought.
Cover or refrigerate open wine, beer, juice, vinegar, and soft drinks. Fermenting liquid is more attractive than fruit.
Empty and wash the produce bowl itself. Residue collects in the bottom and nobody looks.
The ant version of the same problem
Ants are a trail problem rather than a breeding problem, and the difference matters.
Scout ants find a food source, then lay a scent trail that recruits the rest. When a line of ants appears, it means one of them found something specific.
Wipe the trail with soapy water rather than only killing the ants. Removing the scent trail interrupts the recruitment, and the trail is what is bringing them back to the same spot.
Find the food. It is usually sugar: a sticky spot on the floor, a drip down the side of a honey jar, pet food left in a bowl, a spill under a toaster, or crumbs in a drawer.
Seal the entry if you can see it. Ants come in at gaps around pipes, window frames, and door thresholds.
Store sweet items in airtight containers rather than original packaging.
The daily and weekly habits that hold
Daily: wipe counters with soapy water, run water in the sink to clear the drain, take out anything with food waste in it, put produce away, wash dishes or run the dishwasher rather than leaving dishes overnight, and wipe up the floor under the high-traffic eating spot.
Weekly: wash the trash and recycling bins, scrub the disposal splash guard, clean the drain, wash cloths and sponges or replace them, wipe the gap beside the dishwasher, and check under the fruit bowl.
Seasonally: pull the stove and refrigerator forward and clean behind them, check the pantry for split packaging, and check window and door screens for gaps.
The general principle behind all of it is described in why crumbs and cooking grease attract pests.
Traps, and their limits
A shallow dish of apple cider vinegar with a drop of dish soap works well on adult fruit flies. The soap breaks the surface tension so they sink rather than landing and leaving.
A trap tells you something useful: if the trap keeps filling day after day, the breeding site is still active and has not been found.
Traps do not solve the problem on their own. They reduce the visible adults while you eliminate the source.
Do not mix cleaning products while chasing this. Bleach must never be combined with an ammonia-based cleaner, with vinegar or any acid, or with rubbing alcohol.
When it is not a cleaning problem
There is a real limit here, and it is worth stating plainly.
A clean kitchen can still have pests, because the food source may be inside a wall, under a floor, or in a neighboring unit, as covered in why a spotless house can still have pests.
Carpenter ants in structural wood, a persistent ant colony inside a wall, drain flies from a broken sewer line, or any infestation that survives two weeks of correct habits is a licensed pest control matter. Cleaning removes the invitation; it does not remove an established colony, which is the distinction explained in mold and pests are not a cleaning service fix.
FAQ
Where do fruit flies come from if there is no fruit out?
Usually from a breeding site rather than the air. The moist organic film inside a drain, a garbage disposal, a recycling bin, a trash container, a mop bucket, or a damp sponge supports a full life cycle. Eggs also arrive on the skin of produce brought home from a store.
What kills fruit flies fastest?
Removing the breeding site. A dish of apple cider vinegar with a drop of dish soap catches the adults currently flying, but if the drain or bin is still active a new generation emerges within days. The trap is a progress indicator, not the solution.
Why do ants keep coming back to the same spot?
Because the scent trail is still there. A scout ant that finds food lays a chemical trail that recruits others to the exact same location. Wiping the path with soapy water removes the trail, and finding and removing the food source stops it from being laid again.
Does cleaning get rid of ants?
It removes what attracts them, which resolves most kitchen ant problems. It does not remove a colony living inside a wall, under a slab, or in structural wood. If ants persist after two weeks of thorough food and moisture control, the situation needs a licensed pest control professional.
How often should you clean the garbage disposal in summer?
Weekly during warm months. Scrub both sides of the rubber splash guard, since the underside holds the organic film that both odor and fruit flies come from. Running ice through the unit helps with the chamber but does not clean the splash guard.
Do fruit flies breed in drains?
Yes, in the biological film that coats the inside of a drain and the disposal. That is why they seem to reappear from nowhere after the counters have been wiped. Cleaning the drain surface mechanically is what removes the habitat, rather than pouring something down it.
Warm months put a kitchen under pressure that no amount of wiping counters fully answers. If you want the deeper kitchen work handled, get a quote or read more about house cleaning services.

