Don’t have a pain reliever on hand when you feel a headache coming on?

As long as you’re near a properly-stocked kitchen, you should be fine.

The best foods for headaches can actuallypreventheadaches from coming on.

Pumpkin seeds almonds sunflower seeds magnesium foods

Shutterstock

Here, we take a look at the evidence-backed foods that can prevent and relieve headache pain.

Another tip if you’re regularly plagued with pain: Keep a headache journal.

Although there are a few classic foods that trigger and soothe headaches, everybody responds differently to diet-based remedies.

sack of russet potatoes

David Smart/Shutterstock

For even more health facts, check outWhat Happens to Your Body When You Drink a Smoothie Every Day.

Russet Potato

Strange, but true: Dry mouth = a debilitating headache.

Yes, that’s right, one of the primary causes of headaches is dehydration.

Cucumber slices

Shutterstock

Once you feed your body the nutrients it needs, the pain will likely subside.

And since a potato is about 75 percent water, so it’s uber hydrating, too!

Beetroot and beetroot juice will also have the same effect.

tart cherries

Shutterstock

Wheaties, Fiber One, and All Bran are all Eat This-approved and overflowing with the soothing nutrient.

Curious which cereals to steer clear of?

Check out our special report about theunhealthiest breakfast cereals.

Man eating high fiber breakfast cereal

Shutterstock

Interested in giving it a go?

(Just a half cup of pumpkin seeds provides nearly 100 percent of your daily magnesium needs.)

Ignore your body’s need for it and you won’t just wind up with headaches.

dipping into salsa with a tortilla chip

Kiersten Hickman/Eat This, Not That!

Healthy carbs likeoatmealand brown rice are also smart picks, as they soak up water during the cooking process.

When you regularly consume the stimulant, it leads to physical dependence.

The result: You’ll likely experience a throbbing headache if you miss a dose.

Pumpkin seeds almonds sunflower seeds magnesium foods

Shutterstock

Sprinkle them on your oatmeal or on top ofsoupsand stir-fries to reap the benefits.

For more foods like sesame seeds, check outThe 15 Best Vitamin E-Rich Foods.

Instant oatmeal - headache foods

Shutterstock

Weight loss lemon tea - headache foods

Sesame seeds - headache foods

Shutterstock