Your guide to household and yard pests Urgent? When to call a pro
What bug is this?

Bugs in the Kitchen: What They Are and What They're Eating

Tiny flies, beetles in flour, moths, ants, roaches or mouse droppings in the kitchen? Identify the pest by where you see it and what it eats, then fix it.

updated October 12, 2026
Small reddish-brown snouted weevils on grain inside a glass jar

The bugs in your kitchen are almost always telling you what they eat: tiny flies mean something fermenting, beetles and small moths mean infested dry food, ant trails mean an easy sugar or grease source, and roaches and mice mean crumbs, water and a place to hide. Identify the pest by where you see it and what it's on, find that food source, and most kitchen infestations end without spraying anything near your food.

Start with the table, then jump to the section for your bug.

Quick ID: where you see it and what it probably is

What you seeWhereWhat it's eatingLikely pest
Tiny tan flies, red eyes, slow and hoveringFruit bowl, trash, recycling, sinkFermenting fruit, juice, beer, vinegarFruit flies
Tiny dark flies, humped back, run instead of fly; ignore vinegar trapsSink, drains, bathroom tooOrganic sludge, broken sewer linesPhorid flies
Fuzzy moth-like flies, wings held like a roofOn walls near the sink drainSlime inside drainsDrain flies
Small moths with coppery wing tips, flutter at nightCabinet doors, ceiling, wallsFlour, cereal, nuts, dried fruit, pet food, birdseedIndian meal moths (pantry moths)
Webbing in food, clumped flourInside packagesSame as abovePantry moth larvae
Small brown beetles, 1/10 to 1/8 inchIn or near flour, rice, pasta, spices, pet foodGrain products, spicesFlour beetles, sawtoothed grain beetles, cigarette beetles
Snouted beetlesWhole grains, rice, beansThe kernels from insideWeevils
Tiny pale specks that crawl, don't flyDamp shelves, flour, cereal, wallpaperMold on damp food or surfacesPsocids (booklice)
Trail of antsCounters, sink edge, dishwasher, trashSugar, grease, crumbs, waterOdorous house ants, pavement ants, Argentine ants
Small tan roaches with two dark stripes behind the headUnder sink, behind fridge, stove, dishwasher hingesAnything; grease and crumbsGerman cockroaches
Black pepper-like specks, dark smears on hingesCabinet corners and hinges—Cockroach droppings
Rice-sized pointed droppings, chewed packagesDrawers, behind stove, under sinkCereal, grains, pet foodMice

