FOAM: If the early signs of a water line (scum ring) are not noticed and treated, and products such as suntan lotions, underarm deodorants, women's makeup, as well as body oils and dirt, are allowed to build up, a foaming of the water-similar to dish soap or laundry detergent-will occur. This foam is not desired. If this is the cause of foam, the treatment is very easy. The initial step is to brush the walls at the surface where the water line (scum ring) appears. After brushing, add an enzyme cleaner to rid the water of the water line (scum ring). Additional foam will result. This foam is desired-it is a signal that the enzyme is eliminating the water line (scum ring) and breaking it down into water. Most of the foam will disappear after 1-2 hours. Any foam that remains can be eliminated by using a DEFOAMER.
Another reason for foam is a low Hardness reading (under 100 ppm). If this is the case, raise the Hardness level by adding a Hardness Increaser (Calcium Chloride). Typically, adding 1LB of calcium chloride per 10,000 gallons of water will raise the Hardness level by 10 ppm. Once the Hardness level is back in range (200 - 450 ppm), if foam ever persists, add some defoamer.
Also, remember that some types of algaecides (quaternary algaecides) will cause foam. Do not use any type of Quaternary Algaecide. They really do an inferior job of treating algae and they also cause unsightly foam. Very few pool professionals even sell quats. If you have used a quat and your water is foaming, add some defoamer, and then, properly dispose of the Quaternary Algaecide.