Foam or Bubbles on Top of the Fish Tank: What It Means and What to Do

Bubbles that appear within 24 hours of filling a tank are usually gas leaving fresh tap water and are harmless. Foam that does not pop, comes back after you scoop it and sits in one corner is protein foam from waste or something rotting: test ammonia and nitrite and find the source. A neat raft of bubbles under a betta is a nest, which is normal.

HealthBy Aquiio teamUpdated 8 min read

Most bubbles on a new tank are harmless and gone within 24 hours: Practical Fishkeeping says the fine haze of gas from freshly filled water lasts "up to 24 hours, though usually less." Foam that lingers is different. Bubbles that do not pop, gather in a corner and return after you scoop them off usually mean dissolved waste, and the thing to check is ammonia and nitrite, not the foam.

If your tank is brand new and you are not sure what is normal yet, this page sorts the five common kinds of surface bubbles by look, gives each one a verdict (Normal, Watch or Act now), and tells you what to do next.

Short answer: what kind of bubbles are these?

Foam and bubbles on an aquarium surface: likely cause, verdict and first step
What you seeMost likely causeVerdictFirst stepSource
Tiny bubbles on the glass, plants and decor right after filling or a big water changeGas coming out of fresh, cold tap water as it warmsNormalWait up to a day; match temperature next timePractical Fishkeeping, API
Bubbles where the filter outflow or air stone hits the surface, popping in secondsNormal aeration and agitationNormalNothingAPI, PetPlace
A neat, flat raft of small bubbles in one spot, built by a betta or gouramiBubble nest (breeding behaviour)NormalLeave itWikipedia: bubble nest
White, off-white or yellowish foam that does not pop and returns within a dayProtein foam from waste, uneaten food, decaying plants or a dead fishWatch (Act now if ammonia or nitrite reads)Test ammonia and nitrite, find the source, water changeAPI, PetPlace
Sudden, thick, persistent foam after cleaning with household productsSoap, detergent or other residueAct nowLarge water change, carbon, find the sourcePetPlace, API
Foam that started right after dosing a medicineSome treatments change the water's surface tensionWatchFollow the label; water change after the courseAPI, CO2Art

Any of these with fish breathing fast or hanging at the surface moves up to Act now: see fish gasping at the surface.

The one test that separates "looks odd" from "harms fish" is a pinch test: scoop a little foam into a cup. Bubbles from aeration pop in seconds. API's guide says protein foam bubbles "don't pop quickly," often look clustered or slightly yellow-brown, and can come with a smell.

Where sources disagree: is foam harmful?

Retailer and hobby guides split two ways. Some say foam is "not immediately dangerous"; others warn it can be fatal. Both are right about different foams. PetPlace says foam "can be fatal to fish if it comes from soap or cleansers," and calls protein foam "an indicator that your tank needs to be cleaned." The foam itself is a symptom. What decides the risk is what made it, so the answer is in your test kit: if ammonia and nitrite read 0 and the fish behave normally, it is a maintenance job, not an emergency.

The second disagreement is about agitation. Some sources say turn the flow down, because a strong outflow whips proteins into foam (API). Others say keep the surface moving for oxygen. For fish, oxygen wins: fix the waste, not the ripple. Only turn the flow down if the water tests clean and the fish are fine.

Bubbles in a brand-new tank (Normal)

Water from the tap is under pressure and often colder than the tank, so it holds more dissolved gas than it can keep once it sits and warms. That gas comes out as tiny bubbles on every surface: the glass, plants, the heater, even the fish. Practical Fishkeeping calls the resulting haze normal in a new tank and says it lasts up to 24 hours. API says the same about water changes: "This is a common observation and usually resolves on its own."

What to do:

  • Nothing, except wait. Wiping the glass is fine, but the bubbles clear by themselves as the gas escapes.
  • Next water change, match the new water to the tank temperature. That keeps the effect small.
  • If fine bubbles keep appearing days later, check the filter: Practical Fishkeeping notes that a loose connection on external filter pipework can "suck in a fine misting of bubbles."

New tanks also get a short-lived film or froth from dust off new gravel and decor. Rinsing them first prevents most of it; see how to clean new gravel and decor.

The bigger risk in week one is invisible: the filter has no bacteria yet. If fish are already in the tank, test ammonia and nitrite every day or two and read how long before adding fish.

Betta bubble nest (Normal)

A betta's nest is easy to recognise once you know it: a tidy, flat raft of small bubbles, often under a leaf, a floating plant or the filter's calm corner, with the betta hovering under it. Wikipedia's bubble nest article explains that males of bettas and gouramis (family Osphronemidae) build them as a place for eggs, and that Betta splendens coats the bubbles with saliva "to increase durability," which is why they last much longer than aeration bubbles.

