Getting rid of kitchen insects starts with identifying what you’re dealing with, removing the food and moisture sources that attracted them, and then targeting the specific pest with the right method. A spray-everything approach rarely works and can actually make some infestations worse. Here’s how to handle the most common kitchen invaders effectively.
Identify What’s in Your Kitchen
The fix depends entirely on the pest. Cockroaches are half an inch or larger, brown to black, flat-bodied, and most active at night. Ants typically trail in lines along walls, countertops, or window frames. Indian meal moths are about 5/8 inch long with reddish-copper wings, and you’ll often notice their small white larvae crawling up walls or inside cereal boxes. Fruit flies hover around ripe produce and sink drains. Drain flies are fuzzy, moth-like insects that cling to walls near sinks and appear seemingly out of nowhere.
If you’re not sure what you’re seeing, check at night with a flashlight. Cockroaches scatter when lights come on. Drain flies can be confirmed by taping a piece of clear adhesive tape over a suspect drain overnight. If adults get stuck to the tape by morning, you’ve found the breeding site.
Cut Off Food and Water Sources
Every kitchen insect is there for the same basic reasons: food, water, and shelter. Eliminating access to these is the single most important step, and no amount of pesticide will compensate for skipping it.
Store all dry goods (flour, rice, cereal, pet food, birdseed) in hard-sided containers with tight lids. Cardboard boxes and thin plastic bags won’t stop pantry moths or their larvae. Wipe down counters and stovetops nightly, paying attention to grease splatter behind the stove and crumbs under the toaster. Take garbage out daily, and use a bin with a tight-fitting lid. Fix dripping faucets and leaky pipes under the sink, since standing moisture attracts cockroaches, ants, and drain flies alike.
Don’t overlook pet food bowls. Leaving kibble out overnight is an open invitation. Pick up bowls after feeding or switch to scheduled meals.
Getting Rid of Cockroaches
Gel bait is the most effective tool for cockroach control in kitchens, and it outperforms sprays for an important reason: it’s non-repellent. Cockroaches eat the bait and aren’t deterred from returning to it, which means the poison spreads through the colony as roaches feed on each other’s waste and remains. Sprays, on the other hand, can repel cockroaches away from treated zones without killing them, and if you spray near bait stations, you’ll contaminate the bait and roaches will avoid it entirely.
Apply gel bait in small pea-sized dabs rather than large globs. Many small placements throughout the kitchen provide far better control than a few large ones. Place dabs close to walls, since cockroaches travel along edges and rarely cross open floor space. Behind the refrigerator, under the sink, along the back edge of countertops, inside cabinet hinges, and around pipe entry points are all prime locations. Bait placed even 20 inches away from a nesting area can be half as effective as bait placed right next to it, so get as close to where you see activity as possible.
Boric acid powder is a useful supplement. Lightly dust it into cracks and voids where cockroaches hide (behind outlet covers, inside wall gaps under the sink). It damages their exoskeletons and digestive systems on contact. Keep applications thin. Cockroaches will walk around visible piles of powder.
Eliminating Ants
Killing the ants you can see does almost nothing. The visible trail is a tiny fraction of the colony, and squashing foragers just prompts the nest to send more. The goal is to get poison back to the queen.
Set out liquid or gel ant bait stations along the trails you’ve observed. Resist the urge to spray the trail or wipe it down immediately. You want the foragers to carry bait back to the colony. Once you see activity at the bait slow down over several days, that’s the colony dying off. At that point, clean the trail with soapy water to remove the scent pheromones that guided other ants to your kitchen.
Trace the trail back to where ants enter the room. You’ll usually find a crack along a baseboard, a gap around a pipe, or a window frame edge. Seal it with silicone or acrylic latex caulk once the infestation is resolved.
Clearing Out Pantry Moths
Indian meal moths lay eggs directly in dry food products. If you spot small moths fluttering around the kitchen or find webbing inside a bag of flour, the infestation is already established in your stored food.
Pull everything out of your pantry and inspect it. Toss any package that shows webbing, larvae (small whitish worms with brown heads, about half an inch long), or clumping that isn’t from moisture. Don’t just check open packages. Moths can chew through thin plastic and lay eggs in sealed bags. Vacuum the pantry shelves thoroughly, paying attention to corners and shelf bracket holes where larvae pupate. Wipe shelves with warm soapy water.
Replace food in airtight glass or heavy plastic containers. Pheromone traps designed for pantry moths can catch remaining adult males and help you monitor whether the problem is truly gone. These traps won’t eliminate an infestation on their own, but if you’re still catching moths two to three weeks after a thorough cleanout, you’ve missed a food source somewhere.
Dealing With Fruit Flies and Drain Flies
Fruit flies breed on ripening produce, fermenting liquids, and the thin film of organic residue inside drains. Remove or refrigerate ripe fruit, clean up any spilled juice or alcohol, and rinse recycling bins that held bottles or cans. A simple trap (a jar with apple cider vinegar and a drop of dish soap to break the surface tension) will catch adults quickly, but trapping alone won’t solve the problem if the breeding source remains.
Drain flies are trickier because they breed inside the slimy organic buildup coating the inside of pipes. Sticky traps and UV-light traps can catch adults but will not eliminate an infestation. You need to remove the sludge where larvae develop. Pour an enzyme-based drain cleaner into affected drains. These products use concentrated microorganisms to digest the organic film, and gel formulas cling to pipe walls for extended contact. For heavy buildup, a stiff drain brush followed by the enzymatic treatment works well. High-pressure drain cleaning services can clear buildup through the entire pipe length if DIY methods aren’t enough.
Check all potential breeding sites: the kitchen sink drain, the dishwasher drain connection, floor drains, and even the overflow hole in the sink basin. Drain flies only need a thin layer of moist organic material to reproduce.
Using Diatomaceous Earth Safely
Diatomaceous earth (DE) is a powder made from fossilized algae that damages insect exoskeletons, causing them to dehydrate and die. It works on crawling insects like cockroaches, ants, and silverfish. The food-grade version is recognized as safe by the FDA when added to food in small amounts, but using it for pest control means spreading concentrated dust around your home, which is a different exposure scenario.
The main risk is inhalation. Breathing in DE can irritate your nose, throat, and lungs. Most pest-control DE is amorphous (the less dangerous form), but even amorphous DE causes mild, reversible lung inflammation with repeated exposure. Small amounts of crystalline DE, which is associated with more serious respiratory problems, can be present in some products. When applying it, wear a dust mask and eye protection. Keep children and pets out of the area during application. Avoid putting it near fans, air vents, or high-traffic spots where foot traffic kicks it into the air.
Apply DE as a very light dusting in cracks, behind appliances, and inside cabinet voids. If you can see a visible layer of powder, you’ve used too much. Insects will walk around heavy deposits.
Seal Entry Points
Once you’ve dealt with the current infestation, sealing entry points prevents the next one. Insects need surprisingly small gaps to get inside.
- Under doors: Install door sweeps on exterior doors and caulk along the bottom outside edge of thresholds.
- Around pipes and wires: Seal gaps where plumbing, gas lines, and electrical wiring enter the kitchen wall. Use silicone caulk for small gaps, copper mesh stuffed into larger holes (insects can’t chew through it), or expanding foam for big voids.
- Windows and frames: Repair torn screens and caulk cracks around window frames. Acrylic latex caulk is paintable and cleans up with water, making it easy to work with.
- Cabinet penetrations: Check where pipes pass through the back wall of under-sink cabinets. These are often left with large, unsealed gaps during construction.
A good quality silicone or acrylic latex caulk handles most kitchen sealing jobs. Clear-drying caulk is more forgiving than pigmented versions since mistakes are less visible. Focus on any crack wider than 1/16 of an inch along baseboards, countertop backsplashes, and where the wall meets the floor behind appliances.
When DIY Methods Aren’t Working
If you’ve cleaned thoroughly, sealed entry points, and used appropriate baits for two to three weeks without a noticeable drop in activity, the infestation is likely larger or more entrenched than surface-level treatments can reach. Cockroaches nesting inside walls, ant colonies with satellite nests in the structure, or drain fly breeding sites deep in plumbing all may require professional treatment. A pest control technician can apply products in wall voids and identify harborage points that aren’t accessible to homeowners.