The best way to stretch out sore legs is to work through each major muscle group with static stretches held for 15 to 30 seconds, repeated two to four times per stretch. Soreness after exercise or a long day on your feet typically affects the hamstrings, quads, calves, and glutes, and each area responds best to slightly different positions. A full routine targeting all four areas takes about 10 to 15 minutes.
One important note before you start: stretching won’t dramatically speed up recovery from soreness. A systematic review of five studies published in the BMJ found that stretching before or after exercise reduced muscle soreness by less than 1 point on a 100-point scale, a difference so small it’s essentially zero. What stretching does reliably do is reduce tightness, restore your range of motion, and make sore legs feel more functional while they recover on their own. That alone is worth the time.
Hamstring Stretches
Tight, sore hamstrings are one of the most common complaints after running, squatting, or even sitting all day. Two stretches work especially well here.
Doorway stretch: Sit on the floor near a doorway. Lie back and slide one leg up the wall beside the door frame, straightening your knee until you feel a gentle pull down the back of your thigh. Keep your toes relaxed (not pointed), your back flat on the floor, and your other leg extended through the doorway with the heel down. Hold for at least one minute, working up to six minutes over time if the stretch feels productive. Repeat two to four times on each side.
Towel stretch: Lie on your back and bend the knee of the leg you want to stretch. Loop a towel under the ball of that foot, hold both ends, then slowly straighten your knee and raise your foot toward the ceiling. Pull gently on the towel until you feel the stretch behind your thigh. Hold for 15 to 30 seconds, or up to one minute if you can manage it. Repeat two to four times. This version is easier to do anywhere since you don’t need a doorway.
Quad and Hip Flexor Stretches
Soreness in the front of your thighs and the crease of your hips often comes from running, cycling, climbing stairs, or heavy squatting. The muscles in the front of the hip (deep hip flexors) are especially prone to tightness because they shorten every time you sit.
Half kneel: Start kneeling on both knees, then plant your left foot in front of you so both knees are bent at roughly 90 degrees. Keep your back straight and squeeze your glutes as you lean your weight gently forward into the front leg. You’ll feel a deep stretch in the front of your right hip and upper thigh. Hold for 15 to 30 seconds, then switch sides. This is one of the most effective stretches for the deep hip flexor that connects your spine to your thigh bone.
Bed leg dangle: Lie on your back near the edge of your bed. Pull the leg closest to the center of the bed up to your chest and hug it there. Let your other leg hang off the side of the mattress, relaxing completely. Gravity does the work, pulling a gentle stretch through the front of your hanging hip and thigh. Hold for 15 to 30 seconds per side. This one feels especially good first thing in the morning when everything is stiff.
Calf Stretches
Your calves contain two overlapping muscles. The larger one runs from above your knee to your heel, and the deeper one sits underneath. To stretch both, you need to do variations with your knee straight (targeting the outer muscle) and slightly bent (targeting the deeper one).
Wall stretch: Stand facing a wall with one foot stepped back about two feet. Keep the back knee straight and the heel flat on the floor, then lean your body toward the wall until you feel a stretch down the back of your calf. Hold for 20 seconds, repeat five times. To hit the deeper calf muscle, do the same stretch but with a slight bend in your back knee.
Stair stretch: Stand on a step with the balls of your feet on the edge and your heels hanging off. Keep one knee straight and let that heel sink below the level of the step until you feel a solid stretch in the calf. Hold for 20 seconds, repeat five times. This creates a deeper stretch than the wall version because gravity pulls your heel below your toes, something you can’t achieve on flat ground.
Band or towel stretch: Sit on the floor with your legs extended. Loop a resistance band or towel around the ball of one foot and gently pull the toes toward you while keeping the knee straight. Hold 20 seconds, repeat five times. This is a good option if standing stretches are uncomfortable or if your calves are too sore to bear weight on a step.
Glute and Hip Stretches
Sore glutes can make sitting, walking upstairs, and even lying down uncomfortable. The figure-four position is the simplest way to target both the large glute muscles and the smaller piriformis muscle that sits deep in the hip.
Hip rotator stretch (figure four): Lie on your back with both knees bent and feet flat on the floor. Cross the ankle of your sore leg onto the opposite thigh, just below the knee. Use your hand to gently push the crossed knee away from your body until you feel a stretch around the outside of your hip. Hold for 15 to 30 seconds, repeat two to four times per side. If you want a deeper stretch, lift the bottom foot off the floor and pull that thigh toward your chest while keeping the ankle crossed over it.
How Long and How Often to Stretch
The current evidence points to 15 to 30 seconds per stretch as the sweet spot for improving flexibility and easing tightness. Holding longer than 30 seconds doesn’t add much benefit for most people, with one exception: if you’re over 65, research suggests 60-second holds produce noticeably better results than shorter ones. The American College of Sports Medicine recommends repeating each stretch two to four times and stretching at least two to three days per week for lasting flexibility gains.
When your legs are actively sore, daily stretching is fine and often feels the most helpful. Even five to 10 minutes is enough to make a difference in how your legs feel. You don’t need to do every stretch listed above in one session. Pick the areas that are sorest and focus there.
Soreness vs. Something More Serious
Normal muscle soreness is diffuse, meaning it spreads across a general area rather than pinpointing one exact spot. It peaks about 24 to 72 hours after activity and gradually fades. Stretching into this kind of soreness is safe, even if it’s mildly uncomfortable.
Injury pain behaves differently. It tends to concentrate in a specific spot, like a tendon or joint. It may feel sharp during certain movements, ache constantly even at rest, or wake you up at night. You might also notice yourself limping or favoring one leg. If you’re experiencing that kind of pain, stretching through it can make things worse. Pain that doesn’t improve after 10 days of rest, or that intensifies when you try to return to activity, is worth getting evaluated by a physical therapist or doctor.
What Else Helps Sore Legs Recover
Since stretching mostly addresses tightness rather than speeding up the biological repair process, pairing it with other strategies gives you better results. Light movement like walking or easy cycling increases blood flow to sore muscles without adding stress. Adequate sleep matters more than most people realize, because the bulk of muscle repair happens overnight. Staying hydrated and eating enough protein gives your body the raw materials it needs to rebuild the damaged fibers that cause soreness in the first place.
Static stretching is better than dynamic stretching (leg swings, walking lunges) for restoring range of motion when you’re already sore. One study found static stretching improved flexibility nearly 3% more than dynamic stretching in the same session. Save dynamic stretching for warming up before your next workout. When your legs are already tight and achy, slow, sustained holds are what you want.

