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.
In this guide
- Why filter cleaning goes wrong
- When does a filter need cleaning?
- What you need
- How to clean a fish tank filter, step by step
- Cleaning each filter type
- Clean or replace? Media-by-media guide
- Should you replace cartridges every month?
- Filter cleaning schedule
- Mistakes that crash the cycle
- Troubleshooting after cleaning
- FAQ
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.

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
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.

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.
Cleaning each filter type
Every filter has the same three jobs (mechanical, biological, sometimes chemical), but the layout changes how you clean it.
| Filter type | How to clean | Typical interval | Watch out for |
|---|---|---|---|
| Hang-on-back (HOB) | Rinse cartridge or sponge in tank water; brush intake and impeller | Every 2–4 weeks, or when water bypasses the media | Prime the box with water before restarting |
| Internal / corner / box | Lift out, rinse sponge in tank water, brush the impeller | Every 2–4 weeks | Small sponges clog fast in busy tanks |
| Canister | Disconnect hoses, carry to a sink, rinse media trays in tank water, clean impeller, brush hoses occasionally | Every 1–3 months, depending on stocking | Check the lid O-ring; fill fully before switching on |
| Sponge filter | Squeeze sponge in tank water; clean the air stone or air collar | Every 1–4 weeks, often at water changes | Check the air pump and airline too |
| Undergravel | Vacuum the gravel above the plate thoroughly; clean uplift tubes | With every water change | Plates 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.
- Unplug the canister and close the hose valves or quick-disconnect so the hoses stay full.
- Disconnect and carry the canister upright to a sink or bath. It will be heavy and full of water.
- Open the lid and lift out the media trays into your bucket of tank water.
- Rinse the coarse sponges and floss; give the bio media trays only a gentle swish.
- Pour out the sludge from the bottom of the canister and wipe it out.
- Remove the impeller from the head, brush it and its well, and check it spins freely.
- Inspect the lid O-ring. It should be clean, seated evenly and not cracked; a bad seal is the most common cause of leaks.
- Every few months, run a long pipe brush through the intake and outlet hoses to remove slime that slowly cuts flow.
- 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
| Media | Job | How to clean | When to replace |
|---|---|---|---|
| Coarse sponge / foam | Mechanical and biological | Squeeze firmly in tank water | Only when it tears, crumbles or will not spring back; can last years |
| Filter floss / wool | Fine mechanical polishing | Rinse once or twice; it mats quickly | When it stays clogged after rinsing (cheap and fine to replace often) |
| Cartridge (floss on a frame) | Mechanical, often with carbon | Swish in tank water | When the floss is falling apart; stagger replacements |
| Ceramic rings / bio balls / bio stones | Biological | Light swish only if clogged | Rarely, if ever |
| Activated carbon | Chemical (removes odours, tannins, medication) | Not cleanable | Roughly monthly if you use it, or per the product; remove before medicating |
| Purigen / resin media | Chemical | Recharged per the maker’s instructions | When it no longer recharges |
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:
- Rinse, don’t replace, as long as the floss holds together and water flows through it after rinsing.
- 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.
- If your filter takes two cartridges, never change both on the same day. Replace one, wait a few weeks, then the other.
- 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.
| Tank | Typical filter clean | Why |
|---|---|---|
| Lightly stocked planted tank | Every 4–6 weeks | Low waste; plants absorb nutrients |
| Average community tank, 20–40 gal (76–151 L) | Every 2–4 weeks | Standard bioload |
| Goldfish, cichlid or pleco tank | Every 1–2 weeks for HOB and internal; monthly for canisters | Heavy waste clogs media quickly |
| Betta or nano tank under 10 gal (38 L) | Every 2–4 weeks, gently | Small filters hold little bacteria; avoid over-cleaning |
| Fry, shrimp or quarantine tank with sponge filter | Every 1–2 weeks | Sponges clog with fine debris and uneaten food |
| Newly cycled tank (first 2–3 months) | Only when flow drops noticeably | The 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
| Mistake | What happens | Do this instead |
|---|---|---|
| Rinsing media under the tap | Chlorine or chloramine kills the bacteria | Rinse in removed tank water or dechlorinated water |
| Using soap, bleach or detergent | Residue poisons fish and bacteria | Plain water and a brush only |
| Replacing all media at once | Most of the colony is thrown away | Stagger replacements weeks apart |
| Scrubbing sponges spotless | Strips the biofilm | Squeeze until flow returns, then stop |
| Cleaning filter and gravel on the same day | Double hit to the bacteria | Space them one to two weeks apart |
| Leaving the filter off for hours | Bacteria starve of oxygen; water inside goes stale | Clean 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 dry | Damages the impeller and motor | Always prime with water first |
| Boiling or drying bio media | Kills the colony completely | Only do this to sterilise after disease, then re-cycle |
Troubleshooting after cleaning

| Problem | Likely cause | Fix |
|---|---|---|
| Filter won’t start or just hums | Impeller not seated, stuck, or the pump has no water | Reseat the impeller, check it spins, prime with tank water |
| Rattling or grinding noise | Trapped air or a dirty or worn impeller | Tilt or rock the filter to release air; clean or replace the impeller |
| Weak flow even after cleaning | Clogged intake tube, slimy hoses, kinked hose or worn impeller | Brush tubes and hoses, straighten hoses, check the impeller |
| Canister leaking | Lid O-ring dirty, twisted or cracked | Clean and reseat the O-ring; replace if damaged |
| Water cloudy a day or two later | Bacterial bloom after disturbance | Leave it; it usually clears in a few days. Don’t keep cleaning |
| Ammonia or nitrite appears | Too much bacteria lost | Feed lightly, do partial water changes, test daily until zero |
| Fish gasping at the surface | Ammonia spike, or the filter’s surface agitation was off for too long | Test water, increase surface movement, see our guide to fish staying at the top of the tank |
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.