Summary Working out late at night isn't bad for most people, but a hard workout that ends within about 2 hours of bedtime can delay sleep and keep your heart rate up overnight. A meta-analysis of 23 studies found that evening exercise didn't harm sleep overall and slightly increased deep sleep, with possible problems only after vigorous exercise ending an hour or less before bed (Stutz, 2019). In a lab test, a hard 40-minute session ending at 10 pm delayed sleep onset by 14 minutes and left heart rate about 26 beats per minute higher at bedtime (Oda and Shirakawa, 2014). Easy and moderate sessions can run close to bed. Finish hard training 2 to 4 hours before sleep, and skip caffeinated pre-workouts at night.
A young woman in a magenta tank top does a bodyweight lunge on a mat in a city apartment living room late at night, with a violet night sky and city lights in the window and a warm floor lamp glowing in the corner
A bodyweight session at home in the evening is a moderate workout for most people. Sessions like this rarely affect sleep, even when they end an hour or two before bed.

The kids are asleep, the dishes are done, and it's 9:30. If you're going to train today, it has to be now. Then the worry kicks in: is it bad to workout late at night, or are you about to trade your sleep for a workout? You've probably heard both answers. Some people say the best time to workout is whenever you'll actually do it. Others say exercise before bed will keep you staring at the ceiling.

Both have a point, and the studies now say exactly where the line falls. For most people, evening exercise doesn't hurt sleep. A hard session very close to bed can. And a few other things that come with late workouts, like bright lights and caffeine, often matter more than the exercise itself.

Below you'll find what the sleep studies measured, how late is too late for each kind of workout, why a hard late session can keep you up, what changes at 2 am, who should be careful, and how to train at night without losing sleep. If your real question is whether it's better to workout in the morning or night, we cover that below too.

What Happens to Your Sleep After a Late Workout

Three large analyses set the rules, and our review of the research on the best time to workout goes through them in detail. In short: across 23 lab studies, evening exercise didn't harm sleep and slightly increased deep sleep (Stutz, 2019). Hard evening exercise that ended 2 to 4 hours before bed didn't disrupt sleep in healthy good sleepers (Frimpong and colleagues, 2021). And in 4 million nights of wearable data from 14,689 active adults, exercise that ended at least 4 hours before sleep showed no link with sleep changes, however hard it was (Leota and colleagues, 2025). Later and harder sessions did go with later, shorter and lighter sleep.

Two more studies show what this looks like for real people.

What 1,000 Americans reported

The 2013 Sleep in America Poll asked 1,000 adults aged 23 to 60 about their exercise and sleep. Buman and colleagues (2014) defined evening exercise as anything within 4 hours of bed. After adjusting for other factors, people who did moderate or vigorous exercise in the evening reported sleep no worse than people who didn't exercise at all. Among the vigorous evening exercisers, 97% said their sleep quality was the same or better on days they trained, and 98% said the same about how long they slept. The authors concluded that sleep advice shouldn't discourage evening exercise.

Hard intervals 3.5 hours before bed

In a lab study by Thomas and colleagues (2020), eight trained runners did either a hard interval session (six 5-minute efforts at 90% of their peak aerobic capacity), an easy hour of running, or no exercise, each ending 3.5 hours before bed. After both runs, they slept about 14 to 17 minutes longer and spent less time awake than on the rest night. The only cost of the hard session was a slightly higher heart rate overnight, about 50 beats per minute against 47.

Is It Bad to Workout Before Bed?

Working out right before bed is where the trouble starts, and only when the workout is hard. The clearest test came from Oda and Shirakawa (2014). Twelve active young men spent three days in the lab. On one day they rested, on one they exercised for 40 minutes at a moderate pace, and on one they exercised for 40 minutes hard, both sessions ending at 10 pm.

Stutz's meta-analysis found the same boundary. Vigorous exercise ending an hour or less before bedtime may lengthen the time it takes to fall asleep and shorten total sleep. So whether it's bad to workout before bed depends on how hard the workout is. A hard session in the last hour before bed is the one pattern with consistent evidence against it.

Can you exercise 30 minutes before bed?

Yes, if it's gentle. Stretching, easy yoga, a slow walk or a few minutes of mobility work won't push your heart rate high enough to matter. Save squats to failure, sprints and circuits for earlier in the evening.

How Late Is Too Late to Work Out?

Count back from your bedtime, not forward from the clock. A 9 pm session means something different for someone who sleeps at 10 pm than for someone who sleeps at 1 am. Use the gap between the end of your workout and lights out, and match it to the intensity.

