Why does coriander taste like soap to some people?
Because of genetics, and specifically because of how some people's olfactory receptors detect a group of chemicals that coriander shares with soap.
Fresh coriander leaves — sold as cilantro in North America — contain several aldehyde compounds. The same family of aldehydes is produced during soap manufacture and is found in some lotions and detergents. Everyone smells them. What differs is which of coriander's many aroma compounds a person's nose emphasises.
Genetic studies have identified variants near a cluster of olfactory receptor genes, most consistently OR6A2, associated with the soapy perception. That receptor is sensitive to exactly those aldehydes. People carrying the variant appear to detect the soapy notes more strongly relative to the herb's pleasant citrus and green notes, so the soap dominates.
The effect is real but not absolute. Surveys put the proportion who dislike coriander at roughly 4 to 14 percent depending on the population, with markedly lower rates in cuisines where coriander is used heavily — South Asian, Latin American and Middle Eastern populations report it far less often than European ones. That suggests exposure and familiarity matter alongside genetics.
It is not an allergy and carries no health consequence.
Two practical notes. Crushing or chopping the leaves accelerates the enzymatic breakdown of those aldehydes, and some people who dislike whole leaves find finely minced or blended coriander less objectionable. Cooking also reduces the effect, since the volatile aldehydes dissipate with heat — which is why coriander stirred into a hot curry tastes different from the same leaf scattered raw.
Coriander seed is a different spice entirely, warm and citrusy, and does not carry the soapy compounds.