What biofilm is and why it forms in your tank
Biofilm is a thin, slimy layer of bacteria and organic matter that builds up on surfaces in your aquarium — glass, decorations, filters, and substrate. It looks like a cloudy coating or fuzzy film, usually whitish or brownish. It forms because your tank contains nutrients (fish waste, uneaten food, decaying plants) and bacteria that feed on them. The bacteria stick together and create a protective layer that makes them harder to remove than if they were floating freely.
Biofilm itself is not toxic to fish, and a small amount is normal in any established tank. In fact, beneficial bacteria live in biofilm on your filter media and help break down ammonia and nitrite. The problem comes when biofilm grows thick enough to look unsightly, block light from reaching plants, or accumulate so heavily that it reduces water flow through your filter. Heavy biofilm can also trap decaying matter underneath, which degrades water quality.
Key Takeaways
- Biofilm forms from bacteria and organic waste and is normal in small amounts, but thick layers reduce light and water flow.
- The fastest way to remove visible biofilm is manual cleaning with a soft brush or cloth during a partial water change.
- Reducing the food and waste that feed biofilm — by not overfeeding and removing uneaten food — prevents it from returning quickly.
- Increasing water flow and aeration with a stronger filter or air stone slows biofilm growth by making it harder for bacteria to settle.
- Do not use chemical cleaners or antibiotics in your tank; they kill beneficial bacteria and destabilize your nitrogen cycle.
Manual removal during a water change
The most direct way to remove biofilm is to scrub it off during a routine water change. Turn off your filter and heater, then drain 25 to 50 percent of the water into a bucket. Use a soft-bristled brush — a toothbrush works well for small surfaces and decorations — or a non-abrasive sponge to gently scrub the glass, rocks, plants, and any other visible biofilm. For the glass walls, you can also use an algae scraper or magnetic cleaner, which removes biofilm along with algae.
Do not scrub the filter media itself during this cleaning. The biofilm on your filter contains the beneficial bacteria that process ammonia and nitrite; removing it will crash your nitrogen cycle and cause ammonia spikes that harm fish. Instead, rinse filter media only in old tank water that you removed, never in tap water, which kills the bacteria. Refill the tank with fresh dechlorinated water at the same temperature as the tank water, turn equipment back on, and monitor ammonia and nitrite levels over the next few days to make sure they stay at zero.
Reducing the food and waste that feed biofilm
Biofilm grows fastest when there is plenty of organic matter for bacteria to consume. Overfeeding is the single largest cause of excess biofilm. Feed your fish only what they can eat in two to three minutes, once or twice daily depending on species. Remove any food that sinks to the bottom uneaten after a few minutes using a small net or siphon. Dead plant matter and decaying food are especially rich in the nutrients bacteria need, so remove dead leaves and rotting plants as soon as you notice them.
A buildup of detritus — the fine organic sludge that accumulates on the substrate — also feeds biofilm. Vacuum the gravel or sand during water changes, especially in corners and under decorations where waste collects. If you have a planted tank, do not vacuum too aggressively around plant roots, but do remove visible debris. The less organic waste in the water column and substrate, the slower biofilm will grow back after you clean it.
Increasing water flow and aeration
Biofilm settles and thickens in areas of low water flow. Bacteria in biofilm prefer still or slow-moving water because it is easier for them to anchor and grow. Increasing the flow through your tank makes it harder for biofilm to establish. If your filter outlet is pointed at a wall or decoration, redirect it toward the center of the tank so water circulates across all surfaces. You can also add an air stone connected to an air pump, which creates gentle current and increases oxygen — both of which slow biofilm growth.
If you have a canister filter or hang-on-back filter, make sure the intake and outlet are positioned to create circulation throughout the tank rather than dead zones. In larger tanks, a small powerhead (a submersible pump) positioned low in the tank can push water along the substrate and prevent biofilm from accumulating in corners. Increased flow also helps your filter capture more waste before it decays and feeds biofilm, so you get a double benefit.
Why antibiotics and chemical cleaners do not work
You may see recommendations online to use antibiotics, hydrogen peroxide, or other chemical treatments to kill biofilm. Do not use these in a tank with fish. Antibiotics kill bacteria indiscriminately, including the beneficial nitrifying bacteria in your filter that convert ammonia to nitrite and nitrite to nitrate. Removing those bacteria causes ammonia and nitrite to spike to toxic levels within days, which can kill or seriously injure your fish. Hydrogen peroxide can also damage fish gills and disrupt the nitrogen cycle.
The only safe chemical approach is to remove biofilm-covered decorations and filter media to a separate container, treat them with a dilute hydrogen peroxide solution (3 percent) or a weak bleach solution (one part bleach to ten parts water) outside the tank, rinse thoroughly in tap water, and return them only after they are completely dry and any chemical smell is gone. Even then, this is overkill for most situations — manual cleaning and better maintenance prevent biofilm from becoming thick enough to require it.
Biofilm on filter media and intake tubes
Biofilm inside your filter and on intake tubes is harder to see but still worth managing. If your filter flow slows noticeably or your intake tube becomes clogged, biofilm buildup is often the cause. During a water change, remove the intake tube and use a soft brush or old toothbrush to gently scrub the inside, then rinse it in old tank water. For the filter media itself, rinse it gently in old tank water — never tap water — to remove excess biofilm without destroying the beneficial bacteria colony.
If your filter has a pre-filter sponge (the coarse foam layer that catches large debris), this is the part that accumulates the most biofilm and is safe to clean more aggressively. Rinse it thoroughly in old tank water and squeeze it gently to remove trapped waste. A clogged pre-filter reduces flow and forces biofilm to grow thicker downstream, so keeping it clean is one of the easiest ways to prevent biofilm problems.
When biofilm indicates a deeper water quality problem
Occasional biofilm is normal, but if it returns within a few days of cleaning or covers most surfaces in your tank, something is feeding it too much. The most common causes are overfeeding, a filter that is too weak for your tank size, or too many fish for the tank volume. Test your water for ammonia and nitrite — if either is above zero, your filter is not keeping up with the waste your fish produce. You may need a larger or more powerful filter, more frequent water changes, or fewer fish.
Another sign of trouble is if biofilm appears suddenly in a tank that was previously clean. This can mean a fish died and is decomposing, a plant is rotting, or you recently added something that is decaying. Do a thorough inspection of the tank, remove any dead material, and do a 30 to 50 percent water change. If biofilm does not slow down after that, test your water and consider whether you are overfeeding or whether your maintenance schedule needs adjustment.
Frequently Asked Questions
Is biofilm harmful to fish?
Biofilm itself is not toxic, and fish can eat small amounts without harm. The problem is when it grows so thick that it blocks light from plants, reduces water flow, or traps decaying matter that degrades water quality. Thin biofilm is normal and harmless.
Can I use a UV sterilizer to kill biofilm?
A UV sterilizer kills free-floating bacteria in the water column but does not remove biofilm already attached to surfaces. It can help slow biofilm growth by reducing the bacteria population, but it is not a substitute for manual cleaning and maintenance. UV sterilizers also kill beneficial bacteria, so they are not recommended for most home aquariums.
Why does biofilm come back so fast after I clean it?
Biofilm returns quickly when there is plenty of organic waste feeding it. Check that you are not overfeeding, remove uneaten food promptly, and vacuum the substrate during water changes. If biofilm still returns within days, your filter may be undersized for your tank or fish load, and you may need more frequent water changes or a stronger filter.
Should I clean the biofilm off my filter media?
No — the biofilm on your filter media contains beneficial bacteria that process ammonia and nitrite. Rinse filter media only in old tank water to remove excess waste, but do not scrub or aggressively clean it. Destroying the bacteria colony will cause ammonia spikes that harm fish.
Can I use vinegar or baking soda to clean biofilm?
Vinegar and baking soda can be used to clean decorations and equipment outside the tank, but do not add them to the water with fish. They alter pH and can stress or harm fish. Remove biofilm-covered items, soak them in a vinegar solution, scrub gently, rinse thoroughly, and return them only after they are completely dry.