What to Do When Your Leg Hurts and When to Worry

Most leg pain comes from overworked muscles, minor strains, or cramping, and it improves with basic home care within a few days to a few weeks. The right response depends on what’s causing the pain, how suddenly it started, and whether certain warning signs are present. Here’s how to figure out what you’re dealing with and what steps to take.

Identify the Type of Pain

Leg pain falls into a few broad categories, and recognizing yours helps you respond correctly. Muscle pain from overuse or strain typically feels like a dull ache or tightness that worsens when you move the affected muscle. It’s usually easy to connect to a specific activity: a long run, a day on your feet, or an awkward movement. Joint pain tends to concentrate around the knee, hip, or ankle and feels stiff or sharp with certain motions. Nerve pain, like sciatica, starts in the lower back and radiates down through the hip, buttock, and leg, often with tingling or numbness that can reach the foot and toes.

Then there’s pain related to blood flow. Peripheral artery disease causes cramping in the calves, thighs, or hips that starts during walking or climbing stairs and stops when you rest. If the condition is severe, the pain can occur even while lying down. This type of pain is more common after age 65, or after 50 if you have risk factors like diabetes, high blood pressure, high cholesterol, or a smoking history.

Immediate Steps for a New Injury

If your leg pain started suddenly after a fall, twist, or hard workout, treat it as a soft tissue injury. The standard approach is rest, ice, compression, and elevation. Stop the activity that caused the pain and avoid putting weight on the leg if it hurts to do so. Apply ice with a cloth or towel barrier for 10 to 20 minutes every one to two hours. Don’t place ice directly on skin.

Wrap the area with a compression bandage to limit swelling, but keep it loose enough that you don’t feel numbness or tingling. Elevate the leg above heart level whenever you’re sitting or lying down. This is most effective in the first 48 to 72 hours after injury.

Over-the-Counter Pain Relief

For general muscle or joint pain, ibuprofen at 200 to 400 mg every six to eight hours can reduce both pain and inflammation, up to a maximum of 1,200 mg per day. Naproxen is another option at 250 mg every six to eight hours or 500 mg every 12 hours, with a daily maximum of 1,000 mg. Both are anti-inflammatory drugs, so they work best for pain involving swelling. Acetaminophen helps with pain but won’t reduce inflammation. Avoid using any of these for more than about 10 days without medical guidance.

Dealing With Muscle Cramps

Leg cramps, especially those that hit at night, are one of the most common causes of sudden leg pain. They’re often tied to dehydration or low levels of potassium and magnesium. Drinking about eight glasses of water per day and limiting alcohol and caffeine can reduce their frequency. Some experts recommend taking a vitamin B complex or magnesium supplement if cramps are recurring.

When a cramp strikes, gently stretch and massage the muscle. For a calf cramp, flex your foot upward to lengthen the muscle. Walking on it briefly can also help it release. If cramps happen regularly and don’t respond to hydration or stretching, it’s worth getting your electrolyte levels checked.

Stretches That Help With Stiffness and Soreness

If your leg pain is more of a persistent ache or tightness rather than an acute injury, gentle stretching can make a significant difference. The key is to stretch slowly, just until you feel a gentle pull in the muscle, and hold the position. Never bounce, and breathe normally throughout.

  • Hamstring stretch: Stand and place one heel on a low step or stool, keeping your leg straight. Lean forward gently from the hips until you feel a stretch along the back of your thigh. You can also do this seated by extending one leg in front of you and reaching toward your toes.
  • Calf stretch: Stand facing a wall with one foot behind you, heel flat on the ground. Lean into the wall until you feel a stretch in your lower leg. Try it with both a straight and slightly bent back knee to target different calf muscles.
  • Quadriceps stretch: Stand on one foot (hold a wall for balance) and pull the other foot toward your buttock. This stretches the large muscles along the front of your thigh, which helps ease knee and hip stiffness.
  • Butterfly stretch: Sit on the floor, bring the soles of your feet together, and let your knees drop toward the ground. This opens up the inner thighs, groin, and hips.

Increase the depth of each stretch gradually over days and weeks. These stretches are safe for most people, but if any position causes sharp pain, stop.

How Long Recovery Takes

Recovery depends on severity. Muscle strains are graded on a scale of one to three. A mild (Grade 1) strain, where a small number of muscle fibers are stretched or torn, typically heals within a few weeks. A moderate (Grade 2) strain, involving more significant tearing, can take several weeks to months. A severe (Grade 3) strain, where the muscle is completely torn, may require surgery and four to six months of recovery.

Most everyday leg pain from overuse, cramps, or minor strains falls into the mild category. You can generally return to normal activity as the pain allows, gradually increasing intensity. Pain that hasn’t improved at all after two weeks of home care, or pain that’s getting worse, signals that something more than a minor strain may be going on.

When Leg Pain Could Be Serious

Some types of leg pain require urgent attention. A deep vein thrombosis (blood clot in a leg vein) causes swelling in one leg, cramping or soreness that often starts in the calf, skin that turns red or purple, and a feeling of warmth in the affected area. If one calf is noticeably more swollen than the other, that’s a significant warning sign. Clinicians consider a difference of more than 3 cm between the two calves to be meaningful.

The real danger with a blood clot is that it can travel to the lungs, causing a pulmonary embolism. Seek emergency care if leg pain or swelling is accompanied by sudden shortness of breath, chest pain that worsens when you breathe deeply or cough, a rapid pulse, dizziness or fainting, or coughing up blood. These symptoms require immediate treatment.

Other reasons to get leg pain evaluated promptly include: you can’t bear weight on the leg, the leg looks deformed or swollen beyond what a normal strain would cause, you have a fever alongside leg pain (which could indicate infection), or the pain started without any clear cause and is severe.

Pain That Comes From the Back

Leg pain that doesn’t seem tied to an obvious leg injury may actually originate in the spine. Sciatica is the most common example. The sciatic nerve runs from the lower back through the hips and buttocks and down each leg, and when it’s compressed by a herniated disc or narrowed spinal canal, the pain can travel the full length of that path. You might feel burning, shooting pain, or numbness anywhere from your lower back to your foot.

Sciatica often improves with gentle movement rather than strict bed rest. Lying on your back with your knees bent, or lying on your side with a pillow between your knees, can take pressure off the nerve. Walking short distances, even when uncomfortable, generally helps more than staying still. If numbness spreads, if you lose bladder or bowel control, or if the pain becomes disabling, that warrants prompt medical evaluation.

Preventing Recurring Leg Pain

If leg pain keeps coming back, a few habits make a measurable difference. Stay hydrated, especially before and after exercise. Warm up before physical activity and cool down with stretching afterward. Strengthen the muscles around your knees and hips with low-impact exercises like walking, swimming, or cycling, which support the joints without heavy impact. Wear supportive footwear, particularly if you’re on your feet for long periods. Low vitamin D levels and electrolyte imbalances (calcium, potassium) are both linked to recurring leg pain and cramps, and both are correctable with simple dietary changes or supplements.