HelpGuide Logo


Trusted guide to mental, emotional & social health

Insomnia Causes and Cures

What to Do When You Can't Sleep

Woman with pillow on head

Do you struggle to get to sleep no matter how tired you are? Or do you wake up in the middle of the night and lie awake for hours, anxiously watching the clock? Insomnia is a common problem that takes a toll on your energy, mood, health, and ability to function during the day. Chronic insomnia can even contribute to serious health problems. But you don’t have to resign yourself to sleepless nights. Simple changes to your lifestyle and daily habits can put a stop to insomnia—without the need for medication.

What you can do

  1. Learn to recognize the symptoms of insomnia
  2. Identify the causes of insomnia and your role in the problem
  3. Sit less and move more during the day
  4. Avoid screens and other stimulants before bed time
  5. Tackle day time stress and worries
  6. Discover how to go back to sleep if you wake up in the night
  7. Learn more by reading the related articles

What defines insomnia?

Insomnia is the inability to get the amount of sleep you need to wake up feeling rested and refreshed. Because different people need different amounts of sleep, insomnia is defined by the quality of your sleep and how you feel after sleeping—not the number of hours you sleep or how quickly you doze off. Even if you’re spending eight hours a night in bed, if you feel drowsy and fatigued during the day, you may be experiencing insomnia.

Symptoms of insomnia include:

  • Difficulty falling asleep despite feeling tired
  • Trouble getting back to sleep when waking up in the night
  • Waking up too early in the morning
  • Not feeling refreshed after sleep
  • Daytime drowsiness, fatigue, or irritability
  • Difficulty concentrating during the day
  • Relying on sleeping pills, sleep aids, or alcohol to fall asleep.

What are the common causes of insomnia?

To properly resolve your insomnia, you need to become a “sleep detective” and identify the underlying causes of your sleep problems. For many of us, emotional issues such as stress, anxiety, and depression often cause insomnia, but your daytime habits, bedtime routine, and physical health can also play a major role in how well you sleep at night.

Common causes of insomnia

Sometimes, insomnia only lasts a few days and goes away on its own, especially when the insomnia is tied to an obvious temporary cause, such as stress over an upcoming presentation or a painful breakup. Chronic insomnia, however, is usually tied to an underlying psychological or medical issue.

Anxiety and depression are two of the most common causes of chronic insomnia. Other common emotional and psychological causes include chronic or significant life stress, anger, worry, grief, bipolar disorder, and trauma.

Medical problems or illness. Many medical conditions and diseases can contribute to insomnia, including asthma, allergies, Parkinson’s disease, hyperthyroidism, acid reflux, kidney disease, and cancer. Chronic pain is also a very common cause of insomnia. For more see: Not Sleeping Well? There May Be a Medical Cause

Medications. Many prescription drugs can interfere with sleep, including antidepressants, stimulants for ADHD, corticosteroids, thyroid hormone, high blood pressure medications, and some contraceptives. Common over-the-counter culprits include cold and flu medications that contain alcohol, pain relievers that contain caffeine (Midol, Excedrin), diuretics, and slimming pills.

Sleep disorders. Insomnia is itself a sleep disorder, but it can also be a symptom of other sleep disorders, including sleep apnea, restless legs syndrome, and circadian rhythm disturbances tied to jet lag or late-night shift work.

Causes of insomnia you may overlook

What you do doing during the day or leading up to bedtime can interfere with quality sleep.

  • Is your sleep environment noisy, too bright, or not very comfortable?
  • Do you watch TV, play video games, or use a computer, tablet, or smartphone in bed?
  • Do you drink caffeinated beverages (coffee, tea, soda) within eight hours of bed?
  • Do you keep an irregular sleep schedule?
  • Do you exercise or eat late in the evening?
  • Do you use alcohol to fall asleep?

What to do when you can't sleep

If medical or emotional problems are contributing to your insomnia, treating them first is essential. But you also need to look at daytime habits and bedtime routines that contribute to sleeplessness.

Using a sleep diary to identify insomnia-inducing habits

Some habits are so ingrained that you may overlook them as a possible contributor to your insomnia. Maybe your Starbucks habit affects your sleep more than you realize. Or maybe you’ve never made the connection between your late-night TV viewing and your sleep difficulties. Keeping a sleep diary is a helpful way to pinpoint habits and behaviors contributing to your insomnia.

Adopting new habits to help you sleep

Stick to a regular sleep schedule. Support your biological clock by going to bed and getting up at the same time every day, including weekends.

Avoid naps. Napping during the day can make it more difficult to sleep at night. If you feel like you have to take a nap, limit it to 30 minutes before 3 p.m.

Limit caffeine, alcohol, and nicotine. Stop drinking caffeinated beverages at least eight hours before bed. While alcohol can make you feel sleepy, it interferes with the quality of your sleep, and nicotine is a stimulant.

Avoid late meals. Try to avoid heavy, rich foods within two hours of bed. Fatty foods can take a lot of work for your stomach to digest and spicy or acidic foods can cause heartburn.

