Most leg pain responds well to a combination of rest, targeted stretching, and basic self-care you can start right now. The key is figuring out what type of pain you’re dealing with, because the fix for sore, overworked muscles is different from the fix for nerve pain shooting down your thigh or cramps that wake you up at night. Here’s how to address each one.
Start With Basic First Aid
If your leg pain started after exercise, a fall, or any kind of physical strain, the classic rest-ice-compress-elevate approach still works. Rest the leg for a few days, avoiding activities that make the pain worse. Once the sharp pain fades, gradually reintroduce movement, but stop if the pain returns.
Ice is most effective in the first eight hours after an injury. Apply it with a cloth or towel between the ice and your skin, and keep it on for 10 to 20 minutes at a time, repeating every hour or two. After that initial window, ice has diminishing returns. Wrapping the area with a compression bandage and keeping your leg elevated above heart level both help reduce swelling in the short term.
Figure Out What Kind of Pain You Have
Leg pain falls into a few broad categories, and each one feels noticeably different.
Muscle soreness or strain usually shows up as a dull ache or tightness in a specific muscle group. It gets worse when you use that muscle and improves with rest. If you felt a pop during activity followed by swelling and bruising in the back of your calf, that could be a partial muscle tear, which needs more careful management and possibly imaging.
Nerve pain feels sharp, shooting, or electric. Sciatica is the most common version: it starts in the lower back or buttock and radiates down the leg in a narrow, band-like pattern. It often follows the back of your thigh and can reach your foot. This type of pain points to a compressed nerve root in your lower spine rather than a problem in the leg itself.
Circulation-related pain tends to show up during walking and goes away quickly when you stop. It often affects both legs and feels like cramping or heaviness in the calves. This pattern is more common in older adults and people with risk factors like smoking, diabetes, or heart disease. In younger men (average age around 28), a rarer condition involving a trapped artery behind the knee can cause similar symptoms along with skin discoloration.
Relieving Nighttime Leg Cramps
If your legs hurt mostly at night, you’re likely dealing with nocturnal cramps. These sudden, involuntary contractions can last seconds to minutes and leave the muscle sore for hours afterward. Common triggers include sitting for long stretches during the day, standing on hard floors like concrete, overusing your muscles, and poor posture.
Several widely used medications list leg cramps as a side effect, including diuretics (water pills), statins for cholesterol, and certain antidepressants and sleep aids. If your cramps started or worsened after beginning a new medication, that connection is worth exploring.
You may have heard that magnesium supplements help with cramps. The evidence is underwhelming. A well-designed clinical trial found that magnesium supplementation for less than 60 days did not improve nocturnal leg cramps compared to a placebo. If you want to try it, know that it’s not a quick fix, and the benefit may be minimal.
What does help: stretching your calves and hamstrings before bed, staying hydrated throughout the day, and walking briefly before you lie down. When a cramp strikes, firmly stretching the affected muscle (pulling your toes toward your shin for a calf cramp) usually breaks the spasm faster than waiting it out.
Stretching and Foam Rolling
For general muscle tightness and soreness, regular stretching is one of the most reliable ways to reduce leg pain over time. Focus on your calves, hamstrings, quadriceps, and hip flexors, holding each stretch for 20 to 30 seconds without bouncing.
If you’re dealing with sciatica or nerve-type pain, a technique called nerve gliding can help. The basic version involves lying on your back, bringing the affected leg up toward your chest until you feel tension or symptoms, then slowly flexing and pointing your foot. This gently mobilizes the sciatic nerve and can reduce irritation along its path. A physical therapist can tailor this to your specific situation and show you how to do it safely at home.
Foam rolling is effective for muscle soreness and doesn’t require much time. Research from James Madison University found that just three minutes of foam rolling (about one minute per muscle region) reduced soreness as effectively as nine minutes. Longer sessions didn’t add benefit, so a quick roll over your quads, hamstrings, and calves after activity is enough. Apply gentle, sustained pressure, spending 90 to 120 seconds on any particularly tight spots to encourage the tissue to release.
Compression Stockings for Aching Legs
If your legs ache, feel heavy, or swell after long periods of sitting or standing, compression stockings can make a real difference. They come in several pressure levels, measured in mmHg, and the right one depends on your symptoms.
- 8 to 15 mmHg: Light support for mildly tired, achy legs. Good for desk jobs or days on your feet.
- 15 to 20 mmHg: Moderate support for heavier, slightly swollen legs. Helpful during travel or pregnancy.
- 20 to 30 mmHg: The most commonly prescribed level. Used for chronic leg fatigue, varicose veins, and mild swelling.
- 30 to 40 mmHg: For moderate to severe swelling, serious varicose veins, and after certain surgeries or blood clots.
The lighter levels are available over the counter. Anything at 20 mmHg or above is worth discussing with a healthcare provider to make sure you’re getting the right fit and pressure for your situation.
Walking Through Circulation Pain
If your leg pain is caused by poor circulation (peripheral artery disease), the counterintuitive treatment is walking more, not less. A structured walking program gradually improves blood flow and teaches your legs to function better with limited supply.
The approach is simple. Walk at a comfortable pace until cramping or discomfort begins, which might take only 5 to 10 minutes at first. Keep going until the pain makes you feel you need to stop. Then rest for 3 to 5 minutes, just long enough for the pain to resolve. Repeat this cycle for 30 to 45 minutes, several times a week. Over weeks, the distance you can cover before pain sets in will increase. The discomfort during walking is unpleasant but not harmful.
Over-the-Counter Pain Relief
For short-term relief, ibuprofen reduces both pain and inflammation, making it a better choice than acetaminophen for muscle strains, joint pain, or swelling. Acetaminophen works well for pain that doesn’t involve inflammation, such as nighttime cramps or general achiness. Combination products containing both are available over the counter for adults and children 12 and older.
The daily safety ceiling for acetaminophen is 4,000 milligrams (4 grams) in 24 hours, but staying well below that limit is wise, especially if you take it regularly. With ibuprofen, taking it with food reduces the chance of stomach irritation. Neither medication is meant for long-term daily use without medical guidance.
Signs That Need Urgent Attention
Most leg pain is not dangerous, but a few patterns warrant immediate medical evaluation. Deep vein thrombosis, a blood clot in one of the deep veins of the leg, causes swelling in one leg (not both), pain or cramping that often starts in the calf, skin that looks red or purple, and warmth over the affected area. Risk factors include being over 60, smoking, obesity, recent surgery or immobility, cancer, and a personal or family history of blood clots.
A clot becomes life-threatening if it breaks loose and travels to the lungs. Signs of that complication include sudden shortness of breath, chest pain that worsens with deep breaths or coughing, a rapid pulse, dizziness or fainting, and coughing up blood. Any combination of these symptoms alongside leg pain calls for emergency care.