A headache that lingers for an entire day is almost always a tension-type headache, though dehydration, poor sleep, screen time, skipped meals, or caffeine withdrawal can all keep head pain going for hours. Tension-type headaches can last anywhere from 30 minutes to seven days, so an all-day headache fits squarely within that range. The good news is that most causes are fixable once you identify what’s driving yours.
Tension-Type Headache: The Most Likely Cause
Tension-type headaches account for the vast majority of headaches people experience. The pain is typically pressing or tightening (not throbbing), affects both sides of your head, and stays at a mild to moderate intensity. Walking, climbing stairs, or other routine physical activity won’t make it worse, which is one of the clearest ways to distinguish it from a migraine. You also won’t have nausea or vomiting, though you might notice mild sensitivity to light or sound.
These headaches are closely tied to muscle tension in the scalp, neck, and shoulders. Stress, poor posture, clenching your jaw, or holding your head in one position for hours can all trigger one. The pain tends to build gradually and stick around, which is why it can easily last from morning to night without ever becoming severe enough to stop you in your tracks.
Dehydration Shrinks Brain Tissue
When your body loses more fluid than it takes in, your brain physically contracts. As it pulls away from the skull, it tugs on the surrounding nerves, producing a steady, dull ache. This type of headache often starts in the morning if you didn’t drink enough the day before, and it can persist all day if you continue sipping too little. The fix is straightforward: steady water intake over the next few hours usually resolves it. If the headache eases noticeably within 30 to 60 minutes of drinking water, dehydration was likely the culprit.
Screen Time and Eye Strain
Just two hours of continuous screen use per day is enough to raise your risk of digital eye strain, and most people far exceed that. Your eyes constantly refocus to read the tiny pixels on a screen, and the low contrast between text and background makes them work harder than they would reading print on paper. On top of that, you blink about a third less often while staring at a screen, which dries out your eyes and compounds the strain.
The resulting headache typically settles behind your eyes or across your forehead. It builds over the course of a workday and can bring neck stiffness and shoulder pain along with it. If your headache started a few hours into screen-heavy work, this is a strong possibility. The 20-20-20 rule helps: every 20 minutes, look at something 20 feet away for 20 seconds.
Caffeine Withdrawal
If you normally drink coffee or tea and skipped it today, or had it much later than usual, caffeine withdrawal could explain your all-day headache. Withdrawal headaches can begin within 12 hours of your last dose and peak somewhere between 20 and 51 hours later. They can last up to nine days in heavy caffeine users, though most people feel better within two or three. The headache is usually a diffuse, throbbing ache that feels different from a typical tension headache. A small amount of caffeine will relieve it quickly if you want to confirm the cause.
Poor Sleep the Night Before
Sleep deprivation changes the chemistry inside your brain. A signaling molecule called adenosine builds up in your brain while you’re awake and clears out during sleep. When you don’t get enough rest, adenosine accumulates to abnormally high levels, and the resulting imbalance in brain signaling can trigger a headache that greets you in the morning and follows you through the day. Both too little sleep and fragmented, poor-quality sleep can have this effect. Even one bad night is enough.
Skipped Meals and Low Blood Sugar
Going too long without eating causes your blood sugar to drop, which triggers the release of stress hormones that tighten blood vessels in your head. The headache usually appears four to six hours after your last meal and gets progressively worse the longer you go without food. It often sits across both sides of the head and comes with irritability, difficulty concentrating, and slight shakiness. Eating something substantial, especially a combination of protein and complex carbohydrates, typically brings relief within 30 minutes.
Neck Posture and Cervicogenic Headaches
A headache that starts at the base of your skull and radiates up one side or wraps around to behind your eye may be coming from your neck rather than your head. These cervicogenic headaches are caused by problems in the joints, discs, or muscles of the upper neck, and they’re often triggered by prolonged poor posture, like hunching over a laptop or looking down at your phone for hours.
The key giveaway is that turning or tilting your neck makes the headache worse, and you may notice limited range of motion. You may or may not feel neck pain at the same time. These headaches are commonly mistaken for tension headaches or migraines because the pain is felt in the head even though the source is in the neck.
Could It Be a Migraine?
A migraine feels different from a tension headache in several important ways. The pain is usually throbbing, often on one side of the head, and moderate to severe in intensity. Physical activity like bending over or climbing stairs makes it noticeably worse. Nausea is common, and light, sound, or even smells can become unbearable.
Migraines also have a longer arc than most people realize. The headache phase itself lasts anywhere from several hours to three days, but many people experience a prodrome phase beforehand, with symptoms like unusual fatigue, food cravings, neck stiffness, frequent yawning, or mood changes. About one-third of migraine sufferers also experience aura: visual disturbances like shimmering lights, geometric patterns, or blind spots that develop over about five minutes and last up to an hour. After the headache resolves, a postdrome phase can leave you feeling drained, achy, and foggy for another day or so.
When Pain Relievers Become the Problem
If you’ve been reaching for over-the-counter pain relievers frequently, they may actually be perpetuating your headaches. Medication overuse headache develops when you take acute pain relievers on 10 or more days per month for longer than three months. The headache shows up on 15 or more days per month and often feels like a dull, constant pressure that’s present when you wake up. It creates a cycle: the headache drives you to take more medication, and the medication keeps the headache coming back. Breaking the cycle usually means tapering off the pain reliever, which temporarily worsens the headache before it improves.
Magnesium and Headache Frequency
Low magnesium levels are consistently linked to more frequent and more severe headaches, particularly migraines. Magnesium helps regulate neurotransmitter release, blood vessel tone, and the way nerve cells respond to pain signals. When levels drop too low, nerve cells become more excitable and blood vessels are more prone to spasm. Standard blood tests aren’t great at catching a deficiency because most of the body’s magnesium is stored inside cells, not in the bloodstream. If you get frequent headaches and your diet is low in magnesium-rich foods (leafy greens, nuts, seeds, whole grains), it’s worth considering whether a dietary gap is contributing.
Red Flags That Need Immediate Attention
Most all-day headaches are uncomfortable but not dangerous. A few specific warning signs, however, point to something more serious:
- Sudden, explosive onset: A headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a vascular emergency like a ruptured aneurysm.
- Neurological symptoms: New weakness in an arm or leg, numbness, vision changes, confusion, or difficulty speaking alongside your headache are not typical of any primary headache type.
- Fever, night sweats, or weight loss: These systemic signs suggest an underlying infection or illness driving the headache.
- Headache that changes with position: Pain that gets dramatically worse when you stand up or lie down can indicate a pressure problem inside the skull.
- Steady worsening over days or weeks: Primary headaches tend to come and go. A headache that is clearly and progressively getting worse over time is a red flag for a secondary cause.
- New headache after age 50: Most primary headache disorders begin earlier in life. A new headache pattern starting after 50 raises the likelihood of a secondary cause.

