Shaking or Trembling When Trying to Fall Asleep: Causes and What to Do

You’re lying in bed, ready to sleep, and your body has other ideas. Maybe it’s a fine tremor in your hands. Maybe it’s a jittery, buzzing feeling running through your whole body. Maybe it’s a series of sudden jerks just as you start to drift off, jolting you back to wakefulness. Maybe your legs are shaking, or your jaw is trembling, or you can feel a strange internal vibration that nobody else can see. Whatever form it takes, your body is doing something it shouldn’t be doing at bedtime — and it’s preventing the relaxation sleep requires.

Shaking or trembling at the transition to sleep is more common than people realise, but it’s rarely discussed because most people assume it’s either anxiety or nothing important. The reality is more interesting. There are at least six distinct biological mechanisms that produce trembling, shaking, or twitching specifically at the boundary between wakefulness and sleep. Most are not dangerous. But they are signals — your nervous system, your blood sugar, your hormones, or your nutrient status sending information that’s worth understanding.

This article explains what shaking at bedtime actually means, the most common causes, when it’s benign versus when it warrants investigation, and what to do about the pattern when it’s interfering with sleep.

What Trembling at Bedtime Actually Is

Shaking and trembling are produced by rapid alternating muscle contractions. Under normal awake conditions, voluntary muscle control is smooth and tonic — you contract muscles when you want to and relax them when you don’t. When something disturbs the normal balance between muscle activation and inhibition, the result is involuntary muscle movement: tremor (regular small movements), shaking (broader involuntary contractions), or jerks (sudden brief muscle bursts).

The bedtime transition is a particularly vulnerable moment for this. As you move toward sleep, the brain shifts from cortical control (deliberate, smooth) to subcortical and brainstem control (automatic, reflexive). During this transition, normal inhibitory mechanisms loosen briefly. Most of the time this is invisible — you simply fall asleep. But if any factor is destabilising the motor system, the bedtime transition is when the destabilisation becomes visible.

Critically, daytime tremor and bedtime shaking can have different causes. A persistent daytime tremor needs neurological evaluation. Shaking that occurs only at the sleep transition often has metabolic, nutritional, or autonomic causes that can be identified and addressed without involving neurology.

Six Causes of Shaking and Trembling at Bedtime

1. Hypnic Jerks (Sleep Starts)

Hypnic jerks are sudden involuntary muscle contractions that happen at the moment of falling asleep. They can be tiny (a small twitch in one finger) or massive (a full-body lurch that feels like falling off a cliff). They’re extremely common — about 70 percent of people experience them occasionally — and usually harmless. They occur because as the brain transitions to sleep, the motor inhibition system briefly fails to engage properly, allowing a burst of motor activity to escape into the body.

Hypnic jerks become more frequent and more disruptive when triggered by: caffeine (particularly afternoon and evening), sleep deprivation, intense exercise close to bedtime, anxiety and stress, low magnesium, and stimulant medications. If hypnic jerks are jolting you awake multiple times per week, the underlying triggers are usually identifiable.

2. Anxiety-Driven Sympathetic Activation

When the sympathetic nervous system is activated (chronic stress, acute anxiety, panic), circulating adrenaline and norepinephrine produce fine tremor and jittery body sensations. This kind of trembling typically affects the whole body or the hands, feels like an internal vibration, and often comes with racing heart, shallow breathing, and physical tension. The trembling is real and physiological — it’s not imagined — but it’s being driven by the body’s stress response rather than a neurological problem.

This kind of trembling responds dramatically to interventions that shift autonomic balance toward parasympathetic dominance: extended exhale breathing, cold water on the face, vagal toning practices. If trembling can be reduced within minutes of these interventions, autonomic activation is the likely cause.

3. Blood Sugar Crashes

When blood glucose drops, the body releases adrenaline and other counter-regulatory hormones. The adrenaline produces tremor — the same fine shaking that occurs during an obvious hypoglycaemic episode. At bedtime, this is most common in people whose dinner was high in refined carbohydrates (producing a glucose spike followed by a crash) or who haven’t eaten in many hours. Trembling that’s accompanied by hunger, shakiness, and improvement after eating something is almost certainly blood-sugar related.

4. Magnesium Deficiency

