8 Best Foods for Headaches

DetoxWater Editorial Team•Published November 5, 2026

Oatmeal, salmon, and watermelon are practical food choices for people with headaches, but none is a proven headache treatment. They can fit into a routine that supports regular meals and hydration, two factors worth considering when headaches occur.

Most diet research focuses on migraine rather than every type of headache. For fluids as well as food, see the best drinks for headaches.

What are 8 foods to consider for headaches?

These foods are useful starting points, not a clinical ranking. A systematic review of diet and migraine found that the overall quality of evidence was low. No single food has been shown to work reliably for everyone, and the portions below are meal suggestions, not proven headache doses.

To check hydration, use thirst and urine color as rough cues: pale yellow urine often suggests adequate hydration, while dark urine can be a sign that you need fluid. Vitamins, medications and medical conditions can also change urine color, so it is not a diagnosis. The hydration checker can help you consider your routine; follow your clinician’s advice if you have a fluid restriction.

1. Oatmeal

Oatmeal provides carbohydrates for energy and can make a convenient breakfast when a long gap without food seems to contribute to your headaches. Eating regularly may be more useful than any special property of oats, particularly if you often miss breakfast.

Try about 1/2 cup of cooked oatmeal and add a protein source, such as plain yogurt, if you like. There is no good evidence that oatmeal itself stops a headache or prevents migraine; its value here is as an accessible part of a regular meal.

2. Salmon

Salmon supplies protein and omega-3 fatty acids. Omega-3s are of interest because of their potential role in inflammatory processes, although that does not mean a serving of salmon will relieve an attack.

A 2025 review of dietary patterns and migraine found that omega-3 dietary approaches showed potential, but results varied and more research is needed. That evidence concerns dietary interventions, not salmon as an immediate headache remedy. A practical meal portion is about 3 ounces of cooked salmon, served with a grain and vegetables; choose another protein if fish is a personal trigger or you have an allergy.

3. Watermelon

Watermelon contains water, so it can contribute to your fluid intake. That may be useful when dehydration is contributing to a headache, though eating watermelon has not been proven to treat one.

Try 1 cup of watermelon pieces as a snack or alongside a meal. It should complement fluids, not replace them, and it is not a substitute for medical care if a headache is severe or unusual. If you need to restrict fluids, ask your care team how water-rich foods fit into your plan.

4. Spinach

Spinach supplies magnesium, a mineral involved in normal nerve and muscle function. Magnesium has been studied in relation to migraine, but a bowl of spinach has not been shown to prevent or relieve headaches, and food is not equivalent to a studied supplement.

Add about 1/2 cup of cooked spinach to a meal, or use raw spinach in a salad. It can help add variety to your diet without requiring an elaborate plan. If you take warfarin, keep your intake of vitamin K-rich foods such as spinach consistent and discuss major dietary changes with your prescriber.

5. Almonds

Almonds provide magnesium, protein and fat. As a snack, they can help make eating between meals more practical if long gaps without food seem to coincide with your headaches. The proposed benefit is a steadier eating routine, not an established effect of almonds on headache pain.

A small handful, about 1 ounce of almonds, is a convenient portion. Pair them with fruit if you want a more substantial snack. No good evidence shows that almonds specifically treat headaches, and people with a tree-nut allergy should avoid them.

6. Plain yogurt

Plain yogurt supplies protein and some fluid, and it can be easy to eat when you do not feel like preparing a full meal. Pairing it with fruit or oats gives you a simple combination of foods rather than relying on one ingredient to fix a headache.

Try 1/2 cup of plain yogurt, adjusting the portion to your appetite. There is no good evidence that yogurt itself relieves headaches. If dairy, lactose or yogurt consistently causes problems for you, choose an alternative you tolerate; there is no need for everyone with headaches to avoid dairy.

7. Beans

Beans supply carbohydrates, protein, fiber and magnesium. They can make a meal more filling and help you maintain a regular eating pattern, but no specific bean has been established as a headache treatment.

Add about 1/2 cup of cooked beans to a bowl of rice or a salad. Canned beans are a convenient option; rinse and drain them if you prefer. If beans cause digestive discomfort, start with a smaller amount or choose another food that you tolerate.

8. Bananas

A banana is a portable source of carbohydrates and can be useful when you need a snack and a meal is not immediately available. It is also a source of potassium, but there is no evidence that its potassium content makes it a reliable headache remedy.

Try 1 medium banana on its own or with a protein-containing food such as yogurt or almonds. Bananas do not replace treatment for low blood sugar. If you have diabetes and suspect low blood sugar, follow your established care plan; if you need to limit potassium, ask your clinician whether bananas fit your diet.

Which foods should you limit if you get headaches?

Limit a food when you have a consistent reason to suspect it affects you, rather than removing a long list of foods at once. A 2024 review of diet and migraine found that foods may trigger attacks in some people, but the overall evidence for specific triggers is limited.

Foods sometimes reported as triggers include aged cheeses and processed meats. Chocolate is also commonly suspected, although a craving can occur before a migraine and does not necessarily mean the food caused it. Alcohol can trigger headaches for some people; if caffeine is a factor for you, aim for a consistent intake and reduce it gradually rather than stopping suddenly.

A simple diary can help you look for a pattern: note what and when you ate, missed meals, sleep, headache timing and other circumstances. A food eaten before a headache is not automatically the cause. If the same pattern repeats, discuss a limited trial of avoiding that food with a clinician or dietitian, especially before cutting out a major food group.

Who should be careful, and when should you see a doctor?

See a clinician if headaches are frequent, worsening, interfering with daily life or noticeably different from your usual headaches. A food diary can be useful at that visit, but do not stop prescribed medication or substitute food for a treatment plan.

Get urgent medical help for a sudden, extremely severe headache; a headache with weakness, confusion, fainting, fever and a stiff neck; or a headache after a head injury. Seek urgent advice for a severe or new headache during pregnancy or after childbirth, especially with vision changes.

If you have diabetes, kidney disease or heart failure, ask your care team about any relevant food, potassium or fluid restrictions. During pregnancy, while breastfeeding, or when managing headaches in a child, check with a clinician before making restrictive diet changes. Food allergies and medications such as warfarin also call for an individualized approach.

More on Best Foods For Headaches

Try the free tool

Hydration Checker →

Frequently asked questions

Can I eat if a headache makes me feel nauseated?

If you can tolerate food, a small amount of something bland, such as plain oatmeal or a banana, may be easier to manage than a large meal. Seek medical advice if vomiting is persistent or you cannot keep fluids down.

Should everyone with headaches avoid gluten?

No. Gluten avoidance is not established as a general headache treatment. If you think gluten is causing symptoms, discuss testing and dietary changes with a clinician before cutting it out.

Can a food work immediately for a headache?

There is no food that reliably stops every headache. Eating may help if a missed meal is contributing, but persistent, severe or unusual headaches need appropriate medical attention.

Sources

  1. The Evidence for Diet as a Treatment in Migraine-A Review. Nutrients (2024). PubMed 39408380
  2. The Role of Diet and Nutrition in Migraine Triggers and Treatment: A Systematic Literature Review. Headache (2020). PubMed 32449944
  3. Dietary Patterns and Migraine: Insights and Impact. Nutrients (2025). PubMed 40004997