Middle Insomnia: Why You Wake at 3am and Can't Get Back to Sleep

Blog · Sleep & Energy

Middle Insomnia: Why You Wake at 3am and Can't Get Back to Sleep

By Vitae Team ·

Waking in the night is part of normal sleep. Lying awake for an hour afterwards is something different. Here is what the research says about why it happens, which popular explanations do not hold up, and what the evidence supports as treatment.

Waking in the night is part of normal sleep. Lying awake for an hour afterwards is something different. Here is what the research says about why it happens, which popular explanations do not hold up, and what the evidence supports as treatment.

TL;DR

  • Night waking is normal and very common. Around a third of adults wake frequently, and roughly one in six struggles to get back to sleep.
  • The awakening is rarely the problem. Sleep lightens towards morning. What distinguishes insomnia is what happens in the hour that follows.
  • Cortisol, blood sugar and magnesium are weaker explanations than they look. All three are widely cited and none has been established as a cause of waking in the night.
  • Breathing problems are worth ruling out. Among people with sleep apnoea, difficulty staying asleep is the commonest insomnia complaint, affecting 42%.
  • Your sleep tracker is worst at measuring wakefulness. Six wrist devices tested against clinical sleep studies all underestimated time awake, by 12 to 40 minutes.
  • CBT-I is the strongest established treatment. Sleep hygiene advice on its own is not, and the main US guideline recommends against using it alone.

Night Waking Is Normal, and Very Common

You fall asleep without difficulty, sleep soundly for several hours, then wake at 3.17am. Nothing has disturbed you and the room is quiet. An hour later you are still looking at the ceiling. This is middle insomnia, also called sleep-maintenance insomnia: the difficulty is not falling asleep but staying asleep.

The waking itself is not abnormal. Sleep moves through cycles of non-rapid eye movement and REM sleep, with deep slow-wave sleep concentrated early in the night. Later, REM takes up more of each cycle while the pressure to stay asleep declines, so brief awakenings become more likely and most are too short to remember.

Nor is it rare. In a survey of 8,937 American adults, 35.5% reported waking at least three nights a week, and 43% of those who woke reported difficulty getting back to sleep — 15.2% of the whole sample. So around a third of adults wake often, and about one in six struggles to return to sleep. Those are survey figures for an experience, not a count of diagnosed insomnia. That requires persistent difficulty despite adequate opportunity to sleep, with distress or daytime impairment, usually at least three nights a week for three months.

Why 3am, and Why the Hour After Is the Hard Part

There is nothing biologically special about 3am. Two processes govern sleep: homeostatic pressure, which builds while you are awake and drains while you sleep, and the circadian system, which sets when your body is prepared for sleep. After four or five hours much of the day's pressure has gone, so an awakening then is easier to sustain than one shortly after bedtime.

What happens next is where insomnia is made. For a good sleeper, waking at 3am is followed by an almost effortless return to sleep. For someone with insomnia, the same awakening starts a calculation — how long have I been awake, how much is left, how will I cope tomorrow — and the resulting alertness makes sleep harder even after the original cause has passed.

Researchers call this hyperarousal: worry, attention to bodily sensations, anticipation of a bad night, and a learned association between the bed and being awake. Repeated often enough, the bedroom stops being a cue for sleep. None of this makes insomnia imaginary, and something physical may well be causing the initial awakening, but it does explain why trying harder to sleep produces the opposite result.

Age plays a part too. A meta-analysis of 65 studies and 3,577 healthy people found that time spent awake after first falling asleep rose by around ten minutes per decade between 30 and 60, before levelling off. That is useful context if you slept straight through in your twenties. It is not licence to dismiss persistent insomnia as ageing, because lighter sleep is not the same as lying awake for hours.

What Might Be Waking You

One cause is easy to overlook: disordered breathing. Obstructive sleep apnoea narrows or closes the airway repeatedly during sleep, and the disturbances trigger brief arousals the sleeper may never consciously register. The overlap is common enough to have its own name, COMISA, and a 2019 meta-analysis of 37 studies found that among people with sleep apnoea, difficulty maintaining sleep was the commonest insomnia complaint at 42% — ahead of difficulty falling asleep at 18% and early waking at 21%. In the other direction, the same analysis found apnoea in 35% of people with insomnia using an apnoea-hypopnoea index cutoff of five events an hour, and 29% using a cutoff of fifteen. Those figures move with the threshold, so they describe a substantial minority rather than a fixed proportion.