Magnesium is essential for proper neuromuscular function. It opposes calcium’s excitatory effect on muscles, supporting the relaxation phase of muscle contraction. When magnesium is depleted, muscles become more excitable, more prone to twitching, cramping, and tremor. This is particularly noticeable at the bedtime transition when normal motor inhibition loosens.

Suggestive signs: muscle cramps (particularly leg cramps at night), eye twitching, restless legs, frequent hypnic jerks, fasciculations (small muscle ripples under the skin). Magnesium glycinate (300–400 mg) before bed is the simplest test — if the trembling reduces within 1–2 weeks, magnesium was likely contributing.

5. Caffeine and Stimulant Effects

Caffeine’s half-life is 5–7 hours in most adults, longer in slow metabolisers. Caffeine consumed at noon still has roughly half its peak effect at 6 p.m. and quarter effect at 11 p.m. The combination of caffeine’s direct effects on the central nervous system and its interference with adenosine signalling can produce subtle tremor, jittery body sensations, and increased hypnic jerks well into the night.

Stimulant medications (ADHD medications, decongestants, certain weight-loss supplements) and over-the-counter products containing pseudoephedrine produce similar effects. Even “late-afternoon” caffeine can affect the bedtime transition in sensitive individuals.

6. Withdrawal States

Several substances produce tremor during withdrawal: alcohol (particularly the rebound after evening drinking, occurring overnight), benzodiazepines and other sleep medications (during dose changes), opioids, and some antidepressants (SSRIs and SNRIs during tapering). If you’ve recently reduced or stopped any of these and trembling has appeared, withdrawal is a likely contributor and warrants discussion with the prescribing provider.

Specific Patterns and What They Suggest

  • Sudden full-body jerk at the moment of falling asleep → hypnic jerk (usually benign; check for caffeine, sleep deprivation, magnesium)
  • Fine tremor in hands and body with racing heart → sympathetic activation or anxiety
  • Trembling with hunger, sweating, urge to eat → blood sugar
  • Muscle twitches, cramps, eye twitching alongside trembling → magnesium deficiency
  • Trembling that started after starting/stopping a medication → medication effect, discuss with prescriber
  • Trembling specifically in the late luteal phase → hormonal (see PMS insomnia article)
  • Trembling worse in late afternoon and evening, better in mornings → caffeine-related
  • Trembling with restless legs that improves with movement → restless legs syndrome

When Trembling Warrants Neurological Evaluation

Most bedtime trembling has metabolic, autonomic, or nutritional causes that don’t require neurology referral. But certain patterns warrant evaluation:

  • Tremor that’s persistent during the day, not just at bedtime
  • Tremor on one side of the body only
  • Tremor accompanied by weakness, numbness, or changes in coordination
  • Progressive worsening over weeks to months
  • Family history of essential tremor or Parkinson’s disease
  • Tremor that occurs primarily during purposeful movement (intention tremor)
  • Tremor accompanied by changes in handwriting, balance, or speech

If any of these apply, professional neurological evaluation is appropriate before assuming bedtime trembling is benign. Most people with bedtime trembling don’t have any of these features — but it’s worth knowing what the red flags look like. If you would like to see how we might be able to help you with this deeper, schedule a free consult here.

What the Research Shows

Hypnic jerks: Research confirms that hypnic jerks occur in approximately 70 percent of people occasionally, with higher frequency in those experiencing caffeine intake, sleep deprivation, intense evening exercise, stress, and magnesium deficiency.

Magnesium and neuromuscular function: Studies confirm magnesium’s role in regulating neuromuscular excitability, with deficiency producing increased muscle excitability, twitching, and tremor susceptibility.

Caffeine half-life: Research establishes caffeine’s half-life at 5–7 hours on average, with significant interindividual variation due to CYP1A2 enzyme polymorphisms. Slow metabolisers can experience effects 10–12 hours after consumption.

Hypoglycaemia and tremor: Studies confirm that the adrenaline response to low blood sugar produces fine tremor as one of the most consistent autonomic symptoms, often appearing before more dramatic symptoms.

What to Do About Bedtime Trembling

