Exercise and Insomnia

Dr. Jenni Jacobsen, PhD
Author: Dr. Jenni Jacobsen, PhD Medical Reviewer: Morgan Blair Last updated:

In some ways, exercise and sleep can go hand-in-hand. If you’re suffering from insomnia, incorporating exercise into your routine could improve the quality of your sleep [1].

Can exercise help insomnia?

There are several available treatments for insomnia, and one that has received some interest is exercise. Some research does suggest that regular exercise can improve sleep quality in individuals who struggle with this common sleep disorder.

One recent research report analyzed the results of 22 different studies that assessed the use of exercise interventions for the treatment of insomnia. According to the result of numerous subjective assessments, exercise improved sleep quality significantly [1]. This means that people who participate in exercise interventions perceive their quality of sleep to be better.

In addition, the studies included in the report concluded that exercise improves sleep efficiency, meaning that people who exercise spend a greater proportion of their time in bed actually asleep [1].

Older research has found that exercise reduces sleep complaints and can be effective for treating chronic insomnia [2].

Best types of exercise for people with insomnia

There isn’t necessarily one specific type of exercise that is best for treating insomnia. Researchers have suggested that varied exercise interventions should be recommended for improving sleep quality [1].

Both physical exercises, such as cycling, and mind-body exercises, such as yoga, have been found to be beneficial for patients with insomnia [1]. Additional research has shown that a combination of aerobic exercise and resistance training, each performed three days per week, is beneficial for improving subjective sleep quality, increasing total sleep time, and reducing daytime dysfunction from lack of sleep [3].

While a variety of different exercise types have been found to be effective for reducing the severity of insomnia, aerobic exercise has been the most widely studied, and it has been found to be so beneficial that it is comparative in effectiveness to hypnotic medication [2].

Some research suggests that some forms of exercise may be better than others for improving sleep. For example, a meta-analysis of studies with middle-aged women found that moderate-intensity aerobic exercise improved sleep quality, whereas yoga, which was lower in intensity, did not [4].

Some studies have found lower-intensity exercises, including yoga, to be effective for treating insomnia [1], whereas others have not [4]. There is evidence to support vigorous exercise as an antidote to insomnia. One study with young adults, both men and women, found that those who exercised vigorously spent more time asleep. They also had greater amounts of REM and deep sleep, and less light sleep throughout the course of the night [5].

In summary, there isn’t really one exercise modality that must be used to improve sleep. There are several studies that support the use of exercise interventions to treat insomnia symptoms. What is known is that when previously-sedentary people with insomnia add exercise to their routines, they enjoy better sleep quality [6].

Some people may find more vigorous aerobic exercises, such as running and cycling, to be more beneficial for improving sleep quality, but what is most important is finding something that works for your individual needs.

When is the best time to exercise for a good night’s sleep?

There has been some debate regarding the proper timing of exercise for ensuring the most improvement in sleep quality. Some experts argue that nighttime exercise is too stimulating and actually interferes with sleep.

One study, published in 2014, did not find this to be true. Study results found that evening exercise, defined as physical activity performed within 4 hours of bedtime, was not associated with poor sleep. The study did find that people who exercised vigorously in the morning were more likely to report quality sleep and less likely to report waking up unrefreshed [7].

However, another study found that healthy young adults who exercised 1.5 hours before bedtime fell asleep more quickly and had more time spent in deep sleep when they exerted themselves more during exercise [8]. While this study wasn’t conducted with individuals with insomnia, the results do suggest that evening exercise can actually improve sleep quality.

The bottom line is that exercise seems to improve sleep quality, whether it’s performed in the morning or the evening. Research doesn’t show any significant reduction in sleep quality when exercise is performed close to bedtime. To reap the benefits of exercise on sleep, the best strategy is to pick a time of day that works with your individual schedule.

Can exercise cause insomnia?

As indicated above, some people have expressed concern that evening exercise may cause insomnia or worsen sleep quality, because it’s stimulating. However, the research doesn’t support this concern.

Some factors related to exercise can, on the other hand, increase the risk for insomnia. For instance, chronic pain is associated with insomnia. If exercise is intense or extreme, and leads to ongoing pain, it may interfere with sleep [9].

Exercise may also cause insomnia in the case of overtraining syndrome, a phenomenon seen most often in athletes, such as runners and swimmers. With overtraining syndrome, excessive exercise leads to fatigue and decreased performance, along with a range of other unpleasant symptoms. Insomnia is one of these symptoms [10].

Exercise generally improves sleep quality, but it may lead to insomnia in extreme cases, such as in people who have injuries or pain, or who suffer from overtraining syndrome as a result of excessive exercise.

Other ways to treat insomnia

While exercise may be beneficial for those who experience symptoms of insomnia, sometimes exercise in and of itself is not sufficient for improving sleep. In some cases, exercise may simply be an add-on to other treatments for insomnia.

