The “worms” you spot indoors are almost never true worms. In most homes they are insect larvae: drain fly larvae in sink and shower drains, fungus gnat larvae in houseplant soil, Indian meal moth larvae in pantry food, or carpet beetle larvae in closets and along baseboards. Where you found them, their color, and whether they look smooth or hairy tell you which one you are dealing with. Remove the food or moisture they live in, and they disappear.
You pull out a bag of flour, lift a plant pot, or glance into the bathroom sink, and there it is: a tiny, wriggling thing that wasn’t there yesterday. Your first thought is probably “what are small worms in my house, and where on earth did they come from?” Take a breath. Finding them is unpleasant, but it is also very common, and the good news is that each type has a predictable hiding place and a straightforward fix.
How do you identify small worms in your house?
Start with three questions: Where did you find it? What color is it? Is it smooth or hairy? Those three clues narrow things down fast, because each household larva sticks to its own habitat. Drain fly larvae stay in slimy drains. Fungus gnat larvae stay in damp potting soil. Meal moth larvae stay in dry food. Carpet beetle larvae stay near wool, hair, feathers and fabric.

Quick identification table
| Where you found it | What it looks like | Most likely culprit |
|---|---|---|
| Sink, tub or floor drain | Legless, gray, wormlike, about 3/8 inch long, darker at both ends | Drain fly (moth fly) larvae |
| Houseplant soil | Whitish-clear, thread-like, shiny black head, up to 1/4 inch | Fungus gnat larvae |
| Flour, grains, dried fruit, pet food | Whitish, yellowish or pinkish caterpillars about 1/2 inch long, often with silky webbing | Indian meal moth larvae |
| Closets, baseboards, under rugs | Small, brown, bristly or fuzzy, 1/4 inch or less | Carpet beetle larvae |
| Near garbage or a rotting spill | Pale, legless maggots | Fly larvae feeding on decaying matter |
Small worms in drains and bathrooms: drain fly larvae
If the worms are in your bathroom or kitchen sink, tub or floor drain, drain flies (also called moth flies) are the usual suspect. According to Alabama Extension, the larvae are legless, roughly 3/8 inch long, wormlike and gray with darker ends, and they live inside slime-filled drainpipes. The adults are tiny, fuzzy, moth-like flies that rest on bathroom and kitchen walls and flutter weakly rather than fly in straight lines.

How to eliminate drain fly larvae
- Confirm the source. Virginia Cooperative Extension suggests covering a suspect drain overnight with a clear cup coated with petroleum jelly. Flies stuck to the sticky surface in the morning tell you which drain needs work.
- Scrub, don’t just pour. NC State Extension says the key is to find and eliminate the source, meaning excess moisture and built-up organic debris. Use a stiff drain brush on the pipe walls and the overflow opening, because that is where the slime lives.
- Use hot water for a quick knockdown only. It kills larvae on the surface of the film but won’t clear it all.
- Skip bleach and vinegar. Virginia Tech entomologists note that bleach or vinegar may kill a few larvae on the surface but won’t penetrate the material to kill them all. Never mix bleach with ammonia, and never pour insecticide down a drain.
- Consider a bacterial or enzyme drain treatment. Texas A&M AgriLife describes bacterial drain products that break down organic matter; follow the label closely.
When tiny flies are everywhere: think phorid flies and hidden leaks
Not every small fly in a house is a drain fly. Mississippi State University Extension lists sink drains, leaky toilet wax seals, garbage disposals, overwatered potted plants and cracked drain pipes under the slab as common breeding spots for phorid flies, and it warns that you shouldn’t stop looking after finding one site, because there may be several. If you see very large numbers on the first floor, the University of Maryland Extension notes this can point to a broken drain or sewer line under the structure, and that is a job for a plumber.
Small worms in houseplant soil: fungus gnat larvae
Thin, translucent worms with a black head in a potted plant are fungus gnat larvae. Colorado State University Extension describes them as wormlike and translucent with a black head capsule, living in the growing medium of houseplants. The adults are harmless, mosquito-like flies that hover around the soil, but the larvae can nibble roots, which matters most for seedlings and young plants.

