What an aquarium filter does and how it cleans water

An aquarium filter removes waste from your tank water through three separate processes that happen at the same time: mechanical filtration catches solid particles, biological filtration breaks down toxic chemicals using bacteria, and chemical filtration absorbs dissolved substances. Most filters combine all three, though the balance between them depends on what type of filter you own and what lives in your tank.

The filter pulls water in through an intake tube, pushes it through layers of material that trap or transform waste, and returns clean water to the tank. This cycle runs continuously—usually 24 hours a day—so the water passes through the filter multiple times per day. Without this circulation, ammonia and nitrite from fish waste would build up to toxic levels within days.

Key Takeaways

  • Mechanical filtration uses foam, floss, or mesh to trap solid particles like uneaten food and fish waste before they decompose in the tank.
  • Biological filtration relies on beneficial bacteria living in the filter media to convert ammonia (from fish waste) into nitrite, then into less harmful nitrate.
  • Chemical filtration uses activated carbon or other materials to absorb dissolved compounds that mechanical and biological filtration cannot remove.
  • The filter's flow rate—measured in gallons per hour—should turn over your entire tank volume at least three to five times per hour for most setups.
  • Beneficial bacteria take two to four weeks to establish in a new filter, so new tanks need careful water testing and gradual stocking.

Mechanical filtration: trapping solid waste before it breaks down

Mechanical filtration is the first stage water encounters inside the filter. It uses physical barriers—usually foam pads, filter floss, or mesh screens—to catch particles too large to pass through. These particles include uneaten food, fish waste, dead plant matter, and sediment stirred up from the gravel.

This stage matters because solid waste that stays in the tank will decompose and release ammonia, which is toxic to fish even in small amounts. By removing particles before they break down, mechanical filtration reduces the ammonia load your biological filter has to handle. Most filters use multiple layers of increasing fineness, so larger particles get trapped in the first layer and smaller ones in the second or third.

The downside is that mechanical media clogs quickly—usually within one to two weeks depending on how many fish you have and how much you feed them. A clogged filter slows water flow and reduces the oxygen available to beneficial bacteria, so you need to rinse the mechanical media regularly in old tank water (never tap water, which kills the bacteria). Rinsing mechanical media is the most frequent maintenance task you will do.

Biological filtration: bacteria converting ammonia into less toxic forms

Biological filtration is where the actual detoxification happens. Beneficial bacteria colonize the filter media—especially porous materials like sponge, ceramic rings, or lava rock—and convert ammonia (from fish waste) into nitrite, then into nitrate. This process is called the nitrogen cycle, and it is the reason fish can survive in a closed tank at all.

Two main types of bacteria do this work. Nitrosomonas bacteria convert ammonia into nitrite. Nitrobacter bacteria then convert nitrite into nitrate. Nitrate is far less toxic than ammonia or nitrite, and it accumulates in the water over time. You remove nitrate by doing partial water changes—usually 25 to 50 percent of the tank volume every one to two weeks, depending on how heavily stocked your tank is.

The catch is that these bacteria grow slowly. A brand-new filter with no bacteria in it cannot process ammonia at all, which is why new tanks need a "cycling" period of two to four weeks before you add fish, or why you need to add fish very gradually if you are starting with an empty tank. Once the bacteria colony is established, it is remarkably stable—it can survive several days without water flow if the power goes out, though it will shrink if the filter stays off for more than a week.

Chemical filtration: absorbing dissolved compounds

Chemical filtration is the third stage, and it handles substances that mechanical and biological filtration cannot remove. The most common chemical filter material is activated carbon, which is charcoal treated to be extremely porous. Water passes through it, and dissolved compounds—tannins from driftwood, leftover medications, some odors—stick to the carbon's surface.

