Symptoms » Symptom

Chronic Headaches

Headaches are one of the most common health complaints — nearly everyone experiences them at some point. But when headaches become frequent, severe, or don’t respond to usual treatments, they may be signaling something deeper that blood tests can help identify.

Most people reach for pain relievers when a headache strikes, and often that’s enough. But what about headaches that keep coming back? What about the ones that seem to appear without obvious triggers, or that have changed in character over time? These headaches deserve investigation, not just treatment of symptoms.

While many headaches are primary conditions (like migraines or tension headaches) without an underlying disease, a significant number are secondary — caused by something else going on in the body. Thyroid dysfunction, anemia, blood sugar abnormalities, inflammation, nutritional deficiencies, and hormonal imbalances can all manifest as headaches. Blood tests can identify these treatable causes, potentially eliminating headaches rather than just managing them.

This article explores when headaches warrant investigation, what underlying conditions might be responsible, and what blood tests can reveal about the root cause of your head pain.

Understanding Headaches

Headaches are classified into two main categories: primary headaches (the headache itself is the condition) and secondary headaches (the headache is caused by something else). This distinction is crucial because treatment approaches differ fundamentally — treating a secondary headache means treating the underlying cause, while treating a primary headache means managing the headache itself.

Understanding which type you have guides the appropriate investigation and treatment strategy. Most headaches are primary, but secondary causes are important to identify because they’re often very treatable.

Primary headaches:

These are conditions in their own right, not caused by underlying disease. They result from overactivity or problems with pain-sensitive structures in the head:

Secondary headaches:

These are symptoms of another condition — the headache is the result of something else going on in the body. Causes range from benign and easily treatable to serious and life-threatening:

When headaches suggest an underlying condition:

Consider investigation for secondary causes when headaches have any of these characteristics:

Warning signs requiring immediate medical attention:

Seek emergency care immediately for any of these “red flag” symptoms:

Thyroid Dysfunction and Headaches

Thyroid disorders are an often-overlooked cause of chronic headaches. Both hypothyroidism and hyperthyroidism can cause or worsen headaches, and treating the thyroid condition often provides significant relief. The relationship between thyroid function and headaches is well-established in medical literature, yet thyroid testing is frequently omitted from headache workups.

Studies show that people with thyroid disorders have significantly higher rates of headaches — including both tension-type headaches and migraines — compared to the general population. One study found that people with hypothyroidism were 21% more likely to have headaches than those with normal thyroid function.

Hypothyroidism and headaches:

Research shows that people with hypothyroidism have a significantly higher prevalence of headaches compared to the general population. The mechanisms connecting low thyroid function to head pain include:

Hypothyroid headaches often have these characteristics:

Hyperthyroidism and headaches:

Excess thyroid hormone can also trigger headaches, though through different mechanisms than hypothyroidism:

Hashimoto’s thyroiditis:

Hashimoto’s thyroiditis, the autoimmune cause of hypothyroidism, may have additional headache associations beyond just low thyroid hormone levels. The autoimmune inflammation itself may contribute to systemic inflammation affecting pain pathways. Additionally, the fluctuating thyroid levels that can occur in Hashimoto’s — particularly early in the disease when the thyroid may swing between hyper and hypo function — may trigger headaches during these transitions. Some research suggests that the presence of thyroid antibodies, independent of thyroid hormone levels, may be associated with headache.

What to test:

TSH is the primary screening test. Elevated TSH suggests hypothyroidism (the pituitary is working harder to stimulate an underperforming thyroid); suppressed TSH suggests hyperthyroidism (the pituitary has backed off because there’s too much thyroid hormone).

Free T4 and Free T3 measure actual thyroid hormone levels, providing more information than TSH alone about the degree of dysfunction.

TPO antibodies identify autoimmune thyroid disease (Hashimoto’s thyroiditis or Graves’ disease). Positive antibodies indicate an autoimmune process even if TSH is still normal.

Anemia and Headaches

