Sore muscles after a hard workout can make it surprisingly difficult to fall asleep and stay comfortable through the night. The soreness you feel 12 to 72 hours after exercise, known as delayed onset muscle soreness (DOMS), triggers an inflammatory response that can actually heighten your pain sensitivity and interfere with sleep quality. The good news: a few targeted strategies can help you get comfortable, fall asleep faster, and wake up feeling noticeably better.
Why Sore Muscles Make Sleep Harder
DOMS isn’t just surface-level tenderness. When you push your muscles beyond what they’re used to, you create microscopic damage in the muscle fibers. Your body responds by flooding the area with inflammatory substances, including prostaglandins and a signaling molecule called IL-6, both of which sensitize your pain receptors. That’s why rolling over in bed or simply pressing a sore leg against the mattress can feel so much worse than it did during the day.
This inflammatory process also has a direct relationship with sleep. Several of these inflammatory substances fluctuate with your circadian rhythm and can either promote or inhibit sleep. Poor sleep, in turn, raises levels of those same inflammatory markers, creating a frustrating cycle: soreness disrupts your sleep, and disrupted sleep makes you more sensitive to pain. Breaking that cycle is the whole point of the strategies below.
Take a Warm Bath 1 to 3 Hours Before Bed
A warm bath is one of the most effective two-for-one tools you have. The heat increases blood flow to sore muscles, which helps clear some of the inflammatory byproducts causing your pain. But timing matters for sleep. A hot bath taken 1 to 3 hours before bedtime significantly shortens the time it takes to fall asleep. In one large study, people who bathed in that window fell asleep in about 12 to 13 minutes on average, compared to 18 minutes without a bath.
The mechanism is straightforward: the warm water raises your skin temperature, and as your body sheds that extra heat over the next hour or two, it triggers the natural core temperature drop your brain needs to initiate sleep. Even a bath as short as 10 to 15 minutes produces this effect. Bathing too close to bedtime, though, can leave you too warm to drift off easily, so aim for at least an hour before you plan to be asleep.
Arrange Your Pillows Strategically
The right pillow setup can take pressure off your sorest muscle groups and keep your spine aligned so you’re not waking up to shift positions every hour.
- If you sleep on your back: Place one to three pillows under your thighs and knees. This takes tension off your lower back, hamstrings, and quads by keeping a slight bend in your legs. A small rolled towel inside your pillowcase at the base of the pillow supports the natural curve of your neck.
- If you sleep on your side: Put a firm pillow between your knees to keep your hips aligned and reduce strain on your outer thighs and glutes. If your shoulders or arms are sore, rest your top arm on an additional pillow in front of you so it isn’t pulling on the muscles.
If your soreness is concentrated in your upper body, try sleeping on your back for the night even if you normally prefer your side. Back sleeping distributes your weight more evenly and eliminates the pressure point of a sore shoulder pressed into the mattress.
Do Gentle Stretches Before Bed
Light, restorative movement before sleep promotes blood flow to sore areas without adding further muscle stress. The key is passive, supported stretching rather than anything dynamic. Hold each position for three to five minutes.
Three poses that work especially well for post-workout soreness:
- Legs up the wall: Lie on your back with your legs extended straight up against a wall. This improves circulation in your legs and helps reduce swelling in sore calves, hamstrings, and quads.
- Supported fish pose: Sit with legs straight, place a pillow lengthwise behind you, and slowly lie back onto it. Let your arms rest out to the sides, palms up. This gently opens your chest and upper back.
- Supported knee twists: Lie on your back with a pillow under your knees, then slowly rotate your bent knees to one side until they rest on the pillow. Reach your arms out to the sides. Repeat on the other side. This releases tension through the lower back and hips.
These poses double as relaxation tools. Slow, deep breathing while you hold each position helps shift your nervous system away from the “wired” state that intense exercise sometimes leaves behind.
What to Eat and Drink Before Bed
Tart cherry juice has received attention as a recovery drink, and the research is interesting but nuanced. Studies consistently show that cherry juice supports faster muscle function recovery, but only when consumed for several days before the workout, not just after. Starting it on the day of exercise or afterward doesn’t appear to have the same effect. If you train regularly and know a particularly tough session is coming, drinking tart cherry juice in the days leading up to it may help.
Magnesium is a more straightforward option. It plays a role in both muscle relaxation and sleep onset. A Mayo Clinic recommendation suggests 250 to 500 milligrams taken as a single dose at bedtime. Magnesium glycinate is generally well tolerated and less likely to cause digestive issues than other forms. Many people who exercise intensely are mildly deficient in magnesium because it’s lost through sweat, so supplementing can address both soreness and sleep quality simultaneously.
Beyond supplements, a small protein-rich snack before bed gives your body the raw materials for muscle repair overnight. Greek yogurt, cottage cheese, or a glass of milk all work well without sitting heavy in your stomach.
Think Twice About Pain Relievers
Reaching for ibuprofen before bed is tempting, but it comes with a real tradeoff. Research has shown that taking maximum over-the-counter doses of ibuprofen (1,200 mg daily) over eight weeks significantly blunted both strength gains and muscle growth in young adults doing resistance training. If you’re working out to build muscle or get stronger, regular anti-inflammatory use works against that goal by suppressing the very inflammatory signals your body uses to rebuild and adapt.
For an occasional brutal night of soreness, a single dose likely won’t derail your progress. But relying on pain relievers after every workout to sleep better is a habit worth reconsidering. The other strategies in this article address both the soreness and the sleep disruption without interfering with your training adaptations.
Compression Gear Overnight
Wearing compression leggings or sleeves to bed is a popular recovery strategy. The evidence on whether they reduce actual muscle swelling is mixed: out of 20 studies measuring changes in muscle size after exercise, 13 found no effect from compression, and only five found a benefit. No studies found compression made things worse. Where compression does show a more consistent benefit is in perceived soreness. People wearing compression garments report feeling less muscle pain in the days following exercise, even when objective measures of swelling don’t change much. If wearing snug leggings to bed makes you feel more comfortable, there’s no downside.
Why Sleep Itself Is the Best Recovery Tool
Your body does its most significant repair work during deep sleep. Hormones that directly drive muscle rebuilding, including testosterone and insulin-like growth factor, are released in their highest concentrations during the deeper stages of the sleep cycle. These hormones activate the molecular pathways responsible for building new muscle protein. Animal studies show that restricting deep sleep leads to measurable decreases in both muscle mass and muscle fiber size.
This is the core reason sore-night sleep matters so much. It’s not just about comfort. The hours you spend asleep are when your muscles are actively recovering. Every strategy above serves the same goal: helping you stay asleep long enough and deeply enough for that repair process to work.
When Soreness Signals Something Serious
Normal DOMS peaks 24 to 48 hours after exercise and gradually fades over three to five days. Rhabdomyolysis is a rare but dangerous condition where muscle tissue breaks down rapidly and releases proteins into the bloodstream that can damage the kidneys. The warning signs that set it apart from ordinary soreness are pain that’s far more severe than you’d expect from the workout, dark tea- or cola-colored urine, and unusual weakness or fatigue where you can’t complete tasks you’d normally handle easily. These symptoms can overlap with dehydration or heat cramps, so the only definitive test is a blood draw measuring a muscle protein called creatine kinase. If your urine is noticeably dark after a hard workout, especially one involving a new exercise or extreme volume, get it checked.

