Pool foam is caused by surfactants in your water. Surfactants are compounds that lower water’s surface tension, so when air is pushed in by pumps, jets, or swimmers, the bubbles do not pop. They stack up into a layer of small, persistent bubbles that refuses to break apart on its own. The most common surfactants in residential pools come from sunscreen, hair products, leftover laundry detergent on swimsuits, cheap algaecide, and broken-down organic debris. Low calcium hardness, high total dissolved solids, and air leaks in the pump make the problem worse. Foam itself is not dangerous, but it usually means your water chemistry, equipment, or maintenance routine needs attention.
Common Causes of Pool Foam
Pool foam comes from a mix of chemical residue, organic load, water chemistry imbalance, and equipment issues. The seven sources below cover almost every residential case.
Personal Care Products and Sunscreen Residue
Sunscreen, lotion, hair conditioner, deodorant, and makeup all rinse off your body the moment you get in the pool. These products are full of oils and emulsifiers that act as surfactants. A pool used by a family on a sunny afternoon can collect more residue in two hours than a quiet pool collects in a week.
This is usually the number-one cause in busy backyard pools, especially during peak summer.
Laundry Detergent Left in Swimsuits
Swimsuits washed in regular detergent and not rinsed properly carry detergent into the pool. Detergent is engineered to be a surfactant, so even small amounts produce noticeable foam.
Low-Quality or Overdosed Algaecide
Many cheap algaecides are made with quaternary ammonium compounds, also called “quats.” Quats kill algae effectively but they also foam aggressively, especially when overdosed or used with high-output return jets. If foam appeared right after you treated the pool, the algaecide is the likely cause.
To clear algaecide foam quickly, stop adding more algaecide, run the pump and filter continuously, brush the surface, and let normal sanitation cycle the water for one to two days.
Soft Water, Low Calcium Hardness, and High TDS
The U.S. CDC and most pool industry guidance suggest calcium hardness between 200 and 400 ppm, total alkalinity between 80 and 120 ppm, and pH between 7.4 and 7.6. Pool water with calcium hardness below the recommended range is more prone to foaming because there are not enough dissolved minerals to stabilize the surface.
High total dissolved solids (TDS) is the opposite kind of problem. Old pool water that has not been partially drained and refilled in a long time accumulates dissolved organics, salts, and chemical byproducts. Once TDS climbs past about 1,500 ppm above the starting level, foam, cloudiness, and reduced sanitizer performance often follow.
Air Leaks in the Pump or Plumbing
Not all foam is chemical. Air pulled into the suction side of the pump (a loose pump lid, a worn O-ring, a low water level at the skimmer, or a small leak in the suction line) gets pushed through the return jets as fine bubbles. With a clean, well-balanced pool, surface foam often points to an air leak rather than a chemistry problem.
To check, look for bubbles streaming out of the return jets when the pump is running and the pool surface is otherwise calm. If you see steady bubbles, inspect the pump lid O-ring, raise the water level until the skimmer is at least half-submerged, and check pump fittings for tightness.
Dirty, Clogged, or Undersized Filter
A filter that cannot keep up with the pool’s organic load lets surfactant-rich material recirculate. Cartridges that have not been cleaned in months, sand filters overdue for backwashing, or a filter that is simply too small for the pool size all let foam-causing residue stay in the water.
Clean or backwash the filter, run the pump for a full 24-hour cycle, and recheck. If foam keeps returning despite balanced chemistry, the filter is the next thing to investigate.
Organic Debris That Has Broken Down in the Water
Leaves, pollen, grass clippings, insects, and bather waste all decompose in pool water. As they break down, they release organic compounds that behave like weak surfactants and add to the foam load. Pools surrounded by trees or used heavily without consistent skimming and vacuuming tend to develop a slow, recurring foam problem from this source alone.
How to Get Rid of Pool Foam
The fastest way to clear existing foam is to address the source first and skim the surface second. Skimming foam off without fixing the cause means it will be back in hours.
Work through the steps in this order:
-
Test your water for free chlorine, pH, alkalinity, calcium hardness, and TDS, and adjust anything that is out of range
-
If you recently added algaecide, stop adding more and wait several days
-
Rinse all swimsuits in clean water, with no detergent
-
Clean or backwash the filter so it can capture residue effectively
-
Run the pump and filter continuously for 24 to 48 hours
-
Shock the pool with a quality chlorine shock if the organic load is heavy or the water looks cloudy
-
Skim the foam off the surface with a leaf net
-
If foam persists, add a pool-safe defoamer following the label dose
Defoamer is a finisher, not a cure. It breaks bubbles but does not remove the surfactants creating them. For pools with very high TDS, a partial drain and refill is the only real solution.