Anemia — a deficiency of red blood cells or hemoglobin — is a well-established cause of headaches. The relationship is logical: the brain is highly sensitive to oxygen supply, consuming about 20% of the body’s oxygen while comprising only 2% of body weight. Any reduction in oxygen delivery can trigger head pain through multiple mechanisms.

Anemia is common, affecting an estimated 1.6 billion people worldwide, and headache is one of its most consistent symptoms. The good news is that treating anemia often dramatically improves or eliminates headaches.

How anemia causes headaches:

Characteristics of anemia-related headaches:

Iron deficiency — even without anemia:

This is an important point: iron deficiency can cause headaches even before hemoglobin drops enough to diagnose anemia. Iron plays roles beyond just hemoglobin production:

Studies have shown that people with low ferritin (iron stores) have increased migraine frequency compared to those with adequate iron, even when neither group is anemic. This is why testing ferritin — not just hemoglobin — is important when investigating headaches.

B12 deficiency and headaches:

Vitamin B12 deficiency can cause headaches through multiple mechanisms:

B12 deficiency is common in vegetarians and vegans, older adults (absorption decreases with age), people taking metformin or proton pump inhibitors, and those with GI conditions affecting absorption.

What to test:

Complete Blood Count (CBC) identifies anemia through hemoglobin and hematocrit levels, and MCV (mean corpuscular volume) helps classify the type of anemia.

Ferritin reveals iron stores — can be low even when hemoglobin is normal, and low ferritin is associated with increased headache frequency.

Serum ironTIBC, and transferrin saturation further characterize iron status and help identify iron deficiency anemia.

Vitamin B12 — deficiency causes macrocytic anemia and neurological symptoms including headache.

Folate — another cause of macrocytic anemia, often tested alongside B12.

Blood Sugar and Headaches

The brain consumes about 20% of the body’s glucose despite being only 2% of body weight. Unlike muscles, which can use fat for fuel, the brain relies almost exclusively on glucose for energy. This makes the brain exquisitely sensitive to blood sugar levels — both too low and too high, as well as rapid fluctuations, can trigger headaches.

Blood sugar-related headaches are common but often unrecognized because people don’t connect their eating patterns to their head pain. Understanding this connection can lead to simple, effective prevention strategies.

Hypoglycemia (low blood sugar):

When blood sugar drops too low, the brain is one of the first organs affected. Hypoglycemic headaches are common and result from multiple mechanisms:

Hypoglycemic headaches typically have these characteristics:

Reactive hypoglycemia and insulin resistance:

Some people experience headaches after eating, particularly after high-carbohydrate meals. This paradoxical pattern — headache after eating rather than from skipping meals — occurs due to:

Diabetes and hyperglycemia:

Chronically elevated blood sugar can cause headaches through several mechanisms:

People with diabetes may experience headaches from both high and low blood sugar, as well as from blood sugar swings. Tight glucose control often reduces headache frequency.

What to test:

Fasting glucose checks blood sugar after an overnight fast. Normal is under 100 mg/dL; 100-125 indicates prediabetes; 126+ indicates diabetes.

HbA1c reflects average blood sugar over 2-3 months, providing a longer-term picture than a single glucose measurement.

Fasting insulin can identify insulin resistance even when glucose is still normal. High fasting insulin with normal glucose suggests the body is working hard to maintain blood sugar — a state associated with metabolic instability and potentially headaches.

Nutritional Deficiencies

Several vitamin and mineral deficiencies are associated with headaches. These are often overlooked in headache evaluation but are easily identified through blood tests and, importantly, are easily treated. Addressing nutritional deficiencies can significantly reduce headache frequency for many people.

Magnesium deficiency:

Magnesium plays a crucial role in headache prevention, particularly for migraines. This essential mineral is involved in hundreds of biochemical reactions in the body, many of which are relevant to headache:

Studies consistently show that migraine sufferers often have lower magnesium levels than non-migraine sufferers, and magnesium supplementation can reduce migraine frequency by 40% or more in some studies. Magnesium deficiency is common due to modern processed diets, chronic stress (which depletes magnesium), certain medications (diuretics, proton pump inhibitors), and digestive conditions affecting absorption. Up to 50% of the population may have inadequate magnesium intake.

