What Can I Take for Leg Pain? Causes and Treatments

For most types of leg pain, over-the-counter anti-inflammatory medications like ibuprofen are a solid first step, often dropping pain scores by 3 to 4 points within one to two hours. But the best choice depends on what’s causing your pain. Muscle soreness, nerve pain, cramps, and circulation problems each respond to different treatments, so matching the remedy to the cause makes a real difference.

Over-the-Counter Pain Relievers

Ibuprofen and acetaminophen are the most accessible options for general leg pain from sore muscles, minor injuries, or joint inflammation. In a clinical comparison of several analgesic combinations, pain scores dropped an average of 3 points within 60 minutes across all groups, and by 4.3 to 4.7 points within two hours. Notably, 800 mg of ibuprofen offered no added benefit over 400 mg, so starting with the lower dose is reasonable.

Ibuprofen has the advantage of reducing inflammation, which makes it a better fit for pain involving swelling, such as a strained muscle, tendonitis, or bursitis. Acetaminophen works well for pain without much inflammation, like general achiness after a long day on your feet. If you have kidney disease, high blood pressure, or stomach ulcer history, acetaminophen is the safer pick since anti-inflammatory drugs can worsen all three conditions.

Topical Options

Topical anti-inflammatory gels and patches deliver medication directly to the painful area with far less risk of stomach or kidney side effects compared to swallowing a pill. Lidocaine patches (available in 5% strength) can numb a localized painful spot and are particularly useful when the skin itself feels sensitive or when nerve irritation is close to the surface. These work best for pain you can point to with one finger, not deep or widespread aching.

Nerve Pain and Sciatica

If your leg pain shoots, burns, or tingles, especially running from your buttock or hip down toward your foot, it’s likely nerve-related. Standard painkillers often fall short here because the pain originates from an irritated or compressed nerve, not from damaged tissue. Treatments that work on the nervous system directly tend to help more.

For sciatica and other forms of nerve pain in the legs, doctors commonly prescribe anti-seizure medications or certain antidepressants. Both of these drug classes calm overactive nerve signaling, which is the underlying driver of that burning or electric-shock sensation. Corticosteroid injections near the affected nerve root can provide relief as well, particularly when oral medications aren’t enough. Anti-inflammatory drugs and short courses of oral corticosteroids are also used in the early stages to reduce swelling around the nerve.

Leg Cramps

Magnesium is widely recommended for leg cramps, but the evidence is surprisingly weak. A systematic review of randomized trials found no meaningful difference between magnesium and placebo at four weeks: cramp frequency dropped by only 0.18 more cramps per week with magnesium, a difference that was not statistically significant. There was also no difference in how many people experienced at least a 25% reduction in cramps.

The one exception: a single trial found that after 60 days of daily magnesium oxide, cramp frequency dropped from about 5.4 per week to 1.9, compared to 6.4 to 3.7 with placebo. Cramp duration also shortened significantly at that point. So if you want to try magnesium, commit to at least two months before deciding whether it’s working. Short courses under 60 days are unlikely to help.

For acute cramps, gentle stretching of the affected muscle (pulling your toes toward your shin for calf cramps) provides faster relief than any pill. Staying hydrated and keeping electrolytes balanced, particularly potassium and sodium, helps prevent cramps in the first place.

Pain From Poor Circulation

Leg pain that comes on with walking and eases when you stop, often felt in the calves, can signal peripheral artery disease. This is caused by narrowed arteries reducing blood flow to the legs. One FDA-approved medication for this type of pain improves pain-free walking distance by about 50% when combined with a supervised exercise program. It works by improving blood flow and is taken twice daily, though it’s not suitable for people with heart failure.

Compression stockings can also help with leg pain related to blood pooling, particularly from venous insufficiency or prolonged standing. Low-compression stockings (under 20 mmHg) are available without a prescription and work well for general leg fatigue from sitting or standing all day. Stockings rated at 20 mmHg or higher require a prescription and are used for more significant venous problems like chronic swelling or varicose veins.

Vitamin Deficiencies Worth Checking

Chronic leg pain that doesn’t respond to typical treatments sometimes traces back to a nutritional gap. Vitamin B12 deficiency can cause painful spasms and tingling in the legs. In one documented case, a patient with both B12 and vitamin D deficiency experienced full resolution of lower limb spasms within four weeks of starting B12 supplementation, with blood levels normalizing by six weeks. Vitamin D deficiency is also linked to muscle pain and cramping, particularly in people who get limited sun exposure or have darker skin.

A simple blood test can check both levels. If a deficiency is found, correcting it can sometimes resolve leg pain that seemed mysterious or untreatable.

Inflammatory Conditions

When leg pain stems from bursitis, tendonitis, or joint inflammation, corticosteroid injections delivered directly to the inflamed area typically provide relief lasting about two months. For longer-term inflammatory pain, the benefit may extend a few months. These injections are usually reserved for pain that hasn’t responded to oral anti-inflammatory drugs and rest, and the number of injections you can receive in a given joint or area per year is limited.

When Leg Pain Needs Urgent Attention

Some leg pain signals a blood clot in a deep vein, which requires immediate medical evaluation. The warning signs include swelling in one leg (especially if the calf measures more than 3 cm larger than the other), tenderness along the inner leg, pitting edema (skin that holds a dent when you press it), and warmth or redness over the painful area. Your risk is higher if you’ve been immobile for several days, had recent surgery, have active cancer, or have had a blood clot before.

Leg pain that comes with sudden numbness, a cold or pale foot, or inability to move your toes also warrants emergency care, as these can indicate a blocked artery. Pain with visible bone deformity or pain after a fall in someone with osteoporosis points to a possible fracture.