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.
In short
- A single full-body jolt as you drop off is a hypnic jerk. Common, harmless, and usually driven by caffeine, short sleep or low magnesium.
- Fine, whole-body trembling with a racing heart is adrenaline: either stress or a blood sugar dip. Slow breathing or a small snack tells you which within minutes.
- Shaking that is also there in the daytime, or on one side only, is a different problem and needs a neurologist, not a supplement.
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.
Only shaking at bedtime, never during the day?
That is the good news: it almost always means something metabolic or nutritional, not neurological. The question is which one. Book a free 30-minute sleep assessment and we will go through your pattern and work out the fastest way to find out.
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, experienced by up to 70 percent of people at some point, 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, 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 averages around 5 hours in healthy adults, but ranges widely: slow metabolisers can carry it for far longer. Caffeine consumed at noon can still be at roughly half strength at 5 p.m. and a quarter at 10 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
| What you notice | Most likely cause | First step |
|---|---|---|
| Sudden full-body jerk at the moment of falling asleep | Hypnic jerk (usually benign) | Cut afternoon caffeine; sleep more; trial magnesium |
| Fine tremor in hands and body with racing heart | Sympathetic activation or anxiety | 5–10 minutes of extended exhale breathing; if it fades, this is it |
| Trembling with hunger, sweating, urge to eat | Blood sugar | Protein-and-fat snack an hour before bed |
| Muscle twitches, cramps, eye twitching alongside trembling | Magnesium deficiency | Magnesium glycinate 300–400 mg; RBC magnesium test |
| Started after starting or stopping a medication | Medication effect or withdrawal | Talk to the prescriber |
| Only in the week before your period | Hormonal | See can’t sleep before your period |
| Worse late afternoon and evening, better in the morning | Caffeine | Nothing caffeinated after noon for one week |
| Restless legs that improve with movement | Restless legs syndrome | Ferritin test |
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.
What the Research Shows
Hypnic jerks: The sleep literature puts lifetime prevalence of hypnic jerks at up to 70 percent of adults, with caffeine, stress, sleep deprivation and strenuous evening exercise among the recognised triggers.
Magnesium and neuromuscular function: A 2023 review of movement disorders associated with low magnesium documents tremor, twitching and myoclonus as presenting features, with symptoms resolving within hours to days once magnesium is replaced.
Caffeine half-life: Pharmacology references put caffeine’s half-life at roughly 4 to 5 hours in healthy adults, and a 2018 review of individual differences in caffeine metabolism shows why that number is only an average: CYP1A2 genetics, hormones, smoking, liver function and diet all shift it, and slow metabolisers feel caffeine long into the evening.
Hypoglycaemia and tremor: The adrenaline response to low blood sugar produces fine tremor as one of its most consistent autonomic symptoms, often appearing before more dramatic symptoms. This is standard physiology in any endocrinology text.
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
Run the four tests above and still shaking at bedtime after three or four weeks?
Then the cause is sitting underneath the obvious four, and that is where guessing stops being useful. On a free assessment call we will look at what you have tried, what it rules out, and what to test next.
This article is educational and not medical advice. Persistent tremor, especially with the red flags listed above, warrants professional neurological evaluation.
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. Up to 70 percent of people experience them at some point. 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 driving the pattern: nutrient deficiencies, autonomic dysfunction, hormonal patterns, or metabolic issues.
Riley Jarvis at The Sleep Consultant works with executives and high performers to uncover the root biological causes behind chronic sleep issues and build personalised protocols that address every layer, not just the symptoms.