Vitamin D deficiency:

Low vitamin D has been associated with increased headache and migraine frequency in multiple studies. The mechanisms may include:

Given that vitamin D deficiency affects up to 75% of adults in some populations, it’s worth testing in anyone with chronic headaches. Correction of deficiency may take several weeks to months to show full benefit.

Vitamin B12 deficiency:

B12 deficiency can cause headaches through several mechanisms:

Vitamin B2 (Riboflavin):

Riboflavin is involved in mitochondrial energy production, and deficiency may impair the brain’s energy metabolism, triggering migraines. High-dose riboflavin is used as migraine prevention.

Coenzyme Q10:

CoQ10 is another mitochondrial nutrient linked to headaches. Deficiency may contribute to migraine susceptibility.

What to test:

Magnesium — though blood levels don’t always reflect tissue levels, low blood magnesium definitely indicates deficiency.

Vitamin D (25-OH)

Vitamin B12

Homocysteine — elevated levels are associated with migraine and can indicate B12, folate, or B6 deficiency.

Inflammation and Headaches

Systemic inflammation — chronic low-level inflammation throughout the body — is increasingly recognized as a contributor to many types of headaches, including migraines.

How inflammation causes headaches:

Conditions causing inflammatory headaches:

Giant cell arteritis:

In adults over 50, new headaches — especially with scalp tenderness, jaw claudication (pain with chewing), or visual changes — require urgent evaluation for giant cell arteritis (GCA), an inflammatory condition of blood vessels that can cause blindness if untreated. ESR and CRP are usually markedly elevated.

What to test:

CRP (C-Reactive Protein) or hs-CRP measures systemic inflammation.

ESR (Erythrocyte Sedimentation Rate) — another inflammation marker, particularly important in suspected giant cell arteritis.

CBC — elevated white blood cells can indicate infection or inflammation.

Hormonal Headaches

Hormonal fluctuations are a major trigger for headaches, particularly migraines. This explains why migraines are three times more common in women than men after puberty.

Menstrual migraines:

The drop in estrogen just before and during menstruation triggers migraines in many women. These “menstrual migraines” often occur in a predictable window around the period and may be more severe and longer-lasting than migraines at other times.

Perimenopause and menopause:

The hormonal fluctuations of perimenopause often worsen migraines. Estrogen levels swing unpredictably, creating frequent triggers. For some women, headaches improve after menopause when hormones stabilize at lower levels; for others, they persist or worsen.

Hormone replacement therapy:

HRT can either improve or worsen headaches depending on the individual, the type of hormones used, and the route of administration.

Oral contraceptives:

Birth control pills can trigger or worsen headaches in some women, particularly during the placebo week when estrogen drops. For others, they stabilize hormones and reduce headaches.

What to test:

For women with headaches that seem hormonally related:

Estradiol — the primary estrogen

Progesterone

FSH — helps identify menopausal status

LH

Note: A single hormone test is a snapshot in time. Hormones fluctuate throughout the menstrual cycle, so interpretation requires knowing where in the cycle the test was done.

Other Conditions Causing Headaches

Beyond the major categories discussed above, several other conditions commonly cause or contribute to headaches. Many of these are easily addressable once identified.

Dehydration:

Dehydration is one of the most common and easily corrected causes of headaches. The mechanism is straightforward: when the body loses fluid, blood volume decreases, and the brain may temporarily contract or shrink slightly, pulling away from the skull. This triggers pain receptors in the meninges (the membranes surrounding the brain). Additionally, dehydration reduces blood flow to the brain, impairs the removal of waste products, and affects electrolyte balance.

Dehydration headaches often occur after exercise without adequate fluid replacement, during hot weather, after alcohol consumption (alcohol is a diuretic), or simply from not drinking enough water throughout the day. The headache typically improves within 30 minutes to 3 hours of drinking water. Prevention is simple: maintain adequate hydration throughout the day, don’t wait until you’re thirsty, and increase intake during exercise or hot weather.

High blood pressure:

