Why Do I Tense Up When I Sleep?

Muscle tension during sleep stems from several overlapping causes, and the specific pattern you notice (clenched jaw, tight shoulders, curled fists, leg cramps, full-body stiffness) points toward different mechanisms. Some are driven by stress hormones that keep your muscles in a guarded state even as the rest of your brain tries to shut down. Others involve misfiring nerve signals, poor sleep posture, or side effects of common medications. The good news is that most forms of nocturnal tension are manageable once you identify which type you’re dealing with.

Jaw Clenching and Teeth Grinding

One of the most common ways tension shows up during sleep is through bruxism, the involuntary clenching or grinding of your teeth. You might wake up with a sore jaw, dull headache, or tooth sensitivity and not realize you were doing it all night. The exact cause of sleep bruxism isn’t fully pinned down, but research points to a mix of psychological factors like anxiety, stress from life events, and a trait called hypervigilance, along with sleep-related triggers such as brief arousals and changes in autonomic nervous system activity.1PubMed. Sleep Bruxism in Respiratory Medicine Practice Neurotransmitters including serotonin, dopamine, and noradrenaline have been proposed to play indirect roles, though exactly how they generate the rhythmic jaw-muscle contractions that define bruxism remains unclear.

What makes bruxism especially stubborn is that chronic stress can turn it into a self-reinforcing loop. Prolonged stress activates the body’s main stress-response pathway, which raises cortisol levels. Elevated cortisol, in turn, appears to sustain the involuntary muscle activity in the jaw, which feeds back into more stress signaling.2PubMed Central. Neurobiology of bruxism: The impact of stress So the grinding isn’t just a symptom of your stressful day; it can perpetuate the physiological stress state that caused it. A bed partner who hears you grinding is an obvious clue, but many people clench silently. Worn tooth enamel, morning jaw pain, and tightness in the temples are the telltale signs your dentist looks for.

Nocturnal Leg Cramps

If you’ve ever been jolted awake by a sudden, painful contraction in your calf, you’re far from alone. Night-time calf cramping affects roughly one in three adults, with the median age of onset around 50.3PubMed Central. Unknotting night-time muscle cramp: a survey of patient experience, help-seeking behaviour and perceived treatment effectiveness The cramps tend to hit either calf, they often wake you up, and many people report residual soreness for a day or two afterward. Pain intensity is not trivial: survey participants rated their typical cramp pain at around 66 out of 100 on a standard pain scale.

Several factors raise the odds. Dehydration, prolonged standing or sitting, and mineral imbalances all contribute. Low magnesium levels, in particular, make nerves more excitable and muscles more prone to spasm, and supplementation has shown benefit for certain groups, especially pregnant women, older adults, and people with a documented deficiency. Beyond cramps, a related condition called periodic limb movement disorder involves repetitive leg jerks during sleep. People with this condition are far more likely to report involuntary leg kicks and crawling or aching sensations in their legs compared to those without it.4PubMed Central. Can periodic limb movement disorder be diagnosed without polysomnography? A case-control study A bed partner noticing rhythmic leg movements during the night, especially if you also feel unrested in the morning, is worth mentioning to a doctor.

How Sleep Posture Drives Tension

Sometimes the tension you feel isn’t coming from your nervous system at all; it’s coming from your mattress and pillow. Poor cervical posture during sleep increases mechanical stress on the structures of the spine, producing neck pain, stiffness, headaches, and pain that radiates into the shoulders or arms.5PubMed Central. Effect of sleep posture on neck muscle activity Sleeping with your head tilted forward, propped too high, or twisted to one side forces the muscles of the neck and upper back to work against gravity all night instead of resting. That sustained low-level contraction registers as stiffness and soreness when you wake up.

Stomach sleeping is a frequent offender because it requires turning the head sharply to one side. Side sleeping with a pillow that’s too flat or too thick can also push the spine out of neutral alignment. The fix is deceptively simple but takes some trial and error: your pillow should keep your head, neck, and spine in a roughly straight line regardless of position. If you routinely wake up with tense shoulders or a stiff neck and no obvious source of stress, the sleeping surface is the first thing to troubleshoot before looking at deeper medical causes.

Stress, Anxiety, and the Body’s Alert System

