How to Clean a Fish Tank Filter Without Killing the Good Bacteria

Quick answerTo clean a fish tank filter, unplug it, take out the media and rinse sponges and bio media by squeezing or swishing them in a bucket of water removed from the tank, never under the tap. Scrub the housing, intake tube and impeller with a small brush, put the media back, prime the filter with tank water and plug it in. Clean when flow drops (usually every 2 to 4 weeks), and never replace all the media at once.

A filter does two jobs: it traps dirt, and it houses the colonies of beneficial bacteria that turn toxic ammonia from fish waste into nitrite and then into much safer nitrate. Cleaning only needs to restore the first job without destroying the second. That is why the most common filter “mistakes” are not about too little cleaning but too much: rinsing media under chlorinated tap water, scrubbing it spotless, or throwing out the cartridge every month. This guide covers the safe method for every common filter type, how often to clean, what to do with cartridges, and how to fix a filter that will not restart.

Why filter cleaning goes wrong

The brown, slimy coating on filter media looks like dirt, but much of it is biofilm: the living bacteria that keep your tank safe. In a cycled aquarium, most of these nitrifying bacteria live in the filter, with more on the gravel, decor and glass. If you kill or remove them, ammonia and nitrite can climb within days, a situation known as a mini-cycle or new tank syndrome.

Illustration of a neon tetra in a clean, well-filtered planted aquarium
Most of a tank’s beneficial bacteria live inside the filter.

Three things kill filter bacteria during cleaning:

  • Chlorine and chloramine. Tap water is treated to kill bacteria, and it does not choose which ones. Chewy’s aquarium care guidance and PetSmart’s both say to rinse filter media only in water removed from the tank (or dechlorinated water), never straight tap water.
  • Drying out. The bacteria need water and oxygen. Keep media submerged in a bucket of tank water while you work, and do not leave a filter switched off for hours.
  • Over-cleaning. Scrubbing sponges until they look new or replacing every piece of media at once throws the colony away.

The goal is simple: clean for flow, not for looks.

When does a filter need cleaning?

There is no single calendar date that suits every tank. A big filter on a lightly stocked tank can go a month or more; a small filter on a tank of goldfish or plecos may clog in two weeks. Watch for these signs instead:

  • Water flow from the outlet is noticeably weaker than when the filter was clean
  • Water is bypassing the media (in a hang-on-back filter, it overflows the cartridge instead of passing through it)
  • A sponge filter is producing fewer bubbles or bubbles unevenly
  • The filter is noisier, rattling or humming more than usual
  • Visible sludge has built up on the intake guard or pre-filter sponge
  • Water stays hazy even though your water changes are on schedule

Cloudy water alone is not always a filter problem. A milky-white haze in a new or recently disturbed tank is often a bacterial bloom; see our guide to why a fish tank goes cloudy before you start taking the filter apart.

What you need

  • A clean bucket used only for the aquarium (never one that has held soap or household cleaners)
  • Water from the tank: siphon 1 to 3 gallons (4 to 11 litres) into the bucket during your water change
  • A filter brush or old toothbrush for the intake tube, impeller and housing
  • A long, thin pipe brush if you have a canister filter with hoses
  • Towels for drips
  • Replacement filter floss or worn parts, only if something is falling apart
  • Water conditioner (dechlorinator), in case you need to top up with tap water
Electrical safety first. Always unplug the filter, heater and any other equipment before putting your hands in the tank or opening the filter. Let a heater cool before lifting it out, because a hot heater can crack when it meets cooler water. Wash your hands after maintenance; the CDC advises handwashing after cleaning aquariums because tank water can carry germs such as Salmonella.

How to clean a fish tank filter, step by step

This method works for hang-on-back, internal and box filters. Canister and sponge filters follow the same rules with a few extra steps, covered in the next section.

Illustration of a blue betta swimming in a clean aquarium with plants and sand
Save a bucket of tank water before you start: it is your cleaning water.

Step 1: Save a bucket of tank water

Do your partial water change first and keep 1 to 3 gallons (4 to 11 litres) of the removed water in a clean bucket. This is your cleaning water. It is the right temperature, has no chlorine and already contains the same bacteria.

