What to Do When Your Legs Are Sore After Exercise

Sore legs after a tough workout, a long walk, or a day on your feet usually feel worst 24 to 48 hours after the activity. The good news is that most leg soreness resolves on its own within three to five days, and there are several things you can do right now to speed that process along and feel more comfortable in the meantime.

Use Heat for Sore Muscles, Ice for Injuries

The single most common question with sore legs is whether to reach for a heating pad or an ice pack. The answer depends on what’s going on. For general muscle soreness after exercise, heat is the better choice. It brings more blood to the area, reduces stiffness, and loosens tight muscles. A warm bath, heated blanket, or microwavable heat wrap on your quads, hamstrings, or calves can make a noticeable difference.

Ice is more appropriate when there’s visible swelling or inflammation, like after rolling an ankle or tweaking your knee. Cold therapy numbs the area, reduces swelling, and limits bleeding in damaged tissue. If you have a fresh injury, stick with ice for the first 48 hours before switching to heat. For plain old post-workout soreness with no swelling, skip the ice and go straight to warmth.

Keep Moving With Low-Intensity Activity

It feels counterintuitive, but sitting still all day tends to make sore legs stiffer and more uncomfortable. Low-intensity movement increases blood circulation, which delivers oxygen and nutrients to your muscles and helps flush out the metabolic byproducts of hard exercise. This approach, called active recovery, has been shown to reduce soreness, speed up recovery time, and improve mobility.

You don’t need to do anything ambitious. A walk around the neighborhood, an easy bike ride, a gentle swim, or a basic yoga session all count. The key is keeping the effort level well below whatever made you sore in the first place. If your legs are aching from a long run, a 15-minute walk is active recovery. If a walk around the block is already challenging for you, even light movement around the house counts because it gets blood flowing.

Foam Roll for Targeted Relief

A foam roller can work through tightness in specific spots, particularly your quads, IT bands, hamstrings, and calves. Spend one to two minutes per muscle group, rolling slowly and pausing on tender areas. The whole session shouldn’t take more than 10 minutes. You can foam roll daily or a few times a week, and it works well both right after exercise and on rest days when stiffness creeps in.

When you find a particularly sore spot, resist the urge to grind into it aggressively. Moderate pressure is more effective than pain. If the standard foam roller feels too intense on your legs, start with a softer roller or even a tennis ball against a wall for your calves.

Hydrate With Electrolytes, Not Just Water

Drinking plenty of water matters, but water alone can actually work against you if you’ve been sweating heavily. When you drink large amounts of plain water without replacing electrolytes, you dilute your blood sodium levels, which can trigger muscle cramping, fatigue, and slower nutrient delivery to your recovering muscles.

Three electrolytes play the biggest roles in muscle recovery. Sodium drives fluid retention and cellular hydration. During intense training, you can lose 500 to 2,000 milligrams of sodium per hour through sweat alone. Potassium helps regulate the electrical activity in your muscle fibers, reducing cramping and stiffness. Magnesium relaxes muscle tissue and supports energy production at the cellular level. If you’re dealing with acute cramps, about 500 milligrams of sodium can help quickly. For chronic cramping or tightness that keeps coming back, the issue is more likely inadequate daily magnesium intake.

Support Recovery With Magnesium and Protein

Magnesium is worth singling out because so many people don’t get enough of it, and the difference it makes in muscle recovery is well documented. For active adults, the most commonly studied effective dose is 300 to 500 milligrams of elemental magnesium per day, which you can split into two doses. Below 250 milligrams, it may not do much unless you’re already deficient. If you’re training intensely, a more tailored approach puts the target around 4 to 6 milligrams per kilogram of body weight.

Protein is equally important, though most people think of it only in terms of building muscle. Your body also needs protein to repair the microscopic damage that causes soreness in the first place. Eating a protein-rich meal or snack within a couple of hours after exercise gives your muscles the raw material they need. Good sources include eggs, chicken, fish, Greek yogurt, beans, and protein shakes if whole food isn’t convenient.

Stretching and Gentle Yoga

Static stretching after your muscles are warm can help reduce the feeling of tightness in sore legs. Focus on the major leg muscles: hold a quad stretch, a standing hamstring stretch, and a calf stretch for 20 to 30 seconds each. Yoga sequences that emphasize the lower body, like forward folds, pigeon pose, and reclined leg stretches, combine flexibility work with the kind of gentle movement that promotes blood flow.

Avoid aggressive stretching when your muscles are very sore. Pushing into deep stretches on inflamed tissue can increase discomfort rather than relieve it. Gentle, sustained holds work better than bouncing or forcing range of motion.

How to Tell If It’s More Than Soreness

Normal muscle soreness shows up a day or two after activity, feels like a general ache or stiffness across the muscle, and fades within three to five days. A pulled muscle or strain is different: the pain is usually immediate, sharp, and localized to one specific spot. It’s often accompanied by swelling, bruising, or difficulty moving the nearby joint.

Swelling concentrated in one area is a key indicator that something beyond normal soreness is happening. Redness and bruising also point toward actual tissue damage rather than the typical post-exercise ache. If your leg soreness hasn’t improved after a week, the area feels numb, or you can’t bear weight or move the limb normally, those are signs of a more serious problem that needs medical evaluation.