Activated carbon works well for removing discoloration and odor, but it has limits. It does not remove ammonia, nitrite, or nitrate (those are the biological filter's job), and it becomes saturated after a few weeks, meaning it stops absorbing new compounds. Once saturated, it needs to be replaced—usually every three to four weeks if you are using it actively.

Other chemical media include ion-exchange resins (which remove minerals and help soften water) and specialized materials for specific problems like phosphate removal. Most home aquarium setups do not need chemical filtration beyond carbon, especially if you are doing regular water changes. It is most useful if you have heavily tannin-stained water, are treating a sick fish with medication, or are trying to lower mineral content for sensitive species.

How filter types differ in what they emphasize

Different filter designs prioritize these three stages differently. A hang-on-back filter (the most common type for small to medium tanks) uses a cartridge that combines all three stages in one replaceable unit—usually foam on the outside, carbon in the middle, and more porous material inside. They are cheap and straightforward to maintain, but replacing the cartridge every month also means replacing the beneficial bacteria, which slows down the nitrogen cycle.

A canister filter lets you choose your own media and keep it indefinitely, so the bacteria colony stays stable. You rinse the media in old tank water instead of replacing it, which preserves the bacteria. Canister filters are more expensive upfront and take longer to clean, but they are better for larger tanks and for setups where you want to fine-tune what filtration you are doing.

A sponge filter is just a porous foam block powered by an air pump. It is slow and gentle, making it ideal for fry (baby fish) or very small tanks, but it cannot handle the bioload of a heavily stocked tank. An undergravel filter uses the gravel itself as the filter media, which works well biologically but is hard to clean and can trap waste underneath.

Flow rate: how fast water needs to move through the filter

The flow rate of a filter is measured in gallons per hour (GPH) and tells you how much water the filter moves. A general rule is that the filter should turn over your entire tank volume three to five times per hour. So a 20-gallon tank needs a filter rated for 60 to 100 GPH.

A faster flow rate is not always better. If water moves too quickly through the filter media, it does not spend enough time in contact with the bacteria, and the bacteria cannot process all the ammonia. A slower flow gives bacteria more time to work but means waste sits in the tank longer. The three-to-five-times-per-hour range is a balance that works for most community tanks with standard fish.

Heavily stocked tanks or tanks with fish that produce a lot of waste (like goldfish or plecos) may need a higher flow rate—up to ten times per hour. Tanks with delicate fish or plants that prefer gentle water may do better with a slower rate. If you are not sure, start in the middle of the range and adjust based on water test results.

Maintenance: keeping the filter working without killing the bacteria

The most important rule of filter maintenance is this: rinse mechanical media in old tank water, never in tap water. Tap water contains chlorine and chloramine, which kill beneficial bacteria when ready. Old tank water—the water you remove during a water change—is safe and will not harm the bacteria living in your filter.

Rinse the mechanical stage (foam or floss) every one to two weeks, or whenever water flow slows noticeably. Rinse it gently; you are just removing trapped particles, not sterilizing it. The biological media (sponge, ceramic, or lava rock) should rarely need rinsing—only if it becomes so clogged that water barely flows through it. Even then, a gentle rinse in old tank water is enough.

Replace chemical media (activated carbon) every three to four weeks if you are using it. If your filter has a replaceable cartridge, you have a choice: replace it monthly as the manufacturer suggests (which is easier but restarts the bacteria cycle each time), or rinse it in old tank water and keep it until it visibly falls apart (which preserves bacteria but requires more hands-on maintenance). Many experienced aquarists choose the second option for established tanks.

Frequently Asked Questions

Can I turn off my filter at night to save electricity?

No. Beneficial bacteria need oxygen constantly, and fish produce ammonia 24 hours a day. Turning off the filter even for a few hours allows ammonia to spike and bacteria to start dying. If you need to reduce electricity use, a smaller filter running all the time is safer than a larger filter running part-time.

What does it mean if my filter is making a loud noise?

Noise usually means the intake is clogged with debris, the impeller (the spinning part) is loose, or air is being sucked into the line. Check that the intake tube is not blocked, make sure the filter is sitting level, and look for cracks in the intake. If the noise is a grinding sound, the impeller may be damaged and the filter may need repair or replacement.

How do I know if my filter is too weak for my tank?

Test your water for ammonia and nitrite. If either reads above zero after the tank has been running for more than a month, the filter is not keeping up. You may be overstocked, overfeeding, or the filter's flow rate is too low. A stronger filter or fewer fish will fix the problem.

Do I need to replace the filter media if I move the tank?

No. As long as the filter stays wet and running during the move, the bacteria will survive. If the filter dries out or sits unplugged for more than a few hours, some bacteria will die, but the colony will recover within a few days once the filter is running again in the new location.

Can beneficial bacteria grow in the tank itself, or only in the filter?

Bacteria grow everywhere there is surface area and water flow—in the gravel, on the glass, on plants and decorations. But the filter is where most of the colony lives because it has the most surface area and the most water flow. This is why a filter is essential; the tank surfaces alone cannot process enough ammonia for most setups.