Step 2: Unplug the filter

Switch it off at the socket. For a hang-on-back filter, lift the unit off the rim or simply open the lid if you can reach the media easily.

Step 3: Remove the media and put it straight into the bucket

Take out sponges, cartridges, floss and bio media and drop them into the bucket so they stay wet. Work in order and note how they came out so they go back the same way.

Step 4: Rinse mechanical media

Squeeze sponges firmly underwater several times until most of the trapped sludge has come out. Swish cartridges and floss through the water. Stop when the sponge is “clean enough” to let water through; a light brown tint is fine and healthy.

Step 5: Gently swish biological media

Ceramic rings, bio balls and bio sponges only need a light swish in the same water to dislodge loose debris. Do not scrub them. If they are not clogged, you can skip this step entirely.

Step 6: Clean the housing, intake and impeller

Wipe out sludge from the filter box. Pull off the intake tube and run a filter brush through it. Remove the impeller cover (usually a twist or clip at the bottom of the motor), slide out the impeller and brush the blades, magnet and the well it sits in. A hair, snail shell or plant fragment wrapped around the impeller is one of the most common causes of weak flow. Rinse these parts in tank water or plain tap water; there is no beneficial bacteria colony worth keeping on the motor parts.

Step 7: Reassemble in the same order

Put the impeller back, making sure it spins freely, then replace the media in its original order: coarse sponge first, then finer media, then bio media.

Step 8: Prime and restart

Fill the filter box with water from the tank (or the bucket) so the pump does not run dry, then plug it in. Hang-on-back filters may gurgle for a minute while air escapes. Check that water is flowing steadily before you walk away.

Step 9: Watch your fish and test the water

Fish should behave normally within an hour. If you cleaned heavily or the tank is young, test ammonia and nitrite over the next few days.

Pro tipStaggering jobs protects the bacteria. Many aquarists clean the filter one to two weeks after a big gravel vacuum rather than on the same day, so the colony is never disturbed in two places at once. Our full fish tank cleaning routine shows how to fit filter care into your weekly schedule.

Cleaning each filter type

Every filter has the same three jobs (mechanical, biological, sometimes chemical), but the layout changes how you clean it.

Filter typeHow to cleanTypical intervalWatch out for
Hang-on-back (HOB)Rinse cartridge or sponge in tank water; brush intake and impellerEvery 2–4 weeks, or when water bypasses the mediaPrime the box with water before restarting
Internal / corner / boxLift out, rinse sponge in tank water, brush the impellerEvery 2–4 weeksSmall sponges clog fast in busy tanks
CanisterDisconnect hoses, carry to a sink, rinse media trays in tank water, clean impeller, brush hoses occasionallyEvery 1–3 months, depending on stockingCheck the lid O-ring; fill fully before switching on
Sponge filterSqueeze sponge in tank water; clean the air stone or air collarEvery 1–4 weeks, often at water changesCheck the air pump and airline too
UndergravelVacuum the gravel above the plate thoroughly; clean uplift tubesWith every water changePlates clog if gravel is never vacuumed

Chewy’s filter guidance puts sponge filters at weekly or water-change cleaning and power, internal and canister filters at one to two times a month or more, depending on tank size and bioload. Treat these as starting points and adjust to what your filter’s flow tells you.

Hang-on-back filters

Most beginner kits use a hang-on-back filter with a slide-in cartridge (floss wrapped round a plastic frame, often with carbon inside). Rinse the cartridge in tank water; do not replace it unless it is falling apart or the floss no longer rinses clean. If your model has a separate bio sponge or “bio-wheel”, leave it alone except for a light swish. When you restart, pour a cup of tank water into the box to prime the pump.

Canister filters

