Why Does My Aquarium Have Foam? What Keeps the Bubbles From Popping

10 min read

The short answer

Foam means something in the water is holding bubbles together: splashing, organic waste such as leftover food, a medication, an oily film, or soap. Splash foam is normal. Lingering foam with no rainbow tint and no medication in the water means test ammonia and nitrite. Sudsy, rainbow-tinted foam usually means soap.

What keeps the bubbles from popping

The Spruce Pets, a pet-care publication, describes foam as “tiny capsules of gas (oxygen or carbon dioxide) trapped in a film made of one of the following substances”: agitated water, soap, protein (dissolved organic waste) or fish saliva.

The sources split on freshwater tanks. The Spruce Pets says protein foam “is more prevalent in saltwater aquariums but is seen occasionally in freshwater tanks as well”; Aquarium Science, a non-commercial hobbyist reference covering freshwater only, says “floating bacteria, fats and oils, yes, floating protein no”.

Match the foam to its cause

What you seeUsual causeFirst move
Large bubbles while filling, gone soonSplashingPour more gently
Foam that lingers, may smellOrganic wasteTest ammonia and nitrite
Clear foam while a medication is in the waterThe medicationFollow its label
Sudsy, rainbow-tinted bubblesSoap or cleaner (if soap could have reached the tank)Move the fish (freshwater steps below)
Bubbles held in a gooey filmOily surface filmMore surface movement
A raft of bubbles from a male betta or gouramiBubble nestTry not to disturb it
Foam in a reef skimmer’s cupThe skimmer workingEmpty the cup

Causes and first moves are from The Spruce Pets and Aquarium Co-Op, quoted below. Bubbles that pop at once are not foam; our guide to bubbles in an aquarium covers those.

Foam after a water change or refill

Some foam while filling is “normal and not harmful”, The Spruce Pets says. To make less:

Pour slowly onto a surface

Aquael, a filter and aquarium maker, suggests pouring “on the glass or on the plant leaves”; The Spruce Pets suggests pouring “against a clean plate held at an angle”.

Use a bucket that has never held soap

Aqueon, an aquarium equipment maker, says: “Don’t use buckets, scrub pads or any other equipment on your aquarium that have been used with soap or other chemicals.”

In a freshwater tank, treat and match the new water

Aqueon: “Always treat tap water with a water conditioner to neutralize chlorine and ammonia before adding it to the aquarium”, and “Replacement water should be the same temperature as the aquarium water.” These sources do not cover saltwater refills.

Lingering foam: waste in the water

The Spruce Pets calls this protein foam, formed by “organic waste (feces, dead fish, and uneaten food)”, and says “Protein foam is not an emergency, but it needs to be addressed because it can decrease your tank’s oxygen over time.” Aquarium Co-Op, an aquarium retailer writing about freshwater tanks, says foam with no medication in the tank “may be a sign of excess ammonia or other harmful chemicals in the water”, visible only with “a sponge filter or something creating bubbles” running.

The feeding, water-change and zero-reading figures below come from freshwater sources; none here gives them for saltwater, so reef keepers should check with their livestock supplier or equipment maker. In order:

Test ammonia and nitrite first

Aqueon’s freshwater water-quality page says “The only safe ammonia level is zero” and “The only safe nitrite level is zero.” In a new tank, API, a test-kit maker, says to test ammonia “every other day until the ammonia level measures 0 parts per million (ppm) or mg/L”. Above zero, our guide to high ammonia in an aquarium covers the causes and fixes.

Count the fish and look behind the decor

The Spruce Pets says “A disintegrating fish corpse is a rich source of protein and frequently the root cause of protein foam”, and “Decaying plants can also produce protein wastes”, so remove dead leaves.

Feed less and remove leftovers

Aqueon says to feed “only what they can consume in 2 minutes or less, once or twice daily” and to “Remove any food that remains after 5 minutes with a siphon or fine mesh fish net.”

Vacuum part of the gravel during a partial water change

Seachem, a water-treatment maker, recommends cleaning “about 1/3 of the substrate with every water change (once per week)” to avoid “the ammonia and nitrite spikes that can result from over-enthusiastic gravel cleaning”. Aqueon says “Avoid water changes of more than 25%”; Practical Fishkeeping, a UK fishkeeping magazine, recommends “weekly changes between 10-25%”. So in a freshwater tank, change no more than 25% at once.

Clean the filter gently, if due

The Spruce Pets says to make sure the filter is clean; Practical Fishkeeping cautions: “Only wash filter media in old tank water, not under the tap, and always replace media bit by bit, not all at the same time.”

Medication and other additives

Aquarium Co-Op says some fish medicines cause foaming “because they change the viscosity or thickness of the water”, and this foam “tends to form clear, transparent bubbles”. The Spruce Pets says foam from medications such as antibacterial treatments “is not harmful and should dissipate within a few days of ending the course of treatment.”

If a treatment is in the water, follow its label. Whether and how to treat fish is a question for an aquatic veterinarian. In a reef tank, a protein skimmer can also remove medications (see below).

Rainbow, sudsy foam: soap

The Spruce Pets says soap gets in “via cleaning materials, such as the water bucket or scrubbing pads”, and even a little “will usually cause sudsy rainbow-tinted bubbles”. Aquarium Co-Op says bubbles with “an oily, iridescent sheen” “could be caused by soap or other cleaning products”, which it calls “very dangerous to fish”. An oily film from food can also hold bubbles (next section), so check first: if a bucket, pad or tool that touched soap or cleaner went into the tank, treat the foam as soap. The Spruce Pets warns “This type of foam is dangerous because it can kill fish.”

