Why Do My Arms and Legs Ache at Night?

Nighttime limb aches stem from a combination of your body’s internal clock, reduced distractions, and a handful of common medical conditions that specifically worsen when you lie down. Cortisol, your body’s main anti-inflammatory hormone, dips to its lowest levels in the late evening and early morning hours, leaving pain signals less buffered precisely when you are trying to sleep. That biological shift alone can make mild daytime discomfort bloom into something that keeps you staring at the ceiling, but it is only one piece of a more layered picture.

Your Body’s Pain Volume Knob Changes After Dark

During the day, your brain is busy filtering an enormous amount of sensory input. Sounds, sights, physical tasks, and social interaction all compete for attention, and pain signals get partially drowned out. At night, those competing signals vanish. You are lying still in a quiet room, and your nervous system has far less to process, so low-level aches that barely registered during the afternoon suddenly become hard to ignore.

This is not just a matter of perception, though. Your body actually modulates pain differently depending on the time of day. Cortisol follows a well-established circadian rhythm, peaking in the early morning and bottoming out around midnight. Because cortisol dampens inflammation, the hours when it is lowest coincide with the hours when inflammatory pain can flare. In rheumatoid arthritis, for instance, the immune system ramps up production of pro-inflammatory signaling molecules during the late night, with cell migration to inflamed tissues and cytokine release all peaking while you sleep. This is why people with rheumatoid arthritis often wake with severe morning stiffness: the inflammatory process has been running unchecked for hours.1PubMed. Circadian rhythms and rheumatoid arthritis

Even in people without an autoimmune condition, the same basic circadian dynamic applies. Your body’s own anti-inflammatory defenses are at their weakest during the nighttime hours, and that gap can make any underlying source of limb pain feel worse.

Restless Legs Syndrome

If the ache in your legs comes with an overwhelming urge to move them, and moving actually helps for a moment, restless legs syndrome (RLS) is a strong possibility. RLS affects a significant portion of the population and is defined by uncomfortable sensations in the legs, sometimes described as crawling, pulling, or throbbing, that appear mainly at rest and worsen in the evening and at night.

The underlying problem traces back to how your brain handles dopamine and iron. Reduced iron levels in certain brain regions, particularly the substantia nigra, impair normal dopamine metabolism. Dopamine helps regulate movement and sensory processing, so when the system misfires, you get the restless, aching sensations that define the condition.2PubMed Central. Restless Legs and Iron Deficiency: Unlocking the Hidden Link and Relief This is why doctors often check iron levels, specifically ferritin, as a first step when RLS is suspected. In many cases, correcting an iron deficiency substantially improves symptoms.

RLS has a strong circadian component as well. Dopamine activity in the brain naturally drops in the evening, which is partly why symptoms cluster at bedtime rather than at breakfast. People with RLS sometimes describe “good nights” and “bad nights,” and this variation tracks partly with how their dopamine rhythms shift from day to day.

Nocturnal Muscle Cramps

A sudden, painful tightening in your calf or foot that jolts you awake is different from the dull ache of RLS or inflammation, and it has a different mechanism. Nocturnal leg cramps involve rapid, involuntary firing of motor nerves at rates far higher than normal muscle contractions. The best evidence points to spontaneous discharges at the motor nerve terminals rather than signals originating in the brain or in the muscle itself.3Age and Ageing. A review of nocturnal leg cramps in older people

Several factors feed into this. As people age, they lose motor neurons, and that loss is more pronounced in the legs than in the arms. People with nocturnal cramps also tend to have lower leg muscle strength than those without cramps, which fits the pattern of motor neuron decline. Mechanical factors play a role too: tendons shorten over time and during prolonged immobility (such as sleeping in one position), which can increase the excitability of nerve terminals and tip a resting muscle into a full cramp.3Age and Ageing. A review of nocturnal leg cramps in older people

This helps explain why nocturnal cramps are far more common in older adults than in younger ones, and why they tend to hit the calves and feet rather than the arms. The legs simply have more age-related nerve and tendon changes working against them. Stretching the calves before bed, staying hydrated, and keeping sheets loose enough that your feet are not forced into a pointed position can all reduce how often cramps strike.

Mineral Imbalances and Muscle Function

Magnesium plays a direct role in allowing muscles to relax after they contract. Calcium triggers the contraction; magnesium helps release it. When magnesium levels run low, muscles can stay in a partially contracted state, producing aching, tightness, and cramps, especially at night when you are not actively moving and stretching the muscles. Potassium and sodium imbalances can produce similar effects, because all three minerals influence how excitable your nerve and muscle cells are.

People who sweat heavily, take diuretics, drink alcohol regularly, or eat a diet low in leafy greens and nuts are most likely to run into magnesium shortfalls. The tricky part is that a standard blood test for magnesium only measures what is circulating in your serum, and that accounts for a small fraction of your total body stores. You can have low tissue magnesium while your blood test looks normal. If nighttime cramps or aching are a recurring problem and you do not have another obvious cause, a trial of magnesium supplementation is a low-risk starting point, though it is worth discussing the right form and dose with a doctor.

Nerve Pain and Small Fiber Neuropathy

