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.

Get the latest health information from Mayo Clinic’s experts.

Sign up for free, and stay up to date on research advancements, health tips and current health topics, like COVID-19, plus expertise on managing health.

To provide you with the most relevant and helpful information, and understand which information is beneficial, we may combine your email and website usage information with other information we have about you. If you are a Mayo Clinic patient, this could include protected health information. If we combine this information with your protected health information, we will treat all of that information as protected health information and will only use or disclose that information as set forth in our notice of privacy practices. You may opt-out of email communications at any time by clicking on the unsubscribe link in the e-mail.

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