Below are some additional methods of treating insomnia [11]:

  • Sleep hygiene: Patients with insomnia may benefit from education on proper sleep hygiene. While getting enough exercise can be a component of sleep hygiene, patients should also be educated on other practices, such as limiting daytime naps, avoiding alcohol and caffeine in the evening, and keeping a consistent bedtime and wake time.
  • Stimulus control therapy: This sort of therapy teaches patients to use the bed only for sleep, thereby eliminating associations between being in bed and being awake. This means cutting out activities like reading or eating in bed and stopping the use of digital devices like phones and tablets in bed.
  • Cognitive Behavioral Therapy for insomnia (CBTi): CBTi is a form of cognitive behavioral therapy designed specifically for people with insomnia, and it has been found to be even more beneficial than medication. It is typically delivered over 6 to 8 weeks, with a nurse, social worker, sleep therapist, mental health therapist, or physician assistant leading the intervention. During sessions, patients are provided with sleep education and trained in relaxation techniques and stimulus control. They are also trained in sleep restriction, which reduces the number of hours in bed to increase sleep drive. Finally, they receive cognitive behavioral interventions, which help them to correct unhelpful and distorted thoughts pertaining to sleep.
  • Medication: Some patients with insomnia may benefit from taking prescription medication to treat symptoms. Medications used in the treatment of insomnia include benzodiazepines, zolpidem, zaleplon, and ramelteon. Some antidepressant and antipsychotic medications may be used off-label to treat insomnia. In some cases, a doctor may recommend that a patient take melatonin over-the-counter to alleviate insomnia.
  1. Xie, Y., Liu, S., Chen, X., Yu, H., Yang, Y., & Wang, W. (2021). Effects of exercise on sleep quality and insomnia in adults: A systematic review and meta-analysis of randomized controlled trials. Frontiers in Psychiatry, 12, 664499. doi: 10.3389/fpsyt.2021.664499
  2. Passos, G.S., Poyares, D.L.R., Santana, M.G., Tufik, S., & de Mello, M.T. (2012). Is exercise an alternative treatment for chronic insomnia? Clinics, 67(6): 653–659. doi:10.6061/clinics/2012(06)17
  3. Dadgostar, H., Basharkhah, A., Ghalehbandi, M.F., Kashaninasab, F. (2023). An investigation on the effect of exercise on insomnia symptoms. International Journal of Preventive Medicine, 14(16). doi: 10.4103/ijpvm.ijpvm_204_21
  4. Rubio-Arias, J., Marín-Cascales, E., Ramos-Campo, D., Hernandez, A. & Pérez-López, F. (2017). Effect of exercise on sleep quality and insomnia in middle-aged women: A systematic review and meta-analysis of randomized controlled trials. Maturitas, 100, 49-56. https://doi.org/10.1016/j.maturitas.2017.04.003
  5. Gerber, M., Brand, S., Herrmann, C., College, F., Holsboer-Trachler, E., & Puhse, W. (2014). Increased objectively assessed vigorous-intensity exercise is associated with reduced stress, increased mental health and good objective and subjective sleep in young adults. Physiology & Behavior, 135, 17-24. https://doi.org/10.1016/j.physbeh.2014.05.047
  6. El-Kader, S., & Al-Jiffri, O. (2020). Aerobic exercise affects sleep, psychological wellbeing and immune system parameters among subjects with chronic primary insomnia. African Health Sciences, 20(4), 1761-1769. doi: 10.4314/ahs.v20i4.29
  7. Buman, M.P., Phillips, B.A., Youngstedt, S.D., Kline, C.E., & Hirshkowitz, M. (2014). Does nighttime exercise really disturb sleep? Results from the 2013 National Sleep Foundation Sleep in America Poll. Sleep Medicine, 15(7), 755-761. https://doi.org/10.1016/j.sleep.2014.01.008
  8. Brand, S., Kalak, N., Gerber, M., Kirov, R., Puhse, W., Holsboer-Trachsler, E. (2014). High self-perceived exercise exertion before bedtime is associated with greater objectively assessed sleep efficiency. Sleep Medicine, 15(9), 1031-1036. https://doi.org/10.1016/j.sleep.2014.05.016
  9. Andersen, M.L., Araujo, P., Frange, C., Tufik, S. (2018). Sleep disturbance and pain: A tale of two common problems. Chest, 154(5), 1249-1259. https://doi.org/10.1016/j.chest.2018.07.019
  10. Kreher, J,B, & Schwartz, J.B. (2012). Overtraining syndrome: A practical guide. Sports Health, 4(2):128-138. doi:10.1177/1941738111434406
  11. Kaur, H., Spurling, B.C., & Bollu, P.C. (2023). Chronic insomnia. National Library of Medicine. Retrieved May 14, 2023, from https://www.ncbi.nlm.nih.gov/books/NBK526136/
Medical Content

Our Medical Affairs Team is a dedicated group of medical professionals with diverse and extensive clinical experience who actively contribute to the development of our content, products, and services. They meticulously evaluate and review all medical content before publication to ensure it is medically accurate and aligned with current discussions and research developments in mental health. For more information, visit our Editorial Policy.

About MentalHealth.com

MentalHealth.com is a health technology company guiding people towards self-understanding and connection. The platform offers reliable resources, accessible services, and nurturing communities. Its mission involves educating, supporting, and empowering people in their pursuit of well-being.

Dr. Jenni Jacobsen, PhD
Author Dr. Jenni Jacobsen, PhD Medical Reviewer, Writer

Dr. Jenni Jacobsen is our expert medical reviewer, holding roles as a licensed social worker, behavioral health consultant, and PhD in clinical psychology.

Published: Aug 21st 2023, Last edited: Sep 22nd 2023

Morgan Blair
Medical Reviewer Morgan Blair MA, LPCC

Meet Morgan Blair, our accomplished medical reviewer. Morgan is a licensed therapist with a master’s degree in clinical mental health counseling from Northwestern University.

Content reviewed by a medical professional. Last reviewed: Aug 20th 2023
Medical Reviewer Medical Reviewer:
Morgan Blair
Last reviewed: Aug 20th 2023 Morgan Blair