A male builds nests with or without a female. A nest is a decent sign that he is comfortable, but no nest does not mean something is wrong. Leave it alone and keep the outflow gentle near it. The betta care guide covers heater, filter and tank size.

Protein foam (Watch, sometimes Act now)

Protein foam forms when dissolved organic waste builds up faster than water changes remove it. The sources list the same suppliers: uneaten food, fish waste, decaying plant leaves, a dirty or clogged filter and, in the worst case, a dead fish or snail out of sight (API, PetPlace, CO2Art). These compounds lower the water's surface tension, so the filter outflow whips them into bubbles that hold together.

What to do, in order

  1. Count your fish and look behind decor, in caves and at the filter intake. PetPlace advises checking regularly for missing fish, because a decomposing one causes foam and a jump in ammonia.
  2. Test ammonia and nitrite. Any reading in a tank with fish is Act now. The ammonia spike guide has the steps; the calculator below shows how toxic your reading is at your pH and temperature.
  3. Do a partial water change and vacuum the gravel, especially where food collects. The gravel vacuum guide shows how.
  4. Feed less. API's rule: only what your fish eat in a few minutes. The feeding guide has amounts by fish type.
  5. Remove mushy or dying plant leaves.
  6. Rinse clogged filter sponges in old tank water, never under the tap, so the filter bacteria survive. See how to clean an aquarium filter.
ppm

What your kit reads: NH3 + NH4+, in ppm (mg/L).

From the same test session, if you can.

°C

Warmer water holds more free NH3.

Sets which of the app's ammonia rules applies.

Calculating…

Open the full tool on aquiio.com

Protein foam in a new tank often comes with a milky bacterial bloom and a smell. If your tank also smells, the fish tank smell guide sorts smells by cause. In saltwater tanks a protein skimmer removes this material on purpose, which API lists as one fix.

Soap or chemical foam (Act now)

Soap is the foam to take seriously. CO2Art notes that "even trace amounts of soap residue can disrupt the surface tension of the water," and PetPlace warns that residue from soap or cleansers can be fatal. Common routes in: a bucket that once held cleaning products, a household sponge, hand soap or lotion on your arms, glass cleaner sprayed near an open tank, or decor washed in the sink with detergent.

Signs: thick foam that appears suddenly after cleaning, and fish that start breathing fast or hanging at the top.

What to do now:

  1. Large water change with dechlorinated water at the same temperature. Repeat if foam returns.
  2. Add fresh activated carbon to the filter if you have it.
  3. Increase aeration. Point the outflow at the surface or add an air stone.
  4. Find the source and keep one bucket and sponge for the aquarium only.
  5. Watch the fish for 48 hours. If they get worse, use a health check to work through the symptoms.

If you have not set the tank up yet, API's advice for residue is to empty it, rinse with clean tap water and refill. Plain water and a clean sponge are all a new tank needs; the setup checklist lists what else to rinse.

Foam after medicine or water conditioner (Watch)

Some medications and water treatments change how the water behaves at the surface, so bubbles from an air stone linger longer than usual (API; CO2Art says the same about "temporary foam"). Follow the label, finish the course, then do a water change. Make sure you dosed for the actual water volume: the volume calculator works out real litres and gallons from the tank's size. Planned new guide: water conditioner dosage.

How to prevent foam

  • Feed small amounts and remove leftovers after a few minutes.
  • Keep a regular water change routine; the water change calculator shows what each change removes.
  • Vacuum the gravel and clear dead leaves during changes.
  • Count fish every day at feeding time.
  • Keep soap, sprays and lotions away from the tank and your aquarium bucket.

Frequently asked questions

Are bubbles in a new fish tank normal?

Yes. Tiny bubbles on the glass and decor after filling are gas leaving fresh tap water. Practical Fishkeeping says the haze lasts up to 24 hours. They are not a reason to add or remove anything; the thing to watch in a new tank is ammonia and nitrite.

How do I get rid of foam on my fish tank?

Find the cause first. For protein foam: count fish, remove anything rotting, do a partial water change, vacuum the gravel and feed less. Scooping the foam off with a cup only buys time. For soap foam: large water changes and fresh activated carbon.

Is foam bad for fish?

Usually the foam is a symptom, not the harm. Protein foam points to waste that can raise ammonia, and soap foam can be dangerous in itself. If ammonia and nitrite read 0 and the fish act normally, it is a maintenance job.

Why does my betta make bubbles at the top?

That is a bubble nest. Males build them with saliva-coated bubbles as a place for eggs, with or without a female. It is normal behaviour; leave it in place.

Why is there foam after a water change?

Most often it is gas leaving the new water, or bubbles whipped up as you pour, both gone within hours. If foam persists for days after a change, check for residue in the bucket or hose and test ammonia.

Sources