A 2026 review of the field sets out why it gets missed. The screening questionnaires were built for one condition at a time, and someone with insomnia often does not report daytime sleepiness — plenty feel exhausted yet wired — so the question that would raise suspicion returns a reassuring answer. Snoring, witnessed pauses and gasping are worth reporting. Their absence is weaker reassurance than it sounds.

Alcohol works in the opposite direction to the way most people assume, making sleep easier to start and harder to maintain as its sedative effect wears off. It also alters sleep architecture, worsens snoring and increases overnight urination. In perimenopause and menopause, fluctuating hormones disturb sleep through several routes, and not every episode involves a noticeable hot flush.

Chronic pain, reflux, restless legs, nocturia and some medications all fragment sleep. Stress, anxiety and depression are associated with insomnia bidirectionally, and stress can contribute both to how insomnia starts and to why it persists, with learned arousal one mechanism among several by which difficulties continue. Finding a real trigger matters, because behavioural work will not fix awakenings driven by an untreated condition.

Cortisol, Blood Sugar and Magnesium

Three explanations dominate the search results for waking at 3am. None of them has been established as a cause. Cortisol follows a circadian rhythm, sitting low early in the night and rising towards morning, with a separate rise after waking. These are normal processes. Nothing establishes that waking at a particular hour indicates a pathological cortisol spike, and identifying truly abnormal cortisol takes clinical context and validated testing rather than a reading of the bedside clock. The related claim about adrenal fatigue is worse still: it is not a recognised diagnosis.

The blood-sugar version holds that glucose falls overnight and the stress hormones released to compensate wake you. In healthy people glucose regulation continues during sleep, and this sequence has not been established as an explanation for middle insomnia in anyone without diabetes. The 2003 study usually cited in support points the other way. In adults with type 1 diabetes, autonomic responses to induced hypoglycaemia were reduced during sleep, and those participants were substantially less likely to wake. That study cannot tell us what happens in otherwise healthy people with sleep-maintenance insomnia; what it shows is that the popular account is an oversimplification of the physiology it borrows from. Nocturnal hypoglycaemia is a real concern for anyone on insulin or certain glucose-lowering drugs, but it is not a reason to recommend bedtime snacks to everyone who wakes at 3am.

Magnesium is the third, and the evidence has a specific mismatch. The pooled analysis covers three trials and 151 older adults, and its only significant finding was on sleep onset latency — how long you take to fall asleep — at 17.4 minutes shorter than placebo. Total sleep time was not significant, nothing was reported for time awake during the night, and certainty was rated low to very low with all three trials at moderate-to-high risk of bias. So even at face value, the magnesium evidence concerns getting to sleep rather than staying asleep. And "magnesium depletion" is a causal claim nobody has demonstrated: a supplement effect in people never shown to be deficient says nothing about depletion causing anything.

What Treats It

For chronic insomnia the strongest established treatment is cognitive behavioural therapy for insomnia, or CBT-I. The American Academy of Sleep Medicine's 2021 guideline gives multicomponent CBT-I its only strong recommendation, and recommends against sleep hygiene as a stand-alone treatment while noting it can form part of a programme. CBT-I combines stimulus control, sleep scheduling, education and work on unhelpful expectations. It needs adapting to the individual, particularly where excessive daytime sleepiness, bipolar disorder or seizure disorders are involved.

In the UK, NICE describes CBT-I as the standard first treatment for long-term insomnia, offered after sleep hygiene advice, and notes that access varies by area. If you have worked through the standard advice without improvement, that is a reason to ask about CBT-I rather than to conclude you followed it badly.

In the moment, the useful changes are small. Checking the time turns an awakening into a calculation about how little sleep remains, which raises the pressure and heightens alertness, so keep the clock out of view. Stimulus control suggests leaving the bed when you are awake and frustrated and returning when sleepy — not to obey a 20-minute rule, but to stop the bed becoming tied to effortful wakefulness. Choose something quiet in dim light, and resist making up for a bad night with extra hours in bed, which reduces sleep pressure and worsens fragmentation.

What About Your Sleep Tracker?

Treat the morning score with the same scepticism as the 3am clock. A 2025 study tested six wrist-worn devices against overnight clinical sleep studies in 62 adults. They recognised sleep well, with sensitivity of 91.7% to 96.3%, but recognised wakefulness poorly, at 29.4% to 52.2%.

Every device underestimated time spent awake, by an average of 11.8 to 39.6 minutes, and every device overestimated sleep efficiency. Wake after sleep onset is what defines middle insomnia, and it is the measurement these devices are worst at, so the score cannot settle how badly you slept in either direction. The study was small and mostly male, with one night per person, but the direction of the error held across every device.

What This Actually Means

