Surface Foam During Cycling or Ammonia Spikes

Surface foam during tank cycling or an ammonia spike is caused by dissolved organic compounds (DOCs)—proteins, amino acids, decaying food, and bacterial slime—lowering the water's surface tension so air bubbles from filters and airstones fail to pop. Pure ammonia (NH3 / NH4+) does not create foam on its own; instead, the same organic decay or heterotrophic bacterial bloom driving the ammonia spike releases surfactant-like proteins that trap air at the surface.

In a fishless cycle, light white foam with 0–4 ppm (mg/L) Total Ammonia Nitrogen (TAN) is harmless and fades as the biofilter matures. In a stocked tank, persistent foam paired with TAN >= 0.25 ppm (mg/L) or Nitrite (NO2-) >= 0.25–0.5 ppm (mg/L) signals active organic overload and requires immediate water changes and surface agitation.


Why Ammonia Spikes and Cycling Produce Foam

Foam forms when organic surfactants accumulate faster than your filter and beneficial bacteria can break them down. During cycling or an ammonia spike, four mechanisms raise surface tension stability and trap bubbles:

  • Decaying protein sources (ghost-feeding or overfeeding): Uneaten fish food, dead plant leaves, and fish waste release proteins and lipids as they rot. Those molecules are amphiphilic—one end attracts water, the other repels it—forming an elastic skin around rising bubbles.
  • Heterotrophic bacterial blooms: Rapidly multiplying heterotrophic bacteria (often turning water milky or cloudy) secrete extracellular polymeric substances (EPS) and slough off biofilm, thickening the surface film.
  • Fresh active aquasoil leaching: Unrinsed active aquasoil (3 L or 9 L bags—never rinse) releases trapped air, humic acids, and initial ammonia for the first 1–3 weeks, commonly producing temporary white foam around filter outflows.
  • Warm-water oxygen drop: Cycling tanks kept at 78–82°F (25.6–27.8°C) hold less dissolved oxygen (~7.8–8.1 ppm saturation) than cooler water (~9.1 ppm at 68°F / 20°C). Meanwhile, heterotrophic bacteria consume oxygen rapidly, making surface agitation essential to prevent hypoxia while foam blocks gas exchange.

Ammonia Toxicity Multiplier: pH and Temperature

Your liquid test kit measures Total Ammonia Nitrogen (TAN), which is the sum of harmless ammonium (NH4+) and toxic un-ionized ammonia (NH3). Higher pH and higher temperature shift more TAN into toxic NH3:

Water Temperature pH 6.5 Toxic NH3 Share pH 7.0 Toxic NH3 Share pH 7.5 Toxic NH3 Share pH 8.0 Toxic NH3 Share
68°F (20.0°C) ~0.13% ~0.40% ~1.24% ~3.83%
75°F (23.9°C) ~0.17% ~0.52% ~1.63% ~4.97%
78°F (25.6°C) ~0.19% ~0.58% ~1.82% ~5.52%
82°F (27.8°C) ~0.22% ~0.68% ~2.12% ~6.39%

At pH 8.0 and 78°F (25.6°C), 1.0 ppm (mg/L) of TAN delivers roughly ~0.055 ppm of toxic NH3—already above the 0.02–0.05 ppm chronic stress threshold for fish.


Diagnostic Matrix: Harmless Cycling Foam vs. Toxic Spike Foam

Use bubble persistence, water clarity, and TAN / NO2- test readings together to separate normal cycling biofilm from an emergency spike.

Foam Appearance & Smell Typical TAN / NO2- Reading Likely Cause Immediate Action
Thin white bubbles near filter outflow; pop within 5–30 seconds TAN 0–4 ppm; fishless weeks 1–3 Early biofilm or fresh active aquasoil organics Leave cycle running; aim filter return slightly upward
Thick, persistent white or tan foam; cloudy water; foul or sweetish odor TAN >= 0.25 ppm (stocked) or > 5 ppm (fishless) Organic overload + heterotrophic bacterial bloom 25%–50% water change; siphon rot; boost surface agitation
Oily or rainbow surface film trapping stray bubbles TAN 0–0.25 ppm; stagnant surface Protein/lipid film + low surface ripple Add airstone, surface skimmer intake, or raise filter outflow
Tight, uniform cluster of clear bubbles in a calm corner TAN 0 ppm, NO2- 0 ppm (5G–20L betta tank) Male betta bubble nest Do not disturb nest; confirm 0 ppm ammonia

Step-by-Step Fix for Stocked Tanks (Fish-In Cycle or Sudden Spike)

