Back to the journal

Insomnia: types, waking at 3am, CBT-I and supplements

Trouble falling asleep, waking at around 3am or waking too early: how to recognise your type of insomnia, understand night-time waking and apply CBT-I. What melatonin, magnesium and herbal ingredients are really worth, and when to see your GP.

Lit défait aux draps de lin blanc froissés et oreiller, dans la lumière bleutée de l'aube, avec un verre d'eau sur la table de chevet.

Insomnia that affects how you function during the day concerns 9 to 15% of adults, according to population surveys. It covers quite different situations: taking an hour to fall asleep, waking every night at around 3am, or opening your eyes at 5am and not getting back to sleep. Here is how to tell these forms apart, understand night-time waking, apply the best-proven therapy and put the supplements that have been studied into perspective.

Key points

  • Insomnia is described as chronic when sleep difficulties and their daytime effects occur at least 3 times a week for at least 3 months.
  • Cognitive behavioural therapy for insomnia (CBT-I) is the first-line treatment: in a meta-analysis of 20 trials, it reduced time awake during the night by 26 minutes.
  • Melatonin shortens the time taken to fall asleep by about 7 minutes on average: a real but modest effect.
  • The data on magnesium are encouraging but of low quality; snoring, restless legs or low mood warrant a visit to your GP.

What is insomnia, and when does it become chronic?

Insomnia is difficulty falling asleep or staying asleep even though the conditions are right (enough time, a quiet bedroom), with an impact during the day: fatigue, irritability, poorer concentration, worry about sleep. Sleeping little while feeling well is not insomnia.

The international classifications (DSM-5, ICSD-3, ICD-11), which are now aligned, speak of chronic insomnia when the problems occur at least 3 times a week for at least 3 months, and are not better explained by another sleep disorder. Below that threshold, it is acute insomnia, often linked to an event (bereavement, exams, conflict, illness). About a third of adults report at least one symptom, but only 6% meet the criteria for a diagnosis, women more often than men.

Trouble falling asleep, waking at night, waking too early: what types of insomnia are there?

These patterns often overlap; identifying the main one points you in the right direction.

TypeWhat happensAvenues to explore
Sleep onsetA long time before falling asleepAnxiety, rumination, caffeine, screens, “night owl” profile
Sleep maintenanceRepeated or prolonged night-time wakingAlcohol, needing to pass urine, pain, hot flushes, apnoea
Early wakingWaking well before the desired timeDepression, body clock shifting earlier with age, stress
AcuteA few nights to a few weeksTriggering event, often resolves on its own
Chronic3 nights a week or more, for 3 months or moreHabits that keep the problem going, associated illness

Stress often triggers insomnia; habits then keep it going (lying awake in bed, naps, going to bed earlier “to catch up”). These are what CBT-I targets.

Why do you wake up at 3 or 4am?

Several causes often add up.

  • Sleep cycles. The night is made up of several cycles. Deep sleep dominates early in the night, light and REM sleep later on. Brief awakenings between two cycles are normal, but an anxious person notices them and stays awake.
  • Cortisol. Low early in the night, it gradually rises towards morning to prepare you to wake. In a stressed person, this rise can coincide with racing thoughts (see our article on the cortisol rhythm).
  • Alcohol. At all doses, it shortens the time taken to fall asleep and consolidates the first half of the night, but increases disruption in the second half. The “nightcap” simply moves the problem to the early hours.
  • Nocturia. Getting up to pass urine, common with age, fragments the night.
  • Sleep apnoea. Pauses in breathing cause micro-awakenings; insomnia and apnoea overlap in 30 to 50% of cases depending on the study.
  • Hot flushes during perimenopause, which wake you in the middle of the night.

What can you do about chronic insomnia?

CBT-I is recommended as the first-line treatment for chronic insomnia in adults by the 2023 European guideline (grade A) and by the American Academy of Sleep Medicine (strong recommendation). It is delivered by a trained professional, in a group or through a validated digital programme.

Sleep restriction

Time in bed is reduced to the time actually spent asleep, measured with a sleep diary. Sleep pressure builds and the night becomes more consolidated. When sleep efficiency (time asleep divided by time in bed) exceeds 85 to 90%, the window is extended, often every week, without going below 4.5 to 6 hours depending on the protocol. The first few days are tiring: take care when driving; it is not suitable for people with epilepsy or a condition made worse by lack of sleep.

Stimulus control

The aim: to re-associate bed with sleep. Go to bed only when sleepy, keep the bed for sleep and sex, get up if you stay awake for a long time (judged without looking at the clock) and keep the same wake-up time every day. Together with sleep restriction, this is the most active component according to the European guideline.

Cognitive restructuring and sleep hygiene