Time from end of workout to bedEasy (walking, stretching, gentle yoga)Moderate (steady cardio, a normal dumbbell session)Hard (HIIT, sprints, sets close to failure)
4 hours or moreFineFineFine
2 to 4 hoursFineFineFine for most healthy sleepers
1 to 2 hoursFineUsually fineMay delay sleep
Under 1 hourFineFine for most, test it on yourselfLikely to delay sleep

The bottom-right corner is the only cell with consistent evidence of harm. The "may delay sleep" cell comes from the wearable data, where harder sessions closer to bed went with later and shorter sleep. Treat the moderate column as a personal test. If you sleep fine after a 9:30 pm dumbbell session, you have your answer.

When's the worst time to workout?

For sleep, the worst time is a hard session in the last hour before bed. For your progress, the worst time is a slot you can't keep. A workout you skip three nights out of four does less for you than a slightly late one you never miss.

Knowing what to do is the easy part.

FitCraft, our mobile fitness app, pairs you with an AI coach who builds you a personalized plan around your goals, schedule, and fitness level. Every FitCraft program is designed by , MPH (Brown University) and NSCA-CSCS, with research published in the Journal of Strength and Conditioning Research and Medicine & Science in Sports & Exercise.

Take the Free Assessment Free • 2 minutes • No credit card

Why a Late Workout Can Keep You Up

Exercise itself is only one of several things that happen during a late session. Here's what the research points to, roughly in order of how often it's the real problem.

1. Caffeine in your pre-workout

This one catches a lot of evening lifters. Gardiner and colleagues (2023) pooled 24 studies of caffeine and sleep. On average, caffeine cut total sleep by 45 minutes and added 9 minutes to the time it took to fall asleep. To avoid losing sleep, the authors calculated that a cup of coffee (about 107 mg) should come at least 8.8 hours before bed, and a standard serving of pre-workout (about 217 mg) at least 13.2 hours before. For an 11 pm bedtime, that's a pre-workout no later than about 10 am. If you train at night, train without the scoop.

2. A racing heart and nervous system

Hard exercise switches on the fight-or-flight side of your nervous system, and it takes time to settle. That's why the Oda study found a much higher heart rate at bedtime, and why the wearable data showed a higher resting heart rate and lower heart rate variability through the night after later, harder sessions. For most healthy people the overnight effect is small, as the runners in the Thomas study showed, but a hard session right before bed can make the first hour in bed feel restless.

3. Body heat

Your core temperature normally drops as you fall asleep. Hard exercise raises it, and in Stutz's analysis a higher body temperature at bedtime went with lower sleep efficiency and more time awake during the night. A session that was much harder than a person's usual activity also went with more waking. Both links disappeared when a single study was removed from the analysis, so treat them as hints rather than rules.

4. Bright gym lights

Light is the strongest signal your body clock reads. Gooley and colleagues (2011) studied 116 young adults, some living in ordinary room light and others in dim light during the 8 hours before bed. Room light delayed the evening rise of melatonin, the hormone that signals night, in 99% of people and shortened their melatonin night by about 90 minutes. Many gyms are lit brighter than a living room. After a late session, keep the lights low at home.

5. A body clock pushed later

Exercise also nudges your body clock. Youngstedt, Elliott and Kripke (2019) had 99 young and older adults do an hour of moderate treadmill exercise at one of eight times of day, three days in a row, and tracked their melatonin rhythm. Exercise at 7 am or between 1 and 4 pm shifted the clock earlier. Exercise between 7 and 10 pm shifted it later. One evening session won't change much, but a nightly habit can make it harder to fall asleep early and wake early.

Is It Good to Workout at 2am?

A 2 am workout is a different situation, because for most people it happens during the hours they'd normally sleep. In the Youngstedt study, exercise around 2 am barely moved the body clock, so the exercise itself isn't the issue. The problems are the sleep you're giving up and the light. In Gooley's study, room light during the usual hours of sleep cut melatonin by more than half in 85% of tests.

If 2 am sits in the middle of your waking day, as it does on a night shift, it's a normal workout time for you. Our night shift workout guide explains where to place training around shifts and day sleep. If 2 am is an occasional burst of energy before a 7 am alarm, a short session of easy movement is the better choice, and sleep will do more for your fitness than the workout.

Who Should Be Careful With Late Workouts?

Most of the studies above tested healthy young or middle-aged adults who already slept well. The Frimpong analysis was limited to good sleepers aged 18 to 50. A few groups have more reason to keep hard training earlier in the day:

How to Work Out Late Without Losing Sleep

If the evening is your slot, these habits keep it from costing you sleep:

