A moth fluttering around your room almost always got there for one of two reasons: it flew in through an open window or door because it was disoriented by your lights, or it was already living inside your home, quietly feeding on your clothes or stored food. Which scenario you’re dealing with determines everything about what you should do next. A lone moth circling your lamp on a summer evening is a very different problem from discovering small, pale moths near your closet in January.
Why Moths Fly Toward Your Lights
The old explanation that moths are “attracted to light” turns out to be misleading. Research published in 2024 using high-speed motion capture found that flying insects don’t actually steer toward a light source. Instead, they tilt their backs toward whatever they perceive as the brightest overhead light. Under a natural night sky, this dorsal-light response keeps them flying level and oriented correctly. But when they encounter a nearby artificial light, that same reflex causes them to continuously bank and curve around the source, trapping them in orbits or sending them on erratic spiraling paths.
1Nature Communications. Why flying insects gather at artificial lightSo the moth in your room isn’t really attracted to your lamp the way you might be drawn to a warm fire. It’s confused. Its navigation system interprets your ceiling light or desk lamp as “up,” and as it tries to keep its back aimed at that bright spot, it ends up looping endlessly around it or crashing into walls. Cool-toned LED lights seem to make this worse, producing especially erratic flight behavior in moths.
2PubMed Central. Pulsed artificial light at night alters moth flight behaviourThis means any moth that wanders near a lit window on a warm evening can get pulled into your home almost by accident. It doesn’t want to be there. It’s trapped by its own reflexes. If you’ve left a window open with a bright light on nearby, you’re essentially running an insect funnel.
The Other Kind of Indoor Moth
If the moth in your room is small, pale, and seems reluctant to fly toward light, you may be dealing with something more concerning: a clothes moth or a pantry moth that has set up residence inside your home. These species don’t wander in from outside on a summer night. They’re already living indoors, and their presence usually means larvae are feeding somewhere nearby.
The two most common clothes moth species are the webbing clothes moth and the casemaking clothes moth. Both are small, typically under a centimeter in wingspan, and tend to be buff or golden brown. They avoid light and prefer dark, undisturbed spaces like the back of a closet, a drawer full of woolens you haven’t opened in months, or an attic trunk of old blankets. If you see one flying in the open, there are likely more hiding where you can’t see them.
3EDIS. Clothes Moths and Plaster BagwormsPantry moths, sometimes called Indian meal moths, are a separate problem. They’re slightly larger, with distinctive coppery-brown wingtips, and they infest dry food goods: flour, rice, cereal, pet food, birdseed, and similar products. If the moth you found was in or near the kitchen, check your pantry shelves for webbing or tiny caterpillars inside food packages.
How Clothes Moth Larvae Eat Your Sweaters
Adult clothes moths don’t eat anything. They don’t even have functional mouthparts for feeding. The damage comes entirely from the larval stage, and the larvae have a remarkably specialized digestive system. Wool, silk, feathers, and fur are all made of keratin, a tough structural protein that most organisms cannot break down. Clothes moth larvae manage it with help from gut bacteria that secrete cocktails of enzymes capable of snapping apart keratin’s molecular bonds. The process involves breaking disulfide bonds first to unravel the protein structure, then deploying a range of enzymes to chop up the exposed chains.
4PubMed Central. Larvae of the Clothing Moth Tineola bisselliella Maintain Gut Bacteria that Secrete Enzyme Cocktails to Facilitate the Digestion of KeratinThis is why clothes moths target animal-based fibers specifically. Cotton and polyester are generally safe unless they’re blended with wool or are stained with food residue or sweat. Larvae are especially drawn to soiled garments because body oils and food traces provide extra nutrients. That cashmere scarf balled up in the back of a drawer after you wore it once and forgot to wash it is prime real estate for a clothes moth larva.
Getting Rid of Moths That Flew In From Outside
If a moth is clearly just a confused visitor from outdoors, you don’t need a plan. Turn off the light that’s attracting it, open a window, and it will usually find its way out. If you want to speed things up, turn on a porch light or exterior light near an open door and turn off all interior lights. The moth will navigate toward the remaining light source and leave. You can also gently catch it in a cup and relocate it outside.
Beyond that single moth, though, think about how it got in. If you like having windows open on warm nights, window screens are your best defense. Even a small gap between a screen and its frame is enough for a moth to squeeze through. Check that screens are intact and seated properly in their frames.
Dealing With a Clothes Moth Infestation
Clothes moths are a bigger project. Finding one adult moth indoors usually means larvae are already feeding somewhere, so your first job is to find the source. Check closets, drawers, storage bins, and any place where wool, silk, cashmere, fur, or feathered items are kept. Look for irregular holes in fabric, silken tubes or webbing on garments, and tiny sand-grain-sized droppings. Don’t forget less obvious targets like old wool carpets, felt pads under furniture legs, and taxidermy.
Once you find affected items, you have a few options for killing larvae and eggs:
- Freezing: Seal items in plastic bags and place them in a freezer at about −20°C (−4°F). Research on clothes moth cold tolerance found that the webbing clothes moth is the hardiest of common tineid species, and eggs are the toughest life stage. Complete kill of even the most resistant eggs required up to 30 hours of exposure at −20°C, so leaving items in the freezer for at least two full days provides a solid margin. 5Journal of Stored Products Research. Time-mortality relationships for different species and developmental stages of clothes moths (Lepidoptera: Tineidae) exposed to cold
- Heat: Washing and drying on high heat kills all life stages. For items that can tolerate it, a hot wash followed by a tumble dry on the highest setting is effective. Dry cleaning also works for delicate garments.
- Thorough vacuuming: Vacuum closets, baseboards, carpet edges, and under furniture where lint and hair accumulate. Moth larvae can feed on compressed lint that contains animal fibers. Dispose of the vacuum bag immediately afterward.
After treating affected items, clean the storage space thoroughly. Wipe shelves and drawer interiors, and consider lining them with fresh shelf paper. Store clean woolens in airtight containers or sealed garment bags rather than leaving them exposed in an open closet. Moths can’t infest what they can’t reach.
Why Mothballs Deserve Their Bad Reputation
Traditional mothballs work. The problem is what they’re made of. Most contain either naphthalene or para-dichlorobenzene, both of which are toxic to far more than moths. Para-dichlorobenzene in particular can affect the liver, kidneys, lungs, skin, and central nervous system in humans. Cases of neurological damage from mothball exposure, including a brain condition called leukoencephalopathy, have been documented in the medical literature.
6PubMed Central. Para-dichlorobenzene toxicity – a review of potential neurotoxic manifestationsThe risk is highest with prolonged exposure in enclosed spaces with poor ventilation, exactly the scenario you create when you toss mothballs into a closet and close the door. Children and pets are especially vulnerable because of accidental ingestion. For most household situations, the alternatives are both safer and effective enough.
Those alternatives include pheromone traps, which use synthetic versions of the chemical signals female moths emit to lure males onto a sticky surface. These are useful for monitoring whether you have an infestation and reducing the breeding population, though they won’t catch females or larvae. Plant-based repellents like cedar, lavender, and various essential oils have long been used, and the textile industry has explored sustainable moth-proofing finishes using pyrethrins and botanical repellents as environmentally friendlier options.
7ScienceDirect. The Wool Handbook – Chapter 15: Sustainable moth repellent finishing for woolCedar works by emitting volatile oils that are somewhat toxic to small larvae, but it loses effectiveness as the wood ages and the oils dissipate. Sanding the surface or adding cedar oil can restore some potency. Lavender sachets smell pleasant and may deter moths from landing on nearby fabrics, but they won’t kill larvae already present. Think of plant-based options as preventive rather than curative: they help keep moths from settling in a clean space, but they’re not a substitute for the cleaning and freezing steps if you already have an infestation.
Picking Light Bulbs That Don’t Invite Moths In
Since outdoor moths find their way indoors primarily because of light, the type of bulb you use near windows and doors makes a measurable difference. A study comparing the six major residential bulb types found that old-fashioned incandescent bulbs attracted the most insects by a significant margin. Warm-toned LED bulbs attracted the fewest, producing even lower trap captures than the yellow “bug lights” specifically marketed to repel insects.
8bioRxiv. Insect attraction to the six major types of traditional-style, residential light bulb and implications for insect survival and light pollutionThe pattern makes sense given what we know about the dorsal-light response. Cooler, bluer light more closely mimics the sky spectrum that moths use for orientation, making it a stronger trigger for the tilting reflex that traps them in orbits around a source. Warm-toned light, with its lower color temperature and reduced blue-wavelength output, is less likely to hijack their navigation. Research on moth mating behavior has confirmed this, finding that warm-white LEDs around 2200 K interfered less with moths’ ability to locate mates than cooler or amber-toned alternatives.
9Ecological Entomology. Female moths call in vain: Streetlights diminish the promise of matingFor practical purposes, if you want to reduce moths coming inside: swap porch and entry lights to warm-toned LEDs (look for bulbs rated around 2700 K or lower), draw curtains or blinds at night so indoor light doesn’t stream outward, and keep exterior lighting pointed downward rather than out into the air. None of this will completely eliminate the occasional stray moth, but it meaningfully reduces how many end up bumping around your ceiling.
Common Misconceptions About Indoor Moths
One persistent myth is that all moths eat clothes. In reality, the vast majority of moth species don’t eat anything as adults, and only a handful of species have larvae that feed on keratin-based fibers. There are roughly 160,000 described moth species worldwide. The ones that damage your wardrobe belong to a tiny family called Tineidae. If you find a large brown moth near a window, it’s almost certainly an outdoor species that wandered in and has zero interest in your sweaters.
Another misconception is that moths are attracted to dirty or neglected homes. Clothes moths are attracted to animal fibers, period. A spotless home with an expensive wool rug is just as appealing to them as a cluttered apartment. What does help prevent infestations is regular use and movement of stored garments, since moths prefer undisturbed areas, and keeping items clean before storage, since body oils on fabric are a feeding cue for larvae.
People also sometimes assume that if they see a moth near food, it must be a clothes moth. Pantry moths and clothes moths look different and target completely different materials. A moth near your cereal is a pantry moth; a moth in your closet is likely a clothes moth. Treating one as the other leads to wasted effort: freezing your flour won’t save your wool coat, and cleaning out your closet won’t help if the problem is in the kitchen cupboard.
Moths as Quiet Contributors to Ecosystems
Before you squash the moth on your wall, it’s worth knowing that moths play a larger ecological role than most people realize. While bees get most of the pollination credit, moths are significant nocturnal pollinators that visit flowers after dark when bees have clocked out. Research has highlighted that moth-flower interactions at the community level are surprisingly rich, and moths can substantially boost pollination success even in plants that also receive visits from daytime pollinators. In some species, nocturnal moths disperse pollen over greater distances than their daytime counterparts, potentially increasing genetic diversity in plant populations.
10PubMed Central. Nocturnal pollination: an overlooked ecosystem service vulnerable to environmental changeMoths are also a critical food source for bats, birds, and other insectivores. The light-pollution problem isn’t just an annoyance for homeowners; it’s a genuine ecological concern. When moths get trapped around artificial lights all night, they aren’t pollinating, they aren’t mating, and they’re easy targets for predators. Large-scale declines in moth populations have been documented in multiple regions, and artificial light at night is considered one of the contributing pressures alongside habitat loss and pesticide use. Choosing warm-toned outdoor lighting isn’t just good for keeping moths out of your bedroom. It’s a small way to reduce your impact on an insect group that does more useful work than it gets credit for.