Waking and lying awake are two questions, and they do not always share an answer. The waking usually belongs to physiology: your body clock, the natural lightening of sleep towards morning, or a specific treatable disturbance. The hour that follows is often sustained by arousal and learned association, which is what CBT-I addresses.

That split has an exception worth knowing. Some causes keep you awake rather than merely waking you — pain that is worse lying down, reflux, restless legs, breathing events that recur each time you drift off — and no amount of behavioural work resolves those until the condition is treated. Often both run at once, a treatable cause having started the pattern while arousal keeps it going, which is why treating one and ignoring the other produces partial results.

It also explains why the popular advice disappoints. Cortisol, blood sugar and magnesium all aim at the moment of waking, often the least interesting part of the night, and none has been shown to drive it. The tracker has the same problem from the other end, being least accurate about the only thing you are trying to change. The two questions worth putting to a clinician are whether something identifiable is disturbing your sleep, and how to access CBT-I.

FAQ

Does waking at 3am mean my cortisol is too high?

No. Cortisol normally rises towards morning, and the timing of an awakening cannot establish abnormal cortisol, which requires clinical assessment and validated testing.

Does magnesium help you stay asleep?

The pooled trial evidence found an effect on how quickly people fell asleep, not on staying asleep, and rated its own certainty as low to very low. Nothing in it addresses time spent awake during the night.

Could it be sleep apnoea even if I do not snore?

Possibly. A meta-analysis found apnoea in 35% of people with insomnia at the lower diagnostic threshold and 29% at the higher one, and the standard screening questions miss it partly because people with insomnia often do not report daytime sleepiness.

Should I trust my sleep tracker's reading of time awake?

No. Six devices tested against clinical sleep studies all underestimated it, by 12 to 40 minutes on average, and identified wakefulness correctly only 29% to 52% of the time.

Is sleep hygiene advice worth following?

As part of a wider programme, yes. As a treatment on its own for chronic insomnia the American Academy of Sleep Medicine recommends against it, and if the standard advice has not worked, that is a reason to ask about CBT-I.

The Bottom Line

Waking at 3am is not in itself a sign that something is wrong, and the cortisol, blood-sugar and magnesium explanations are not supported as causes.

If the waking is persistent and affecting your days, the two things with evidence behind them are finding and treating any underlying disturbance — breathing problems above all — and accessing CBT-I.

This article is for information only. If night waking is persistent or affecting your daytime functioning, speak to your GP, who can review your sleep history, medications and symptoms and assess whether another condition is contributing.

Sources

  • Ohayon MM, Krystal A, Roehrs TA, Roth T, Vitiello MV. Using difficulty resuming sleep to define nocturnal awakenings. Sleep Medicine. 2010;11(3):236-241. doi:10.1016/j.sleep.2009.11.004
  • Ohayon MM, Carskadon MA, Guilleminault C, Vitiello MV. Meta-analysis of quantitative sleep parameters from childhood to old age in healthy individuals. Sleep. 2004;27(7):1255-1273. doi:10.1093/sleep/27.7.1255
  • Zhang Y, Ren R, Lei F, Zhou J, Zhang J, Wing YK, Sanford LD, Tang X. Worldwide and regional prevalence rates of co-occurrence of insomnia and insomnia symptoms with obstructive sleep apnea: a systematic review and meta-analysis. Sleep Medicine Reviews. 2019;45:1-17. doi:10.1016/j.smrv.2019.01.004
  • Nahidi S, Agidi S, El-Solh AA. Comorbid insomnia and sleep apnea: mechanistic convergence, phenotypic heterogeneity, and clinical implications. Current Sleep Medicine Reports. 2026;12:33. doi:10.1007/s40675-026-00384-w
  • Banarer S, Cryer PE. Sleep-related hypoglycemia-associated autonomic failure in type 1 diabetes. Diabetes. 2003;52(5):1195-1203. doi:10.2337/diabetes.52.5.1195
  • Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complementary Medicine and Therapies. 2021;21:125. doi:10.1186/s12906-021-03297-z
  • Edinger JD, Arnedt JT, Bertisch SM, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. 2021;17(2):255-262. doi:10.5664/jcsm.8986
  • Schyvens AM, Peters B, Van Oost NC, et al. A performance validation of six commercial wrist-worn wearable sleep-tracking devices for sleep stage scoring compared to polysomnography. SLEEP Advances. 2025;6(2):zpaf021. doi:10.1093/sleepadvances/zpaf021
  • National Institute for Health and Care Excellence. Daridorexant for treating long-term insomnia. Technology appraisal guidance TA922, 2023. nice.org.uk/guidance/ta922