Sleep notes

Is Exercising Before Bed Bad for Sleep?

By ToSleep AI · 2026-09-15

Research reviewed September 15, 2026. Published by the developer of ToSleep AI; not clinically reviewed. The cited researchers are not affiliated with ToSleep and do not endorse it.

The short answer: Exercise is good for sleep, but when and how hard matters. In data from 14,689 active people, workouts that ended at least 4 hours before falling asleep were not linked to any change in sleep, whatever the intensity. Harder workouts closer to bedtime were linked to later, shorter and lower-quality sleep. For people with insomnia, a 2025 review of 22 trials found yoga, tai chi and walking or jogging worked better than other exercise types. Leota et al., 2025 · Bu et al., 2025

Does working out late at night ruin your sleep?

A team led by Monash University analyzed one year of data from 14,689 physically active people who wore a biometric device, covering 4,084,354 nights. They compared how hard each workout was (“strain”) and when it ended with the sleep that followed.

Later and more strenuous exercise was associated with:

  • falling asleep later
  • sleeping for a shorter time
  • lower sleep quality
  • a higher resting heart rate during the night
  • lower heart rate variability during the night

The key finding for planning: workouts that ended 4 or more hours before sleep onset were not associated with changes in sleep, regardless of strain. The authors suggest finishing exercise at least 4 hours before sleep, or choosing lighter exercise inside that window. Leota et al., 2025

Keep in mind: this is an observational study. It shows a link, not proof that the workout caused the change. People who train late may also differ in other ways, such as work schedules. Two of the authors work for WHOOP, the company that made the device; the paper states the company did not otherwise shape the study.

What counts as a “hard” workout?

The study measured strain from heart-rate data rather than from exercise names. In everyday terms, think of sessions that leave you breathing hard and your heart rate high for a sustained time: interval training, a long run, a competitive match. A gentle walk or relaxed stretching is a different kind of evening activity.

Which exercise helps most with sleep?

A separate question is which type of exercise helps people sleep better over weeks. Researchers from Beijing University of Chinese Medicine and other institutions pooled 22 randomized trials with 1,348 adults with insomnia, comparing 13 approaches. Yoga, tai chi and walking or jogging stood out. Compared with control groups:

Exercise What changed (average) Certainty of evidence
Yoga about 111 more minutes of total sleep, based on sleep diaries moderate
Yoga sleep efficiency up about 16 percentage points; about 29 minutes faster to fall asleep low
Tai chi about 52 more minutes of sleep (diaries); about 24 more minutes by objective measures low
Walking or jogging insomnia severity score down about 9.6 points low

Bu et al., 2025

Keep in mind: these trials involved people diagnosed with insomnia, and only 4 of the 22 trials were rated low risk of bias. Diary-based sleep time is self-reported. The authors call for larger, better-designed trials. The numbers are useful for comparing exercise types, not as a promise of extra sleep.

Putting both studies together

  1. Keep hard sessions earlier. Aim to finish intense workouts at least 4 hours before you expect to fall asleep.
  2. Use the evening for gentle movement. Walking, easy yoga or tai chi-style movement are better fits for later in the day.
  3. Be consistent. The trial benefits came from programs lasting weeks, not a single session.
  4. If you can only train late, a lighter session is a reasonable compromise, based on the authors’ own suggestion.

How ToSleep AI fits in

ToSleep AI suggests a bedtime from the time you need to wake up. Knowing that bedtime makes the 4-hour rule easy to apply: count back 4 hours to find the latest time to finish a hard workout. ToSleep AI is a wellness app for iPhone and Apple Watch; its sleep stages are estimates, not lab measurements.

FAQ

Is exercising at night always bad? No. The large study linked sleep changes mainly to strenuous exercise close to sleep. Workouts ending 4 or more hours before sleep showed no association.

Can yoga replace treatment for insomnia? The review found yoga effective for people with insomnia, but it doesn’t replace talking to a doctor about persistent insomnia.

Is stretching before bed helpful? Stretching may help some people relax, but research specifically on bedtime stretching is still limited.

Wellness information, not medical advice. If you have ongoing trouble sleeping, talk to a doctor.

Sources

Wellness information, not medical advice.