Why Do My Legs Hurt? Common Causes and Relief

Leg pain has dozens of possible causes, ranging from a simple muscle cramp that passes in seconds to circulation problems that need medical attention. The reason your legs hurt depends on where the pain is, what it feels like, and when it shows up. Most leg pain is muscular and resolves on its own, but certain patterns point to something more serious.

Muscle Cramps and Strains

These are the two most common reasons for leg pain, and they feel quite different. A muscle cramp is a sudden, involuntary contraction, often in the calf, that causes intense pain lasting anywhere from a few seconds to several minutes. Cramps aren’t caused by physical damage to the muscle. They’re spasms triggered by dehydration, overuse, or mineral imbalances. Nighttime leg cramps are especially common and tend to hit the calves or feet while you’re lying still.

A muscle strain is actual tearing of muscle fibers, from mild overstretching to a significant tear. Strains happen when you push a muscle past its limits, whether during exercise, heavy lifting, or an awkward movement. The pain from a strain tends to be localized and worsens when you use or stretch the injured muscle. Mild strains typically improve within a week or two, while more severe tears can take several weeks to heal.

Poor Circulation

If your legs hurt during walking but feel better when you stop, that pattern points toward a circulation issue called claudication. It happens when narrowed arteries can’t deliver enough blood to your leg muscles during activity. The pain typically shows up in the calves, thighs, or buttocks and eases within a few minutes of rest. As the condition progresses, the pain can start happening even at rest.

More advanced signs of reduced blood flow include cool skin on the legs, numbness, changes in skin color, and sores that heal slowly. Peripheral artery disease is most common in people over 50, smokers, and those with diabetes or high blood pressure.

Nerve Pain From the Back

Sciatica is one of the most recognizable forms of leg pain, and it actually starts in your lower back. The sciatic nerve runs from the lower spine through the buttocks and down each leg. When a herniated disc or bone spur compresses this nerve, pain follows a characteristic path: from the low back to the buttock, then down the back of the thigh and calf.

The sensation varies. Some people describe a dull ache, others a sharp burning or an electric shock that shoots down the leg. You might also feel numbness, tingling, or weakness in part of the leg or foot. One area can hurt while another feels numb. Sciatica almost always affects one leg at a time.

Nerve Damage From Diabetes

People with diabetes are at risk for peripheral neuropathy, a type of nerve damage that usually starts in the feet and gradually works its way up the legs. Early symptoms include tingling or “pins and needles” sensations, pain or heightened sensitivity (often worse at night), and numbness or weakness. Over time, the loss of sensation can lead to serious foot problems like ulcers and infections that go unnoticed because you can’t feel them.

If burning, tingling, or pain in your feet or legs is interfering with daily activities or keeping you awake, that’s worth getting evaluated. Neuropathy is treatable, and catching it early prevents the worst complications.

Joint Problems in the Hips and Knees

Osteoarthritis in the hip or knee can cause pain that doesn’t stay neatly in the joint itself. Hip arthritis often produces pain in the groin, buttocks, or even the inside of the knee and thigh. Knee arthritis tends to cause stiffness and aching around the knee that worsens with activity and improves with rest. If your leg pain is concentrated around a joint and gets worse after prolonged use or first thing in the morning, worn cartilage could be the source.

Legs That Feel Heavy and Achy

A dull heaviness or achiness in the lower legs, especially toward the end of the day or after standing for a long time, often points to chronic venous insufficiency. This happens when the valves in your leg veins don’t work properly, allowing blood to pool rather than flow back toward the heart. Along with that heavy feeling, you may notice swelling in the lower legs and ankles that worsens as the day goes on, visible varicose veins, or skin changes near the ankles.

Mineral Deficiencies

Low magnesium levels can directly cause muscle spasms, cramps, and numbness in the hands and feet. Potassium and calcium play similar roles in muscle function. If you’re getting frequent cramps without an obvious trigger like exercise, a nutritional gap could be contributing. Mild magnesium deficiency is common and treatable with oral supplements, and symptoms typically resolve once levels return to normal.

When Leg Pain Is an Emergency

Deep vein thrombosis, a blood clot in a deep leg vein, requires urgent medical attention. The warning signs are swelling in one leg (not both), pain or cramping that often starts in the calf, a feeling of warmth in the affected area, and skin that turns red or purple. DVT can also occur without noticeable symptoms. If a clot breaks free and travels to the lungs, it becomes a pulmonary embolism, which is life-threatening.

Seek emergency care if you have sudden, severe leg pain with swelling in one leg, especially if the skin feels warm or changes color. Risk factors include recent surgery, prolonged immobility (long flights or bed rest), pregnancy, and use of hormonal birth control.

What You Can Do at Home

For garden-variety muscle pain from overuse or a mild strain, rest, ice, compression, and elevation (RICE) still work. Apply ice in 10-minute intervals for pain relief. Gentle stretching can help with cramps, especially if you’re prone to them at night. Stretching your calves before bed reduces the frequency of nighttime cramps for many people.

Staying hydrated and making sure you’re getting enough magnesium, potassium, and calcium through your diet can cut down on cramps. Good sources include bananas, leafy greens, nuts, and dairy. If you sit or stand for long periods, changing positions frequently and taking short walks helps both circulation and venous pooling.

How to Narrow Down the Cause

Pay attention to these details, because they’ll help you (and a doctor, if needed) figure out what’s going on:

  • Location: Calf pain suggests cramps, strains, DVT, or claudication. Pain running from the buttock down the back of the leg suggests sciatica. Groin or inner thigh pain can come from the hip joint.
  • Timing: Pain during walking that stops with rest points to circulation. Pain at night suggests cramps or neuropathy. Pain that worsens throughout the day suggests venous insufficiency.
  • Sensation: Sharp or electric sensations suggest nerve involvement. Dull aching suggests muscle or joint issues. Heaviness and swelling suggest vein problems.
  • One leg or both: Pain in one leg raises concern for DVT, sciatica, or a localized injury. Pain in both legs is more common with neuropathy, venous insufficiency, or overuse.

Leg pain that comes and goes with activity and resolves with basic self-care is usually nothing worrisome. Pain that persists beyond two weeks, wakes you up at night, involves swelling or skin changes in one leg, or comes with numbness and weakness warrants a closer look.