Get regular exercise. Regular exercise can improve the symptoms of insomnia, but it’s not a quick fix. It takes several months to feel the full effects. Aim for 30 minutes or more of activity on most days—but not too close to bedtime.

Develop a better bedtime routine

It’s not just what you do during the day that affects the quality of your sleep, but also those things you do to prepare your mind and body for sleep.

Make sure your bedroom is quiet, dark, and cool. Noise, light, and heat can interfere with sleep. Try using a sound machine or earplugs to hide outside noise, an open window or fan to keep the room cool, and blackout curtains or a sleep mask to block out light.

Avoid stimulating activity and stressful situations before bedtime. This includes vigorous exercise, big discussions or arguments, or catching up on work. Instead, focus on quiet, soothing activities, such as reading, knitting, or listening to soft music, while keeping lights low.

Turn off screens one hour before bedtime.The light emitted from your TV, tablet, smartphone, and computer suppresses your body’s production of melatonin and can severely disrupt your sleep. Instead of emailing, texting, watching TV, or playing video games, try listening to an audiobook, a podcast, or reading by a soft light.

Use the bathroom before going to bed. Waking up at night to go to the bathroom becomes a bigger problem as we age. But by not drinking anything an hour before sleep and going to the bathroom several times as you get ready for bed, you can reduce the need to go during the night.

Coping with shift work

Working nights or irregular shifts can disrupt your sleep schedule. You may be able to limit the adverse impact with these tips:

  • Adjust your sleep-wake cycle by exposing yourself to bright light when you wake up at night, using bright lamps or daylight-simulation bulbs in your workplace, and then wearing dark glasses on your journey home to block out sunlight and encourage sleepiness.
  • Limit the number of night or irregular shifts you work in a row to prevent sleep deprivation mounting up.
  • Avoid frequently rotating shifts so you can maintain the same sleep schedule.
  • Eliminate noise and light from your bedroom during the day. Use blackout curtains or a sleep mask, turn off the phone, and use ear plugs or a soothing sound machine to block out daytime noise.

Neutralize your sleep anxieties

The more trouble you have with sleep, the more it starts to invade your thoughts. You may dread going to sleep because you’re going to toss and turn for hours or be up at 2 a.m. again. Or maybe you’re worried because you have a big day tomorrow, and if you don’t get a solid eight hours, you’re sure to blow it. But agonizing about sleep only makes insomnia worse. Worrying floods your body with adrenaline, and before you know it, you’re wide-awake.

Learn to associate your bed with sleeping, not sleeplessness

Use the bedroom only for sleeping and sex. Don’t work, watch TV, or use your computer in bed or the bedroom. The goal is to associate the bedroom with sleep alone, so that your brain and body get a strong signal that it’s time to nod off when you get in bed.

Get out of bed when you can’t sleep. Don’t try to force yourself to sleep. Tossing and turning only amps up the anxiety. Get up, leave the bedroom, and do something relaxing, such as reading, drinking a cup of herbal tea, taking a bath, or listening to soothing music. When you’re sleepy, go back to bed.

Move bedroom clocks out of view. Anxiously watching the minutes tick by when you can’t sleep—knowing that you’re going to be exhausted when the alarm goes off—is a surefire recipe for insomnia. You can use an alarm, but make sure you can’t see the time when you’re in bed.

It’s also helpful to challenge the negative attitudes about sleep and your insomnia problem that you’ve developed over time.

Challenging self-defeating thoughts that fuel insomnia
Unrealistic expectations

Self-defeating thought: I should be able to sleep well every night like a normal person.

Sleep-promoting comeback: Lots of people struggle with sleep from time to time. I will be able to sleep with practice.


Self-defeating thought: It’s the same every single night, another night of sleepless misery.

Sleep-promoting comeback: Not every night is the same. Some nights I do sleep better than others.


Self-defeating thought: If I don't get some sleep, I'll tank at work and jeopardize my job.

Sleep-promoting comeback: I can get through work even if I’m tired. I can still rest and relax tonight, even if I can’t sleep.


Self-defeating thought: I’m never going to be able to sleep well. It’s out of my control.

Sleep-promoting comeback: Insomnia can be cured. If I stop worrying so much and focus on positive solutions, I can beat it.

Fortune telling

Self-defeating thought: It’s going to take me at least an hour to get to sleep tonight. I just know it.

Sleep-promoting comeback: I don’t know what will happen tonight. Maybe I’ll get to sleep quickly if I use the new strategies I’ve learned.

Tackle daytime stress and worries

Residual stress, worry, and anger from your day can make it difficult to fall asleep as night.

Get help with stress management. If the stress of managing work, family, or school is keeping you awake at night, learning how to handle stress in a productive way and to maintain a calm, positive outlook can help you sleep better at night.

Talk over your worries during the day with a friend or loved one. Talking face to face with someone who cares about you is a great way to relieve stress and stop worrying when it’s time to sleep. The person doesn’t need to be able to fix your problems, but just needs to be an attentive, nonjudgmental listener.