Contrary to popular belief, mild to moderate hypertension rarely causes headaches — most people with high blood pressure have no symptoms at all. However, severely elevated blood pressure (hypertensive crisis, typically above 180/120) can cause intense headaches, often described as throbbing or pounding, sometimes accompanied by visual changes, chest pain, shortness of breath, or confusion. This is a medical emergency.

Chronically elevated blood pressure may contribute to headaches in some people, particularly when blood pressure is poorly controlled. Good blood pressure management can reduce headache frequency in these cases. Conversely, some blood pressure medications can cause headaches as a side effect.

Sleep apnea:

Obstructive sleep apnea causes morning headaches through multiple mechanisms: repeated oxygen drops during the night (hypoxia), fragmented sleep preventing restorative rest, elevated CO2 levels, and increased intracranial pressure during apneic episodes. The classic pattern is waking with a headache that improves as the day goes on — the opposite of most other headache types. Sleep apnea headaches are often described as pressing or dull rather than throbbing.

Risk factors include snoring, obesity, witnessed pauses in breathing during sleep, and excessive daytime sleepiness despite seemingly adequate sleep time. If you have morning headaches along with any of these, a sleep study may be warranted. Treating sleep apnea with CPAP or other therapies often eliminates the headaches.

Caffeine — a double-edged sword:

Caffeine has a complex relationship with headaches. It can help treat headaches — it’s an ingredient in many headache medications because it constricts blood vessels and enhances the effectiveness of pain relievers. However, regular use leads to physical dependence, and missing or reducing caffeine intake causes withdrawal headaches, typically starting 12-24 hours after the last dose and peaking around 20-51 hours. These headaches are often described as throbbing and may be accompanied by fatigue and irritability.

Excessive caffeine can also trigger headaches directly. The solution is moderation and consistency: if you drink caffeine, keep your intake steady day to day (including weekends) and don’t exceed 200-400mg daily (roughly 2-4 cups of coffee). If you want to reduce caffeine, do so gradually to avoid withdrawal.

Medication overuse headache:

This is one of the most important headache causes to understand. Paradoxically, taking headache medications too frequently (more than 2-3 days per week) can cause “rebound” or “medication overuse” headaches. The brain adapts to the frequent presence of pain medication, and when levels drop between doses, headache recurs — leading to more medication use, which perpetuates the cycle.

This can happen with any acute headache medication, including over-the-counter options like ibuprofen, acetaminophen, and aspirin, as well as prescription medications like triptans. The only solution is to break the cycle by gradually reducing or stopping the overused medication, usually under medical supervision. Prevention is key: use preventive strategies and limit acute medications to 2-3 days per week maximum.

The Testing Strategy for Headaches

Not everyone with headaches needs blood tests. However, testing is valuable when headaches are chronic, changing, don’t respond to typical treatments, or are accompanied by other symptoms.

Core tests for chronic headaches:

Thyroid function:

Complete blood count:

Iron studies:

Metabolic:

Nutritional:

Additional tests based on clinical picture:

What to Do With the Results

If thyroid dysfunction is found:

Treatment of hypothyroidism or hyperthyroidism often reduces headache frequency and severity. Headache improvement may take several weeks as thyroid levels normalize. If headaches persist after thyroid treatment is optimized, other causes should be investigated.

If anemia or iron deficiency is found:

Iron supplementation for iron deficiency typically improves headaches as stores replenish over 2-3 months. B12 or folate supplementation for those deficiencies also often helps. Severe anemia may need faster treatment.

If blood sugar abnormalities are found:

Stabilizing blood sugar through diet, lifestyle, and sometimes medication often reduces headaches. Eating regular meals with protein and complex carbohydrates, avoiding sugar spikes, and treating insulin resistance all help.

If nutritional deficiencies are found:

Supplementation with magnesium, vitamin D, or B vitamins often reduces headache frequency over weeks to months. Adequate dosing is important — discuss appropriate amounts with your healthcare provider.

When Tests Are Normal

Normal blood tests rule out many secondary causes but don’t mean headaches aren’t real or that nothing can help. Consider:

