I wake up in the middle of the night and can't get back to sleep. What can I do?

Answer From Eric J. Olson, M.D.

Waking up in the middle of the night is called insomnia, and it's a common problem. Mid-sleep awakenings often occur during periods of stress. Over-the-counter sleep aids rarely offer significant or sustained help for this problem.

To help stay asleep through the night, try some of these strategies to relieve insomnia:

  • Establish a quiet, relaxing bedtime routine. For example, drink a cup of caffeine-free tea, take a warm shower or listen to soft music. Avoid prolonged use of electronic devices with a screen, such as laptops, smartphones and ebooks before bed.
  • Relax your body. Gentle yoga or progressive muscle relaxation can ease tension and help tight muscles to relax.
  • Make your bedroom conducive to sleep. Keep light, noise and the temperature at levels that are comfortable and won't disturb your rest. Don't engage in activities other than sleeping or sex in your bedroom. This will help your body know this room is for sleeping.
  • Put clocks in your bedroom out of sight. Clock-watching causes stress and makes it harder to go back to sleep if you wake up during the night.
  • Avoid caffeine after noon, and limit alcohol to 1 drink several hours before bedtime. Both caffeine and alcohol can interfere with sleep.
  • Avoid smoking. In addition to smoking being a major health risk, nicotine use can interfere with sleep.
  • Get regular exercise. But keep in mind, exercising too close to bedtime may interfere with sleep.
  • Go to bed only when you're sleepy. If you aren't sleepy at bedtime, do something relaxing that will help you wind down.
  • Wake up at the same time every day. If you experience increased awake time during the night, resist the urge to sleep in.
  • Avoid daytime napping. Napping can throw off your sleep cycle.
  • If you wake up and can't fall back to sleep within 20 minutes or so, get out of bed. Go to another room and read or do other quiet activities until you feel sleepy.

In some cases, insomnia is caused by a medical condition such as sleep apnea, restless legs syndrome or chronic pain, or by a mental health disorder such as depression. Treatment for one of these underlying conditions may be necessary for insomnia to get better. Also, treating insomnia may help depression symptoms improve faster.

If you keep having sleep problems, talk to your doctor. To determine the cause and best treatment for insomnia, you may need to see a sleep specialist. Your doctor may prescribe medication and have you try other strategies to get your sleep pattern back on track. Depending on the cause of insomnia, a referral to a mental health professional may help some people.


Eric J. Olson, M.D.

Aug. 23, 2019 See more Expert Answers

See also

  1. 6 surprising signs you may have obstructive sleep apnea
  2. Ambien: Is dependence a concern?
  3. Anorexia nervosa
  4. Antidepressant withdrawal: Is there such a thing?
  5. Antidepressants and alcohol: What's the concern?
  6. Antidepressants and weight gain: What causes it?
  7. Antidepressants: Can they stop working?
  8. Antidepressants for children and teens
  9. Antidepressants: Side effects
  10. Antidepressants: Selecting one that's right for you
  11. Antidepressants: Which cause the fewest sexual side effects?
  12. Atypical antidepressants
  13. Bedtime routines: Not just for babies
  14. Biofeedback
  15. Caffeine and depression: Is there a link?
  16. Can't sleep? Try daytime exercise
  17. Sleep apnea, central
  18. Chase away the winter blues
  19. CJD - Creutzfeldt-Jakob Disease
  20. Clinical depression: What does that mean?
  21. Coffee after dinner? Make it decaf
  22. Cognitive behavioral therapy
  23. CPAP machines: Tips for avoiding 10 common problems
  24. Creutzfeldt-Jakob disease
  25. Depression and anxiety: Can I have both?
  26. Depression, anxiety and exercise
  27. Depression: Diagnosis is key
  28. Depression in women: Understanding the gender gap
  29. Depression (major depressive disorder)
  30. Depression: Provide support, encouragement
  31. Depression: Supporting a family member or friend
  32. Does obstructive sleep apnea increase my risk for Alzheimer's disease?
  33. Drug addiction (substance use disorder)
  34. Sleep and psoriatic arthritis
  35. Fatigue
  36. Fish oil and depression
  37. Foods and sleep
  38. Global Bridges
  39. Headaches and stress
  40. Sleep guidelines
  41. How opioid addiction occurs
  42. How to tell if a loved one is abusing opioids
  43. How to use opioids safely
  44. Huntington's disease
  45. Insomnia
  46. Insomnia treatment: Cognitive behavioral therapy instead of sleeping pills
  47. Jet lag disorder
  48. Depression and diet
  49. Kratom for opioid withdrawal
  50. Lack of sleep: Can it make you sick?
  51. Late-day exercise
  52. Lexapro side effects: Is breast tenderness common?
  53. Light therapy
  54. Male depression: Understanding the issues
  55. MAOIs and diet: Is it necessary to restrict tyramine?
  56. Marijuana and depression
  57. Mayo Clinic Minute: What you should know about bats and rabies
  58. Melatonin side effects
  59. Mild depression: Are antidepressants effective?
  60. Monoamine oxidase inhibitors (MAOIs)
  61. Napping do's and don'ts
  62. Natural remedies for depression: Are they effective?
  63. Nervous breakdown: What does it mean?
  64. Nicotine dependence
  65. Not tired? Don't go to bed
  66. Sleep apnea, obstructive
  67. Obstructive Sleep Apnea
  68. Obstructive sleep apnea: How quickly will I see results from treatment?
  69. Opioids and other drugs: What to watch for
  70. Pain and depression: Is there a link?
  71. Pinworm infection
  72. Polysomnography (sleep study)
  73. Porphyria
  74. Post-concussion syndrome
  75. Postpartum depression
  76. Postpartum thyroiditis
  77. Premenstrual dysphoric disorder
  78. Premenstrual syndrome (PMS)
  79. Prescription drug abuse
  80. Prescription sleeping pills: What's right for you?
  81. Pulmonary edema
  82. Rabies
  83. Seasonal affective disorder (SAD)
  84. Choosing a light box
  85. Selective serotonin reuptake inhibitors (SSRIs)
  86. Serotonin and norepinephrine reuptake inhibitors (SNRIs)
  87. Shift work and daytime sleep
  88. Skip booze for better sleep
  89. Antihistamines for insomnia
  90. OTC sleep aids
  91. Sleep and weight gain: What's the connection?
  92. Sleep apnea
  93. Sleep apnea and caffeine: Any connection?
  94. Sleep tips
  95. CPAP masks
  96. Smoking and rheumatoid arthritis: What's the risk?
  97. Stress symptoms
  98. Take headache relief into your own hands
  99. Tapering off opioids: When and how
  100. Teen depression
  101. Tension headache
  102. Relieving tension-type headaches
  103. Treating pain: When is an opioid the right choice?
  104. Treatment-resistant depression
  105. Tricyclic antidepressants and tetracyclic antidepressants
  106. Valerian: A safe and effective herbal sleep aid?
  107. CPAP: How it works
  108. Obstructive sleep apnea: What happens?
  109. Vitamin B-12 and depression
  110. What are opioids and why are they dangerous?
  111. What is reflexology?