A man in a violet t-shirt sits cross-legged on a mat in a bedroom lit by one warm lamp at night, doing a gentle seated side stretch with eyes closed, a pair of dumbbells resting beside him
Ending a late session with 5 to 10 minutes of easy stretching and slow breathing lets your heart rate come down before bed. Low lamp light keeps the room ready for sleep.

Is It Better to Workout in the Morning or Night?

For muscle and strength, the time of day makes little difference, and our review of morning vs evening exercise covers the metabolic and body clock studies behind that. For sleep, mornings have a small edge: in the Buman poll, people who did vigorous exercise in the morning were the most likely to report good sleep. Evenings have their own advantages. Many people feel stronger later in the day, and a late session can be a good way to unwind after work.

So the best time to workout is the slot you'll keep. If that's the evening, the only adjustment is keeping the hardest work a couple of hours away from bed.

What This Means for You

If you've been skipping evening workouts because you thought they'd ruin your sleep, you can stop worrying about most of them. A moderate session after dinner, a dumbbell circuit at 8, or a brisk walk at 9:30 fits the evidence. The one habit worth changing is the hard session right before bed, especially with a caffeinated pre-workout.

The bigger risk is having no regular slot at all. When the plan depends on finding energy at the end of a long day, it's easy to skip, and one skipped night becomes a skipped week. A fixed evening time, a short session you can do at home, and something that makes showing up feel rewarding go a long way. A workout app that keeps you motivated can carry that last part. FitCraft's 3D AI coaches lead each workout at home, and streaks and calendar rewards make the nights you show up count. As FitCraft user Matt put it: "The real win is I actually want to work out now. That's never happened before."

A woman in her fifties with short silver hair sits on the edge of her bed with a towel around her neck, drinking a glass of water beside a warm bedside lamp after an evening workout
A moderate evening workout followed by a calm wind-down fits the sleep research for most people. The hard sessions are the ones to keep a couple of hours away from bed.

Frequently Asked Questions

Is it bad to workout before bed?

A light or moderate workout before bed isn't bad for most people, and evening exercise slightly increased deep sleep in a meta-analysis of 23 studies. The problem is a hard session that ends less than about an hour or two before you lie down, which can delay sleep and keep your heart rate up. Finish hard training 2 to 4 hours before bed and keep the last hour for easy movement.

How late is too late to work out?

Count back from your bedtime, not from the clock. A hard workout should end at least 2 hours before bed, and in wearable data, sessions that ended 4 hours out showed no link with sleep even when they were very hard. A moderate session can end 1 to 2 hours before bed, and easy walking, stretching or yoga is fine right up to bedtime.

Can you exercise 30 minutes before bed?

Yes, if the exercise is gentle. Stretching, easy yoga, a slow walk or mobility work 30 minutes before bed won't hurt sleep for most people. A hard workout 30 minutes before bed is likely to delay sleep: in one lab study, a vigorous 40-minute session close to bedtime pushed sleep onset back by 14 minutes and kept heart rate about 26 beats per minute higher.

What happens if you workout at 10pm?

It depends on when you go to bed. If you sleep at 1 am, a 10 pm workout is no different from a 7 pm one for someone who sleeps at 10 pm. If you sleep at 11 pm, keep a 10 pm session moderate and short, and save intervals or heavy sets for an earlier slot, because hard exercise that ends within an hour of bed is the one pattern linked to worse sleep.

Is it okay to workout at 11pm at night?

Working out at 11pm is okay if your bedtime is well after midnight or the workout is easy. For a midnight bedtime, choose a light session and dim the lights afterward, because bright light late in the evening also delays melatonin. If you work nights or keep a late schedule, plan around your own sleep time rather than the clock.

Is 7pm too late for the gym?

No. For anyone who goes to bed around 10:30 or later, a 7pm gym session ends with 2 to 3 hours to spare, which is enough even for a hard workout in the research. Skip a caffeinated pre-workout at that hour, though, since caffeine can cut sleep when taken many hours before bed.

Is it better to go to the gym in the morning or the evening?

The better time is the one you can keep every week. Muscle and strength gains are similar for morning and evening training, and evening exercise doesn't harm most people's sleep. Morning training suits people who struggle to fall asleep or whose evenings are unpredictable, while evening training suits people who feel stronger later in the day.

Will I gain weight if I sleep after exercise?

No. Going to sleep after a workout doesn't make you gain weight, and the calories you burned still count. Your weight over time depends on your total energy intake and output across days and weeks, and good sleep supports recovery and appetite control. The only catch is a very hard session right before bed that leaves you sleeping less.