Though some people say that they get migraines after eating chocolate, scientific studies aren’t so sure.
In two studies, one showed that chocolate rarely triggers headaches. The other showed no link. It seems the best strategy is to figure out what your personal triggers are and avoid them.
Some people think it is the caffeine in chocolate that may lead to headaches. Though chocolate has some caffeine, it usually takes a lot more to trigger a headache. You'd have to eat 14 milk chocolate bars to get the same caffeine as from a cup of regular coffee.
Interestingly, in some cases, caffeine can help relieve headaches. It’s an ingredient in some headache pain relievers.