BlogMaintenance

White Worms on Aquarium Glass: Planaria or Detritus Worms?

November 23, 2026

What are those tiny white worms on your aquarium glass?

The tiny white worms you are seeing are almost certainly one of two things: planaria (free-living flatworms) or detritus worms (segmented, thread-like worms). Both are common in freshwater tanks, both are small enough to be alarming, and both have different causes and different fixes. Identifying which one you have is the first step, and you can usually do it in a few minutes with nothing more than a magnifying glass and a close look at how they move.

What causes white worms to appear in your aquarium?

Both worm types share a common trigger: excess organic waste in the tank, most often from overfeeding.

Detritus worms live naturally in the substrate and feed on uneaten food, fish waste, and decaying plant matter. A small population is normal and actually helpful, breaking down waste before it degrades water quality. The problem appears when their food supply grows unchecked. Too much food and poor maintenance cause a population explosion, and when you start seeing large numbers leaving the substrate and moving up into the water column, that is a warning sign of low dissolved oxygen and excess waste building up in the tank.

Planaria are flatworms that usually arrive as hitchhikers on new live plants, live food, shrimp, snails, fish, or substrate and decorations moved from another tank. Even shared nets can carry them. A few hitchhikers rarely cause visible problems on their own. Populations boom when overfeeding gives them plenty of organic matter to thrive on, which is why a tank that picks up a few planaria during a plant order may show no worms for weeks, then suddenly show dozens.

How to tell if your worms are planaria or detritus worms

Movement is the fastest and most reliable clue.

Planaria glide. They move across the glass with a smooth, steady motion, no wriggling. If you watch one for a few seconds, it looks almost mechanical in how it travels. Under a magnifying glass you may see a flat body and two small eyespots on the head that often make them look cross-eyed. Many sources describe the head as triangular, though head shape does vary between species, so look for the flat body and eyespots alongside the head shape. Adult planaria range from about 2.5 mm to 15 mm in length (roughly 0.1 to 0.6 inch), with some adults reaching about 2 cm (about 0.8 inch). They are also light-sensitive and most active when the lights are off, so turning off your tank lights and checking after dark will often reveal more of them.

Detritus worms wriggle. They are thin and hair-like, white to whitish-brown, and they thrash around rather than glide. You will usually find them down in the substrate or poking out of gravel. Seeing large numbers swimming actively up into the water column is a specific signal that conditions in the tank have deteriorated.

One other worm worth knowing about: Rhabdocoela are small flatworms that are easily mistaken for planaria. Unlike planaria, they are generally considered harmless.

A quick summary of what to look for:

  • Gliding motion, flat body, possible eyespots: planaria
  • Wriggling, thin and thread-like, lives in substrate: detritus worms

What to do if you have detritus worms

Do not reach for medications. Detritus worms do not harm live fish or invertebrates, and dewormers are not the right tool here. The fix is a maintenance correction.

  • Cut back on feeding immediately. Overfeeding is almost always the root cause.
  • Vacuum the substrate thoroughly with a gravel vacuum, working in sections over several days rather than doing a complete clean in one session. Doing it all at once can shock your fish and disrupt your filter bacteria.
  • Do partial water changes alongside the vacuuming, again spread over several days for the same reason.

Once the food supply is reduced and the substrate is cleaner, the population will come back down to a manageable level on its own. Going forward, keep feeding light, remove uneaten food promptly, and vacuum the substrate regularly to prevent a repeat.

What to do if you have planaria

Step one is always to cut back on feeding. Reducing their food supply slows planaria growth and reproduction and is the foundation of any control effort.

Trapping is a low-risk next step. A planaria trap is a small container with entry holes, baited with a piece of raw meat or raw shrimp and placed in the tank overnight. In the morning, remove and empty it. Traps reduce visible numbers but do not catch eggs and will not eradicate a population on their own.

Do not crush or cut planaria. Each piece can regenerate into a new worm.

Fenbendazole (the active ingredient in the dog dewormer Panacur C) is used off-label by hobbyists to kill planaria in aquariums. A few important points before using it:

  • Fenbendazole will kill aquarium snails. Any snails you want to keep must be moved to a separate, untreated tank before you treat.
  • Sources disagree on whether fenbendazole is safe for shrimp. Some hobbyists report using it in shrimp tanks without harm, while others caution that it can harm sensitive shrimp or that its safety for shrimp has not been established. If your tank houses shrimp you care about, research this further before treating.
  • Planaria eggs are tough and are not killed by most medications, meaning new worms can hatch after adults are killed. Monitor the tank after treatment and be prepared to repeat.
  • After treatment, remove dead worms and watch water quality closely.

To prevent planaria from returning: quarantine and inspect new plants and animals before adding them to your tank, avoid adding transport or culture water from outside sources, and use separate or disinfected nets and equipment for each tank. Keep feeding light and substrate clean so that any stray hitchhikers never get enough food to build a visible population.

Do these worms harm your fish?

Detritus worms do not harm live fish or invertebrates at any life stage. They are waste processors, not predators.

Planaria are a different matter for some tank inhabitants. They are a real threat to shrimp eggs, baby shrimp, snail eggs, and fish eggs and fry. They can sometimes attack adult shrimp as well. Healthy adult fish are not at risk from planaria, so if your tank is a community fish setup without shrimp or fry, the urgency is lower, though controlling the population is still worthwhile.

Frequently asked questions

Can I remove planaria by squishing them on the glass?

No. Crushing or cutting planaria does not kill them. Each fragment can regenerate into a new worm, so squishing them will make the problem worse rather than better.

Are the worms dangerous to my healthy adult fish?

Detritus worms pose no danger to fish at any stage. Planaria are not a threat to healthy adult fish either, but they are a serious risk to shrimp, fry, and eggs. If your tank houses shrimp or you are breeding fish, treat planaria promptly.

Why do I keep seeing worms even after I cleaned the tank?

If the worms returned after a cleaning, overfeeding is likely still happening, or the cleanup was done all at once and stirred up eggs and surviving worms without fixing the root cause. Cut back on feeding and spread substrate vacuuming and water changes over several days rather than doing a single large clean.

My worms look like planaria but they seem harmless. Could they be something else?

Yes. Rhabdocoela are small flatworms that look similar to planaria and are generally considered harmless. Because they are easy to confuse with planaria, check carefully for the combination of flat body, eyespots, and gliding movement before deciding which worm you have.

Will planaria medications harm my snails or shrimp?

Fenbendazole, commonly used against planaria, will kill aquarium snails. Move any snails you want to keep to a separate tank before treatment. Its safety for shrimp is not fully settled: some hobbyists use it without reported harm, while others report or caution against risk to sensitive shrimp. Research the specific shrimp species you keep before treating.

If you want a faster answer specific to your tank, run your water readings through TankMind's /diagnose tool to pinpoint what is driving the problem in your setup.

Want this pinned down for your own tank? Get a free diagnosis from your actual water readings.

planariadetritus wormsaquarium pests
Add TankMind as a preferred source

If this was useful, this tells Google to surface TankMind more often in your Search results.

Free guide

The Annual Maintenance Calendar

What to do each month, because equipment ages on a schedule

Get the free guideStart your free tank log