Your muscles don’t fully disengage just because you close your eyes. If your nervous system is running in a heightened state of alertness, it continues to hold muscles in a state of low-grade contraction even during sleep. This is not a metaphor. Chronic stress keeps circulating cortisol elevated, and that cortisol acts on pathways that sustain involuntary muscle activity throughout the night.2PubMed Central. Neurobiology of bruxism: The impact of stress The result can show up as clenched fists, a tight jaw, hunched shoulders, or a general sense of being “braced” when you wake up.

For people with a history of psychological trauma, this pattern can be even more entrenched. Research on trauma-related conditions frames many of the physical symptoms, including chronic muscle guarding, as rooted in brainstem-level processing that governs how the body manages arousal and physiological readiness.6PubMed Central. The brain-body disconnect: A somatic sensory basis for trauma-related disorders In plain terms, the deep, evolutionarily old parts of the brain that decide whether you’re safe or in danger can get stuck in “danger” mode. That stuck switch keeps muscles tense during sleep as a kind of protective posture, even when no real threat exists. You might notice that you sleep more tensely during difficult life periods and more loosely during vacations. That’s this mechanism at work.

Medications That Can Make It Worse

If your nighttime tension started or worsened around the time you began a new medication, the two may be connected. Selective serotonin reuptake inhibitors (SSRIs) and serotonin-norepinephrine reuptake inhibitors (SNRIs), commonly prescribed for depression and anxiety, are well-documented triggers for bruxism. A systematic review of published case reports found that fluoxetine, sertraline, and venlafaxine were the most frequently implicated medications. Symptoms can develop within three to four weeks of starting the drug and may resolve within a similar window after stopping it, adding buspirone, or switching to a different medication.7PubMed Central. SSRI-associated bruxism: A systematic review of published case reports

This creates an ironic situation: the very medications prescribed to reduce anxiety, which is itself a driver of nighttime muscle tension, can introduce their own brand of jaw clenching or grinding. If you’re on an antidepressant and notice new jaw pain or morning headaches, it’s worth discussing with your prescriber rather than assuming the tension is purely from stress. Buspirone, an anti-anxiety medication that works through different pathways, has been used as an add-on specifically to counteract antidepressant-related bruxism.

REM Sleep Behavior Disorder

During REM sleep, the stage when most vivid dreaming happens, your brain normally paralyzes your voluntary muscles to prevent you from physically acting out your dreams. This temporary paralysis is called muscle atonia, and when the mechanism fails, the result is REM sleep behavior disorder. People with this condition may punch, kick, shout, or thrash during sleep, often in response to whatever they’re dreaming about.8PubMed. REM sleep behavior disorder: Mimics and variants

This is a different category from the kind of tension most people mean when they say they “tense up” at night. The classic complaint of waking with sore, tight muscles from clenching is more commonly bruxism or stress-related guarding. REM sleep behavior disorder involves active, sometimes violent movements during dreams, and it’s more common in older adults. It’s worth knowing about because isolated REM sleep behavior disorder is recognized as a potential early marker of neurodegenerative conditions involving the brainstem structures that regulate sleep and movement.9Frontiers in Neuroscience. Circadian and sleep-wake rhythm alterations in isolated REM sleep behavior disorder: biomarkers of prodromal α-synucleinopathy If a partner reports that you act out dreams, especially with kicking or punching, a sleep evaluation is a good idea, both to prevent injury and to rule out underlying neurological changes.

When Pain and Sleep Create a Feedback Loop

Chronic pain conditions can both cause and be worsened by sleep tension. In animal studies, induced musculoskeletal pain fragmented sleep without reducing total sleep time: the mice slept the same number of hours but woke up more frequently within those hours.10PubMed Central. Chronic Muscle Pain Fragments Sleep of Mice That pattern, normal-looking total sleep that’s actually broken into short stretches, mirrors what many people with chronic pain describe. You feel like you slept, but you wake up exhausted and sore.

In people with conditions like fibromyalgia, the problem compounds further. Patients with both fibromyalgia and obstructive sleep apnea showed significantly poorer sleep quality, higher pain intensity, and lower quality of life, with measures of pain sensitivity correlating directly with how disrupted their sleep was.11European Journal of Therapeutics. Impact of Central Sensitization on Sleep and Pain Perception in Patients with Fibromyalgia and Obstructive Sleep Apnea The concept at work is that the nervous system becomes increasingly sensitized: pain makes the brain more vigilant, vigilance disrupts sleep, disrupted sleep lowers the pain threshold, and the cycle continues. If you have a chronic pain condition and notice that your muscles feel especially tense upon waking, addressing sleep quality specifically, not just the pain, becomes part of the treatment.