When livestock are present, dilute the ammonia first, remove the rotting organic source second, and restore surface gas exchange third.

  1. Test water parameters immediately. Measure TAN, NO2-, pH, and temperature (°F / °C) before changing water so you know how aggressive the dilution must be.
  2. Perform a temperature-matched, dechlorinated water change. Match replacement water within 1–2°F (0.5–1.1°C) of tank temperature and treat with a standard water conditioner:
    • TAN 0.25–0.5 ppm: Change 25%–30% of tank volume.
    • TAN 0.5–1.0 ppm: Change 40%–50% of tank volume.
    • TAN > 1.0 ppm (or fish gasping at the surface): Change 50%, wait 1–2 hours, retest, and perform a second 50% change if TAN stays >= 0.5 ppm. Two 50% changes remove 75% of dissolved ammonia and organics with less osmotic shock than a single near-total drain.
  3. Siphon out the organic fuel. Vacuum uneaten food, decaying plant stems, and accumulated detritus from the substrate and hardscape crevices. If mechanical filter pads or sponges are clogged with slime, gently swish them in a bucket of removed tank water—never chlorinated tap water—to restore flow without killing nitrifying bacteria.
  4. Skim the foam and increase surface agitation. Scoop persistent foam off the top with a clean cup or fine mesh net. Then break the surface film by angling the filter return upward to ripple the entire water surface, or by adding an airstone. Match rated empty-box filter turnover to your livestock:
    • Betta (5G–20L) or ornamental shrimp (5G–40B): 3–4×/hr rated GPH with an intake sponge and baffled outflow so agitation stays gentle.
    • Community or low-tech planted tanks: 4–6×/hr rated GPH (e.g., 80–120 GPH (303–454 L/hr) on a 20L / 20 gal tank).
    • Goldfish (29G–125G; single-tail 75G–125G) or African cichlids (40B–125G): 8–10×/hr rated GPH (e.g., 600–750 GPH (2,271–2,839 L/hr) on a 75 gal tank).
  5. Fast healthy adult fish for 24–48 hours. Pausing food halts new protein and ammonia input while the biofilter catches up. Resume feeding at 25%–50% of normal portions only after TAN and NO2- test at 0 ppm.

Reference: Water Change Volumes for Standard US Tanks

Actual water volume in a decorated tank is typically 10%–15% lower than nominal tank size due to substrate and hardscape displacement. Use the nominal figures below as upper bounds when dosing dechlorinator and staging buckets:

Standard Tank Size Dimensions (L × W × H) 25% Water Change 50% Water Change
5 gal (18.9 L) 16 × 8 × 10 in (40.6 × 20.3 × 25.4 cm) 1.25 gal (4.7 L) 2.5 gal (9.5 L)
10 gal (37.9 L) 20 × 10 × 12 in (50.8 × 25.4 × 30.5 cm) 2.5 gal (9.5 L) 5.0 gal (18.9 L)
20L (20 gal / 75.7 L) 30 × 12 × 12 in (76.2 × 30.5 × 30.5 cm) 5.0 gal (18.9 L) 10.0 gal (37.9 L)
29 gal (109.8 L) 30 × 12 × 18 in (76.2 × 30.5 × 45.7 cm) 7.25 gal (27.4 L) 14.5 gal (54.9 L)
40B (40 gal / 151.4 L) 36 × 18 × 16 in (91.4 × 45.7 × 40.6 cm) 10.0 gal (37.9 L) 20.0 gal (75.7 L)
55 gal (208.2 L) 48 × 13 × 21 in (121.9 × 33.0 × 53.3 cm) 13.75 gal (52.0 L) 27.5 gal (104.1 L)
75 gal (283.9 L) 48 × 18 × 21 in (121.9 × 45.7 × 53.3 cm) 18.75 gal (71.0 L) 37.5 gal (142.0 L)
125 gal (473.2 L) 72 × 18 × 22 in (182.9 × 45.7 × 55.9 cm) 31.25 gal (118.3 L) 62.5 gal (236.6 L)

Step-by-Step Fix for Fishless Cycling Tanks

In a fishless tank, only intervene with water changes if TAN or NO2- climbs high enough to stall nitrification (> 5 ppm), or if rotting food is fueling heavy slime.

  1. Check for a stalled cycle. If TAN > 5 ppm (mg/L) or NO2- > 5 ppm (mg/L), or if pH drops below 6.0–6.5 from depleted carbonate hardness (dKH), perform a 50% water change to bring TAN back into the optimal 2–4 ppm (mg/L) cycling zone.
  2. Stop ghost-feeding if foam turns thick or foul. Siphon out molding pellets or flakes and switch to pure liquid ammonium chloride (without surfactants or scents) to dose 2 ppm (mg/L) TAN cleanly without adding extra proteins.
  3. Leave active aquasoil alone. If cycling over active aquasoil (3 L / 9 L bags), expect 1–3 weeks of organic leaching and light foam; run mechanical filter floss or sponge to polish particles and replace clogged floss weekly.
  4. Keep aeration high. Nitrifying bacteria require dissolved oxygen to convert ammonia to nitrite and nitrate. Run an airstone or ripple the surface continuously during the cycle.

Common Pitfalls That Make Cycling Foam Worse

Avoid aggressive chemical or filter-stripping shortcuts—they destroy establishing bacteria and prolong both the ammonia spike and the foam.

  • Washing or replacing biofilter media in tap water: Chlorine/chloramine kills Nitrosomonas and Nitrospira, resetting the cycle and forcing another 3–6 weeks of organic buildup and foam.
  • Pouring in algaecides or oxidizers (H2O2, glutaraldehyde, copper): None of these remove dissolved proteins or ammonia. Copper and glutaraldehyde are unsafe for ornamental shrimp tanks (5G–40B), snails, and sensitive aquatic plants, and oxidizers can set back young biofilters.
  • Over-dosing bottled bacteria alongside heavy food: Dumping extra bacterial additives into a tank full of rotting food triggers a massive heterotrophic bloom, thick yellowish foam, and overnight oxygen depletion.
  • Ignoring surface film in low-flow tanks: Betta (5G–20L) and shrimp setups need gentle flow, but a completely stagnant surface traps protein films and blocks oxygen. Use a baffled 3–4×/hr filter outflow angled slightly across the surface or a small, low-flow airstone.
  • Confusing a betta bubble nest with protein foam: Before draining or scrubbing a calm 5G–20L betta tank, test TAN. A tight, uniform cluster of clear bubbles anchored to a corner or floating leaf at 0 ppm ammonia is a normal nest, not water-quality foam.