Can't sleep after a workout? Why it happens and how to fix it
Short answer
If you can't sleep after a workout, the usual causes are a hard session ending less than an hour or two before bed, caffeine from coffee or pre-workout drinks, and a body that is still hot and wired. Meta-analyses show that evening exercise in general does not harm sleep, so finish hard efforts at least 2 hours before bed, drop late caffeine, and use a 20 to 30 minute wind-down routine.
If you train
If you train in the evening, schedule intervals and race-pace work to end at least 2 hours before bedtime, and keep anything later easy. Skip caffeinated pre-workout after midday, since a standard dose may need about 13 hours to clear enough to protect sleep. After the session, eat a normal meal with carbohydrate and protein, take a warm shower 1 to 2 hours before bed, and dim the lights. On race nights, accept that sleep may be short and protect the nights before and after.
You finish a late session, shower, get into bed, and lie there with your heart still pumping and your mind racing. If you can't sleep after workout sessions in the evening, you are not alone, and the fix is usually simple. For most people the cause is timing, intensity or caffeine. Evening exercise itself is usually fine.
This guide explains what the research says about evening workout sleep, why some sessions keep you awake, and a step-by-step routine to wind down faster.
Does working out at night ruin sleep?
For most healthy people, no. The old rule "never exercise in the evening" does not hold up well in the research.
- A 2019 meta-analysis of 23 studies found that a single evening exercise session did not harm sleep overall. If anything, it slightly increased deep (slow-wave) sleep and reduced the lightest sleep stage 1. The exception: vigorous exercise ending one hour or less before bedtime might delay sleep onset and reduce total sleep and sleep efficiency.
- A 2021 meta-analysis focused on high-intensity exercise in the evening. Across 15 studies and 194 people, hard sessions ending 0.5 to 4 hours before bed slightly reduced REM sleep, with no other significant changes. Regular evening high-intensity training did not disrupt sleep. The authors concluded that hard exercise 2 to 4 hours before bed does not disrupt nighttime sleep in healthy young and middle-aged adults 2.
- A 2022 network meta-analysis of 28 studies compared low, moderate and high intensity. Regardless of intensity, evening exercise did not disrupt sleep. High intensity again slightly reduced REM sleep 3.
So for good sleepers in lab studies, evening exercise is mostly fine. Want to know more about the stages these studies measure? See REM vs deep sleep.
Real-world data adds a caveat
Lab studies are small and controlled. A 2025 study of 14,689 physically active people wearing a biometric device for a year looked at more than 4 million nights 4. Later and harder workouts were linked with falling asleep later, sleeping less, lower sleep quality, higher overnight resting heart rate and lower overnight heart rate variability. Sessions ending at least 4 hours before sleep onset were not linked with any change in sleep, whatever the strain.
This was observational, so it cannot prove cause and effect. It still fits what many athletes notice: a hard session close to bedtime makes the first part of the night worse.
Can't sleep after workout? The five main causes
1. Your body is still revved up
Hard exercise raises heart rate, stress hormones and alertness. That response is useful in the session and fades over the following hours. If bed comes before it fades, sleep comes late. The 2025 data showed higher overnight heart rate and lower HRV after late, high-strain sessions 4.
2. You are still hot
Your core temperature needs to drop for sleep to come easily. In the 2019 meta-analysis, a higher body temperature at bedtime was linked with lower sleep efficiency and more time awake during the night, although this finding depended on one study 1.
3. Caffeine from coffee or pre-workout
This is often the biggest factor. A 2023 meta-analysis of 24 studies found that caffeine cut total sleep time by 45 minutes and sleep efficiency by 7%, made it take 9 minutes longer to fall asleep, and reduced deep sleep 5. The authors estimated that to avoid losing sleep:
- A cup of coffee (about 107 mg of caffeine per 250 mL) should be taken at least 8.8 hours before bedtime.
- A standard serving of pre-workout supplement (217.5 mg) should be taken at least 13.2 hours before bedtime.
For a 10:30 pm bedtime, that means your last pre-workout drink should be around 9:00 am. Most people training after work take theirs at 5 or 6 pm. Use our caffeine cutoff calculator to find your own cutoff.
4. Bright light, screens and late meals
Bright gym lighting, scrolling on your phone and a big late meal can all keep you alert. These effects vary a lot between people, but they add up with the factors above.
5. Competition and nerves
Races, matches and hard group sessions add mental arousal. The 2021 expert consensus on athlete sleep lists training, travel and competition among the sport-specific factors that disturb sleep, alongside stress and anxiety 8.
How late is too late to work out?
Based on the studies above, a practical rule:
| Session type | Finish at least this long before bed | Why |
|---|---|---|
| Easy run, ride, swim or light lifting | No strict limit for most people | Low and moderate intensity did not disrupt sleep 3 |
| Hard intervals, heavy lifting, races | 2 hours | Hard sessions 2 to 4 hours out did not disrupt sleep in lab studies 2 |
| Very hard or long sessions if you sleep lightly | 4 hours | No link with sleep changes at 4 hours or more in real-world data 4 |
| Anything vigorous | Never within 1 hour | May delay sleep and reduce sleep efficiency 1 |
If you can only train late, keep the hard work early in the session and finish with an easy cool-down.
A wind-down routine for evening workouts
Here is a step-by-step routine to use after evening training. Total time is about 60 to 90 minutes, most of which you would spend anyway eating and showering.
Step 1: Cool down for 10 minutes
End the session with 5 to 10 minutes of very easy movement, such as walking, spinning on the bike or easy jogging. Let your breathing return to a level where you can talk in full sentences.
Step 2: Eat a normal meal
Have a regular dinner with carbohydrate and protein. Going to bed hungry after hard training can make it harder to sleep, and a huge meal right before bed can too. Try to finish eating 1 to 2 hours before bed when you can.
Step 3: Take a warm shower 1 to 2 hours before bed
A 2019 meta-analysis found that a warm shower or bath at 40 to 42.5 °C (104 to 108.5 °F), taken 1 to 2 hours before bedtime for as little as 10 minutes, shortened the time it took to fall asleep and improved self-rated sleep quality 6. Warming your skin draws blood to your hands and feet, which helps your core temperature fall afterward. Some people find that a cold shower right before bed leaves them more alert.
Step 4: Dim the lights and drop the screens
Switch to low, warm lighting for the last hour. Put your phone on charge outside the bedroom if you can.
Step 5: Breathe slowly for 10 to 15 minutes
In a 30-day randomized study of 64 healthy young adults, 15 minutes of slow-paced breathing each evening improved subjective sleep quality and overnight cardiac vagal activity compared with using social media for the same time 7.
How to do it:
- Lie on your back or sit comfortably.
- Breathe in through your nose for about 4 seconds.
- Breathe out slowly for about 6 seconds.
- That gives about 6 breaths per minute. Continue for 10 to 15 minutes.
- If counting keeps you alert, use a slow breathing app or simply make each exhale longer than the inhale.
Step 6: Add gentle stretching if it relaxes you
Five to ten minutes of slow, easy stretches can be part of your wind-down. Try our stretches before bed routine or the bedtime yoga for runners sequence.
Common mistakes
- Taking pre-workout for an evening session. Choose a caffeine-free version or skip it.
- Doing the hardest set last. Finish with easy work and leave max efforts for earlier in the session.
- Lying in bed wide awake for hours. If you are still awake after about 20 minutes, get up, sit in dim light and do something calm until you feel sleepy.
- Shifting bedtime much later. Keep a consistent wake time. If you need to plan around late training, use our sleep calculator.
- Ignoring the long game. One short night after a race is normal. A pattern of short nights hurts recovery and adaptation. See supercompensation for why it matters.
The bottom line
Evening exercise does not harm sleep for most people, and the research supports training at night if that fits your life 123. If you can't sleep after a workout, finish hard sessions at least 2 hours before bed, cut caffeine well before training, take a warm shower, and spend the last half hour breathing slowly in dim light. If late sessions keep disrupting your sleep after these changes, move intense work earlier in the day.
When to see a doctor
See a doctor if you regularly take more than 30 minutes to fall asleep or wake for long periods at least three nights a week for three months, or if you notice heart palpitations or chest discomfort after exercise.
Frequently asked questions
Why am I so awake after working out at night?
Hard exercise raises heart rate, body temperature and alertness, and those effects take time to fade. Caffeine from pre-workout drinks or coffee, bright gym lights and nerves add to it. Most people settle within a couple of hours after a hard session, which is why finishing intense work at least 2 hours before bed is a good rule.
Is it bad to work out right before bed?
Light or moderate exercise close to bedtime is fine for most people. Vigorous exercise ending one hour or less before bed may delay sleep and lower sleep efficiency. If you only have time late, keep the session easy, or put the hard part early and finish with a long easy cool-down.
How long after a workout should I go to sleep?
After an easy session, you can usually go to bed as soon as you have eaten and showered. After a hard session, aim for at least 2 hours between the end of the workout and lights out. If you are a light sleeper, 4 hours gives you a bigger buffer.
Can pre-workout keep me awake?
Yes. Most pre-workout supplements contain caffeine. A 2023 meta-analysis estimated that a standard serving of about 217.5 mg should be taken at least 13.2 hours before bedtime to avoid losing sleep. For evening training, choose a caffeine-free option or skip it. Check the label, because some products also contain other stimulants.
Does a cold shower after a workout help me sleep?
The evidence for sleep favors a warm shower or bath, taken 1 to 2 hours before bed, which helps your core temperature drop afterward. A cold shower right before bed can feel refreshing, but many people find it leaves them more alert. If you like cold water for recovery, take it soon after training, well before bedtime.
Sources
- Stutz J et al. (2019). Effects of Evening Exercise on Sleep in Healthy Participants: A Systematic Review and Meta-Analysis. Sports Medicine.
- Frimpong E et al. (2021). The effects of evening high-intensity exercise on sleep in healthy adults: A systematic review and meta-analysis. Sleep Medicine Reviews.
- Yue T et al. (2022). Different Intensities of Evening Exercise on Sleep in Healthy Adults: A Systematic Review and Network Meta-Analysis. Nature and Science of Sleep.
- Leota J et al. (2025). Dose-response relationship between evening exercise and sleep. Nature Communications.
- Gardiner C et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews.
- Haghayegh S et al. (2019). Before-bedtime passive body heating by warm shower or bath to improve sleep: A systematic review and meta-analysis. Sleep Medicine Reviews.
- Laborde S et al. (2019). Influence of a 30-Day Slow-Paced Breathing Intervention Compared to Social Media Use on Subjective Sleep Quality and Cardiac Vagal Activity. Journal of Clinical Medicine.
- Walsh NP et al. (2020). Sleep and the athlete: narrative review and 2021 expert consensus recommendations. British Journal of Sports Medicine.