Harnessing your body's relaxation response

If you feel wound up much of the time and unable to let go of stress at the end of the day, you may benefit from relaxation techniques such as meditation, yoga, and deep breathing. Not only do relaxation techniques help you quiet your mind and relieve tension in the body, but they also help you fall asleep faster and get back to sleep more quickly if you wake up in the middle of the night. Some popular smartphone apps can help guide you through the different relaxation methods, or you can follow these techniques:

Relaxation techniques for insomnia

Abdominal breathing. Breathing deeply and fully, involving not only the chest, but also the belly, lower back, and ribcage, can help relaxation. Close your eyes and take deep, slow breaths, making each breath even deeper than the last. Breathe in through your nose and out through your mouth.

Progressive muscle relaxation. Make yourself comfortable. Starting with your feet, tense the muscles as tightly as you can. Hold for a count of 10, and then relax. Continue to do this for every muscle group in your body, working your way up from your feet to the top of your head.

Mindfulness meditation. Sit quietly and focus on your natural breathing and how your body feels in the moment. Allow thoughts and emotions to come and go without judgment, always returning to focus on breath and your body.

It takes regular practice to learn these techniques and harness their stress-relieving power. But the benefits can be huge. You can do them as part of your bedtime routine, when you are lying down preparing for sleep, and if you wake up in the middle of the night.

Getting back to sleep if you wake up

While it's normal to wake briefly during the night, if you're having trouble falling back to sleep, experiment with these tips to see which work best for you:

Tips for getting back to sleep if you wake up:

Stay out of your head. The key to getting back to sleep is continuing to cue your body for sleep. Hard as it may be, try not to stress over your inability to fall asleep again, because that only encourages your body to stay awake. A good way to stay out of your head is to focus on the feelings and sensations in your body or to practice breathing exercises. Take a breath in, then breathe out slowly while saying or thinking the word, “Ahhh.” Take another breath and repeat.

Make relaxation (not sleep) your goal. If you find it hard to fall back asleep, try a relaxation technique such as visualization, progressive muscle relaxation, or meditation, which can be done without even getting out of bed. Remind yourself that although they’re not a replacement for sleep, rest and relaxation still help rejuvenate your body.

Do a quiet, non-stimulating activity. If you’ve been awake for more than 15 minutes, get out of bed and do a quiet, non-stimulating activity, such as reading a book. Make your bed when you get up and keep the lights dim so as not to cue your body clock to wake up.

Try rubbing your ears or rolling your eyes. Rubbing the Shen Men acupressure point at the top of the ear can promote calmness and relaxation. See the Resources section below to link to an instructional video. Another simple way to promote relaxation and sleep is to close your eyes and slowly roll them upwards a few times.

Postpone worrying and brainstorming. If you wake at night feeling anxious about something, make a brief note of it on paper and postpone worrying about it until the next day when it will be easier to resolve. Similarly, if a great idea is keeping you awake, make a note of it and postpone thinking more about it until morning.

Related HelpGuide articles

If stress, worry or relationship issues are making it harder for you to sleep, read FEELING LOVED.

Learn more »

Take our new 2 question survey!

Your answers to 2 quick questions will help us improve this article.

Take the survey »

Resources and references


Facts About Insomnia (PDF) – Fact sheet describes the symptoms and common causes of insomnia, as well as proven treatments and cures. (National Institutes of Health)

Insomnia: What it is, How it Affects You, and How to Help You Get Back Your Restful Nights – An overview of insomnia including common causes, signs, symptoms, and what to do (National Sleep Foundation)

Insomnia – Discusses insomnia symptoms, types, causes, and treatments, including what you can do to stop sleepless nights. (University of Cambridge)

Insomnia – A series of articles covering different types of insomnia, the causes of transient and chronic insomnia, self-help cures, and professional treatment. (University of Maryland Medical Center)

How to Get Restful Sleep – Includes a sample evening routine to promote restful sleep. (The Chopra Center)

5 Tips to End Insomnia and Get Restful Sleep – Suggestions for making healthy choices throughout the day in order to restore the ability to sleep soundly at night. (The Chopra Center)

Tips for getting back to sleep

Ear Point (Shen Men) – Video demonstrating how to use the acupressure point to promote relaxation and sleep. (Acupressure Points)

Eye Roll – How to use eye rolls to promote sleep. (Restful Insomnia Blog)

From our readers:

“I didn't sleep at all last night. This will help me.” ~ Wisconsin

“I started using HelpGuide tonight when I couldn't sleep. As a teacher/parent/educator who has been ill, I found your resource a fantastic help and will use and recommend it. [It’s] much better than many resources I have used in the past.” ~ United Kingdom

“Thanks for all the helpful tips for insomnia. I'm going to start a diary, and try some natural cures.” ~ Pennsylvania

Authors: Lawrence Robinson, Melinda Smith, M.A., and Robert Segal, M.A. Last updated: January 2017.