Address the Most Common Causes First

  • Magnesium glycinate (300–400 mg) 30–60 minutes before bed — the single most impactful intervention for most cases
  • Cut caffeine after noon — the half-life makes afternoon caffeine surprisingly relevant to bedtime symptoms
  • Protein-and-fat snack 60 minutes before bed — prevents blood sugar drops
  • Reduce alcohol — contributes to both blood sugar instability and withdrawal-related trembling overnight
  • Vagal toning before bed — extended exhale breathing for 5–10 minutes shifts autonomic balance toward parasympathetic

Investigate Nutrient Status

  • RBC magnesium — more accurate than serum magnesium for tissue stores
  • Vitamin B12 — deficiency causes neurological symptoms including tremor
  • Iron and ferritin — low iron contributes to restless legs and motor instability
  • Vitamin D — chronic deficiency is associated with neuromuscular symptoms
  • Calcium and electrolyte balance

Test the Hypotheses

The fastest way to identify the cause is to test interventions systematically. Try one change at a time for 1–2 weeks and note effects:

  • Magnesium glycinate — if trembling reduces, magnesium was likely contributing
  • Eliminate caffeine after noon — if trembling reduces within a week, caffeine was contributing
  • Protein-and-fat snack before bed — if trembling reduces, blood sugar was contributing
  • Vagal toning routine — if trembling reduces, sympathetic activation was contributing

This article is educational and not medical advice. Persistent tremor, especially with the red flags listed above, warrants professional neurological evaluation.

If you would like to see how we might be able to help you with this deeper, schedule a free consult here.

When to Seek Professional Help

Seek help if:

  • Trembling persists during the day, not just at bedtime
  • Any of the neurological red flags above are present
  • Standard interventions haven’t reduced the pattern after 3–4 weeks
  • Trembling is severe enough to consistently disrupt sleep onset
  • Other symptoms accompany the trembling — fatigue, digestive issues, mood changes
  • You suspect medication side effects or interactions

Frequently Asked Questions

Why does my body shake when I try to sleep?

Common causes include hypnic jerks (sudden involuntary muscle contractions at sleep onset), sympathetic activation from anxiety or stress, blood sugar crashes, magnesium deficiency, caffeine effects (even from afternoon coffee), and substance withdrawal. Most cases have identifiable metabolic, autonomic, or nutritional causes.

What are hypnic jerks?

Hypnic jerks (also called sleep starts) are sudden involuntary muscle contractions that occur at the moment of falling asleep. They affect about 70 percent of people occasionally. They’re caused by a brief failure of motor inhibition as the brain transitions to sleep, allowing a burst of motor activity to escape. They’re usually harmless but become more frequent with caffeine, sleep deprivation, stress, and magnesium deficiency.

Can low magnesium cause shaking at night?

Yes. Magnesium regulates neuromuscular excitability, and deficiency produces increased muscle twitching, cramps, eye twitching, restless legs, and tremor. Magnesium glycinate (300–400 mg before bed) is often the single most impactful intervention for bedtime trembling, with effects usually noticeable within 1–2 weeks.

Is shaking at bedtime serious?

Most bedtime shaking has benign causes — magnesium deficiency, caffeine, blood sugar, anxiety, or hypnic jerks — that don’t indicate serious neurological disease. Warning signs that warrant evaluation include daytime tremor, one-sided tremor, accompanying weakness or coordination changes, progressive worsening, or tremor with purposeful movement. Without these red flags, bedtime trembling is usually addressable through metabolic and lifestyle interventions.

How do I stop trembling at night?

Start with the most common causes: magnesium glycinate before bed, no caffeine after noon, protein-and-fat snack 60 minutes before bed, reduced alcohol, and vagal toning practices. Test one change at a time for 1–2 weeks to identify the contributing factor. If multiple interventions don’t reduce symptoms after 3–4 weeks, professional evaluation is warranted.

When to Work With a Sleep Consultant

Trembling at bedtime is your nervous system, your metabolism, or your nutrient status sending information. Most causes are identifiable and addressable with the right interventions. When standard approaches don’t resolve it, comprehensive root-cause investigation reveals the specific factors — nutrient deficiencies, autonomic dysfunction, hormonal patterns, or metabolic issues — driving the pattern.

Riley Jarvis at The Sleep Consultant works with clients to uncover the root biological causes behind chronic sleep issues and build personalised protocols that address every layer — not just the symptoms.

Book a consultation at TheSleepConsultant.com.

Share This Post
Facebook
Twitter
LinkedIn