Canisters hold far more media, so they usually go longer between cleans, but each clean is a bigger job.

  1. Unplug the canister and close the hose valves or quick-disconnect so the hoses stay full.
  2. Disconnect and carry the canister upright to a sink or bath. It will be heavy and full of water.
  3. Open the lid and lift out the media trays into your bucket of tank water.
  4. Rinse the coarse sponges and floss; give the bio media trays only a gentle swish.
  5. Pour out the sludge from the bottom of the canister and wipe it out.
  6. Remove the impeller from the head, brush it and its well, and check it spins freely.
  7. Inspect the lid O-ring. It should be clean, seated evenly and not cracked; a bad seal is the most common cause of leaks.
  8. Every few months, run a long pipe brush through the intake and outlet hoses to remove slime that slowly cuts flow.
  9. Reassemble in the original order, fill the canister with tank water, reconnect the hoses, open the valves and use the priming button if your model has one before switching on.

Fluval’s canister manuals say to let the canister fill completely before plugging it in, because plugging in early can stop the self-priming feature working properly, and the unit should never run dry.

Internal and corner filters

These sit inside the tank, usually with a motor on top and a sponge underneath. Unplug, lift the whole unit into the bucket of tank water, pull the sponge off and squeeze it. Clean the impeller the same way as a hang-on-back filter. Many small internal filters have very little sponge, so they clog quickly in tanks with goldfish or large fish.

Sponge filters

Lift the sponge out gently (it will release a cloud of debris, so do it slowly), slip it off the uplift tube and squeeze it several times in your bucket of tank water. Clean the air stone or air collar if bubbles have become weak or uneven, and check the airline tubing for kinks. Run the air pump for a few minutes outside the tank to make sure it still pushes strongly.

Clean or replace? Media-by-media guide

MediaJobHow to cleanWhen to replace
Coarse sponge / foamMechanical and biologicalSqueeze firmly in tank waterOnly when it tears, crumbles or will not spring back; can last years
Filter floss / woolFine mechanical polishingRinse once or twice; it mats quicklyWhen it stays clogged after rinsing (cheap and fine to replace often)
Cartridge (floss on a frame)Mechanical, often with carbonSwish in tank waterWhen the floss is falling apart; stagger replacements
Ceramic rings / bio balls / bio stonesBiologicalLight swish only if cloggedRarely, if ever
Activated carbonChemical (removes odours, tannins, medication)Not cleanableRoughly monthly if you use it, or per the product; remove before medicating
Purigen / resin mediaChemicalRecharged per the maker’s instructionsWhen it no longer recharges
Pro tipCarbon is optional for most freshwater tanks. Regular water changes do most of the same job. If your filter uses carbon-filled cartridges, you can swap the cartridge for a reusable sponge plus a bag of carbon you change separately, so you keep the bacteria when the carbon is spent.

Should you replace filter cartridges every month?

Many filter boxes say to replace the cartridge every month. Experienced fishkeepers widely disagree, and the reasoning is sound: the cartridge is home to a large share of your bacteria, so throwing it away and starting fresh can trigger an ammonia spike. The monthly advice largely comes from the carbon inside, which becomes exhausted over time.

A safer approach:

  1. Rinse, don’t replace, as long as the floss holds together and water flows through it after rinsing.
  2. When a cartridge must go, put the new one in alongside the old one (or behind it) for one to two weeks if there is room, so bacteria can colonise the new one before you remove the old.
  3. If your filter takes two cartridges, never change both on the same day. Replace one, wait a few weeks, then the other.
  4. Add a permanent bio sponge or a small bag of ceramic media in the filter if there is space, so not all the bacteria live on a disposable part.

If you have already replaced everything at once, don’t panic. Some bacteria live on the gravel and decor too. Feed lightly, test ammonia and nitrite daily for two weeks, and do partial water changes if either reads above zero. Our guide on how to get rid of ammonia in a fish tank covers the details.

Filter cleaning schedule by tank type

Use this as a starting point, then let flow be your guide.

TankTypical filter cleanWhy
Lightly stocked planted tankEvery 4–6 weeksLow waste; plants absorb nutrients
Average community tank, 20–40 gal (76–151 L)Every 2–4 weeksStandard bioload
Goldfish, cichlid or pleco tankEvery 1–2 weeks for HOB and internal; monthly for canistersHeavy waste clogs media quickly
Betta or nano tank under 10 gal (38 L)Every 2–4 weeks, gentlySmall filters hold little bacteria; avoid over-cleaning
Fry, shrimp or quarantine tank with sponge filterEvery 1–2 weeksSponges clog with fine debris and uneaten food
Newly cycled tank (first 2–3 months)Only when flow drops noticeablyThe colony is still small; disturb it as little as possible

