There is no single chemical formula for cayenne pepper because it is a blend of various compounds found in peppers of the Capsicum family. The compound responsible for the spicy flavor of cayenne pepper is capsaicin, which has the chemical formula C18H27NO3. However, cayenne pepper also contains many other compounds such as flavonoids, carotenoids, vitamins, and minerals, each with its own chemical formula.