Cocamidopropyl betaine (CAPB) is a mixture of closely related organic compounds derived from coconut oil and dimethylaminopropylamine.
[2] CAPB is available as a viscous pale yellow solution and it is used as a surfactant in personal care products and animal husbandry.
The name reflects that the major part of the molecule, the lauric acid group, is derived from coconut oil.
In the second step chloroacetic acid reacts with the remaining tertiary amine to form a quaternary ammonium center (a quaternization reaction).
These by-products can be avoided by a moderate excess chloroacetate and the exact adjustment of pH value during betainization reaction accompanied by regular analytical control.