Burning, tingling, or sharp shooting pain in the hands and feet that ramps up at night often points to peripheral neuropathy, particularly small fiber neuropathy. The small nerve fibers that detect pain and temperature are the ones affected, and because these fibers are longest in the legs and arms, they are the first to show symptoms when something goes wrong. Diabetes is the most common cause, but small fiber neuropathy also occurs with autoimmune diseases, vitamin deficiencies, and conditions like sarcoidosis.

A case study involving small fiber neuropathy from sarcoidosis illustrates the pattern: the patient reported burning pain severe enough to disrupt sleep, a hallmark of neuropathic limb pain at night.4Journal of Anesthesia & Pain Medicine. Topical Phenytoin Cream Reduces Burning Pain Due to Small Fiber Neuropathy in Sarcoidosis The reason neuropathic pain worsens at night ties back to the same factors discussed earlier: fewer distractions, lower cortisol, and a nervous system that is no longer busy processing daytime sensory input. For people with neuropathy, the quiet of nighttime removes the “noise floor” that was partially masking nerve misfiring during the day.

Treatment depends on the underlying cause. If diabetes is driving the neuropathy, blood sugar control is the foundation. If a vitamin B12 deficiency is responsible, supplementation can halt or reverse the damage if caught early. Medications that calm overactive nerve signals, such as gabapentin or certain antidepressants, are commonly prescribed for symptom relief regardless of the root cause.

Inflammatory and Autoimmune Conditions

Rheumatoid arthritis is the clearest example of a condition with a built-in nighttime flare, but it is not the only one. The immune system operates on its own circadian schedule, and many inflammatory conditions follow a pattern where immune activity surges overnight. In rheumatoid arthritis specifically, immune cells migrate to inflamed joints, ramp up the production of inflammatory cytokines, and increase their proliferative response during the late-night hours.1PubMed. Circadian rhythms and rheumatoid arthritis The clinical result is the classic morning stiffness and joint pain that can feel like it starts before you even wake up.

This nighttime immune surge has practical treatment implications. Research has shown that timing glucocorticoid medication so that it becomes available in the bloodstream during the middle of the night, rather than in the morning, is more effective at controlling symptoms because it meets the inflammatory peak head-on.1PubMed. Circadian rhythms and rheumatoid arthritis Modified-release prednisone formulations designed for this purpose are available and represent a meaningful shift from the old approach of simply taking a steroid with breakfast.

Other inflammatory conditions, including lupus, psoriatic arthritis, and ankylosing spondylitis, share some of this circadian immune behavior. If you notice that your joint or limb pain reliably worsens in the late night or early morning hours, an inflammatory cause is worth investigating, especially if the pain comes with stiffness that takes more than half an hour to loosen up after you start moving.

What You Did During the Day Catches Up at Night

Sometimes nighttime limb aching has a straightforward mechanical explanation: you overloaded your muscles, joints, or circulatory system during the day, and the consequences arrive when you finally stop moving. Prolonged standing at work is a well-documented contributor to leg pain, and the evidence linking standing for extended periods to lower back and leg discomfort is substantial.5PubMed Central. Evidence of health risks associated with prolonged standing at work and intervention effectiveness People who work on their feet all day, whether in healthcare, retail, manufacturing, or food service, often find that their legs feel fine while they are active but start aching within an hour of lying down.

The explanation involves venous pooling and delayed inflammatory response. While you are standing and moving, your calf muscles act as pumps pushing blood back up toward the heart. When you stop, fluid that accumulated in the lower legs during the day redistributes, and the low-grade tissue damage from sustained loading triggers a repair response that produces soreness. This is also why elevating your legs in the evening often provides relief: it assists the fluid return that gravity had been working against all day.

Unaccustomed exercise fits a similar pattern. A hard workout or an unusually active day causes microtrauma in muscle fibers. The resulting delayed-onset muscle soreness typically peaks 24 to 48 hours later, and the aching is most noticeable at night because you are no longer moving and stretching the affected muscles.

Medications That Make Limbs Ache

Statins, the cholesterol-lowering drugs taken by tens of millions of people, are among the most common medication causes of nighttime limb aching. Statin-related muscle symptoms range from mild achiness to debilitating pain, and they tend to be most noticeable when the muscles are at rest, making bedtime a peak complaint window. The mechanism involves mitochondrial dysfunction: statins can impair the energy-producing machinery inside muscle cells, reducing ATP production and increasing the generation of damaging reactive oxygen molecules.6Future Journal of Pharmaceutical Sciences. Exploring the potential role of monocarboxylate transporters in statin-induced mitochondrial dysfunction: a new perspective on statin-related myopathy and anti-cancer strategies Emerging research suggests that disruption of lactate transport within muscle tissue may be a key part of this process, compounding the energy deficit and oxidative stress.

Statins are not the only culprits. ACE inhibitors, certain diuretics, and some blood pressure medications can contribute to leg cramps or generalized limb aching. If your nighttime pain started or worsened shortly after beginning a new medication, that timing is worth mentioning to your prescriber. Often, switching to a different drug in the same class or adjusting the dose resolves the problem without sacrificing the medication’s benefit.

