Why Does My Body Keep Jerking: Causes and Fixes

Involuntary body jerks are extremely common, and in most cases they’re completely harmless. These sudden, brief muscle contractions are called myoclonus, and they range from the familiar jolt you feel as you’re falling asleep to persistent twitches that happen throughout the day. The cause depends on when the jerking happens, how often, and whether you have other symptoms alongside it.

The Most Common Type: Hypnic Jerks

If your body jerks right as you’re drifting off to sleep, you’re experiencing what’s known as a hypnic jerk. Between 60 and 70 percent of people have experienced one at least once, and for many people they happen regularly. You might feel like you’re falling, then your whole body twitches and snaps you awake. It can feel alarming, but it’s classified as physiologic myoclonus, meaning it’s a normal part of how the body works.

The leading theory is that your muscles relax faster than your brain expects as you transition into sleep. Your brain misinterprets this rapid relaxation as a sign that you’re actually falling and fires off a jolt to “catch” you. Another theory involves the two competing neural systems that manage sleep and wakefulness. As the sleep system takes over and raises the threshold needed to move your muscles, the handoff between these systems can produce misfired signals that cause a jerk.

Caffeine, sleep deprivation, and stress all seem to make hypnic jerks more frequent. If yours are disruptive, cutting caffeine after midday and keeping a consistent sleep schedule often helps.

Stress, Anxiety, and Nervous System Overdrive

Chronic stress is one of the most overlooked causes of persistent body jerking. When you’re anxious or under sustained pressure, your nervous system stays in a heightened state of alertness. This hyperexcitability means your nerves fire more easily, producing random twitches, jerks, or spasms in your limbs, eyelids, or torso. You might notice them more at rest, when you’re finally sitting still and paying attention to your body.

The jerks themselves can create a feedback loop. You notice a twitch, worry it means something serious, and the added anxiety makes the twitching worse. If you’re otherwise healthy and the jerking increases during stressful periods, this pattern is a strong clue that your nervous system is simply running too hot. Regular exercise, adequate sleep, and stress management techniques like deep breathing can lower the baseline excitability of your nerves over time.

Low Magnesium and Electrolyte Imbalances

Your muscles depend on a careful balance of electrolytes to contract and relax properly. Magnesium plays a central role: it directly affects nerve conduction and cellular function in your brain, heart, and muscles. When magnesium drops too low, it often drags calcium and potassium levels down with it, compounding the problem.

Mild magnesium deficiency causes tremors, muscle spasms, cramps, and numbness or tingling in your hands and feet. More severe deficiency can lead to seizures and abnormal heart rhythms. You don’t need a dramatic deficiency to notice twitching. Even being slightly low, which is common if you sweat heavily, drink a lot of caffeine, or eat a diet low in leafy greens and nuts, can make your muscles more irritable and prone to jerking.

Dehydration alone can trigger the same effect. When you lose fluids through exercise, heat, or simply not drinking enough water, electrolyte concentrations shift and your muscle fibers start misfiring. Staying well-hydrated and eating a balanced diet that includes magnesium-rich foods is one of the simplest ways to reduce unexplained twitching.

Caffeine and Other Stimulants

Caffeine increases the release of calcium inside muscle cells, which makes those cells more likely to contract on their own. If you’ve ramped up your coffee intake or started using energy drinks and noticed more jerking, the connection is probably direct. Nicotine has a similar stimulating effect on your nervous system.

This doesn’t mean you need to quit caffeine entirely. But if you’re twitching frequently, try cutting back for a week or two and see if the jerking decreases. Many people find their twitches resolve almost entirely once they reduce their stimulant intake.

Medications That Cause Jerking

A wide range of medications can cause involuntary jerking as a side effect. Drug-induced myoclonus affects roughly 0.2 percent of the general population, and the most frequent culprits are antidepressants, antibiotics, opioid painkillers, and anti-anxiety medications.

