Insomnia - Diagnosis and treatment (2024)


Depending on your situation, the diagnosis of insomnia and the search for its cause may include:

  • Physical exam. If the cause of insomnia is not known, your health care professional may do a physical exam to look for signs of medical problems that may be related to insomnia. At times, a blood test may be done to check for thyroid problems or other conditions that may be related to poor sleep.
  • Sleep habits review. In addition to asking questions about your sleep, your doctor or other health care professional may have you complete a questionnaire to show your sleep-wake pattern and your level of daytime sleepiness. You also may be asked to keep a sleep diary for a couple of weeks.
  • Sleep study. If the cause of your insomnia is not clear, or you have signs of another sleep disorder, such as sleep apnea or restless legs syndrome, you may need to spend a night at a sleep center. Tests are done to keep track of and record various body activities while you sleep. This includes brain waves, breathing, heartbeat, eye movements and body movements.

Care at Mayo Clinic

Our caring team of Mayo Clinic experts can help you with your insomnia-related health concernsStart Here

More Information

  • Insomnia care at Mayo Clinic
  • Polysomnography (sleep study)


Changing sleep habits and taking care of any issues related to insomnia, such as stress, medical conditions or medicines, can result in restful sleep for many people. If these steps do not work, your doctor may recommend cognitive behavioral therapy (CBT), medicines or both to improve relaxation and sleep.

CBT for insomnia

Cognitive behavioral therapy for insomnia can help you control or stop negative thoughts and actions that keep you awake. It's usually recommended as the first treatment for people with insomnia. Typically, CBT is as effective or more effective than sleep medicines.

The cognitive part of CBT teaches you to learn and change beliefs that affect your sleep. It can help you control or stop negative thoughts and worries that keep you awake. It also may involve ending the cycle of worrying so much about getting to sleep that you cannot fall asleep.

The behavioral part of CBT helps you learn good sleep habits and stop behaviors that keep you from sleeping well.

Strategies include:

  • Stimulus control therapy. This method helps train your mind and body to sleep better and not fight sleep. For example, you might be coached to set a regular time to go to bed and wake up, not nap, and use the bed only for sleep and sex. You also may be coached to leave the bedroom if you cannot go to sleep within 20 minutes, only returning when you're sleepy.
  • Relaxation methods. Progressive muscle relaxation, biofeedback and breathing exercises are ways to lower anxiety at bedtime. Practicing these methods can help you control your breathing, heart rate and muscle tension so that you can relax.
  • Sleep restriction. With this method, you reduce the time you spend in bed and stop napping during the day, so you get less sleep. This makes you more tired the next night. Once your sleep improves, you gradually increase your time in bed.
  • Remaining passively awake. Also called paradoxical intention, this strategy for learned insomnia aims to reduce your worry and anxiety about being able to get to sleep. You get in bed and try to stay awake rather than expect to fall asleep. This approach reduces your extreme focus on sleep and anxiety over not sleeping, making it easier to fall asleep.
  • Light therapy. If you fall asleep too early and then wake up too early, you can use light to push back your internal clock. You can go outside when it's light outside in the evenings or you can use a light box. Talk to your doctor for advice.

Your doctor may recommend other strategies related to your lifestyle and sleep area to help you create habits that lead to sound sleep and daytime alertness.

Prescription medicines

Prescription sleeping pills can help you get to sleep, stay asleep or both. Doctors generally do not recommend relying on prescription sleeping pills for more than a few weeks. And medicines should not be the only treatment. But several medicines are approved for long-term use.

It's not known how long medicines can be wisely used. Rather, medicines are prescribed on a case-by-case basis, with you and your doctor weighing the benefits and risks. In general, it's best to use the lowest effective dose and not use medicines for too long.

Options for treating those who are having trouble falling asleep are:

  • Eszopiclone (Lunesta).
  • Ramelteon (Rozerem).
  • Temazepam (Restoril).
  • Triazolam (Halcion).
  • Zaleplon (Sonata).
  • Zolpidem tartrate (Ambien, Ambien CR, Edluar).

Options for treating those who are having trouble staying asleep, waking too early or finding it hard to get back to sleep are:

  • Doxepin hydrochloride (Silenor).
  • Eszopiclone (Lunesta).
  • Suvorexant (Belsomra).
  • Temazepam (Restoril).
  • Zolpidem tartrate (Ambien, Ambien CR, Edluar).

Prescription sleeping pills can have side effects, such as causing daytime grogginess and creating a higher risk of falling. They also can be habit-forming. If your doctor prescribes a medicine to help you sleep, ask for more information, including possible side effects and how long you can take it.

Sleep aids available without a prescription

Sleep medicines available without a prescription contain antihistamines that can make you sleepy. These medicines are not for regular use. Talk to your doctor before you take these medicines, as antihistamines may cause side effects. Side effects may include daytime sleepiness, dizziness, confusion, problems with thinking and difficulty urinating. Side effects may be worse in older adults.

More Information

  • Insomnia care at Mayo Clinic
  • Insomnia treatment: Cognitive behavioral therapy instead of sleeping pills
  • Prescription sleeping pills: What's right for you?
  • Ambien: Is dependence a concern?
  • Biofeedback
  • Cognitive behavioral therapy

Request an appointment

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.

Clinical trials

Explore Mayo Clinic studies testing new treatments, interventions and tests as a means to prevent, detect, treat or manage this condition.

Lifestyle and home remedies

No matter your age, insomnia typically can be treated. The key often lies in changes to your routine during the day and when you go to bed.

