Problem Database

What Are Detritus Worms? Why They Appear and How to Control Them

Thin, white, wriggling worms in the substrate or drifting in the water. Almost always harmless — they are a sign of excess waste, not a disease. Here is what they are and how to reduce them.

You spotted thin, white, wriggling worms in the gravel — or a few of them squirming through the water column, especially right after a water change or gravel vacuum. These are almost certainly detritus worms, and the headline is reassuring: they are harmless. They do not attack fish, they do not attack shrimp, and they are a normal part of a functioning aquarium's cleanup crew. What a sudden, visible bloom of them is telling you is something useful — your tank has more organic waste than it is comfortably processing. This page explains what they are, why they appeared, whether to do anything, and how to bring the numbers down if they bother you.

What Detritus Worms Are

"Detritus worms" is a catch-all name for small annelid worms — typically segmented worms in groups like Naididae and related families — that live in aquarium substrate and feed on detritus: decaying plant matter, uneaten food, fish waste, and the organic film in the gravel. They are detritivores, part of the same waste-processing community as beneficial bacteria, breaking down organic matter and recycling it.

A small, mostly invisible population lives in virtually every established, biologically active tank. You generally only notice them when their numbers spike, or when something disturbs the substrate (a gravel vacuum, a water change, a drop in oxygen) and pushes a wave of them up into the water column where you can see them.

Identification: Detritus Worms vs Planaria vs Nematodes

Because "white worms in my tank" sends people into a panic, correct identification matters — mainly to rule out the one worm that can be a problem in shrimp tanks (planaria).

FeatureDetritus wormsPlanaria (flatworm)Nematodes
BodyRound, segmented, thread-likeFlat, ribbon-likeVery thin, smooth
HeadNo defined headDistinct arrow/triangle headNo defined head
MovementWriggle and squirm, often anchored at one end in substrateSmooth glidingWhip-like wriggle
Typical locationSubstrate; drift up after disturbanceGlide on glass and hardscapeGlass and biofilm
Concern levelHarmlessRisk to shrimp eggs/shrimpletsMostly harmless

The key tells for detritus worms: they are round (not flat), they have no distinct head, and they wriggle/squirm rather than glide. If what you see is flat with an arrow-shaped head gliding smoothly on the glass, that is planaria, which is a different situation in a shrimp tank.

Breeder's note: detritus worms and culture worms like microworms are relatives in the broad sense, and the resemblance is why some keepers realize the "pest" in their gravel is essentially the same kind of organism breeders deliberately culture as fry food. The difference is context, not danger.

Are Detritus Worms Harmful?

No. Detritus worms do not harm fish, shrimp, snails, plants, or eggs. They are not parasites and they do not bite or attack anything living — they eat waste. In small numbers they are genuinely beneficial, helping process detritus and contributing to a stable, mature ecosystem. Fish will often eat them, making them a minor bonus food source.

The only real "problem" with a detritus worm bloom is what it signals: a sudden, highly visible population means there is an abundance of organic waste for them to eat. That underlying waste — not the worms themselves — is what can eventually stress your livestock through declining water quality. In other words, treat the worms as a helpful warning light, not as the malfunction.

What Causes a Detritus Worm Bloom

The cause is almost always one or more of the following, all of which come down to excess organic matter or reduced oxygen:

  • Overfeeding — the single most common cause. Uneaten food is a feast.
  • Infrequent substrate cleaning — detritus accumulating in the gravel feeds a growing population.
  • Overstocking — more animals means more waste.
  • Low oxygen / poor flow — worms may surface and become visible when oxygen drops, which is why you sometimes see a wave of them after a warm spell or filter issue.
  • A disturbance — a gravel vac or water change can simply make an existing population briefly visible without any real increase.

Should You Remove Them?

Removal is optional and, strictly speaking, unnecessary — they are harmless. Many experienced keepers simply ignore a modest population. However, a large, persistent bloom is worth responding to, not because the worms are dangerous, but because it is telling you to improve maintenance. Bringing the numbers down is really a side effect of cleaning up the tank.

How to Control Detritus Worms

Every effective method is just good husbandry aimed at the food supply:

  1. Reduce feeding. Feed less and remove any uneaten food promptly. Starve the surplus.
  2. Vacuum the substrate. Regular gravel vacuuming during water changes physically removes both the worms and the detritus they live on. This is the most effective single action.
  3. Increase water changes temporarily. More frequent changes export waste and bring water quality back in line.
  4. Improve flow and oxygen. Better circulation and surface agitation keep the substrate healthier and reduce the low-oxygen surfacing that makes worms visible.
  5. Don't bother with chemicals. Because detritus worms are harmless and their population is controlled by food supply, dosing dewormers is unnecessary and just risks your shrimp and other inverts. Fix the husbandry instead.

Within a week or two of cutting feeding and cleaning the substrate, a detritus worm bloom typically fades back to the invisible background level that lives in every healthy tank.

How Fish Interact With Detritus Worms

Most fish will happily eat detritus worms when they encounter them, treating them as a small live snack — bottom-dwellers and omnivores in particular. This is one reason populations rarely get out of hand in a well-stocked tank: the worms are food. You should not, however, rely on fish to clear a heavy bloom, because the worms breed in the substrate faster than fish can pick them off when there is plenty of waste to sustain them. As always, the real control is removing the food supply.

If anything, the presence of detritus worms — and the broader community of waste-processing microfauna they belong to — is a sign your tank is biologically alive. The Microfauna Database covers the full cast of these organisms, including the ones worth culturing on purpose.

Frequently Asked Questions

Are detritus worms harmful to fish or shrimp?

No. Detritus worms are harmless detritivores that feed on waste, not on living animals. They do not harm fish, shrimp, snails, plants, or eggs, and fish will often eat them. In small numbers they are beneficial, helping process organic waste in the substrate.

Why do I suddenly have detritus worms in my tank?

A visible detritus worm bloom is caused by excess organic waste — usually overfeeding, an under-cleaned substrate, overstocking, or a drop in oxygen that drives the worms up where you can see them. They are present in most established tanks at low levels and only become noticeable when there is plenty of waste to feed on or the substrate is disturbed.

How do I get rid of detritus worms?

Reduce feeding, vacuum the substrate during water changes, and temporarily increase water changes to export waste. Improving flow and oxygen also helps. There is no need for chemicals, since the population is controlled by food supply; better maintenance brings the numbers back to the invisible background level within a week or two.

Are detritus worms the same as planaria?

No. Detritus worms are round, segmented, headless worms that wriggle in the substrate and are harmless. Planaria are flat, ribbon-like flatworms with a distinct arrow-shaped head that glide on the glass and can prey on shrimp eggs and shrimplets. If the worm is flat with a pointed head and glides smoothly, it is planaria, not a detritus worm.

Do I need to remove detritus worms?

Not for safety — they are harmless. Removal is optional and mostly cosmetic. That said, a large bloom is a useful signal to improve maintenance, so reducing feeding and cleaning the substrate is worthwhile for overall water quality, with fewer visible worms as a side effect.