Among antidepressants, SSRIs and older tricyclic antidepressants are the most commonly linked to myoclonus. If you started or changed an antidepressant recently and noticed new jerking, that’s worth mentioning to your prescriber. Opioid painkillers, including common ones like morphine, fentanyl, and tramadol, are also well-documented triggers. Certain antibiotics, anti-seizure medications, antipsychotics, and lithium round out the list of medications with the strongest evidence. In many cases, the jerking resolves once the medication is adjusted or stopped.

Benign Fasciculation Syndrome

If you have frequent muscle twitching with no other symptoms, you may have benign fasciculation syndrome (BFS). This is a condition where muscles twitch persistently, typically one muscle at a time, without any underlying disease causing it. The twitching happens when the muscle is at rest and can occur anywhere in the body, though the calves, thighs, and eyelids are common spots.

The word that matters most in the name is “benign.” Many people who notice persistent twitching immediately worry about ALS, the degenerative neurological disease. But the distinction is clear: ALS involves muscle weakness, muscle wasting, and progressive difficulty with breathing, speaking, or swallowing alongside twitching. ALS fasciculations also tend to occur in multiple muscles simultaneously. BFS involves twitching alone, in one spot at a time, with no weakness and no progression. If your muscles still work normally and you’re just twitching, the odds overwhelmingly favor BFS.

When Jerking Points to Something Else

In a small number of cases, persistent myoclonus is a sign of an underlying neurological or medical condition. This is called symptomatic (or secondary) myoclonus, and it’s distinguished by the presence of other symptoms beyond the jerking itself. Sleep problems, cognitive changes, and other movement difficulties commonly occur alongside it. The causes span a broad range: infections, metabolic disorders, inflammatory conditions, structural brain lesions, and degenerative diseases can all produce myoclonus as one piece of a larger picture.

Epileptic myoclonus is another category, where the jerks are actually seizure activity. This can look like sudden, involuntary jerking of the arms or upper body, sometimes occurring in clusters, and it may be the only visible sign of a seizure or one component of a broader seizure pattern.

A neurological evaluation for myoclonus typically starts with a detailed medical history covering your medications, any toxin exposure, recent infections, and family history. Blood and urine tests help rule out metabolic or electrolyte problems. Brain MRI and EEG recordings with muscle monitoring can identify where in the nervous system the jerks originate. For isolated jerking in an otherwise healthy person, imaging rarely reveals anything significant. It becomes more diagnostically useful when the jerking appears alongside cognitive decline, coordination problems, or other neurological symptoms.

Practical Ways to Reduce Body Jerks

For the majority of people whose jerking falls into the benign category, a few lifestyle adjustments can make a noticeable difference:

  • Stay hydrated. Drink about 20 ounces of water at least two hours before exercise, 8 to 10 ounces every 10 to 20 minutes during exercise, and 16 to 24 ounces afterward for every pound of sweat lost. Even outside of exercise, consistent water intake keeps electrolytes balanced.
  • Eat enough magnesium. Dark leafy greens, nuts, seeds, and whole grains are all rich sources. If your diet is lacking, a magnesium supplement can help, but food sources are absorbed more effectively.
  • Cut back on stimulants. Reducing caffeine and nicotine lowers the excitability of your nerve cells and makes spontaneous muscle firing less likely.
  • Prioritize sleep. Sleep deprivation increases nervous system excitability across the board. Consistent sleep and wake times reduce both hypnic jerks and daytime twitching.
  • Manage stress. Chronic anxiety keeps your nervous system in a state where twitches are more likely. Regular physical activity, breathing exercises, and adequate rest help bring that baseline down.
  • Stretch regularly. Gentle stretching and avoiding overworking specific muscle groups can prevent the kind of localized fatigue that triggers spasms.

If your jerking is new, worsening over time, accompanied by muscle weakness or difficulty with coordination, or happening in multiple body parts simultaneously, those patterns warrant a medical evaluation. But for the vast majority of people searching this question, the jerking is your nervous system doing something entirely normal, just a little too enthusiastically.