These tips may help:

  • Follow a sleep schedule. Keep your bedtime and wake time the same every day, including on weekends.
  • Stay active. Regular activity can lead to a good night's sleep. Schedule exercise at least a few hours before you go to bed. Do not take part in activities that use a lot of energy too close to bedtime.
  • Check your medicines. If you take medicines regularly, check with your doctor to see if they may be playing a part in your insomnia. Also, check the labels of products available without a prescription to see if they contain caffeine or other stimulants, such as pseudoephedrine.
  • Limit or stop naps. Naps can make it harder to fall asleep at night. If you cannot get by without one, try to limit a nap to no more than 30 minutes. Also, do not nap after 3 p.m. if your regular sleep time is at night.
  • Limit or do not use caffeine, alcohol and nicotine. Caffeine, alcohol and nicotine can make it harder to sleep. This effect can last for several hours.
  • Do not put up with pain. If a painful condition bothers you, talk to your doctor about which pain relievers may control pain while you sleep.
  • Do not eat large meals or drink a lot of fluids before bed. A light snack is fine and may help avoid heartburn. Drink less liquid before bedtime so that you will not have to urinate as often.

At bedtime:

  • Make your bedroom comfortable for sleep. Only use your bedroom for sex or sleep. Keep it dark, quiet and at a comfortable temperature. Hide all clocks in your bedroom, including your watch and cellphone. That way, you do not worry about what time it is.
  • Find ways to relax. Try to put your worries and planning aside when you get into bed. A warm bath or a massage before you go to bed can help prepare you for sleep. Create a relaxing bedtime ritual, such as taking a hot bath, reading, listening to soft music, doing breathing exercises or yoga, or praying.
  • Do not try too hard to sleep. The harder you try to sleep, the more awake you'll become. Read in another room until you become drowsy. Then go to bed to sleep. Do not go to bed too early, before you're sleepy.
  • Get out of bed when you're not sleeping. Sleep as much as you need to feel rested. Then get out of bed. Do not stay in bed if you're not sleeping.

More Information

  • Insomnia care at Mayo Clinic
  • Insomnia: How do I stay asleep?

Alternative medicine

Many people never visit their doctor or other health care provider for insomnia. They try to cope with sleeplessness on their own.

Some people try therapies such as:

  • Melatonin. This supplement, which is available without a prescription, is marketed to help fight insomnia. It's generally considered safe to use melatonin for a few weeks. But there is no convincing evidence to prove that it effectively treats insomnia, and long-term safety is not known. Guidelines from The American Academy of Sleep Medicine advise doctors and mental health care professionals not to prescribe it.
  • Valerian. This dietary supplement is sold as a sleep aid because it has a mildly sedating effect. It has not been well-studied. Discuss valerian with your doctor before trying it. Some people who have used high doses or used it long term may have had liver damage. But it's not clear if valerian caused the damage.
  • Acupuncture. This therapy is commonly used to treat insomnia. But this therapy is generally not recommended due to a lack of evidence that it's beneficial.
  • Yoga or tai chi. Some studies suggest that the regular practice of yoga or tai chi can improve sleep quality. But this therapy is generally not recommended due to a lack of evidence that it's beneficial.
  • Meditation. Several small studies suggest that meditation along with conventional treatment may help improve sleep and reduce stress.

Caution about herbal and dietary sleep aids

The Food and Drug Administration does not order manufacturers of dietary supplements and sleep aids to show that they work and are safe. Talk with your doctor before taking any products available without a prescription. Some products can be harmful, and some can cause harm if you're taking certain medicines.

More Information

  • Insomnia care at Mayo Clinic
  • Valerian: A safe and effective herbal sleep aid?

Preparing for your appointment

If you're having sleep problems, you'll likely start by talking to your primary care professional. Ask if there's anything you need to do before your appointment, such as keeping a sleep diary. Take your bed partner along, if possible. Your partner can give information about how much and how well you're sleeping.

What you can do

Prepare for your appointment by making a list of:

  • Your symptoms, including any that may not relate to the reason for the appointment.
  • Personal information, including new or ongoing health problems, major stresses or recent life changes.
  • All medicines you take, including medicines available without a prescription, vitamins, and herbal or other supplements, as well as the doses. Let your doctor know about anything you've taken to help you sleep.
  • Questions to ask your doctor to make the most of your appointment time.

Basic questions to ask include:

  • What is likely causing my insomnia?
  • What's the best treatment?
  • How can I create an ideal sleep environment?
  • How can I manage insomnia with my other health conditions?
  • Should I go to a sleep clinic or sleep specialist? Will my insurance cover it?
  • Are there any brochures or other printed material that I can have?
  • What websites do you recommend?

Do not hesitate to ask other questions during your appointment.

What to expect from your doctor

Your doctor may ask you several questions.

Common questions about insomnia include:

  • How often do you have trouble sleeping?
  • When did the insomnia begin?
  • How long does it take you to fall asleep?
  • Do you snore or wake up choking for breath?
  • How often do you wake up at night, and how long does it take you to fall back to sleep?
  • What is your response when you cannot sleep?
  • What have you tried to improve your sleep?

Common questions about daytime routine include:

  • Do you feel refreshed when you wake up, or are you tired during the day?
  • Do you doze off or have trouble staying awake while sitting quietly or driving?
  • Do you nap during the day?
  • What do you typically eat and drink in the evening?

Common questions about bedtime routine include:

  • What is your bedtime routine?
  • Do you take any medicines, such as sleeping pills, before bed?
  • What time do you go to bed and wake up? Is this different on weekends?
  • How many hours a night do you sleep?

Common questions about other issues that may affect sleep include:

  • Have any stressful events occurred recently?
  • Do you use tobacco or drink alcohol?
  • Do you have any family members with sleep problems?
  • What medicines do you take regularly?
  • Do you experience an uncomfortable urge to move your legs when trying to fall asleep?

By Mayo Clinic Staff

Jan. 16, 2024

Insomnia - Diagnosis and treatment (2024)
Top Articles
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 5403

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.