Insomnia treatment: Cognitive behavioral therapy instead of sleeping pills

Insomnia is a common condition. Effective treatment can help you get the sleep you need. Explore safe and effective insomnia treatments that don't include pills.

By Mayo Clinic Staff

Insomnia is a common sleep disorder that can make it hard to fall asleep or stay asleep. It also can cause you to wake up too early and not be able to get back to sleep. Cognitive behavioral therapy, sometimes called CBT, can effectively treat long-term sleep problems like insomnia. Generally, it's the first treatment recommended.

CBT helps you find out which thoughts and behaviors cause sleep problems or make them worse. You learn how to replace these thoughts and behaviors with habits that support sound sleep. Unlike sleeping pills, CBT helps you overcome the causes of your sleep problems.

To find out how to best treat your insomnia, your sleep specialist may ask you to keep a detailed sleep diary for 1 to 2 weeks.

How does CBT work?

The cognitive part of CBT teaches you to look for and change beliefs that affect your ability to sleep. This type of therapy can help you control or get rid of negative thoughts and worries that keep you awake. The behavioral part of CBT helps you develop good sleep habits and avoid behaviors that keep you from sleeping well.

Depending on your needs, your sleep specialist may recommend that you:

  • Change your routine. This can help you sleep better. Set a consistent bedtime and wake time. Avoid naps. Use the bed only for sleep and sex.
  • Set sleep limits. Lying in bed when you're awake can become a habit that leads to poor sleep. If you can't fall asleep within 20 minutes, get up and don't go back to bed until you're sleepy. But don't change your wake-up time. This makes you more tired the next night. But once your sleep gets better, your time in bed is slowly increased.
  • Change certain lifestyle habits. Change habits that lead to poor sleep, such as smoking, drinking too much caffeine late in the day and drinking too much alcohol. Not getting regular physical activity also can lead to poor sleep. You may learn tips that can help you sleep better, such as ways to wind down an hour or two before bedtime.
  • Improve your sleep area. Create a comfortable sleep area. Keep your bedroom quiet, dark and cool. Don't have a TV in the bedroom. Hide the clock from view.
  • Learn relaxation techniques. These techniques help you calm your mind and body. Approaches include meditation, imagery and muscle relaxation.
  • Remain passively awake. With this method, once you're in bed, you try not to think about falling asleep. That's because worrying that you can't sleep can keep you awake. Letting go of this worry can help you relax and make it easier to fall asleep.
  • Use biofeedback. This technique involves using a device that shows signs such as your heart rate and muscle tension. Then you learn how to help manage them. Your sleep specialist may ask you to take a biofeedback device home to record your daily patterns. This information can show patterns that affect sleep.

The most effective treatment approach may combine several of these methods.

CBT versus pills

It's common for people to try sleeping pills available without a prescription before seeking help for insomnia. Some prescription sleep medicines can be an effective short-term treatment. For example, they can provide relief right away when you're very stressed or grieving. Some newer sleep medicines are approved for longer use. But generally sleeping pills are not the best long-term treatment for insomnia for many people.

It's unlikely that all your insomnia symptoms will go away with medicines alone. Also, some prescriptions come with the risk of serious side effects, including dependence, withdrawal symptoms, amnesia and thoughts about suicide. Most commonly, these medicines can make you tired when you need to be alert, for example, at work or while driving.

CBT may be a good treatment choice if you have long-term sleep problems or you're worried about becoming dependent on sleep medicines. It also can be a good choice if medicines aren't effective or cause bothersome side effects.

Unlike sleep medicines, CBT addresses what's causing your insomnia rather than just relieving symptoms. But it takes time and effort to make it work. In some cases, a blend of sleep medicine and CBT may be best. If CBT is not available where you live, ask your health care provider for sleep tips that are based on CBT.

Insomnia and other disorders

Many medical conditions can disrupt sleep. These include heart disease, asthma, chronic obstructive lung disease (COPD) and arthritis. Mental health conditions also can disrupt sleep. Examples include anxiety, depression, bipolar disorder and post-traumatic stress disorder.

Ongoing lack of sleep increases your risk of health conditions such as anxiety, depression, high blood pressure, heart disease, diabetes and long-term pain. Some medicines, including those available without a prescription, also can cause insomnia.

If your insomnia is related to a medical condition or to a medicine you're taking, talk to your health care provider about how best to manage sleep problems. Insomnia is not likely to get better without treatment.

Finding help

Many types of providers can deliver CBT guidance for insomnia, including behavioral sleep medicine specialists and members of your primary care team. There are a limited number of certified behavioral sleep medicine specialists. You may have to search for a trained practitioner and a treatment schedule to fit your needs.

You can search on the web for a sleep center in the U.S. certified by the American Academy of Sleep Medicine, such as Mayo Clinic Center for Sleep Medicine. Or you can search the Society of Behavioral Sleep Medicine website at for a directory of behavioral sleep medicine providers.

