Preventing Headache: Sleep, Vagal Tone, Metabolic Health and Vitamin D

Stopping attacks is half the job. The other half is having fewer of them — and that work is largely metabolic, autonomic and circadian rather than pharmacological.

What follows is graded honestly. Some of it is as well evidenced as any drug on this site. Some of it is promising and not yet proven, and is labelled that way. Lifestyle advice in headache is often delivered as a vague list with no indication of which items actually carry weight, which is why people abandon all of it at once.

Sleep restoration

STRONGEST LIFESTYLE LEVER

The relationship between sleep and headache runs both ways: poor sleep provokes attacks, and attacks wreck sleep. But the direction that matters for prevention is the first one. Insomnia is an established risk factor for episodic migraine becoming chronic, and irregular sleep timing is one of the most reliable attack triggers people can identify in their own diaries.

The intervention with the best evidence is not more sleep — it is more regular sleep. A consistent wake time, held on weekends, does more than an extra hour on a Sunday. Weekend lie-ins are a classic trigger precisely because they shift the body clock.

Two things are worth screening for rather than managing at home. Obstructive sleep apnoea produces morning headache and is very commonly missed, particularly in people who do not fit the expected picture. And cluster headache has a striking tendency to strike from sleep at the same hour, which is a diagnostic clue rather than a sleep problem.

The vagus nerve and autonomic balance

DEVICE EVIDENCE MODERATE, LIFESTYLE EVIDENCE INDIRECT

The vagus nerve is the main parasympathetic pathway between brainstem and body, and it connects into the trigeminocervical complex — the same relay that generates headache pain. That anatomical link is why vagal modulation is a credible target rather than a wellness slogan.

Non-invasive vagus nerve stimulation — a handheld device applied to the neck — has randomized evidence in cluster headache, where it is the better-supported of its indications, and more modest evidence in migraine. It is drug-free and repeatable, which makes it attractive for people who cannot tolerate or should not take preventives.

The lifestyle version of the same idea is raising vagal tone through slow-paced breathing, and through anything that reliably improves heart-rate variability. Be clear about the evidence gap: HRV is a good marker of autonomic state, and the breathing work reliably shifts it, but the trials connecting that shift to fewer headache days are small. It is low-cost and low-risk, which is a reasonable basis for trying it — not the same as a proven treatment.

Metabolic and gut health

EMERGING

Migraine travels with insulin resistance and with gastrointestinal disorders far more often than chance explains. People with migraine have markedly higher rates of irritable bowel syndrome, and the association runs in both directions. The shared mechanisms proposed — systemic inflammation, serotonin signalling in the gut, the gut–brain axis — are biologically plausible and not yet established as causal.

What is practical now: eating regularly matters more than eating any particular thing. Skipped meals and the resulting glucose swings are among the most consistently reported triggers, and they are entirely modifiable. Dehydration behaves the same way.

Elimination diets aimed at hunting individual trigger foods have a poor record and a real cost — people end up eating less, less regularly, which is itself a trigger. If you are chasing a food trigger and getting nowhere, the fasting may be doing more harm than the food.

Vitamin D and other supplements

MIXED — WORTH MEASURING, NOT ASSUMING

Low vitamin D is consistently associated with migraine across observational studies. Supplementation trials are a weaker and less consistent picture: several show a reduction in headache frequency, others show little, and the clearest benefit tends to appear in people who were genuinely deficient to begin with.

The sensible reading is to measure it rather than guess, and to correct a real deficiency — which is worth doing for reasons beyond headache in any case. Supplementing an already-normal level to chase a headache benefit is not supported.

Three others have a longer track record in migraine prevention and are inexpensive: magnesium, riboflavin (vitamin B2) and coenzyme Q10. None is dramatic, all take weeks to months to show anything, and they are best judged against a headache diary rather than an impression.

Two more that earn their place

Aerobic exercise has reasonable trial evidence in migraine prevention — comparable in some studies to a preventive medication. Regular and moderate beats occasional and hard; an abrupt intense session can itself provoke an attack.

Caffeine cuts both ways. It helps acutely, and daily use builds dependence, so that a late or missed coffee becomes a withdrawal headache. If you drink it daily, the relevant variable is consistency of timing.

Anxiety, depression and post-traumatic stress

STRONG AND BIDIRECTIONAL

Headache is not a psychological condition. It becomes a psychological problem because of what it does to your life.

That distinction is the whole section, so it is worth being precise about the direction of travel. Migraine is a neurological disease with a genetic basis. It is not caused by stress, it is not a manifestation of anxiety, and it is not what happens to people who cannot cope. Being told otherwise is one of the most common and most damaging experiences people with headache disorders report, and it is wrong.

What the disease does do is isolate you. Attacks are unpredictable, so you stop committing to things. You cancel, and then you stop being asked. You leave events early, work through attacks you should not be working through, and spend the bad days alone in a dark room by clinical necessity. Because there is nothing to see, the people around you cannot calibrate how bad it is — and a proportion of them quietly conclude you are exaggerating. Many patients have been told as much by a clinician.

Withdrawal, unpredictability, loss of work and social role, and not being believed are the standard ingredients of depression and anxiety in any population. They arrive here as consequences of the disease, not as its cause. The comorbidity is real and it is worth treating — but it is downstream.

The relationship then becomes circular, which is the part that matters clinically: once anxiety and low mood are established they worsen headache frequency and treatment response, and the worsening headache deepens the isolation. Untreated mood and anxiety disorders are among the clearest risk factors for episodic headache becoming chronic. Post-traumatic stress disorder is over-represented in headache clinics and disproportionately in chronic rather than episodic migraine.

Anxiety in particular tends to be underestimated: across studies it is at least as strongly associated with migraine as depression, and it is asked about far less often.

Why we screen for it

Untreated mood and anxiety disorders are among the clearest risk factors for episodic headache becoming chronic. They also predict poorer response to headache treatment, and they raise the risk of the medication-overuse pattern, because more distress means more frequent acute dosing.

The corollary is the useful part: treating the comorbidity improves headache outcomes, not just mood. Some preventives address both at once. Cognitive behavioural therapy and mindfulness-based approaches have genuine trial evidence in migraine — not as a substitute for medical treatment, but alongside it, and with effect sizes that would be taken seriously in any other part of this site.

So we ask. Not to reattribute your headache to your state of mind — but because the disease has been isolating you, that isolation has a cost, and leaving that cost unaddressed makes the headache itself harder to treat.

If you are in crisis, call or text 988 for the Suicide and Crisis Lifeline, 24 hours a day.

The thing to fix first

None of the above will outrun a medication-overuse cycle. If you are treating headache on more than about ten to fifteen days a month, that is the variable dominating your headache frequency, and it should be addressed before judging whether anything else is working.