How Caffeine Helps. When your head hurts, you want relief fast. Whether it’s a run-of-the-mill tension headache or a migraine, caffeine can help. That’s why it’s an ingredient in a lot of popular pain relievers. It can make them as much as 40% more effective. Sometimes you can stop the pain in its tracks just by having caffeine alone.