Biofilm in an aquarium is a slimy layer of bacteria and other microorganisms that coats glass, equipment, driftwood, and the water surface. You can’t eliminate it entirely, since biofilm is a natural part of every aquatic environment, but you can control it with the right combination of water movement, regular cleaning, and biological grazers that eat it faster than it grows.
What Biofilm Actually Is
Biofilm forms when bacteria settle on a surface and begin producing a sticky, gel-like substance called extracellular polymeric substance, or EPS. This matrix is made of polysaccharides, proteins, glycolipids, and even strands of DNA. It acts like a protective housing, holding the bacterial colony together, retaining water, and trapping nutrients and enzymes close to the cells that need them. Think of it as a microscopic city where bacteria build their own infrastructure.
This matrix is surprisingly tough. It gives the colony mechanical stability, which is why biofilm clings to surfaces even in flowing water and resists a casual rinse. Once established, the structure becomes self-reinforcing: the bacteria produce more EPS, which attracts more microorganisms, which produce more EPS. That’s why a thin film on your glass can turn into a visible slime layer within days if left unchecked.
A thin biofilm isn’t necessarily harmful. It’s part of the biological ecosystem in your tank, and many beneficial bacteria live within it. The problems start when biofilm gets thick enough to cloud your glass, coat your filter intake, or form a greasy-looking surface scum that blocks gas exchange at the waterline.
Surface Agitation Is Your Best Tool
The most effective and cheapest way to prevent surface biofilm is an airstone. Bubbles breaking at the water surface disrupt the film far more effectively than water flow alone. A powerhead or filter return pointed at the surface creates movement, but the physical action of bubbles popping at the waterline is uniquely good at breaking apart the bacterial matrix and sinking it before it can accumulate into a visible scum.
If you already run a hang-on-back or canister filter, check that its outflow creates visible rippling at the surface. A spray bar positioned just below the waterline works well for canister setups. For tanks where surface agitation isn’t ideal (some planted tanks or betta setups where you want minimal current), even a small airstone on a low setting in one corner can make a noticeable difference. You don’t need a rolling boil of bubbles. Gentle, consistent disruption is enough to keep the surface clear.
Cleaning Frequency That Actually Works
Most aquarists wipe their glass every three to five days using a magnetic cleaner. That’s the sweet spot for keeping biofilm thin enough that it never becomes an eyesore. A magnetic float left in the tank makes this almost effortless: a quick pass across each visible panel takes seconds.
How often you need to clean depends on your tank’s nutrient load. Heavily stocked or heavily fed tanks produce more organic material for bacteria to feed on, so biofilm returns faster. Some hobbyists with large, well-lit tanks report scraping every two to three days. Others with lightly stocked setups go two weeks between cleanings without issue. The key is consistency. A quick wipe every few days takes far less effort than scrubbing off a week-old biofilm that’s hardened into a stubborn coating.
Don’t forget equipment. Filter intakes, heater housings, and tubing all collect biofilm. Rinsing these in old tank water during your regular water change (every one to two weeks for most tanks) prevents buildup from restricting flow or reducing heater efficiency.
Livestock That Graze Biofilm Naturally
Several popular aquarium species eat biofilm as a primary food source, and adding them to your tank creates a living cleanup crew that works around the clock.
- Shrimp: Amano shrimp, Neocaridina (cherry shrimp), and Caridina shrimp are constant biofilm grazers. They pick at every surface in the tank, including plants, driftwood, and substrate. A group of six to ten in a moderately sized tank makes a visible dent in film buildup.
- Otocinclus catfish: These small, peaceful fish spend most of their time pressed against glass and leaves, scraping off biofilm and soft algae. They do best in groups of at least four or five.
- Nerite snails: Nerites are relentless surface grazers. A couple in a 10 to 20 gallon tank will keep glass and hardscape noticeably cleaner. They also can’t reproduce in freshwater, so you won’t end up with a snail population explosion.
- Plecos and Panda Garra: Bristlenose plecos and Panda Garra both graze biofilm off rocks and wood. They need more space than the options above, but they’re effective in tanks 30 gallons and up.
These species reduce biofilm but won’t eliminate it from glass panels entirely. You’ll still need to wipe the viewing panes. Where they really shine is on driftwood, rocks, plant leaves, and other surfaces you can’t easily scrub by hand.
Reducing the Nutrients That Feed Biofilm
Biofilm bacteria thrive on dissolved organic compounds, so anything that reduces organic waste in the water column slows biofilm growth at the source.
Overfeeding is the biggest contributor. Uneaten food breaks down into exactly the kind of dissolved organics that fuel bacterial growth. Feed only what your fish consume within two to three minutes, and remove anything left over. If you’re finding food on the substrate hours after feeding, you’re putting in too much.
Regular water changes dilute the dissolved organics that accumulate between cleanings. A 20 to 25 percent change weekly is standard for most freshwater tanks. Tanks with higher bioloads benefit from larger or more frequent changes. Keeping your filter media clean (rinsed in old tank water, not tap water) ensures the filter is actually processing waste rather than becoming a biofilm incubator itself.
Overstocking plays a role too. More fish means more waste, more dissolved proteins, and more fuel for biofilm. If your tank develops persistent, heavy biofilm despite good maintenance habits, it may simply have more inhabitants than the filtration can keep up with.
Surface Scum vs. Glass Biofilm
These are related but slightly different problems. The oily-looking film on the water surface is a mix of proteins, lipids, and bacteria that collects at the air-water boundary. It’s particularly common in tanks with no surface movement, and it can interfere with oxygen exchange. An airstone or surface skimmer solves this almost immediately.
Glass biofilm is the greenish or brownish haze on your tank walls. It’s driven more by light and nutrients than by surface conditions. Reducing your photoperiod to six to eight hours a day, keeping the tank out of direct sunlight, and managing nutrient levels all help slow its return between cleanings. A magnetic glass cleaner used every few days keeps it from ever getting thick enough to notice.
Both types respond to the same fundamentals: control organic waste, maintain water movement, clean surfaces regularly, and let biological grazers handle the spots you can’t reach.