Growing Pains in Children

Children complaining of aching legs at night is so common it has its own name: growing pains. The name is misleading, because the pain has nothing to do with the rate of bone growth. A systematic review of the research found that growing pains are better understood as a non-inflammatory pain amplification syndrome, where children who experience them have a measurably lower pain threshold than their peers at nearly all tested body points.7PubMed Central. Growing pains: What do we know about etiology? A systematic review That lowered pain threshold persists over time, suggesting it is a feature of how the child’s nervous system processes pain rather than a temporary response to skeletal growth.

Growing pains typically affect both legs, especially the thighs, calves, and the area behind the knees. They appear in the late afternoon or evening, are gone by morning, and do not cause limping or joint swelling. If a child’s pain is in one leg only, causes visible swelling, or is present first thing in the morning, those features point away from growing pains and toward something that warrants medical evaluation. For typical growing pains, gentle massage, a warm bath, and reassurance are the standard approach. Some evidence links the condition to low vitamin D levels, though this remains an area of active investigation.

The Sleep-Pain Feedback Loop

One of the more frustrating aspects of nighttime limb pain is that it creates a self-reinforcing cycle. Pain disrupts sleep, and disrupted sleep makes you more sensitive to pain. Research into this bidirectional relationship has identified multiple neurobiological systems that connect sleep quality to pain processing, including the body’s own opioid system, immune signaling, melatonin, and the stress hormone axis.8PubMed Central. Sleep deficiency and chronic pain: potential underlying mechanisms and clinical implications When sleep is poor, these systems shift in ways that lower your pain threshold and amplify inflammatory responses, which then make the next night’s sleep even worse.

Central sensitization is the technical name for what happens when the nervous system gets stuck in a high-alert state, amplifying sensory input across the body. It is a recognized feature of conditions like fibromyalgia, where widespread musculoskeletal pain coexists with fatigue, sleep disruption, and heightened sensitivity to touch and pressure.9PubMed Central. Central sensitization syndrome and the initial evaluation of a patient with fibromyalgia: a review For someone caught in this loop, addressing the sleep disruption directly, whether through sleep hygiene changes, cognitive behavioral therapy for insomnia, or medication, can be as important as treating the pain itself.

Interestingly, research on chronic pain patients has found that presleep cognitive arousal, the racing thoughts and worry that happen as you try to fall asleep, predicts sleep quality more strongly than pain severity itself does.10PubMed Central. Sleep quality and presleep arousal in chronic pain In other words, the anxiety about whether you will sleep, and whether the pain will come, may be doing more to wreck your night than the actual pain signal. This finding has practical value: techniques that reduce presleep mental arousal, such as relaxation training, mindfulness, or cognitive behavioral approaches, can improve sleep even when the underlying pain condition has not changed.

Peripheral Artery Disease and Circulation

In older adults and people with cardiovascular risk factors like diabetes, smoking, or high cholesterol, nighttime leg pain can signal poor arterial blood flow. Peripheral artery disease (PAD) occurs when plaque narrows the arteries supplying the legs, and it has a characteristic pattern: pain with walking that resolves with rest (called intermittent claudication) in the earlier stages, and pain at rest, especially at night, in more advanced disease. Nighttime rest pain in PAD typically affects the foot and toes, and people often find they get relief by dangling their legs off the side of the bed, which uses gravity to improve blood flow.

PAD-related nighttime pain is a red flag that deserves prompt medical attention. Rest pain indicates that the blood supply is barely meeting the tissue’s needs even without the added demand of walking. Left untreated, this can progress to tissue damage and ulceration. A simple screening test called the ankle-brachial index, which compares blood pressure in the ankle to blood pressure in the arm, can identify PAD quickly and painlessly.

When the Pattern Matters More Than the Pain

Doctors evaluating nighttime limb aches pay close attention to the pattern of symptoms rather than just their severity. Bilateral aching that comes and goes is far more likely to reflect something benign, like cramps, RLS, or post-exertion soreness, than unilateral pain that is getting progressively worse. A few features that warrant prompt evaluation:

  • One-sided swelling: a swollen, painful calf that appeared suddenly could indicate a deep vein thrombosis, which is a medical emergency.
  • Weakness or numbness: progressive loss of strength or sensation in a limb suggests nerve compression or a neurological condition that needs workup.
  • Bone pain that wakes you: deep, unrelenting bone pain at night that is not relieved by position changes can, rarely, be associated with bone tumors or infections and should not be ignored.
  • Fever and joint swelling: these together suggest an active infection or inflammatory process in the joint itself.
  • Pain that persists despite weeks of self-care: if stretching, hydration, and over-the-counter pain relief are not making a dent, the underlying cause likely needs targeted treatment.

For most people, nighttime limb aching falls into the camp of cramps, overuse, or one of the common conditions discussed above. Keeping a brief log of when the pain occurs, what it feels like, whether it affects one side or both, and what makes it better or worse gives your doctor the information they need to narrow the possibilities efficiently. The worst approach is ignoring persistent night pain for months and assuming it will sort itself out, because the treatable causes respond best when caught early.