How to eliminate them
- Let the soil dry out. The same Colorado State guide calls it the most important strategy to let the growing medium dry between waterings, especially the top 1 to 2 inches.
- Use yellow sticky traps to catch adults and monitor the problem. Washington State University Extension lists them as a way to monitor and help control adult populations.
- Clear away dead leaves and decaying plant matter from pots and trays.
- Repot badly infested plants in fresh, well- clean draining mix if you can’t discard them.
Small worms in the kitchen and pantry: Indian meal moth larvae
Whitish caterpillars in flour, cereal, nuts, dried fruit, pet food or bird seed are very likely Indian meal moth larvae, the most common pantry moth. The National Pesticide Information Center explains that the larvae do the damage and can chew through plastic bags and thin cardboard, so even unopened packages may become infested. Look for silky webbing and clumped food, which are classic giveaways.
How to eliminate pantry larvae
- Find every infested item. Iowa State University Extension says control requires locating and eliminating the infested items, and the insects may be in unopened boxes. Seal and throw out anything doubtful.
- Vacuum and wash the shelves. Use a crevice tool in corners, then wash surfaces with warm soapy water to remove spilled food, eggs and cocoons.
- Don’t spray the cupboard. The same Iowa State guidance does not recommend insecticide sprays in stored-food cupboards.
- Switch to sturdy containers. Move bulk items from bags into glass or hard plastic containers with tight lids.
- Treat non-food items too. University of Kentucky Extension suggests heating dried decorations or bird feed or freezing them at 0°F for four days.
Fuzzy “worms” in closets and on carpets: carpet beetle larvae
Small, bristly, brown larvae near wool rugs, wardrobes or baseboards are probably carpet beetle larvae, not worms at all. Virginia Cooperative Extension reports that they are usually 6 mm (about 1/4 inch) or less, carry dense tufts of long bristles, and can feed on wool, fur, feathers, hair and silk. Because they wander, an infestation can spread from one spot to many rooms.

What if the “worms” are in a person, not in the house?
Tiny, thin white worms seen near a person’s bottom, on underwear or on bedsheets are a different matter. These may be pinworms. The CDC describes pinworms as small, thin, white parasitic roundworms, about the size of a staple, and they cause night-time itching around the anus. The CDC also says pinworm is the most common worm infection in the United States and affects children most often.
See a healthcare provider for diagnosis. Treatment is a two-dose medication, with the second dose two weeks after the first, and the CDC advises treating everyone in the household at the same time. Washing hands with soap and warm water, especially after using the toilet or changing diapers, is the best prevention. Household pest-control steps will not solve a pinworm infection.
Frequently asked questions
What are small worms in my house?
Usually insect larvae: drain fly, fungus gnat, pantry moth or carpet beetle larvae. Match where you found them with the identification table above.
Are small worms in the house dangerous?
Most do not bite or spread disease directly, but they signal moisture, spoiled food or stored items that need attention. Throw away infested food. If you suspect pinworms, talk to a healthcare provider.
How do I get rid of small worms in my drain?
Scrub the inside of the drain and overflow to remove the slime, use hot water for a short-term knockdown, and keep the pipes clean. Bleach and vinegar are not very effective at clearing the film.
Why do I keep finding small white worms in my kitchen?
Likely pantry moth larvae. Find and discard every infested item, clean the shelves, and use sealed containers.
When should I call a professional?
Call if you can’t identify the larvae, if they keep returning after you remove the source, or if you see very large numbers of flies on the ground floor, which may point to a hidden drain problem. Your local cooperative extension office can also help with identification.
Sources and further reading
Information in this article is based on university cooperative extension publications and U.S. public health sources. Pest products and rules vary by region, so always follow the label and check local guidance.
- Centers for Disease Control and Prevention (CDC). “About Pinworm Infection.” cdc.gov/pinworm
- Virginia Cooperative Extension, Virginia Tech. “Drain Fly” (ENTO-414NP). ext.vt.edu
- Virginia Cooperative Extension, Virginia Tech. “Carpet Beetles” (ENTO-486NP). pubs.ext.vt.edu
- NC State Extension. “Drain Flies.” content.ces.ncsu.edu
- Alabama Cooperative Extension System. “Drain Flies in the Home: Identification & Management” (ANR-3235). aces.edu
- Texas A&M AgriLife Extension. “Drain Flies” (E-184). agrilife.org
- Mississippi State University Extension. “Phorid Flies,” Blake Layton. extension.msstate.edu
- University of Maryland Extension. “Identifying Common Household Insect Pests.” extension.umd.edu
- Colorado State University Extension. “Fungus Gnats as Houseplant and Indoor Pests.” extension.colostate.edu
- Washington State University Extension. “Fungus Gnats.” pestsense.cahnrs.wsu.edu
- National Pesticide Information Center (Oregon State University and U.S. EPA). “Pantry Moths.” npic.orst.edu
- Iowa State University Extension. “Indianmeal Moth.” yardandgarden.extension.iastate.edu
- University of Kentucky Extension. “Stored Product Pests in the Pantry” (ENTFACT-612). entomology.mgcafe.uky.edu

