Cocamide is a mixture of
amides of the
fatty acids obtained from
coconut oil. As coconut oil contains about 50% of
lauric acid, in formulas only the 12-carbon chains tend to be considered. Therefore the formula of cocamide can be written as CH
3(CH
2)
10CONH
2, though the number of carbon atoms in the chains varies (it is always even).