Lifestyle Approaches for Headache Prevention

Regardless of the underlying cause, these evidence-based strategies help reduce headache frequency and severity. Even when an underlying condition is being treated, these lifestyle factors can make a significant difference:

The Bottom Line

Chronic headaches deserve investigation, not just symptom management. While many headaches are primary conditions (migraines, tension headaches) that require clinical management, a significant number have underlying causes that blood tests can identify — and treating those causes can dramatically reduce or eliminate headaches.

The key treatable causes that blood tests can reveal include:

Identifying and treating these underlying causes can be transformative. Rather than simply managing pain — taking medication after medication to treat symptoms — addressing the root cause can eliminate headaches altogether in some cases. Even when it doesn’t eliminate them completely, treating underlying conditions often reduces frequency and severity significantly.

Don’t assume that frequent headaches are just something you have to live with. A relatively simple panel of blood tests can identify or rule out many common causes. The investment in testing is worthwhile: finding a treatable cause changes the entire trajectory of headache management from chronic symptom control to actual resolution.

And even when blood tests are normal, that information is valuable. Normal results narrow the diagnosis to primary headache disorders (migraines, tension headaches, cluster headaches), for which effective evidence-based treatments exist. Knowing that metabolic and nutritional causes have been ruled out allows focused treatment of the primary headache itself.


Key Takeaways

Frequently Asked Questions
When should I see a doctor about headaches?

See a doctor if headaches are frequent (more than a few times per month), severe enough to affect your daily life, new or changed in character, not responding to over-the-counter medications, accompanied by other symptoms like fatigue or weight changes, or if you’re taking pain relievers more than 2-3 days per week. Seek immediate care for sudden severe headache, headache with fever and stiff neck, headache with neurological symptoms, or any headache that feels different or worse than usual.

What blood tests should I get for chronic headaches?

A reasonable initial panel includes thyroid function (TSH, Free T4), complete blood count (CBC) for anemia, ferritin for iron stores, fasting glucose and HbA1c for blood sugar, and vitamin D. Depending on symptoms, magnesium, vitamin B12, and inflammatory markers (CRP, ESR) may be added. For women with menstrually-related headaches, hormone testing may be relevant. This panel identifies the most common metabolic and nutritional causes of secondary headaches.

Can thyroid problems cause headaches?

Yes, both hypothyroidism and hyperthyroidism can cause headaches. Hypothyroidism affects pain processing, causes fluid retention, and is associated with conditions like sleep apnea that cause headaches. Hyperthyroidism increases metabolic demand and cardiovascular activity, which can trigger headaches. Studies show higher headache prevalence in people with thyroid disorders. Treating the thyroid condition often significantly reduces headache frequency and severity.

Can low iron cause headaches without anemia?

Yes, iron deficiency can cause headaches even before hemoglobin drops enough to diagnose anemia. Iron is involved in neurotransmitter production, including serotonin and dopamine which play roles in migraine. Studies show that people with low ferritin (iron stores) have increased migraine frequency. This is why testing ferritin — not just hemoglobin — is important when investigating headaches. Iron supplementation can reduce headaches even in non-anemic people with low ferritin.

Can blood sugar cause headaches?

Yes, blood sugar problems commonly cause headaches. Low blood sugar (hypoglycemia) triggers headaches through direct glucose deprivation and stress hormone release. Reactive hypoglycemia — when blood sugar drops a few hours after eating — is a common headache trigger. Blood sugar fluctuations from insulin resistance can cause headaches even without frank hypoglycemia. Skipping meals is a well-known headache trigger for this reason. Stabilizing blood sugar through regular meals and balanced eating often reduces headaches.

Can vitamin deficiencies cause headaches?

Yes, several vitamin and mineral deficiencies are associated with headaches. Magnesium deficiency is particularly linked to migraines — magnesium affects nerve signaling, blood vessel tone, and inflammation. Vitamin D deficiency is associated with increased headache frequency. Vitamin B12 deficiency can cause headaches through anemia and direct neurological effects. Riboflavin (B2) deficiency may impair brain energy metabolism. Correcting these deficiencies often reduces headache frequency over weeks to months.