The type of treatment, length of treatment and frequency of sessions can vary. You may need as few as one session or as many as eight or more sessions. It depends on your sleep expert, the program and your progress. Most people need 6 to 8 sessions.

When setting up an appointment, ask about the treatment approach and what to expect. Also, check ahead of time to see whether your health insurance will cover the type of treatment you need.

If available in your area, meet with a sleep medicine specialist in person for your sessions. But a phone or video meeting also may help. You also can look for self-help books and online resources for guidance on CBT techniques for insomnia.

Who can benefit from CBT?

CBT can benefit nearly anyone with sleep problems. It can help people who have insomnia due to lifestyle habits, medical issues, physical problems or mental health conditions. The positive effects of CBT seem to last, and there is no evidence that CBT has harmful side effects.

CBT requires steady practice, and some approaches may cause you to lose sleep at first. But stay with it, and you'll likely see lasting results.

From Mayo Clinic to your inbox

Sign up for free and stay up to date on research advancements, health tips, current health topics, and expertise on managing health. Click here for an email preview.

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.

April 05, 2023 See more In-depth

See also

  1. Ambien: Is dependence a concern?
  2. Anorexia nervosa
  3. Antidepressant withdrawal: Is there such a thing?
  4. Antidepressants and alcohol: What's the concern?
  5. Antidepressants and weight gain: What causes it?
  6. Antidepressants: Can they stop working?
  7. Antidepressants for children and teens
  8. Antidepressants: Side effects
  9. Antidepressants: Selecting one that's right for you
  10. Antidepressants: Which cause the fewest sexual side effects?
  11. Atypical antidepressants
  12. Biofeedback
  13. Central sleep apnea
  14. CJD - Creutzfeldt-Jakob Disease
  15. Clinical depression: What does that mean?
  16. Cognitive behavioral therapy
  17. CPAP machines: Tips for avoiding 10 common problems
  18. Creutzfeldt-Jakob disease
  19. Depression and anxiety: Can I have both?
  20. Depression, anxiety and exercise
  21. What is depression? A Mayo Clinic expert explains.
  22. Depression in women: Understanding the gender gap
  23. Depression (major depressive disorder)
  24. Depression: Supporting a family member or friend
  25. Drug addiction (substance use disorder)
  26. Fatigue
  27. Headaches and stress
  28. Sleep guidelines
  29. How opioid use disorder occurs
  30. How to tell if a loved one is abusing opioids
  31. Huntington's disease
  32. Insomnia
  33. Insomnia: How do I stay asleep?
  34. Jet lag disorder
  35. Kratom: Unsafe and ineffective
  36. Kratom for opioid withdrawal
  37. Lack of sleep: Can it make you sick?
  38. Male depression: Understanding the issues
  39. MAOIs and diet: Is it necessary to restrict tyramine?
  40. Marijuana and depression
  41. Mayo Clinic Minute: Restless legs syndrome in kids
  42. Mayo Clinic Minute: What you should know about bats and rabies
  43. Melatonin side effects
  44. Monoamine oxidase inhibitors (MAOIs)
  45. Napping do's and don'ts
  46. Natural remedies for depression: Are they effective?
  47. Nervous breakdown: What does it mean?
  48. Nicotine dependence
  49. Obstructive sleep apnea
  50. Obstructive Sleep Apnea
  51. Opioid stewardship: What is it?
  52. Pain and depression: Is there a link?
  53. Persistent post-concussive symptoms (Post-concussion syndrome)
  54. Pinworm infection
  55. Polysomnography (sleep study)
  56. Poppy seed tea: Beneficial or dangerous?
  57. Porphyria
  58. Postpartum depression
  59. Premenstrual dysphoric disorder
  60. Premenstrual syndrome (PMS)
  61. Prescription drug abuse
  62. Prescription sleeping pills: What's right for you?
  63. Pulmonary edema
  64. Rabies
  65. Restless legs syndrome
  66. Seasonal affective disorder (SAD)
  67. Seasonal affective disorder treatment: Choosing a light box
  68. Selective serotonin reuptake inhibitors (SSRIs)
  69. Serotonin and norepinephrine reuptake inhibitors (SNRIs)
  70. Antihistamines for insomnia
  71. OTC sleep aids
  72. Sleep and psoriatic arthritis
  73. Sleep apnea
  74. Sleep tips
  75. Stress symptoms
  76. Tapering off opioids: When and how
  77. Teen depression
  78. Tension headache
  79. Relieving tension-type headaches
  80. Treatment-resistant depression
  81. Tricyclic antidepressants and tetracyclic antidepressants
  82. Valerian: A safe and effective herbal sleep aid?
  83. CPAP: How it works
  84. Obstructive sleep apnea: What happens?
  85. Vitamin B-12 and depression
  86. What are opioids and why are they dangerous?
  87. Which CPAP masks are best for you?
  88. Xylazine
  89. Mayo Clinic Minute: Do not share pain medication
  90. Mayo Clinic Minute: Avoid opioids for chronic pain
  91. Mayo Clinic Minute: Be careful not to pop pain pills