Spiciness is not a flavor
The five basic tastes are sweet, salty, sour, bitter, and umami. Spiciness is not on that list. It is detected not by taste cells but by somatosensory nerve fibers — the same system that detects physical heat, extreme cold, and lacerations. Spiciness is, technically, a pain response. And the molecule responsible is capsaicin.
Structure: a molecule designed to bind to pain
Capsaicin (8-methyl-N-vanillyl-6-nonenamide, C₁₈H₂₇NO₃) has three structural parts: the vanillyl head (aromatic ring with –OCH₃ and –OH), the central amide bond (–NH–CO–, the molecular recognition point), and the hydrophobic tail (9-carbon chain with C-6 double bond and C-8 methyl, logP ~3.0).
The TRPV1 receptor: the pain thermostat
Capsaicin's molecular target is the TRPV1 ion channel (Transient Receptor Potential Vanilloid 1), a multimodal sensor of tissue damage that activates with physical heat >43 °C, acidic pH <6, and capsaicin. When capsaicin binds inside the membrane, the channel opens and allows massive Ca²⁺ and Na⁺ influx → depolarization → action potentials → brain interprets as burning pain.