How to find your migraine triggers with an app: what to log, for how long, and how to read the results

By Alejandro

To find your migraine triggers:

  1. Log every attack, plus a short daily check-in on good days too: sleep, stress, meals, alcohol and caffeine, cycle day and weather.
  2. Keep it up for at least two to three months.
  3. Compare the day or two before each attack with your ordinary days.

A factor counts as a likely trigger when it shows up before attacks clearly more often than it does the rest of the time. An app makes this practical: it’s fast to log during an attack, it can fill in weather, sleep and cycle data automatically, and it does the comparison for you.

That’s the method. The rest of this guide covers each step and the mistakes that make people blame the wrong thing.

This is general information, not medical advice. Treat it as a well-sourced starting point for a conversation with your doctor.

Why you can’t just guess

Most people with migraine have a list of suspected triggers in their head. Memory is a poor tool for this job:

A population list like our top 30 migraine triggers tells you where to look. Only your own data tells you what applies to you.

Step 1: Decide what to log (keep it short)

The best log is one you’ll still be keeping in month three. Start with these:

Every day (a 30-second check-in):

For every attack:

The daily check-in on attack-free days is the part most people skip, and it’s the part that makes the analysis work. Without it you have nothing to compare against.

Step 2: Log the attack while it’s happening

Details logged hours later are fuzzy, and details logged the next day are guesses. Log the start time when the attack starts, even if that’s all you can manage. You can fill in the rest when you feel better. This is where an app beats paper: a widget or a single watch tap is realistic in the middle of an attack, while finding a pen and a notebook often isn’t.

Step 3: Let automatic data do some of the work

Some factors are hard to log by hand but easy for a phone to collect:

Automatic data also avoids recall bias: you didn’t decide afterwards that it was “probably the weather”.

Step 4: Track long enough

Plan on at least two to three months, and longer if attacks are infrequent:

The first few weeks feel pointless. Keep going; patterns usually need more attacks than you’d expect.

Step 5: Read the patterns properly

When you have enough data, look at the 24–48 hours before each attack and ask four questions.

1. Is it more common before attacks than on ordinary days? This is the key test.

Say you had wine before 4 of 10 attacks. That sounds damning. But if you have wine on 40% of all days anyway, it’s exactly what chance predicts. The question isn’t “how often did X come before an attack”, it’s “how much more often than usual”.

2. Is the timing consistent? Real triggers tend to have a typical lag:

A factor that turns up at random times before attacks is less convincing.

3. Could it be an early symptom rather than a cause? The premonitory phase can start hours before the pain, with cravings, yawning, neck stiffness, tiredness and sensitivity to light or smells (Pavlovic 2014; Marmura 2018). Chocolate is the classic example: a 2020 review found no controlled study where chocolate caused more attacks than a placebo (Nowaczewska 2020). The craving is often the attack starting. If a “trigger” usually arrives together with your early warning signs, be suspicious.

4. Does it only matter in combination? Many triggers only push you over the threshold when several stack up: a short night, plus a skipped lunch, plus falling pressure on day 1 of your period. Look for combinations that keep recurring, not just single items.

Step 6: Test one thing at a time

A pattern in your log is a lead, not a verdict. Before you cut something out:

When to see a doctor

Tracking doesn’t replace medical care, and a good log makes appointments much more useful.

See a doctor if:

Medication overuse: taking acute medication often can itself cause more headaches. ICHD-3 uses 10 or more days a month for triptans and combination painkillers, and 15 or more for simple painkillers (ICHD-3). If you’re near those numbers, raise it with your doctor.

Get urgent help for:

Bring your log, or an exported report, to the appointment. Attack frequency, how many days a month you take medication, and a MIDAS score are the numbers most clinicians want.

How a migraine app helps (and what it can’t do)

You can do all of this on paper; our printable migraine diary is built for it. An app mainly helps in four ways:

What it can’t do is prove cause and effect. Treat anything an app flags as a lead to test (Step 6) and discuss with your doctor.

For a side-by-side look at the options, see our comparison of migraine tracker apps. Choose the one you’ll actually open every day.

Disclosure: I built one of these apps, Migra, for iPhone. It’s designed around this method:

It’s one option, not the only one. More about who makes it is on the about page.

The short version

  1. Log every attack, and do a 30-second check-in on good days too.
  2. Let your phone collect weather, sleep and cycle data.
  3. Keep going for at least two to three months.
  4. Look for factors that show up more often before attacks than usual, with consistent timing, and that aren’t really early symptoms.
  5. Test one change at a time, and bring the log to your doctor.

Frequently asked

How long does it take to find your migraine triggers?

▾

Plan on at least two to three months of daily logging, ideally covering several attacks and, if you menstruate, at least two or three cycles. A research study that built personal trigger profiles used 90 days of diaries. Less than a month usually isn't enough to separate real patterns from coincidence.

What should I log to find my migraine triggers?

▾

Log every attack (start time, severity, early symptoms, medication) plus a short daily check-in on non-attack days too: sleep, stress, meal times, alcohol and caffeine, cycle day and weather. Logging only on attack days makes everything look like a trigger, because you have nothing to compare against.

Can a migraine app find my triggers for me?

▾

An app can make logging fast, fill in data like barometric pressure, sleep and cycle automatically, and show which factors show up most often before your attacks. It can't prove cause and effect. Treat its patterns as leads to discuss with your doctor and test one at a time.

How do I know if something is a trigger or an early symptom?

▾

Look at timing. Many people have premonitory symptoms hours before the pain, such as food cravings, yawning, neck stiffness or sensitivity to light. If the 'trigger' tends to appear together with those signs, or only once you already feel off, it may be part of the attack rather than its cause.

When should I see a doctor about my migraine?

▾

See a doctor if attacks are getting more frequent or severe, happen more than once a week, or you're taking pain relief on many days a month. Get urgent help for a sudden, extremely painful headache, problems speaking, weakness on one side, vision loss, confusion or a seizure.

Sources

  1. Peris et al., 2017 — Determining potential trigger factors in individual patients (Cephalalgia, n=326)
  2. Houle & Turner, 2013 — Natural experimentation is a challenging method for identifying headache triggers (Headache)
  3. Turner et al., 2013 — Causality and headache triggers (Headache)
  4. Marmura, 2018 — Triggers, Protectors, and Predictors in Episodic Migraine (Curr Pain Headache Rep)
  5. Pavlovic et al., 2014 — Trigger factors and premonitory features of migraine attacks: summary of studies (Headache)
  6. Lipton et al., 2014 — Reduction in perceived stress as a migraine trigger (Neurology)
  7. Nowaczewska et al., 2020 — A review of the relationship between chocolate and migraines (Nutrients)
  8. ICHD-3 — 8.2 Medication-overuse headache
  9. American Migraine Foundation — Headache Journals: Tracking Your Migraine
  10. NHS — Migraine