Yes, pantry moths are attracted to light. The most common pantry moth, the Indianmeal moth, displays positive phototaxis, meaning it naturally moves toward light sources. This behavior is actually one of the reasons you notice them in the first place. Adults will fly from a dark pantry toward well-lit kitchens, living rooms, and even bedrooms, sometimes appearing far from the food source where they originally hatched.
Why You’re Seeing Moths Near Lights
If you’ve spotted small moths fluttering around a kitchen light or lamp, their attraction to light is what drew them out of hiding. Adult Indianmeal moths tend to fly in an erratic, fluttering pattern rather than in a straight line, which makes them easy to spot once they leave the pantry. They’re roughly half an inch long with a distinctive two-toned wing pattern: pale gray near the head and coppery brown toward the wingtips.
Their light-seeking behavior actually serves as a useful clue. The moths you see near a ceiling light or window may have traveled from an infested bag of flour, cereal, or rice tucked in a cabinet several rooms away. So if you’re killing moths in your bedroom but haven’t checked your pantry, the source of the problem is likely still there.
Pantry Moths vs. Clothes Moths
Light attraction is one of the quickest ways to tell pantry moths apart from clothes moths. Clothes moths actively avoid light. They prefer dark, undisturbed spaces like closets, basements, and attics, and you’ll rarely see them out in the open. The University of Kentucky’s entomology department notes that similar-looking moths spotted in kitchens and other well-lit areas are most likely grain moths coming from stored food, not clothes moths.
If the moths you’re seeing are drawn to lamps and overhead lights, you’re almost certainly dealing with a pantry pest. If you’re finding small moths deep in a closet or dresser drawer, that points to clothes moths instead, and the approach to dealing with them is completely different.
An Unusual Internal Clock
Most moth species have a built-in circadian rhythm that governs when they fly, mate, and rest. Pantry moths are an exception. Research published in Frontiers in Ecology and Evolution found that Indianmeal moths lack a functioning internal clock tied to light and dark cycles. Unlike outdoor moths that synchronize their activity to nightfall, pantry moths can be active at any hour.
Scientists believe this is because the species has adapted to living exclusively indoors under artificial lighting. With no consistent day-night cycle to respond to, their timing system essentially became unnecessary. This means you might see pantry moths flying around your kitchen at noon or midnight with equal likelihood.
Do Light Traps Work for Pantry Moths?
Because pantry moths are drawn to light, UV light traps (sometimes called insect light traps) can catch them. Commercial and industrial facilities use these traps to monitor and reduce flying pest populations, including moths and pantry pests. The traps work by emitting ultraviolet light wavelengths that attract insects onto a sticky board or into a capture chamber.
For home use, pheromone traps are more commonly recommended than light traps. Pheromone traps specifically target male Indianmeal moths using a scent lure, which helps interrupt the breeding cycle. Light traps cast a wider net and will attract many types of flying insects, but they won’t solve an infestation on their own. They’re better suited as a monitoring tool to help you gauge whether a problem is getting better or worse.
Getting Rid of the Actual Infestation
Killing the moths you see flying around lights only removes the adults. The real damage comes from larvae feeding inside your stored food. A single female can lay hundreds of eggs, and the tiny caterpillars that hatch are what you’ll find wriggling through bags of flour, oats, dried fruit, nuts, spices, and pet food. Eliminating an infestation means targeting the source, not chasing adults around the house.
Start by inspecting every dry food item in your pantry, including unopened packages (larvae can chew through thin cardboard and plastic bags). Look for fine webbing, small clumps of grain stuck together, or tiny caterpillars. Throw away anything that shows signs of infestation. Then vacuum all shelves, paying close attention to corners, cracks, and crevices where food particles collect. Follow up by washing surfaces with soap and water.
After cleaning, transfer all remaining dry goods into hard-sided containers with tight-fitting lids. Plastic bags are not sufficient because larvae can chew through them. For items you don’t use often, like specialty flours, grains, and spices, storing them in the freezer prevents future infestations from taking hold. Don’t mix old and new batches of the same food, and clean containers thoroughly before refilling them.
For at least a few months after clearing out infested products, keep all susceptible foods sealed in airtight containers or refrigerated. Pantry moth larvae need surprisingly little food to survive and reproduce, so even small accumulations of crumbs or flour dust in cabinet corners can sustain a lingering population. The University of California’s pest management program specifically advises against using insecticides for pantry pests, noting that spraying chemicals on or near food creates more risk for your household than the moths themselves. Thorough cleaning and proper storage are the most effective approach.