What Causes Biofilm in Aquariums and Is It Bad?

Biofilm forms in every aquarium, without exception. It develops when bacteria land on a submerged surface and begin secreting a sticky, gel-like matrix of sugars and proteins that anchors them in place. This matrix, made up mostly of glucose-based polysaccharides, allows the bacteria to build a living colony that feeds on dissolved organic compounds in your water. The real question isn’t whether biofilm will appear, but what makes it grow thick enough to notice.

How Biofilm Actually Forms

Within minutes of filling a new aquarium, bacteria begin attaching to every surface: glass, substrate, filter media, driftwood, and decorations. These early colonizers produce an extracellular matrix, essentially a protective slime layer, that helps them stick and shields them from being swept away by water flow. Once that first layer is established, more bacteria arrive and build on top of it, creating the white or translucent film you see on surfaces.

The matrix is primarily made of polysaccharides, with glucose as the dominant sugar. This sticky scaffolding traps nutrients, organic particles, and even other microorganisms, turning a thin bacterial coating into a complex living community. In low-light areas, the biofilm stays bacterial. On surfaces exposed to aquarium lighting, algae and other photosynthetic organisms join in, shifting the biofilm from a clear or white slime to a greenish or brownish coating.

Dissolved Organics Are the Main Fuel

The single biggest driver of biofilm growth is dissolved organic carbon in the water. Every time you feed your fish, uneaten food breaks down and releases organic compounds. Fish waste, decaying plant matter, and even tap water additives contribute to this invisible nutrient load. Biofilm organisms absorb these dissolved organics directly from the water column, and they do it fast. Research on microbial biofilms shows that uptake rates climb in direct proportion to the concentration of dissolved organics, following a predictable logarithmic curve. In other words, the more organic material in your water, the faster biofilm consumes it and the faster it grows.

Phosphorus compounds accelerate the process further. When both dissolved organic carbon and soluble reactive phosphorus are elevated, biofilm uptake rates increase significantly. This is why aquariums with heavy feeding schedules, overstocked tanks, or infrequent water changes tend to develop the thickest biofilm. The nutrients are simply more abundant.

Nutrient Imbalances That Accelerate Growth

Nitrate and phosphate levels play a direct role in how aggressively biofilm and its algal components spread. In a planted aquarium, the target range for nitrates is roughly 10 to 20 ppm, with phosphates between 0.5 and 2 ppm. When levels climb above those ranges, the excess nutrients feed biofilm organisms and algae rather than plants. Nitrate concentrations above 50 ppm can stress sensitive fish species while simultaneously fueling microbial overgrowth.

Phosphates alone aren’t toxic to fish, but elevated phosphate promotes algal biofilm, which reduces oxygen levels in the water and creates the green, slimy coatings on glass and decorations. The key factor is balance. When plants or corals can’t consume nutrients as fast as they accumulate, biofilm organisms fill the gap. Cloudy water, filamentous algae, and green glass are all signs that dissolved nutrients have outpaced the tank’s ability to process them.

How Light Changes Biofilm Composition

Light doesn’t just encourage algae growth on its own. It fundamentally changes what kind of biofilm develops. In dark or dimly lit areas of your tank, biofilm stays dominated by heterotrophic bacteria, the organisms that feed on dissolved organics. These are the white or translucent films you see on driftwood or inside filter housings. Under aquarium lighting, photosynthetic algae colonize the biofilm and begin producing their own polysaccharides, thickening the matrix.

Light spectrum matters too. Blue light (400 to 500 nm) and red light (600 to 700 nm) both increase polysaccharide production in algal biofilms compared to white light. Since many aquarium LEDs emphasize blue and red wavelengths to enhance plant growth or coral coloration, they can inadvertently boost algal biofilm production on nearby surfaces. Longer photoperiods, especially beyond 8 to 10 hours per day, give photosynthetic biofilm organisms more time to build up.

Thick biofilms develop a layered structure. The outer surface stays green and photosynthetic, but the deeper layers become light-starved and shift back to bacterial dominance. When this lower layer can’t get enough nutrients or light, it detaches from the surface in sheets, which is why you sometimes find chunks of biofilm floating in the water or peeling off driftwood.

Surface Area and Texture

Biofilm colonizes rough, porous surfaces far more readily than smooth ones. This is why new driftwood, unglazed ceramics, and lava rock develop visible biofilm before glass does. The tiny crevices and pores give bacteria more attachment points and shelter from water flow. It’s also why filter media is designed with high surface area in mind: you want dense biofilm inside your filter because that’s where beneficial bacteria do their work.

The relationship between surface area and biofilm capacity is dramatic. A cubic foot of pot scrubbers, for example, can support roughly seven times the bacterial load of a cubic foot of ceramic rings. But there’s a trade-off. Media with very small openings, below about 2.5 millimeters, clogs faster as biofilm and organic debris accumulate. The ideal pore size for sustained biofilm health sits around 2.5 to 3 millimeters, large enough to resist clogging while still providing substantial surface area.

Diet also plays a surprising role in filter biofilm. Higher-protein fish foods (around 50% protein) produce roughly two and a half times the filter efficiency and resist clogging much longer than lower-protein foods (around 30%). This happens because low-protein foods have a higher carbon-to-nitrogen ratio, which causes non-beneficial biomass to build up faster and smother the helpful bacterial colonies underneath.

Not All Biofilm Is a Problem

Most of the biofilm in a healthy aquarium is doing useful work. Nitrifying bacteria, the ones that convert toxic ammonia into nitrite and then into less harmful nitrate, live almost exclusively in biofilm. Your filter’s biological filtration depends entirely on this bacterial film coating the media surfaces. Without it, ammonia levels would spike and fish would die. Biofilm also plays roles in breaking down organic waste and cycling nutrients through the tank ecosystem.

Many aquarium animals actively eat biofilm. Shrimp, otocinclus catfish, snails, and plecos graze on it constantly. For newly hatched shrimp and small fry, biofilm is often the primary food source in their first days of life. In aquaculture research, shrimp raised with access to biofilm-covered substrates achieved nearly the same growth rates as fully fed shrimp while consuming 35% less artificial food. The biofilm provided enough supplemental nutrition to make up the difference.

The biofilm that concerns most aquarists is the thick, unsightly coating that appears on glass, decorations, and new driftwood. This is cosmetically annoying but usually harmless. It tends to be heaviest in the first few weeks after setting up a tank or adding new hardscape, then tapers off as the bacterial community stabilizes and grazing organisms keep it in check. Persistent heavy biofilm on visible surfaces is a signal to check your feeding amounts, nutrient levels, lighting duration, and water change schedule rather than a sign of something dangerous happening in the tank.