How Exercise Helps You Get a Good Night's Sleep

Was this helpful?

There’s a lot of evidence that exercise affects your sleep. But the exact effect seems to depend on what exercises you do and when you do them.

For instance, a brisk walk after work can help you doze off faster at night and sleep more soundly. But if you postpone your walk until the late evening, you might find yourself tossing and turning in bed.

Timing Is Everything

So, why does the timing of your workout matter? It’s simple: Your body temperature goes up during exercise and then drops off afterward. This post-exercise dip is beneficial because the cooler your body temperature is, the more likely you are to feel sleepy. The catch is it may take up to six hours for your body temperature to fall.

So if you want to maximize the sleep benefits of exercise, it’s best to work out five to six hours before going to bed, according to the National Institute of Neurological Disorders and Stroke. If that isn’t possible, however, don’t worry about it. Exercising at other times of day is still great for your overall health. Just try to avoid working out during the last couple of hours before bedtime so you aren’t wide awake when you should be getting drowsy.

Working Out Sleep Problems

You don’t have to exhaust yourself to reap the reward of better sleep. In fact, moderate-intensity aerobic activities—such as walking briskly or cycling on level ground—seem to be particularly beneficial to a good night’s rest. One study that proved this included more than 400 sedentary, overweight postmenopausal women. Typically, 35 to 60% of women in this age group say they have sleep problems.

The women in the study were randomly assigned to one of four groups: three groups did various amounts of moderate exercise and one control group did no exercise. After six months, the exercisers reported sleeping better since becoming active. The more they exercised, the greater the benefits. But sleep was improved even in those who worked out less than health guidelines recommend.

Sleep Happy

One way exercise may help you sleep is by giving your mood a boost. Exercising regularly helps ease stress, anxiety and depression—all problems that can interfere with getting a restful night’s sleep.

Staying physically active is also crucial for taking charge of your weight. Being overweight increases your risk of developing sleep apnea, a common disorder that leads to little pauses in your breathing while you snooze. These little pauses can stir you from deep sleep into lighter sleep. Repeated throughout the night, they can wreck the quality of your sleep and leave you tired the next day. If you’re overweight and have sleep apnea, losing even a few pounds through regular exercise and heathy eating helps improve your slumber.

Sleep Improves Exercise, Too

Interestingly, the relationship between exercise and sleep is a two-way street. When you get enough sleep, you’re more likely to feel motivated to exercise the next day. In one small study, women with insomnia tended to shorten their workouts after nights when they had trouble dozing off.

Sleep loss may make you feel as if you’re working harder and getting tired sooner during exercise. Plus, if you play sports, sleep loss may throw off your game. On the flip side, getting plenty of sleep might improve your athletic performance. Researchers found that when Stanford basketball players got extra sleep, they had faster sprint times and made a higher percentage of free throws and three-pointers.

Sleeping and exercising are two of the best things you can do for your body. Regular physical activity helps you sleep, and sleeping well helps you stay active. It’s a positive cycle that can enhance your life in multiple ways.

Key Takeaways

  • When you work out and what exercises you do can affect your sleep—for better and worse.

  • If you want to maximize the sleep benefits of exercise, it’s best to work out five to six hours before going to bed.

  • Moderate-intensity aerobic exercises, such as brisk walking, seem to be best for getting a good night’s sleep.

  • The sleep-exercise connection goes both ways: When you get enough sleep, you’re more likely to feel motivated to exercise the next day.

  • Remember to talk to your doctor before beginning or revising an exercise program.

Was this helpful?
Medical Reviewer: William C. Lloyd III, MD, FACS
Last Review Date: 2020 Dec 16
THIS TOOL DOES NOT PROVIDE MEDICAL ADVICE. It is intended for informational purposes only. It is not a substitute for professional medical advice, diagnosis or treatment. Never ignore professional medical advice in seeking treatment because of something you have read on the site. If you think you may have a medical emergency, immediately call your doctor or dial 911.

  1. Baron KG, Reid KJ, Zee PC. Exercise to improve sleep in insomnia: exploration of the bidirectional effects. Journal of Clinical Sleep Medicine. 2013;9(8):819-24.

  2. Ebben MR and Narizhnaya M. Cognitive and behavioral treatment options for insomnia. Mount Sinai Journal of Medicine. 2012;79:512-23.

  3. Hargens TA, Kaleth AS, Edwards ES, et al. Association between sleep disorders, obesity and exercise: a review. Nature and Science of Sleep. 2013;5:27-35.

  4. Kline CE, Sui X, Hall MA, et al. Dose-response effects of exercise training on the subjective sleep quality of postmenopausal women: exploratory analyses of a randomised controlled trial. BMJ Open. 2012;2:e001044.

  5. Mah CD, Mah KE, Kezirian EJ, et al. The effects of sleep extension on the athletic performance of collegiate basketball players. Sleep. 2011;34(7):943-50.

  6. Diet, exercise and sleep. National Sleep Foundation. Accessed October 28, 2014.

  7. Exercise for stress and anxiety. Anxiety and Depression Association of America. Accessed October 28, 2014.

  8. Healthy weight: it’s not a diet, it’s a lifestyle! Centers for Disease Control and Prevention. Accessed October 28, 2014.

  9. How much physical activity do adults need? Centers for Disease Control and Prevention. Accessed October 28, 2014.

  10. Your guide to healthy sleep. National Heart, Lung, and Blood Institute. Accessed October 28, 2014.

  11. What is sleep apnea? National Heart, Lung, and Blood Institute. Accessed October 28, 2014.

  12. Brain basics: understanding sleep. National Institute of Neurological Disorders and Stroke. Accessed October 28, 2014.