These steps are written for freshwater tanks. The sources used here do not cover a saltwater tank with soap in it, so ask your livestock supplier or an aquatic veterinarian before moving them. The Spruce Pets’ steps, with cautions:

Move the fish at once

Use “another tank or a clean bucket filled with dechlorinated water at the same temperature as the aquarium”, never a bucket that has held soap. If the fish look unwell, contact an aquatic veterinarian.

Drain the tank and rinse every part with water only

The Spruce Pets says “Drain the soapy aquarium and rinse all components thoroughly.” Soap is the exception to Aqueon’s rule “Don’t completely tear down your aquarium to clean it.” Hygger, an aquarium equipment maker, says “do not rinse the fish tank, stones, rocks, gravel, or other aquarium accessories with soap or other cleaners”.

Replace all the filter media and pads

Here, Practical Fishkeeping’s advice to replace media “bit by bit” does not apply: The Spruce Pets says to replace “all filter media and pads that will have collected soap residue”. The magazine says “It generally takes the bacteria 4-6 weeks to build-up”, so expect the filter to act like a new one.

Refill with conditioned water at tank temperature, then return the fish

Aqueon: “Always treat tap water with a water conditioner to neutralize chlorine and ammonia before adding it to the aquarium” and “Replacement water should be the same temperature as the aquarium water.”

Test ammonia and nitrite every other day

API’s new-aquarium schedule is for ammonia: “every other day until the ammonia level measures 0 parts per million (ppm) or mg/L”. Zero ammonia is not the end: Aqueon says “A rise in nitrite usually follows an ammonia spike” and “The only safe nitrite level is zero.” Every other day is API’s ammonia interval; this guide applies it to nitrite too. Keep testing past the first zero reading: with fresh media, Practical Fishkeeping says “It generally takes the bacteria 4-6 weeks to build-up”, and none of these sources gives an earlier safe point to stop, so ask your livestock supplier or an aquatic veterinarian when you can. Above zero, see the high-ammonia guide linked above or our guide to high nitrite in an aquarium.

To prevent a repeat, The Spruce Pets suggests you “designate a set of tank-cleaning tools that are not used for anything other than aquarium cleaning”.

Bubbles held in an oily film

A gooey surface layer can trap bubbles. Aquarium Co-Op traces it to “the oils in fish foods, oils from your hands, and other organic compounds in the water”, says a paper towel “is only a temporary solution”, and fixes it with surface movement: a sponge filter, aiming “the filter’s output at the surface”, and thinning floating plants.

Aquael lists “a surface filter” as one fix for bacterial film. Aquarium Science disagrees for freshwater: using a skimmer to remove floating proteins “is not recommended in freshwater aquariums”, because the slow surface water movement it needs “means poor aeration”. It adds: “An aquarium needs aeration if it has any significant number of fish in it”, and says never to combine a calm-water skimmer “with a canister filter or a submerged static media sump filter”. Our guide to the film on top of aquarium water covers the types of film.

Saltwater tanks: foam in the skimmer is the point

In a reef or marine tank, a protein skimmer makes foam on purpose. Bulk Reef Supply, a reef-aquarium retailer, explains that organic material sticks to micro-bubbles and “produces a nutrient-laden foam called skimmate that rises into a collection cup for removal.” Waterbox, an aquarium maker, says to “clean the collection cup regularly”; a new skimmer’s break-in is “typically lasting a few days to a couple of weeks”, while you tune the water level “until the foam becomes steady and effective”. None of these sources covers foam overflowing the cup. Bulk Reef Supply adds that skimmers “can also remove select additives and medications”, so “always check to see if the manufacturer recommends turning off your protein skimmer while dosing or feeding the tank.”

When foam means test today

  • Lingering foam, no rainbow tint, no medication in the tank: test ammonia and nitrite today.
  • Fish gasping at the surface or acting unwell, with any foam: test the water now and contact an aquatic veterinarian.

Ready to buy?

Our roundup of aquarium water conditioners compares the options for refill water, reef keepers can compare models in our protein skimmer roundup, and our Water Care & Testing section gathers the test kits and conditioners.

Frequently Asked Questions

Q. Is foam in a fish tank bad?

It depends on what holds it. Splash foam is “normal and not harmful”, The Spruce Pets says; lingering foam means test; soap foam “can kill fish”, it warns.

Q. Why is my fish tank cloudy and foamy?

No source here covers both, but Practical Fishkeeping’s cloudy-water causes and The Spruce Pets’ foam causes share a dead fish and excess food, so start with the waste checks; our guide to cloudy aquarium water covers the usual causes of haze.

Q. Will foam or surface film go away on its own?

Medication foam should clear within a few days of the course ending, The Spruce Pets says. None of the sources here says waste foam or an oily film clears by itself; Aquarium Co-Op says blotting a film with a paper towel is only a temporary fix.

Q. Does my air stone cause the foam?

Aquarium Co-Op says air-stone bubbles “should be transparent and pop immediately”; in its account, an air stone only makes foam from medication or ammonia visible, while what holds the bubbles is in the water.

Sources (14)
Aquarium Tales Team
Aquarium Tales Team

Written and reviewed by the Aquarium Tales Team. See the About page for how we work.