How to Prevent Pool Foam
Prevention is mostly about reducing what enters the water and keeping the equipment that filters it in good shape.
Rinse off in a quick shower before swimming. Even 30 seconds of plain water removes most of the lotion, sweat, and product residue that would otherwise end up in the pool. Wash and rinse swimsuits without detergent, or use a swimsuit-safe wash.
Test water weekly during swim season, and check calcium hardness and TDS at least once a month. Partial drains and refills every one to two years (depending on local water quality and bather load) keep TDS from climbing into foam-prone territory.
Choose a non-foaming algaecide and follow the dose on the label exactly. More algaecide does not mean cleaner water, it means more residue.
Keep the filter clean and the equipment tight. Rinse cartridges every two to four weeks, backwash sand and DE filters on schedule, and check pump O-rings and fittings once a year.
Skim daily during heavy leaf-fall or pollen seasons and run a robotic pool cleaner on a regular schedule so leaves, sand, and fine particles do not sit in the water long enough to break down. The iGarden Pool Cleaner K70 runs along the floor, walls, and waterline on a schedule, lifting debris before it has time to break down. Its 4L basket and 180 μm filtration capture the fine particles that contribute to chronic foam, and its app-based AI Timer keeps the routine consistent through the week.
A robotic pool cleaner lowers organic load before it breaks down into surfactants
When Pool Foam Signals a Bigger Problem
Most pool foam is a maintenance signal. Once in a while it points to something worth handling differently.
Foam combined with cloudy water, a strong chemical smell, or skin and eye irritation often means high combined chlorine (chloramines) and a heavy organic load. The pool needs a proper shock treatment and may need a partial water change.
Foam that returns within a day no matter what you do, paired with TDS readings well above your fill water, usually means the pool is overdue for a partial drain and refill.
Foam that appears alongside green or yellow tint can mean an algaecide reaction layered on top of an active algae bloom. Treat the algae first, then deal with the surfactant residue afterward.
FAQs
How do I get rid of algaecide foam in the pool fast?
Stop adding more algaecide, run the pump and filter continuously for 24 hours, brush the surface, and skim off the visible foam. A pool-safe defoamer can clear the surface within minutes if you need a quick result before guests arrive, but it does not remove the algaecide itself. Most algaecide foam clears on its own in one to three days as the chemicals dilute through circulation.
Why is there foam on my pool after shocking?
Foam after shocking usually means the pool had a heavy organic load and the shock is breaking it down faster than the filter can capture it. The bubbles are short-term and clear once the filter cycles the water. If foam is still there 24 hours later, check for an algaecide reaction or a dirty filter that cannot keep up with the released material.
Can too much chlorine cause pool foam?
Chlorine on its own does not directly cause foam. What does cause foam is the combination of high organic load and chlorine reacting to form chloramines, which often shows up alongside a strong chemical smell and irritated eyes. Test for combined chlorine, then shock the pool to break it down.
Is pool foam dangerous to swim in?
Pool foam itself is not toxic, but the conditions causing it can affect comfort and sanitation. Heavy foam often comes with elevated chloramines or high TDS, which can irritate eyes and skin. If your sanitizer levels are correct and the foam is light, swimming is generally fine. If foam comes with a strong chemical smell or cloudy water, fix the chemistry before getting in.
How long does it take for pool foam to go away?
After you remove the source and run the filter continuously, most foam clears within 12 to 48 hours. Foam tied to high TDS or old water can take longer and often needs a partial drain to fully resolve.