How to Get Rid of Flour Bugs and Keep Them Out

Flour bugs are almost always some type of small beetle or moth larvae living inside stored grain products, and getting rid of them requires throwing out infested food, deep-cleaning your pantry, and changing how you store dry goods. The process takes an afternoon of focused work, but skipping any step risks a repeat infestation within weeks.

What Flour Bugs Actually Are

The tiny brown or reddish insects you see crawling through flour are most commonly red flour beetles, confused flour beetles, sawtoothed grain beetles, or the larvae of pantry moths. They’re all small enough to go unnoticed until a population has grown large, and they feed on the same things: flour, cereal, rice, cornmeal, spices, dried pasta, pet food, and birdseed. Flour beetles are reddish-brown, about 3 to 4 millimeters long, and flat enough to squeeze into surprisingly tight spaces. Pantry moth larvae look like tiny pale worms and often leave behind silky webbing in food packages.

These insects reproduce quickly. Red flour beetles can go from egg to adult in as little as 26 days under warm, humid conditions. Eggs hatch in 3 to 5 days, and the larvae develop hidden inside your food, which is why an infestation can seem to appear out of nowhere. They thrive at room temperature and stop developing only when temperatures drop below about 69°F.

Step 1: Find and Remove Infested Food

Pull everything out of your pantry, every bag, box, and container. Inspect each item carefully, paying special attention to anything that’s been opened or sitting for more than a few weeks. Look for live or dead insects, tiny larvae, webbing, or a musty smell. If you see even slight signs of infestation, seal the package in a plastic bag and take it directly to your outdoor trash. Don’t leave it in a kitchen garbage can.

Be thorough here. Flour bugs lay eggs that are nearly invisible to the naked eye, and a single overlooked package can restart the entire cycle. Items that seem fine but were stored near infested products deserve extra scrutiny. When in doubt, toss it. Replacing a bag of flour is far easier than repeating this whole process in a month.

Step 2: Deep-Clean Every Surface

Once the shelves are empty, wash them down with soap and water. Flat surfaces are the easy part. The critical step is getting into the cracks, corners, edges, and crevices where eggs and pupae hide. A vacuum with a crevice attachment is the best tool for this. Run it along every shelf edge, in the joints where shelves meet walls, and along any grooves or hardware. Eggs can lodge in spots you’d never think to wipe.

After vacuuming, go over those same areas with a soapy cloth or sponge. If you used a bagged vacuum, remove and dispose of the bag outside. For bagless models, empty the canister into an outdoor bin. Any containers you plan to reuse, such as canisters, bins, or jars, need to be washed thoroughly before refilling. Old containers can harbor eggs and contaminate fresh food.

Step 3: Salvage Uninfested Food With Freezing or Heat

If you have dry goods that look clean but you’re not fully confident, you can kill any hidden eggs or larvae with temperature extremes. Both freezing and heating work.

  • Freezing: Place items in your home freezer. At temperatures between 0°F and -10°F, flour bugs die within days to weeks depending on the species. For a standard home freezer set around 0°F, leaving items for at least a week provides a good margin of safety. Colder freezers work faster: at -15°F or below, insects die in under an hour once the food reaches that temperature. Keep in mind that a large bag of flour takes a long time to cool all the way through. A sealed bag in a home freezer can take over a day to reach 0°F at its center.
  • Heating: Spread the food on a baking sheet and place it in an oven set to its lowest temperature, typically around 150 to 170°F. Keep it there for 45 minutes to an hour, then turn off the heat and let everything cool inside the oven for another hour. This kills beetles and larvae at all life stages without cooking the food.

Step 4: Switch to Airtight Storage

This is the step that prevents the problem from coming back. Flour bugs can chew through paper bags, cardboard boxes, thin plastic wrap, and mesh. The original packaging most dry goods come in offers almost no protection. Transfer flour, rice, cereal, oats, cornmeal, and similar products into hard-sided airtight containers made of glass, thick plastic, or metal with tight-fitting lids. Mason jars, screw-top canisters, and snap-lock food containers all work well.

Airtight storage does two things: it keeps bugs out of clean food, and if a product happens to contain eggs when you buy it (which is more common than you’d think), the infestation stays contained inside one jar instead of spreading through your entire pantry.

Preventing Future Infestations

Most flour bug infestations start at the store or warehouse, not in your kitchen. Eggs or larvae hitch a ride home inside a bag of flour or a box of cereal that was already contaminated before you bought it. You can freeze new purchases for a week before transferring them to containers as a precaution, especially with bulk bin items or products from stores with slow turnover.

Regular pantry maintenance makes a real difference. Wipe down shelves every few weeks, vacuum up crumbs and food dust that accumulate in corners, and rotate your stock so older items get used first. Flour bugs need very little food to sustain a population. A thin layer of spilled flour in a shelf crack is enough. Keeping those surfaces clean removes the food source entirely.

Buy dry goods in quantities you’ll actually use within a reasonable time. A 10-pound bag of flour sitting for months in a warm pantry is a much bigger risk than a 5-pound bag you’ll finish in a few weeks.

Are Flour Bugs Harmful if You Ate Some?

If you discovered the bugs after you already used some of the flour, don’t panic. Flour beetles and weevils are not poisonous, don’t carry diseases, and don’t bite or sting. Accidentally eating a few with your food is unlikely to make you sick. They’re a nuisance pest, not a health hazard. The bigger concern is the quality and taste of heavily infested food, which can develop an off flavor, rather than any toxicity.