If you suffer from migraines, it might be time to kick that coffee habit.
Researchers have found that drinking three or more cups a day substantially increases the risk of an attack.
The study tracked 98 sufferers of "episodic" migraines - defined as having the debilitating headaches on up to 14 days a month.
They found that drinking up to two cups of coffee or other caffeinated drinks made no difference to their chance of a migraine.
But when they drank three cups, the risk of having an attack the same day went up by 40 per cent. If they had five cups, it rose by 161 per cent. Study leader Elizabeth Mostofsky, of Harvard University, said: "Drinking one or two caffeinated beverages in a day does not appear to be linked to developing a migraine but three or more servings may be associated with higher odds of developing a headache."