Fruit flies (and the flies that aren't fruit flies)

Fruit flies breed in anything fermenting. Oklahoma State University Extension notes that a single female can lay as many as 500 eggs on the surface of rotting fruit and vegetables, and in summer the whole cycle from egg to adult takes only 8 to 10 days, which is why a few flies become a cloud in a week.

The source is often not the fruit bowl. Oklahoma State lists the usual hidden breeders: one rotten potato or onion at the bottom of a bag, an apple that rolled under a cabinet, a dirty garbage can or disposal, beer, soda and ketchup bottles with a little left in the bottom, and sour mops and dish rags. Find and remove that, then trap the adults with a cup of cider vinegar and a drop of dish soap. Details in how to get rid of fruit flies and fruit fly traps.

If vinegar traps catch nothing, you probably don't have fruit flies. Fuzzy, moth-like flies on the wall near the sink are drain flies, which breed in the film inside the pipe and need a scrubbing brush, not bleach. Small, humpbacked flies that scurry across counters and ignore vinegar are often phorid flies, which can come from a broken or uncapped sewer line. And tiny dark flies near windows and potted herbs are fungus gnats from damp potting soil. Our gnats vs fruit flies guide shows the differences.

Pantry moths and pantry beetles

If you see small moths at night or beetles in the flour, you have stored-product pests. UC IPM's pantry pest guide makes three points that save most people a lot of grief:

  • They came in a package. Infestations almost always start with one infested bag of flour, cereal, nuts, dried fruit, spices, birdseed or dry pet food.
  • Only the larvae eat food. Indian meal moth caterpillars do all the damage and leave silk webbing in the product. When fully grown, they often crawl far from the food to pupate, so moths appearing in the bedroom or on the ceiling doesn't mean the source is there.
  • Don't spray. UC IPM warns that spraying pesticides on or near food may cause more harm than the pests. Removing infested food and cleaning is enough even for large infestations.

The fix, in order:

  1. Pull everything out of the cabinets. Check every dry food, including spices, cocoa, pet food, birdseed and unopened boxes. Look for webbing, clumps, live larvae or beetles, and tiny holes.
  2. Throw out anything infested, sealed in a bag, out of the house.
  3. Vacuum shelves, corners and cracks, including shelf-peg holes and the gap under shelf edges, where moth larvae pupate. Wash shelves with soap and water.
  4. Store dry food in glass jars or hard plastic containers with gasket lids, not bags or folded boxes. Keep rarely used flour, grains and nuts in the freezer.
  5. Use pheromone traps for moths to monitor. UC IPM notes these pests can live for weeks without food, so keep monitoring for a few months after the cleanup.

Beetles that look like tiny snouted grains of rice are weevils, usually in whole grains, rice and dried beans. See pantry moths for moth-specific steps, and make sure what you have isn't clothes moths, which are smaller, hairier and stay away from light.

Tiny pale specks that crawl around damp flour or shelves may be psocids, also called booklice. Iowa State Extension says they feed on microscopic mold, can't bite, and point to a moisture problem; drying out the cabinet and discarding moldy food works better than any spray.

Ants

Ants in the kitchen are foragers from a nest that's usually outside or in a wall. They follow a scent trail to sugar, grease, pet food or water. UC IPM's advice:

  • Wipe the trail with soapy water to erase the scent, and clean up the food source.
  • Use bait, not spray. Sprays kill the workers you see and do nothing about the colony. Slow-acting baits (borates, fipronil, avermectin or hydramethylnon) get carried back to the nest and can kill the queens. It can take 5 to 10 days to see fewer ants.
  • Don't clean around the bait. Let them feed. If they ignore it, move it or try a different bait type; some ants switch between sugar and protein.
  • Seal entry points with caulk once activity drops.

Small, dark ants that smell like rotten coconut when crushed are odorous house ants, the classic "sugar ants". Large black ants indoors, especially in winter or spring, may be carpenter ants nesting in damp wood. More in how to get rid of ants.

Cockroaches

A small tan roach in the kitchen is almost always a German cockroach, a species that lives and breeds entirely indoors. They hide in warm, tight spots close to food and water: under the sink, behind the fridge and stove, in dishwasher and cabinet hinges, inside appliances. You usually see them at night; seeing them in daylight means a large infestation.

UC IPM's guidance is clear:

  • Sanitation first. Clean behind and under appliances, don't leave dishes or pet food out overnight, and fix leaks. Even crumbs and drips keep them going.
  • Gel baits and bait stations beat sprays. Place small dots of gel in cracks near where you see them; expect it to take 7 days or more before numbers drop.
  • Avoid foggers and bug bombs. They can be hazardous and tend to scatter roaches deeper into walls instead of killing them.
  • Use sticky traps to find hot spots and track progress.

Black pepper-like specks in cabinet corners and on hinges are cockroach droppings, even if you never see a live roach; old droppings can stay after an earlier infestation, so sticky traps tell you if they're still active. Large reddish-brown roaches in a kitchen are usually American cockroaches coming from drains or outdoors. For a full plan, see German cockroaches and how to get rid of cockroaches.

Mice

Mice are the kitchen pest you usually detect by what they leave: droppings the size of a grain of rice along walls and in drawers, chewed corners of cereal and pasta boxes, shredded paper nests behind appliances, and a musky smell. UC IPM notes house mice eat in about 200 small meals a night, can squeeze through a 1/4-inch gap, and commonly move indoors in autumn when nights turn cold.

Snap traps with a wide trigger, baited with a tiny amount of peanut butter or nesting material like cotton, set along walls and behind the stove, work best. Store food in hard containers (mice chew through bags and cardboard), and seal gaps around pipes under the sink with steel wool and caulk. Never use loose rodenticide in a kitchen. See signs of mice and how to get rid of mice.

What people who dealt with it say

Kitchen bug threads on pest control and home improvement forums repeat a few lessons:

  • "We clean all the time" isn't the issue. Pest pros keep pointing out that crumbs don't cause flies. Persistent flies come from a breeding source people don't check: under the fridge or stove, a trash can liner, a floor drain that dried out, or a forgotten bag of potatoes.
  • When vinegar traps fail, suspect the drain. One widely discussed case involved an apartment overrun with small flies that ignored vinegar traps. Pros identified them as phorid flies, typical of a cracked sewer line. Others in the thread described a plumber's smoke test finding an uncapped sewer pipe behind a wall; once it was capped, the flies (and roaches) stopped.
  • Pantry moths that "aren't from the pantry." People who sealed every food in airtight containers and still saw moths in bedrooms often found the source later: larvae pupating in shelf-peg holes, a forgotten bag of birdseed or pet food, or, in apartments, a neighbor's infestation.
  • Beetles keep showing up after a cleanout. Typical story: sawtoothed grain beetles found in a bag of rice, pantry cleaned, beetles still appearing daily. Pros' answer is that one more infested item is still somewhere, often spices, pet food, or a thin cardboard box the beetles chewed into, and that even sealed-looking packages need checking.
  • German roaches in apartments are a building problem. Renters often report getting numbers down with gel bait but still seeing an occasional roach; pros say in multi-unit buildings that's common until the whole building is treated.

Prevent kitchen bugs: a short checklist

  • Store flour, grains, cereal, nuts, pet food and birdseed in hard airtight containers.
  • Buy dry goods in amounts you'll use in a couple of months; freeze rarely used flour and nuts.
  • Keep ripe fruit in the fridge in summer and fall; check potato and onion bags weekly.
  • Rinse recycling, take out the trash daily in fly season, and clean the trash can itself.
  • Scrub sink and floor drains with a brush; run water in rarely used drains.
  • Don't leave dishes, pet food or water out overnight.
  • Pull out the fridge and stove twice a year and clean underneath.
  • Seal gaps around pipes under the sink and behind appliances.

FAQ

What are the tiny bugs in my kitchen?
It depends on where you see them. Tiny flies over the fruit bowl or trash are usually fruit flies; tiny flies near the sink can be drain flies or phorid flies; small brown beetles in or near dry food are pantry beetles; small moths fluttering at night are Indian meal moths; a trail of tiny ants means foragers from a nest; and small tan bugs that run from the light under the sink are German cockroaches.
How did bugs get into my sealed flour or rice?
Usually they came in the package. UC IPM notes that pantry pests are almost always brought home in an infested food item, and many beetles and moth larvae can chew through thin paper, cardboard and plastic bags. Once inside, they spread to other open or poorly sealed foods.
Why won't my fruit flies go away even after I threw out the fruit?
There's another breeding source. Check for a rotting potato or onion in the bottom of a bag, the garbage disposal, a sour mop or rag, the recycling bin, and spills under appliances. If vinegar traps catch nothing, they may be drain flies or phorid flies coming from a drain or a broken sewer line.
Should I spray insecticide in my kitchen cabinets?
No. UC IPM warns that spraying pesticides on or near food may cause more harm to your family than pantry pests. Throw out infested food, vacuum and wash shelves, and store dry goods in airtight containers. For ants and cockroaches, baits work better than sprays.
Is black specking in my cabinets cockroach droppings or mouse droppings?
Cockroach droppings look like pepper grounds or coffee grounds, or dark smears along shelf edges and hinges. Mouse droppings are larger, about the size and shape of a grain of rice with pointed ends, and are scattered along walls, in drawers and behind the stove.
Do pantry moths mean my kitchen is dirty?
No. Pantry moths and beetles come in with groceries, birdseed and pet food, even in spotless homes. A recurring problem usually means one forgotten infested package, or larvae pupating in cracks and shelf-peg holes away from the food.
When should I call a pest control company for kitchen bugs?
For German cockroaches that persist after a few weeks of baiting, for any rodent problem you can't trap out quickly, and for ants that keep returning from inside walls. Pantry pests and fruit flies almost never need a professional.

Sources and real-world experience

Built from the expert sources and real discussions below — we read each one. How we research.

  1. UC IPM: Pantry Pests
  2. Oklahoma State University Extension: Fruit Flies
  3. UC IPM: Ants
  4. UC IPM: Cockroaches
  5. UC IPM: House Mouse
  6. Iowa State University Extension: Psocids, Booklice, Barklice
  7. Reddit r/pestcontrol: flies are tearing my relationship apart
  8. Reddit r/pestcontrol: Recurring pantry moth infestation - NOT FROM PANTRY
  9. Reddit r/pestcontrol: What's this bug in my kitchen??
  10. Reddit r/HomeImprovement: Fruit flies: HELP
Nothing working? When it is time to call an exterminator