If you keep goldfish, plan for more frequent filter care; they produce far more waste than tropical community fish of the same size, which is one reason our goldfish tank size guide recommends generous filtration.

Mistakes that crash the nitrogen cycle

MistakeWhat happensDo this instead
Rinsing media under the tapChlorine or chloramine kills the bacteriaRinse in removed tank water or dechlorinated water
Using soap, bleach or detergentResidue poisons fish and bacteriaPlain water and a brush only
Replacing all media at onceMost of the colony is thrown awayStagger replacements weeks apart
Scrubbing sponges spotlessStrips the biofilmSqueeze until flow returns, then stop
Cleaning filter and gravel on the same dayDouble hit to the bacteriaSpace them one to two weeks apart
Leaving the filter off for hoursBacteria starve of oxygen; water inside goes staleClean quickly and restart; if the power was off for hours, rinse the filter before restarting so stale water does not flush into the tank
Running a canister or HOB dryDamages the impeller and motorAlways prime with water first
Boiling or drying bio mediaKills the colony completelyOnly do this to sterilise after disease, then re-cycle

Troubleshooting after cleaning

Illustration of an orange guppy in clear water after filter maintenance
Clear water and steady flow are the signs of a well-kept filter.
ProblemLikely causeFix
Filter won’t start or just humsImpeller not seated, stuck, or the pump has no waterReseat the impeller, check it spins, prime with tank water
Rattling or grinding noiseTrapped air or a dirty or worn impellerTilt or rock the filter to release air; clean or replace the impeller
Weak flow even after cleaningClogged intake tube, slimy hoses, kinked hose or worn impellerBrush tubes and hoses, straighten hoses, check the impeller
Canister leakingLid O-ring dirty, twisted or crackedClean and reseat the O-ring; replace if damaged
Water cloudy a day or two laterBacterial bloom after disturbanceLeave it; it usually clears in a few days. Don’t keep cleaning
Ammonia or nitrite appearsToo much bacteria lostFeed lightly, do partial water changes, test daily until zero
Fish gasping at the surfaceAmmonia spike, or the filter’s surface agitation was off for too longTest water, increase surface movement, see our guide to fish staying at the top of the tank
When to call an aquatic vet. If fish keep gasping, clamping fins, lying on the bottom or dying after you have confirmed ammonia and nitrite are at zero and the filter is running normally, the problem is probably disease rather than filtration. Contact a vet who treats fish, and move any sick fish to a separate tank if you can.

Frequently asked questions

How do I clean a fish tank filter without killing the good bacteria?

Rinse sponges and media only in water you have removed from the tank, squeeze rather than scrub, never replace all media at once, and avoid cleaning the filter on the same day as a deep gravel clean.

Can I clean my filter with tap water?

Not the sponges or bio media, unless the tap water has been treated with dechlorinator first. Untreated tap water contains chlorine or chloramine that kills beneficial bacteria. Plastic parts such as the intake tube and impeller can be rinsed under the tap.

How often should I clean my aquarium filter?

Most filters need attention every two to four weeks, canisters every one to three months and sponge filters every one to four weeks. The best signal is reduced flow, not the calendar.

Should I take the fish out to clean the filter?

No. Fish stay in the tank. Just unplug the filter, clean it quickly and restart it.

Is it OK to turn off the filter overnight?

No. The filter should run all the time. Bacteria inside need a constant flow of oxygenated water, and fish rely on the water movement for oxygen exchange.

Why does my filter media smell bad?

A strong rotten-egg smell usually means sludge has built up so much that parts of the media have stopped getting oxygen. Clean it in tank water more often, and check the filter is the right size for your tank.

Do I need to clean a new filter before using it?

Rinse new sponges, floss and especially carbon in dechlorinated water before use to remove dust that can cloud the water or irritate gills. Follow any maker’s instructions for the specific media.

What is the brown slime inside my filter?

Mostly biofilm made of bacteria, mixed with fine waste. It is normal and healthy. Remove the loose sludge, but expect media to stay brown.

Leave a Comment