Migraine · 2026-09-12

How to find your migraine triggers with a diary in 30 days

Last updated: 2026-09-12

You can pin down your most likely migraine triggers in roughly 30 days if you log every day, not only on attack days. The key is to record sleep, stress, meals, caffeine and weather on the calm days too, then compare the 48 hours before each attack with your normal baseline. Notes taken only on attack days cannot support that comparison, which is why most paper diaries never deliver an answer.

I have lived with migraines for years and have tried the "write it down when it hurts" approach more than once. It never worked. What finally did work was a short daily check-in, a one-tap log the moment an attack started, and a monthly review. That method is below, along with the research behind it.

Why most trigger hunts fail

Three things break a diary before it can help you.

Logging only on attack days. A trigger is something that shows up more often before attacks than on ordinary days. If you never record ordinary days, you have nothing to compare against. A diary with a baseline is the whole point.

Confusing prodrome with cause. The prodrome is the early phase of a migraine attack and can start up to 48 hours before the head pain. It brings yawning, neck stiffness, fatigue, mood shifts and food cravings. Many people eat chocolate because the attack has already begun, then blame the chocolate. The American Migraine Foundation makes this exact point, and a 2020 review of 23 studies found no provocation trial where chocolate reliably caused attacks versus placebo.

Trusting memory. Recalling how you slept three nights ago is guesswork. Logging it the same day, or pulling it from your phone's health data, is not.

The 30-day plan

Here is the routine that produced a usable trigger list for me in one month. It takes under a minute a day.

  1. Pick a start date and commit to daily entries. Not attack entries. Daily. Research diaries typically run 28 days to 3 months, and a month is the minimum for a pattern to show.
  2. Log the same seven things every evening. Sleep hours, stress level, hydration, meals skipped, caffeine, exercise and mood. Keep each one to a tap or a number.
  3. Log an attack the moment it begins. Record the timestamp first. Intensity, location and medication can wait until you feel better.
  4. Add weather automatically. Barometric pressure is the one trigger you cannot feel coming, so let an app pull it for you rather than guessing.
  5. Note medication and whether it worked. This matters for your doctor as much as for trigger hunting.
  6. Do not change anything for the first month. Elimination diets and lifestyle changes during the logging window muddy the data.
  7. Review at day 30. Look at the 48 hours before each attack and ask which logged factors were unusual compared with your quiet days.

What to actually track

You do not need a long form. A large 2016 study published in PLOS One followed 62 people with episodic migraine using a smartphone headache diary. Across 4,579 diary days, the factors most often present before attacks were stress, sleep deprivation, fatigue, hormonal changes and weather changes. Stress appeared before roughly 58 percent of headaches and short sleep before roughly 55 percent.

So those are the fields worth capturing every single day:

Everything else is optional. Food triggers are worth a look, but the American Migraine Foundation notes a food only counts as a suspect if the attack follows within 24 hours, and it has to repeat.

How to read the diary at day 30

The comparison you want is simple. For each attack, look back 48 hours. Which factors were different from your average quiet day? A factor that shows up before most attacks but rarely on normal days is a candidate trigger.

Then apply two filters. First, does the factor appear before the attack more than a couple of times? One coincidence is not a pattern. Second, could it be prodrome? Cravings, tiredness and irritability in that window are more likely symptoms than causes.

Barometric pressure deserves a careful reading. A 2025 systematic review of 14 studies covering 2,696 people found several studies linking pressure drops or rapid changes to more frequent attacks, while others found no association. In other words, weather is a real trigger for some people and not others, which is exactly why your own diary matters more than a general rule.

Doing it with an app instead of paper

I use the Migraine Tracker app from Scriptstash for this because it removes the two hardest parts: remembering to log and doing the comparison by hand.

The daily check-in takes about 30 seconds and covers sleep, stress, hydration, meals, caffeine, exercise and mood. Sleep and weather auto-fill from Apple Health and WeatherKit, so the baseline builds itself even on days you barely open the app. When an attack starts, Attack Mode logs the timestamp with a single tap on a dark, low-contrast screen. There is also a Lock Screen widget for that tap. Details can be added later, and the app reminds you two hours after the attack ends.

At review time, the premium Trigger Detective feature analyzes the 48 hours before each attack and surfaces correlations in plain language, such as how often pressure drops preceded your attacks. The Doctor Report turns the month into a PDF you can hand to a neurologist. Everything is stored on your iPhone, with no account and no cloud copy of your health history.

You can read more or grab it at scriptstash.com/migraine, or on the App Store. The core logging and check-ins are free.

What to bring to your neurologist

After 30 days you should have: the number of attack days, average duration and intensity, which medications you took and whether they helped, and a short list of two or three candidate triggers with the evidence behind each. That is far more useful to a clinician than "I think it might be stress."

If a month shows no pattern at all, that is a result too. Some people have no reliable external triggers, and knowing that stops a long, frustrating hunt. Keep logging for a second month and look again, since low attack frequency needs more data.

FAQ

How long does it take to identify migraine triggers with a diary?

Around 30 days of daily logging is the practical minimum, and research diaries run from 28 days to 3 months. The more attacks you have in the window, the faster patterns emerge. If you get one or two attacks a month, plan on two to three months before drawing conclusions.

Should I log on days I don't have a migraine?

Yes, every day. Quiet days are your baseline, and a trigger is only meaningful when it is more common before attacks than on ordinary days. A diary with only attack entries cannot show that difference.

Is chocolate really a migraine trigger?

Probably not for most people. A 2020 review of 23 studies found chocolate was reported as a trigger by a small share of people, and no provocation study could separate chocolate from placebo. Craving sweets is a common prodrome symptom, so the craving often comes from an attack already under way.

What is the difference between a trigger and a prodrome symptom?

A trigger is an external factor that raises the chance of an attack, like short sleep or a pressure drop. A prodrome symptom is an early sign the attack has already begun, up to 48 hours before the pain. Yawning, neck stiffness, fatigue and food cravings are prodrome symptoms that are easily mistaken for causes.

Does barometric pressure cause migraines?

For some people, yes. A 2025 systematic review found several studies linking pressure drops or rapid changes to more frequent attacks, but not all studies agreed. Automatic weather logging in your diary is the only way to know whether it applies to you.

What should I log during an attack if I can barely look at my phone?

Just the start time. Everything else, including intensity and medication, can be added once you feel better. A one-tap log on a dim screen is enough to keep the record accurate, and an app can remind you to fill in the details later.

Download Migraine — free on the App Store.

Download on the App Store