Are headaches a sign of something serious?

Most headaches are not caused by serious conditions — they’re either primary headaches (migraines, tension headaches) or secondary to benign causes like thyroid dysfunction or nutritional deficiencies. However, certain patterns are concerning: sudden severe “thunderclap” headache, headache with fever and stiff neck, headache with neurological symptoms (weakness, vision changes, confusion), new headaches after age 50, or progressively worsening headaches. These require prompt evaluation to rule out serious causes like stroke, meningitis, or tumor.

How quickly will headaches improve after treating the underlying cause?

This varies by cause. Thyroid treatment typically improves headaches over 2-4 weeks as hormone levels normalize. Iron supplementation takes 2-3 months to fully replenish stores and reduce headaches. Vitamin D and magnesium supplementation may help within weeks to months. Blood sugar stabilization can improve headaches within days to weeks. Some improvement may be noticed quickly, but full benefit often takes time. If headaches don’t improve despite treating an identified cause, additional factors may be contributing.

Can taking too many pain relievers cause headaches?

Yes, medication overuse headache (MOH) or “rebound headache” is a common problem. Taking acute headache medications (including over-the-counter pain relievers, triptans, or combination medications) more than 2-3 days per week can paradoxically cause more headaches. This creates a cycle where the medication causes headaches, leading to more medication use. The solution is gradual withdrawal from the overused medication under medical supervision, combined with preventive strategies.

What if blood tests are normal but I still have chronic headaches?

Normal blood tests rule out thyroid dysfunction, anemia, nutritional deficiencies, and other metabolic causes. If results are normal, you likely have a primary headache disorder (migraine, tension-type, or cluster headaches) which is diagnosed clinically. Effective treatments exist including lifestyle modifications, preventive medications, and acute treatments. Consider whether medication overuse could be contributing. A headache diary can identify triggers. Sleep apnea, TMJ disorders, and cervical spine issues may need separate evaluation. Normal blood tests are still valuable — they narrow the diagnosis and guide appropriate treatment.

References

Key Sources:

  1. Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1-211. https://doi.org/10.1177/0333102417738202
  2. Bigal ME, Lipton RB. The epidemiology, burden, and comorbidities of migraine. Neurologic Clinics. 2009;27(2):321-334. https://doi.org/10.1016/j.ncl.2008.11.011
  3. Martin VT, Behbehani MM. Toward a rational understanding of migraine trigger factors. Medical Clinics of North America. 2001;85(4):911-941. https://doi.org/10.1016/s0025-7125(05)70351-5
  4. Mauskop A, Varughese J. Why all migraine patients should be treated with magnesium. Journal of Neural Transmission. 2012;119(5):575-579. https://doi.org/10.1007/s00702-012-0790-2
  5. Prakash S, Shah ND. Chronic tension-type headache with vitamin D deficiency: casual or causal association? Headache. 2009;49(8):1214-1222. https://doi.org/10.1111/j.1526-4610.2009.01483.x
  6. Lima-Oliveira G, et al. Role of thyroid hormones in migraine headache: a systematic review. Neurology International. 2023;15(2):653-668. https://doi.org/10.3390/neurolint15020041
  7. Pamuk GE, et al. The importance of serum ferritin level in migraine. European Journal of Neurology. 2016;23(1):50-52. https://doi.org/10.1111/ene.12794
  8. Cavestro C, et al. Insulin metabolism is altered in migraineurs. Headache. 2007;47(10):1436-1442. https://doi.org/10.1111/j.1526-4610.2007.00953.x
  9. Calhoun AH. Hormonal contraceptives and migraine with aura — is there still a risk? Headache. 2017;57(2):184-193. https://doi.org/10.1111/head.12960
  10. Silberstein SD. Practice parameter: Evidence-based guidelines for migraine headache. Neurology. 2000;55(6):754-762. https://doi.org/10.1212/WNL.55.6.754
Relevant Articles

Choose your region

We offer health testing services in select regions.