The cognitive component works on the beliefs that keep you awake (“without 8 hours' sleep, my day is ruined”) and on rumination. Sleep hygiene completes the picture: daylight in the morning, physical activity, a cool bedroom. As for caffeine, 400mg taken 6 hours before bedtime still disrupted sleep in one trial: it is best to stop in the early afternoon. On its own, sleep hygiene is not enough, and the American guidelines advise against using it as the sole intervention.

How strong is the evidence?

A meta-analysis of 20 randomised trials (1,162 adults) found that people fell asleep 19 minutes faster, spent 26 fewer minutes awake during the night and improved their sleep efficiency by almost 10 points, with benefits that appeared to last and no reported adverse effects. Total sleep time increased by only 7.6 minutes, with no significant difference: CBT-I acts first and foremost on the continuity of the night.

What do the guidelines say about medicines?

If CBT-I is not enough, the European guideline provides for a doctor to offer a medicine. Benzodiazepines, related drugs (the “Z-drugs”), daridorexant and low-dose sedating antidepressants are reserved for short-term use (4 weeks at most), while orexin antagonists can be used for up to 3 months; prolonged-release melatonin, on prescription, may be considered for up to 3 months after the age of 55. The guideline does not recommend antihistamines, immediate-release melatonin or herbal products for treating insomnia.

Which supplements have been studied for sleep?

No supplement treats chronic insomnia. Some ingredients have, however, been tested in controlled trials.

IngredientMain dataLevel of evidence
Melatonin19 trials, 1,683 participants: time to fall asleep −7 minMeta-analysis: modest effect that is sustained
Magnesium3 trials, 151 older people: time to fall asleep −17 minLow to very low (moderate to high risk of bias)
Magnesium L-threonate1 trial, 80 adults, 1g a day, 21 daysPreliminary: single trial, linked to the supplier
Ashwagandha5 trials, 400 participants: small overall effectLimited, long-term safety poorly documented
Valerian16 trials, 1,093 patientsLow: weak methodology, publication bias
GlycineSmall trials on perceived quality, animal dataVery preliminary

Melatonin

In a meta-analysis of 19 trials, melatonin helped people fall asleep 7 minutes faster, gave 8 minutes more sleep and slightly better sleep quality, modest effects that did not fade over time. EU regulation authorises the claim “Melatonin contributes to the reduction of time taken to fall asleep” for a product providing 1mg per portion, the effect being obtained by consuming 1mg close to bedtime. See also melatonin and sleep.

Magnesium, including L-threonate

The authorised claims for magnesium are “Magnesium contributes to normal functioning of the nervous system”, “Magnesium contributes to normal psychological function” and “Magnesium contributes to a reduction of tiredness and fatigue”; none of them concerns sleep. A meta-analysis of 3 trials in 151 older people found that they fell asleep 17 minutes faster, with no significant gain in total sleep, and the evidence was rated low to very low. One of these trials (46 older adults, 500mg a day, 8 weeks) improved the insomnia severity score.

L-threonate is a form studied for its ability to raise magnesium levels in the brain. A trial in 80 adults aged 35 to 55 who were unhappy with their sleep, without a diagnosis of insomnia, tested 1g a day for 21 days: deep and REM sleep scores (smart ring), how rested they felt on waking, energy and mood were better than with placebo, the magnesium group remaining stable while the placebo group deteriorated. A single, short trial linked to the ingredient's supplier: it needs confirming. Hexagon® offers magnesium in L-threonate form; to compare the different salts, see which magnesium to choose.

Ashwagandha, valerian, glycine

Ashwagandha shows a small effect across 5 trials, clearer in diagnosed insomnia, at 600mg a day or more for 8 weeks or more; its long-term safety remains poorly documented (see the proven benefits of ashwagandha). Trials on valerian mainly suffer from methodological weaknesses and publication bias. Glycine rests on only a few trials and on animal studies.

When should you see a doctor about insomnia?

If it lasts more than a few weeks, talk to your GP. Some signs justify seeing a doctor sooner:

  • Snoring, pauses in breathing, daytime sleepiness: sleep apnoea needs to be ruled out.
  • An irresistible urge to move your legs in the evening: this is restless legs syndrome, sometimes linked to iron deficiency.
  • Sadness, loss of interest, early waking: in a meta-analysis of 21 studies, people with insomnia who were not depressed had about twice the risk of developing depression.
  • Perimenopause: difficulty staying asleep increases, especially with hot flushes. Hormone therapy relieves the symptoms; its contraindications should be discussed with your doctor.
  • Drowsiness at the wheel or overwhelming fatigue: if fatigue is the main problem, see why am I always tired.

Frequently asked questions

How can you get back to sleep in the middle of the night?

Do not look at the clock or your phone. If you feel increasingly restless, read a paper book in another dimly lit room and go back to bed when your eyelids feel heavy.

Which deficiency can cause insomnia?

Most cases of insomnia are not explained by a deficiency. Iron deficiency is a known factor, through restless legs. For magnesium, the trials are too small to draw conclusions. A blood test avoids guesswork.

Which doctor should you see for insomnia?

Your GP first. They can refer you to a sleep clinic if apnoea is suspected or if the first measures have not worked, or to a psychologist trained in CBT-I.

Does insomnia make you put on weight?

Observational studies associate short sleep with higher body weight, without proving that one causes the other. The link is by no means automatic, but regular sleep times also help to structure mealtimes.

Can you take melatonin every night?

Data on daily use over several months remain limited. Prolonged use, pregnancy, breastfeeding or current medical treatment warrant medical advice.

Is insomnia dangerous?

A bad night, no. Chronic insomnia, however, takes a toll on quality of life and alertness: it is better to address it than to put up with it for years.

Conclusion

Insomnia is easier to manage when you know which form you have. Waking at around 3am is often due to lighter sleep at the end of the night, made worse by alcohol, stress or a medical cause. For chronic insomnia, CBT-I remains the best-proven approach. The supplements that have been studied have modest effects and often limited evidence: they are no substitute for medical advice when nights remain difficult.

Sources

  1. Riemann D, Espie CA, Altena E, et al. The European Insomnia Guideline: An update on the diagnosis and treatment of insomnia 2023. J Sleep Res. 2023;32(6):e14035. doi:10.1111/jsr.14035
  2. Trauer JM, Qian MY, Doyle JS, Rajaratnam SM, Cunnington D. Cognitive Behavioral Therapy for Chronic Insomnia: A Systematic Review and Meta-analysis. Ann Intern Med. 2015;163(3):191-204. doi:10.7326/M14-2841
  3. 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. J Clin Sleep Med. 2021;17(2):255-262. doi:10.5664/jcsm.8986
  4. Ohayon MM. Epidemiology of insomnia: what we know and what we still need to learn. Sleep Med Rev. 2002;6(2):97-111. doi:10.1053/smrv.2002.0186
  5. Ebrahim IO, Shapiro CM, Williams AJ, Fenwick PB. Alcohol and sleep I: effects on normal sleep. Alcohol Clin Exp Res. 2013;37(4):539-549. doi:10.1111/acer.12006
  6. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-1200. doi:10.5664/jcsm.3170
  7. Sweetman A, Lack L, Bastien C. Co-Morbid Insomnia and Sleep Apnea (COMISA): Prevalence, Consequences, Methodological Considerations, and Recent Randomized Controlled Trials. Brain Sci. 2019;9(12):371. doi:10.3390/brainsci9120371
  8. Baker FC, Lampio L, Saaresranta T, Polo-Kantola P. Sleep and Sleep Disorders in the Menopausal Transition. Sleep Med Clin. 2018;13(3):443-456. doi:10.1016/j.jsmc.2018.04.011
  9. Baglioni C, Battagliese G, Feige B, et al. Insomnia as a predictor of depression: a meta-analytic evaluation of longitudinal epidemiological studies. J Affect Disord. 2011;135(1-3):10-19. doi:10.1016/j.jad.2011.01.011
  10. Ferracioli-Oda E, Qawasmi A, Bloch MH. Meta-analysis: melatonin for the treatment of primary sleep disorders. PLoS One. 2013;8(5):e63773. doi:10.1371/journal.pone.0063773
  11. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021;21(1):125. doi:10.1186/s12906-021-03297-z
  12. Abbasi B, Kimiagar M, Sadeghniiat K, et al. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. J Res Med Sci. 2012;17(12):1161-1169. PMID:23853635
  13. Hausenblas HA, Lynch T, Hooper S, Shrestha A, Rosendale D, Gu J. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: A randomized controlled trial. Sleep Med X. 2024;8:100121. doi:10.1016/j.sleepx.2024.100121
  14. Cheah KL, Norhayati MN, Husniati Yaacob L, Abdul Rahman R. Effect of Ashwagandha (Withania somnifera) extract on sleep: A systematic review and meta-analysis. PLoS One. 2021;16(9):e0257843. doi:10.1371/journal.pone.0257843
  15. Bent S, Padula A, Moore D, Patterson M, Mehling W. Valerian for sleep: a systematic review and meta-analysis. Am J Med. 2006;119(12):1005-1012. doi:10.1016/j.amjmed.2006.02.026
  16. Bannai M, Kawai N. New therapeutic strategy for amino acid medicine: glycine improves the quality of sleep. J Pharmacol Sci. 2012;118(2):145-148. doi:10.1254/jphs.11r04fm

Food supplements are not a substitute for a varied and balanced diet and a healthy lifestyle. Ask a healthcare professional for advice if you are taking medication, are pregnant or are breastfeeding.

From reading to ritual.

Explore the compositions, compare sizes and take your time to choose.

All supplements
  • Antioxidant
  • Glutathione precursor

NAC 600mg

Antioxidant

N-acetyl-cysteine · 600mg

Up to 100 days

CHF 23.47
  • Relaxation
  • Sleep

Zen

Relaxation

Magnesium bisglycinate, passionflower and vitamin B6

Up to 90 days

CHF 23.47
  • Elimination
  • Liver support

Detox

Elimination

Artichoke, milk thistle and NAC

Up to 90 days

CHF 23.47
  • Antioxidant
  • 98% purity

Resvegen™

Antioxidant

Trans-resveratrol 98% · RESROX®

Up to 60 days

CHF 32.89
  • Cellular energy
  • Delayed release

NADH 25mg

Cellular energy

NADH · 25mg · DRcaps™

Up to 60 days

CHF 37.60