In anionic surfactants, the head has a negative charge. These types of surfactants are the most commonly used for such purposes as washing clothes and shampoos. Anionic surfactants have a superb ability to repel dirt from fabrics in solution.
The problem with anionic surfactants is that calcium and magnesium ions in the water, a condition prevalent in hard-water areas, tend to deactivate this type of surfactant. This is because the positively charged ions in the water react with the negatively charge on the surfactant, reducing its effectiveness. The harder the water, the less effective anionic surfactants become. Chemicals called sequestrants are sometimes used in attempts to overcome this problem, but they are not ideal remedies. Alkyl Sulphonates and soap are typical examples of anionic surfactants.
In cationic surfactants, the head is positively charged. Cationic surfactants are used to provide softness in fabric conditioners. They also allow anionic surfactant to work in closer proximity to one another at the stain site leading to more efficient stain removal. In general, they are best at removing grease stains.
There are also non-ionic surfactants, which do not have a charge. This allows them to be used in soft or hard water equally effectively. These are the best grease removers and are used washing-up liquids, household cleaners and a range of laundry products. Typical non-ionic surfactants include ethers of fatty alcohols.
There is also another class of detergents called amphoteric or zwitterions surfactants. These are all mild detergents used for toiletry and other personal use. Some of them are used as mild cleaning products too.
Depending on the pH of the water, amphoteric detergents can be anionic, cationic or non-ionic in solution. Amphoteric surfactants mix well with other detergents. They provide plenty of foam when dissolved in water and are very gentle on the skin.