Relaxation Training and Whether It Actually Works

Given how many causes of nighttime tension trace back to an overactive nervous system, the intuitive solution is to teach your body to dial down its arousal before and during sleep. Techniques like progressive muscle relaxation, where you systematically tense and then release each muscle group, and biofeedback, where you learn to control physiological responses using real-time monitoring, have been studied for decades. In one controlled trial, both biofeedback and progressive relaxation significantly outperformed a control group in reducing the time it took to fall asleep, with the biofeedback group cutting sleep-onset time by about 30 minutes and the progressive relaxation group by about 23 minutes.12PubMed. Biofeedback and progressive relaxation treatment of sleep-onset insomnia: a controlled, all-night investigation

An interesting wrinkle in that same study: the researchers found no direct statistical link between the actual muscle relaxation achieved and the improvement in sleep onset. That suggests the benefit may come more from the calming mental routine, the deliberate shifting of attention away from worry, than from the physical loosening of the muscles themselves. In other words, the relaxation practice works, but possibly by giving your brain something neutral to focus on rather than by mechanically unclenching your body. Either way, a nightly routine of progressive relaxation is low-cost and low-risk, and the evidence supports that it helps people who lie in bed tense and awake.

Sorting Out Which Type You Have

Because so many different mechanisms can cause nighttime muscle tension, the first step is figuring out where the tension concentrates and what patterns it follows. A few distinctions help narrow things down:

  • Jaw, temples, teeth: Bruxism is the most likely culprit. Check for worn enamel, ask a partner if you grind, and consider whether you recently started or changed an SSRI or SNRI.
  • Calves and legs: Nocturnal cramps if the pain is sudden and localized; periodic limb movements if there are rhythmic jerks you may not even remember.
  • Neck and shoulders: Sleep posture problems, especially if the tension is worst on the side you sleep on and improves when you change your pillow.
  • Whole body, clenched fists, curled posture: Stress-related guarding, often tied to anxiety, trauma, or periods of high emotional load.
  • Vigorous movements during dreams: REM sleep behavior disorder, which warrants a sleep study.

Many people experience more than one type simultaneously. You might clench your jaw from medication-related bruxism and also carry shoulder tension from a bad pillow. Treating one without addressing the other leaves you still waking up sore. A sleep diary noting the location of tension, timing, and any associated factors like stress levels, new medications, or dietary changes can help you and a clinician zero in on the right combination of causes.

Why Humans May Be Wired for Lighter Sleep

It’s tempting to think of nighttime tension as purely a modern problem, something caused by screens, work emails, and caffeine. But there may be an evolutionary dimension. Research on human sleep patterns compared to those of other primates suggests that humans evolved to spend a greater proportion of the 24-hour cycle awake and active, likely because being alert conferred advantages related to learning, social interaction, and defending against threats.13PubMed Central. Shining evolutionary light on human sleep and sleep disorders In practical terms, humans consolidated their sleep into a shorter, more intense block compared to many other primates, which may have come at the cost of sleeping more lightly and being more reactive to disturbances.

That baseline reactivity, the tendency to rouse partially and shift position throughout the night, isn’t a defect. It’s the system working as designed for an environment where predators and rival groups were real threats. The problem is that in a modern context, the same arousal sensitivity that once kept your ancestors alive gets triggered by work deadlines, relationship stress, or a phone buzzing on the nightstand. Your body still responds as though it needs to be ready to move quickly, and that readiness manifests as muscle tension you carry from dusk to dawn. Understanding this doesn’t make the tension go away, but it reframes it: you’re not broken. You’re running ancient hardware in a world it wasn’t built for.

Tracey Harjo

Tracey Harjo is a staff writer at Biology Insights who covers sleep health and common sleep disorders. She has worked in publishing since 2014, beginning her career as a copy editor for a commercial book publisher after earning a bachelor's degree in English. Harjo lives in Manchester, New Hampshire.