Contrary to popular belief, capsaicin, the active ingredient in cayenne pepper, has recently been found to reduce stomach acid production. (24) While cayenne pepper may not cause heartburn, it can still make symptoms worse in those who experience heartburn after meals.