ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| URL | https://psychcentral.com/health/twitching-in-sleep | |||||||||
| Last Crawled | 2026-04-23 09:04:00 (8 hours ago) | |||||||||
| First Indexed | 2022-11-15 09:56:25 (3 years ago) | |||||||||
| HTTP Status Code | 200 | |||||||||
| Content | ||||||||||
| Meta Title | Twitching While Sleeping: Causes, Symptoms, and More | |||||||||
| Meta Description | Muscle spasms may increase when you drink caffeine or exercise before bed. Learn other causes and how to minimize twitching at night. | |||||||||
| Meta Canonical | null | |||||||||
| Boilerpipe Text | Several things, such as caffeine and stress, can cause involuntary muscle spasms at night. Here’s what to know about twitching in your sleep.
Have you ever suddenly been awoken by a quick jerk or twitch in your body? Maybe you have seen this twitching in a sleeping baby or your partner.
This sudden, uncontrollable movement or “jerking” of muscles is quite common and affects up to
70%
of people of all ages and genders.
These muscle jerks can be unnoticeable or mild, but for some people can be intense enough to wake you up. While the exact cause is unknown, some factors may contribute to why you may twitch in your sleep.
If twitching in your sleep is becoming bothersome, there are a few things you can do to reduce those nighttime spasms.
If you’ve ever been close to falling asleep then suddenly jerk awake, you are experiencing a type of sleep myoclonus.
Sleep myoclonus also called “hypnic myoclonus,” is defined by the
National Institutes of Health
as a type of myoclonus — non-rhythmic, sudden, and involuntary movement — that occurs during sleep or sleep transitions. It’s most common as you drift off to sleep.
These sudden contractions of one or more of your body parts are also known as “hypnic jerks” or “hypnagogic jerks,” which are types of sleep myoclonus.
A hypnagogic jerk is a sudden, involuntary twitch that occurs as you’re falling asleep, while a hypnic jerk is the same phenomenon, but occurs as you awaken.
While the names may differ, they all refer to the same thing, an involuntary muscle twitch.
While many people aren’t bothered by and don’t need treatment for twitching in their sleep, for others, it may be a sign of a sleep condition that needs attention.
Signs and symptoms
The symptoms of sleep myoclonus occur during sleep and sleep transitions, such as falling asleep, waking up, or right before deep REM sleep.
Myoclonus causes involuntary muscle twitches in one or more muscle groups. These movements may include:
localized muscles spasms
widespread muscle spasms
sudden jerking of a specific part of the body
brief, shock-like muscle twitches
This twitching may also be called:
spasms
jerks
shakes
contractions
The exact cause of sleep twitches is unknown. But a
study
explored the connection between twitching and sleep and cited the following factors that can increase your risk of twitching while you sleep:
Anxiety and stress
Stress
can make it difficult to unwind at night, increasing the likelihood of hypnic jerks while you sleep.
Physical stress
If you exercise before bedtime, you’re putting physical stress on your body. It can have a stimulating effect and may increase the frequency of twitching.
Caffeine intake
Drinking too much caffeine before bedtime may also be the culprit. Caffeine is a stimulant and drinking it close to or right before you sleep can make it difficult for your body and brain to fully relax.
Stimulates
Stimulants, such as drugs or alcohol, can also increase twitching while you sleep. Nicotine is a stimulant, making nighttime muscle spasms more likely in people who use cigarettes or vapes. A
2019 study
suggests smoking causes poor sleep quality.
Sleep or neurological disorder
For most people, twitching isn’t a sign of an underlying condition. But in some cases, nighttime jerks can be a symptom of a
sleep disorder
, such as
restless legs syndrome (RLS)
, or a nervous system disorder, such as:
Parkinson’s disease
Alzheimer’s disease
multiple sclerosis (MS)
epilepsy
There are a few things in your control that may prevent twitching while you sleep. You can:
Reduce caffeine intake:
Avoid caffeine in the late afternoon and evening to give yourself the best chance of minimizing twitches or jerks while you sleep.
Avoid stimulants:
Avoiding alcohol, drugs, or other stimulants like nicotine before bedtime may help prevent twitching throughout the night.
Exercise earlier in the day
: Exercise is great for your body, but consider doing your exercise earlier in the day to reduce involuntary twitches throughout the night. A
2017 study
suggests daytime physical exercise can help you sleep better.
Practice relaxation techniques:
To help bring about your body’s relaxation response and minimize twitching you can practice
breathing techniques
or use
guided imagery
. They may help you calm your body and mind before bedtime.
Treatment
Treatment for sleep myoclonus is only needed if it interferes with sleep or disrupts your quality of life. If the condition is serious, then your doctor may prescribe a medication, such as tetrabenazine, which is typically used to treat movement disorders like Huntington’s disease.
The sudden jerk that you feel as you’re falling asleep or during sleep is called sleep myoclonus. It can also be referred to as a hypnic jerk or hypnagogic jerk depending on its timing.
There is no definitive answer to why you may twitch in your sleep. However, a few factors that may contribute are:
being stressed or having anxiety
stimulants (alcohol, drugs, nicotine)
drinking too much caffeine close to bedtime
exercising close to bedtime
For most people, nighttime twitches are a mild nuisance. But if they’re disrupting your life or preventing you from sleeping, consider reaching out to your doctor or seeking a board certified sleep physician to figure out a treatment that’s right for you. | |||||||||
| Markdown | - Conditions
Featured
[All](https://www.psychcentral.com/conditions)
- [Addictions](https://www.psychcentral.com/addictions)
- [Anxiety Disorder](https://www.psychcentral.com/anxiety)
- [ADHD](https://www.psychcentral.com/adhd)
- [Bipolar Disorder](https://www.psychcentral.com/bipolar)
- [Depression](https://www.psychcentral.com/depression)
- [PTSD](https://www.psychcentral.com/ptsd)
- [Schizophrenia](https://www.psychcentral.com/schizophrenia)
Articles
[All](https://www.psychcentral.com/disorders/disorders)
- [Adjustment Disorder](https://www.psychcentral.com/disorders/adjustment-disorder-symptoms)
- [Agoraphobia](https://www.psychcentral.com/anxiety/agoraphobia-symptoms)
- [Antisocial Personality Disorder](https://www.psychcentral.com/disorders/antisocial-personality-disorder)
- [Borderline Personality Disorder](https://www.psychcentral.com/disorders/borderline-personality-disorder)
- [Childhood ADHD](https://www.psychcentral.com/childhood-adhd/childhood-adhd)
- [Dissociative Identity Disorder](https://www.psychcentral.com/disorders/dissociative-identity-disorder)
- [Narcissistic Personality Disorder](https://www.psychcentral.com/disorders/narcissistic-personality-disorder)
- [Narcolepsy](https://www.psychcentral.com/disorders/narcolepsy-symptoms)
- [Oppositional Defiant Disorder](https://www.psychcentral.com/disorders/oppositional-defiant-disorder-symptoms)
- [Panic Attack](https://www.psychcentral.com/anxiety/panic-attack-symptoms)
- [Postpartum Depression](https://www.psychcentral.com/depression/postpartum-depression)
- [Schizoaffective Disorder](https://www.psychcentral.com/disorders/schizoaffective-disorder-symptoms)
- [Seasonal Affective Disorder](https://www.psychcentral.com/depression/seasonal-affective-disorder)
- [Sex Addiction](https://www.psychcentral.com/lib/what-is-sexual-addiction)
- [Social Anxiety](https://www.psychcentral.com/anxiety/social-anxiety-disorder-symptoms)
- [Specific Phobias](https://www.psychcentral.com/anxiety/specific-phobia-symptoms)
- [Teenage Depression](https://www.psychcentral.com/lib/teenage-depression)
- [Trauma](https://www.psychcentral.com/health/what-is-trauma)
- Discover
Wellness Topics
- [Black Mental Health](https://www.psychcentral.com/program/black-mental-health)
- [Grief](https://www.psychcentral.com/health/refuge-in-grief)
- [Emotional Health](https://www.psychcentral.com/program/emotional-health)
- [Sex & Relationships](https://www.psychcentral.com/relationships)
- [Trauma](https://www.psychcentral.com/program/trauma)
- [Understanding Therapy](https://www.psychcentral.com/program/understanding-therapy)
- [Workplace Mental Health](https://www.psychcentral.com/program/mental-health-at-work)
Original Series
- [My Life with OCD](https://www.psychcentral.com/content-series/my-life-with-ocd)
- [Caregivers Chronicles](https://www.psychcentral.com/content-series/caregivers-chronicles)
- [Empathy at Work](https://www.psychcentral.com/content-series/empathy-at-work)
- [Sex, Love & All of the Above](https://www.psychcentral.com/content-series/sex-love-and-all-of-the-above)
- [Parent Central](https://www.psychcentral.com/content-series/parent-central)
- [Mindful Moment](https://www.psychcentral.com/health/mindful-moment-awakening-power-of-hope)
News & Events
- [Mental Health News](https://www.psychcentral.com/news)
- [COVID-19](https://www.psychcentral.com/coronavirus/coronavirus-overview)
- [Live Town Hall: Mental Health in Focus](https://www.healthline.com/health/healthline-live-town-hall-mental-health-in-focus)
Podcasts
- [Inside Mental Health](https://www.psychcentral.com/blog/show)
- [Inside Schizophrenia](https://www.psychcentral.com/blog/is)
- [Inside Bipolar](https://www.psychcentral.com/blog/ibp)
- Quizzes
Conditions
- [ADHD Symptoms Quiz](https://www.psychcentral.com/quizzes/adhd-quiz)
- [Anxiety Symptoms Quiz](https://www.psychcentral.com/quizzes/anxiety-quiz)
- [Autism Quiz: Family & Friends](https://www.psychcentral.com/quizzes/autism-quiz)
- [Autism Symptoms Quiz](https://www.psychcentral.com/quizzes/autism-test)
- [Bipolar Disorder Quiz](https://www.psychcentral.com/quizzes/bipolar-quiz)
- [Borderline Personality Test](https://www.psychcentral.com/quizzes/borderline-test)
- [Childhood ADHD Quiz](https://www.psychcentral.com/quizzes/child-adhd-quiz)
- [Depression Symptoms Quiz](https://www.psychcentral.com/quizzes/depression-quiz)
- [Eating Disorder Quiz](https://www.psychcentral.com/quizzes/eating-disorders-quiz)
- [Narcissism Symptoms Test](https://www.psychcentral.com/quizzes/narcissistic-personality-quiz)
- [OCD Symptoms Quiz](https://www.psychcentral.com/quizzes/ocd-quiz)
- [Psychopathy Test](https://www.psychcentral.com/quizzes/psychopathy-quiz)
- [PTSD Symptoms Quiz](https://www.psychcentral.com/quizzes/ptsd-quiz)
- [Schizophrenia Quiz](https://www.psychcentral.com/quizzes/schizophrenia-test)
Lifestyle
[All](https://www.psychcentral.com/program/quizzes)
- [Attachment Style Quiz](https://www.psychcentral.com/quizzes/attachment-style-quiz)
- [Career Test](https://www.psychcentral.com/quizzes/career-test)
- [Do I Need Therapy Quiz?](https://www.psychcentral.com/quizzes/therapy-quiz)
- [Domestic Violence Screening Quiz](https://www.psychcentral.com/quizzes/domestic-violence-quiz)
- [Emotional Type Quiz](https://www.psychcentral.com/quizzes/emotional-type-quiz)
- [Loneliness Quiz](https://www.psychcentral.com/quizzes/loneliness-quiz)
- [Parenting Style Quiz](https://www.psychcentral.com/quizzes/parenting-style-quiz)
- [Personality Test](https://www.psychcentral.com/quizzes/personality-quiz)
- [Relationship Quiz](https://www.psychcentral.com/quizzes/love-quiz)
- [Stress Test](https://www.psychcentral.com/quizzes/stress-test)
- [What's Your Sleep Like?](https://www.psychcentral.com/quizzes/sleep-quiz)
- Resources
Treatment & Support
- [Find Support](https://www.psychcentral.com/program/how-to-find-mental-health-support)
- [Suicide Prevention](https://www.psychcentral.com/lib/suicide-prevention-hotline-number)
- [Drugs & Medications](https://www.psychcentral.com/drugs/drugs)
- [Find a Therapist](https://care.healthline.com/find-care/specialty/mental-health-professional?&utm_source=pc&utm_medium=editorial&utm_campaign=mentalwellbeing&utm_content=textwidget&utm_term=homepage-resources&redirected=true)
Subscribe
# Why Am I Twitching In My Sleep?

Medically reviewed by [Suzanne Stevens, MD](https://www.psychcentral.com/reviewers/suzanne-stevens-md) — Written by [Janelle Cox](https://www.psychcentral.com/authors/janelle-cox) on November 14, 2022
- [What does it mean?](https://psychcentral.com/health/twitching-in-sleep#what-does-it-mean)
- [Causes](https://psychcentral.com/health/twitching-in-sleep#causes)
- [How to stop twitching](https://psychcentral.com/health/twitching-in-sleep#how-to-stop-twitching)
- [Recap](https://psychcentral.com/health/twitching-in-sleep#recap)
Several things, such as caffeine and stress, can cause involuntary muscle spasms at night. Here’s what to know about twitching in your sleep.
Have you ever suddenly been awoken by a quick jerk or twitch in your body? Maybe you have seen this twitching in a sleeping baby or your partner.
The name for twitching in your sleep is [sleep myoclonus](https://www.healthline.com/health/myoclonus#diagnosis).
This sudden, uncontrollable movement or “jerking” of muscles is quite common and affects up to [70%](https://www.sciencedirect.com/science/article/abs/pii/S1389945716301198) of people of all ages and genders.
These muscle jerks can be unnoticeable or mild, but for some people can be intense enough to wake you up. While the exact cause is unknown, some factors may contribute to why you may twitch in your sleep.
If twitching in your sleep is becoming bothersome, there are a few things you can do to reduce those nighttime spasms.
## [Does twitching in your sleep mean anything?]()
If you’ve ever been close to falling asleep then suddenly jerk awake, you are experiencing a type of sleep myoclonus.
Sleep myoclonus also called “hypnic myoclonus,” is defined by the [National Institutes of Health](https://www.ninds.nih.gov/health-information/patient-caregiver-education/fact-sheets/myoclonus-fact-sheet) as a type of myoclonus — non-rhythmic, sudden, and involuntary movement — that occurs during sleep or sleep transitions. It’s most common as you drift off to sleep.
These sudden contractions of one or more of your body parts are also known as “hypnic jerks” or “hypnagogic jerks,” which are types of sleep myoclonus.
A hypnagogic jerk is a sudden, involuntary twitch that occurs as you’re falling asleep, while a hypnic jerk is the same phenomenon, but occurs as you awaken.
While the names may differ, they all refer to the same thing, an involuntary muscle twitch.
While many people aren’t bothered by and don’t need treatment for twitching in their sleep, for others, it may be a sign of a sleep condition that needs attention.
### Signs and symptoms
The symptoms of sleep myoclonus occur during sleep and sleep transitions, such as falling asleep, waking up, or right before deep REM sleep.
Myoclonus causes involuntary muscle twitches in one or more muscle groups. These movements may include:
- localized muscles spasms
- widespread muscle spasms
- sudden jerking of a specific part of the body
- brief, shock-like muscle twitches
This twitching may also be called:
- spasms
- jerks
- shakes
- contractions
## [What makes you twitch while asleep?]()
The exact cause of sleep twitches is unknown. But a [study](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4481805/) explored the connection between twitching and sleep and cited the following factors that can increase your risk of twitching while you sleep:
### Anxiety and stress
[Stress](https://psychcentral.com/stress/stress-overview) can make it difficult to unwind at night, increasing the likelihood of hypnic jerks while you sleep.
### Physical stress
If you exercise before bedtime, you’re putting physical stress on your body. It can have a stimulating effect and may increase the frequency of twitching.
### Caffeine intake
Drinking too much caffeine before bedtime may also be the culprit. Caffeine is a stimulant and drinking it close to or right before you sleep can make it difficult for your body and brain to fully relax.
### Stimulates
Stimulants, such as drugs or alcohol, can also increase twitching while you sleep. Nicotine is a stimulant, making nighttime muscle spasms more likely in people who use cigarettes or vapes. A [2019 study](https://bmcpublichealth.biomedcentral.com/articles/10.1186/s12889-019-6929-4) suggests smoking causes poor sleep quality.
### Sleep or neurological disorder
For most people, twitching isn’t a sign of an underlying condition. But in some cases, nighttime jerks can be a symptom of a [sleep disorder](https://psychcentral.com/disorders/sleep), such as [restless legs syndrome (RLS)](https://psychcentral.com/disorders/symptoms-of-restless-legs-syndrome-rls#1), or a nervous system disorder, such as:
- Parkinson’s disease
- Alzheimer’s disease
- multiple sclerosis (MS)
- epilepsy
## [How to reduce twitching while sleeping]()
There are a few things in your control that may prevent twitching while you sleep. You can:
- **Reduce caffeine intake:** Avoid caffeine in the late afternoon and evening to give yourself the best chance of minimizing twitches or jerks while you sleep.
- **Avoid stimulants:** Avoiding alcohol, drugs, or other stimulants like nicotine before bedtime may help prevent twitching throughout the night.
- **Exercise earlier in the day**: Exercise is great for your body, but consider doing your exercise earlier in the day to reduce involuntary twitches throughout the night. A
[2017 study](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5385214/)
suggests daytime physical exercise can help you sleep better.
- **Practice relaxation techniques:** To help bring about your body’s relaxation response and minimize twitching you can practice [breathing techniques](https://psychcentral.com/anxiety/reduce-your-anxiety-this-minute-3-different-types-of-deep-breathing) or use [guided imagery](https://psychcentral.com/lib/the-benefits-of-imagery). They may help you calm your body and mind before bedtime.
### Treatment
Treatment for sleep myoclonus is only needed if it interferes with sleep or disrupts your quality of life. If the condition is serious, then your doctor may prescribe a medication, such as tetrabenazine, which is typically used to treat movement disorders like Huntington’s disease.
## [Let’s recap]()
The sudden jerk that you feel as you’re falling asleep or during sleep is called sleep myoclonus. It can also be referred to as a hypnic jerk or hypnagogic jerk depending on its timing.
There is no definitive answer to why you may twitch in your sleep. However, a few factors that may contribute are:
- being stressed or having anxiety
- stimulants (alcohol, drugs, nicotine)
- drinking too much caffeine close to bedtime
- exercising close to bedtime
For most people, nighttime twitches are a mild nuisance. But if they’re disrupting your life or preventing you from sleeping, consider reaching out to your doctor or seeking a board certified sleep physician to figure out a treatment that’s right for you.
7 sourcescollapsed
- Chiaro G, et al. (2016). Hypnic jerks are an underestimated sleep motor phenomenon in patients with parkinsonism. A video-polysomnographic and neurophysiological study.
<https://www.sciencedirect.com/science/article/abs/pii/S1389945716301198>
- Dolezal B, et al. (2017). Interrelationship between sleep and exercise: A systematic review.
<https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5385214/>
- Laio Y, et al. (2019). Sleep quality in cigarette smokers and nonsmokers: Findings from the general population in central China.
<https://bmcpublichealth.biomedcentral.com/articles/10.1186/s12889-019-6929-4>
- Myoclonus fact sheet (n.d.).
[https://www.ninds.nih.gov/health-information/patient-caregiver-education/fact-sheets/myoclonus-fact-sheet?search-term=twitch%20in%20sleep](https://www.ninds.nih.gov/health-information/patient-caregiver-education/fact-sheets/myoclonus-fact-sheet?search-term=twitch%20in%20sleep)
- Relaxation techniques: What you need to know. (2021).
<https://www.nccih.nih.gov/health/relaxation-techniques-what-you-need-to-know>
- Roos R. (2010). Huntington's disease: A clinical review.
<https://ojrd.biomedcentral.com/articles/10.1186/1750-1172-5-40>
- Sathe H, et al. (2015). Hypnic jerks possibly induced by escitalopram.
<https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4481805/>
[FEEDBACK:]()

Medically reviewed by [Suzanne Stevens, MD](https://www.psychcentral.com/reviewers/suzanne-stevens-md) — Written by [Janelle Cox](https://www.psychcentral.com/authors/janelle-cox) on November 14, 2022
## RELATED
- [What Is Sleep Therapy and Is It for You?](https://www.psychcentral.com/health/sleep-therapy?utm_source=ReadNext)
- [How to Stop Stressing About Work and Finally Fall Asleep](https://www.psychcentral.com/stress/stress-related-insomnia-how-to-stop-stressing-about-work-finally-fall-asleep?utm_source=ReadNext)
- [8 Proven Tips for Optimal Sleep Hygiene](https://www.psychcentral.com/health/good-sleep-hygiene-tips?utm_source=ReadNext)
- [What Is Revenge Bedtime Procrastination?](https://www.psychcentral.com/health/revenge-bedtime-procrastination?utm_source=ReadNext)
- [Sleep Chronotype Quiz: What Is My Chronotype?](https://www.psychcentral.com/quizzes/chronotype-quiz?utm_source=ReadNext)
### Read this next
- [What Is Sleep Therapy and Is It for You?](https://www.psychcentral.com/health/sleep-therapy?utm_source=ReadNext)
Medically reviewed by [Nicole Washington, DO, MPH](https://www.psychcentral.com/medical-team)
[If you're wondering if you need sleep therapy and if it works, learning about CBT for insomnia and other techniques could help.](https://www.psychcentral.com/health/sleep-therapy?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/health/sleep-therapy?utm_source=ReadNext)
- [How to Stop Stressing About Work and Finally Fall Asleep](https://www.psychcentral.com/stress/stress-related-insomnia-how-to-stop-stressing-about-work-finally-fall-asleep?utm_source=ReadNext)
Medically reviewed by [Vara Saripalli, Psy.D.](https://www.psychcentral.com/medical-team)
[Stressing about work can affect your sleep in different ways. But healthy sleep habits can help you stop worrying about work and get to sleep.](https://www.psychcentral.com/stress/stress-related-insomnia-how-to-stop-stressing-about-work-finally-fall-asleep?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/stress/stress-related-insomnia-how-to-stop-stressing-about-work-finally-fall-asleep?utm_source=ReadNext)
- [8 Proven Tips for Optimal Sleep Hygiene](https://www.psychcentral.com/health/good-sleep-hygiene-tips?utm_source=ReadNext)
[Poor sleep hygiene can impact your overall well-being. These tips for better sleep can help you right now.](https://www.psychcentral.com/health/good-sleep-hygiene-tips?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/health/good-sleep-hygiene-tips?utm_source=ReadNext)
- [What Is Revenge Bedtime Procrastination?](https://www.psychcentral.com/health/revenge-bedtime-procrastination?utm_source=ReadNext)
Medically reviewed by [Alana Biggers, M.D., MPH](https://www.psychcentral.com/medical-team)
[Revenge bedtime procrastination happens when you delay sleep to scroll social media, read, or play games. There are ways to break the habit. Read on…](https://www.psychcentral.com/health/revenge-bedtime-procrastination?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/health/revenge-bedtime-procrastination?utm_source=ReadNext)
- [Sleep Chronotype Quiz: What Is My Chronotype?](https://www.psychcentral.com/quizzes/chronotype-quiz?utm_source=ReadNext)
Medically reviewed by [Debra Rose Wilson, Ph.D., MSN, R.N., IBCLC, AHN-BC, CHT](https://www.psychcentral.com/medical-team)
[Do you stumble out of bed late or rise early with the chickens? Take our chronotype quiz to find out.](https://www.psychcentral.com/quizzes/chronotype-quiz?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/quizzes/chronotype-quiz?utm_source=ReadNext)
- [Is It Good to Sleep with Your Dog in Bed?](https://www.psychcentral.com/health/sleeping-with-dogs?utm_source=ReadNext)
[Many people look forward to snuggling up with beloved animal companions. But recent research may interest you.](https://www.psychcentral.com/health/sleeping-with-dogs?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/health/sleeping-with-dogs?utm_source=ReadNext)
- [Talking in Your Sleep? Here’s What It Means](https://www.psychcentral.com/health/sleep-talking?utm_source=ReadNext)
[Sleep talking is just what it sounds like: talking while you are asleep. It's also referred to as "somniloquy." But could it be a sign of something…](https://www.psychcentral.com/health/sleep-talking?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/health/sleep-talking?utm_source=ReadNext)
- [Sleep Eating: Can Snacking in Your Sleep Be a Disorder?](https://www.psychcentral.com/disorders/sleep-eating?utm_source=ReadNext)
[Eating at night may be common for some, but regularly binge eating while sleeping with little to no memory of it may signal sleep-related eating…](https://www.psychcentral.com/disorders/sleep-eating?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/disorders/sleep-eating?utm_source=ReadNext)
- [What I Wish People Knew About Living with Sexsomnia](https://www.psychcentral.com/sex/what-i-wish-people-knew-about-living-with-sexsomnia?utm_source=ReadNext)
Medically reviewed by [Jennifer Litner, PhD, LMFT, CST](https://www.psychcentral.com/medical-team)
[Sexsomnia is a rare sleep sex disorder that causes people to experience abnormal sexual behaviors while asleep, particularly during the non-rapid eye…](https://www.psychcentral.com/sex/what-i-wish-people-knew-about-living-with-sexsomnia?utm_source=ReadNext)
[READ MORE](https://www.psychcentral.com/sex/what-i-wish-people-knew-about-living-with-sexsomnia?utm_source=ReadNext)
© 2026 Psych Central, a Healthline Media Company. All rights reserved. Healthline Media is an RVO Health Company. Our website services, content, and products are for informational purposes only. Psych Central does not provide medical advice, diagnosis, or treatment. [See additional information](https://www.psychcentral.com/about/additional-information).
- [About Us](https://www.psychcentral.com/about)
- [Contact Us](https://www.psychcentral.com/about/contact-us)
- [Terms of Use](https://www.psychcentral.com/about/terms)
- [Privacy policy](https://www.psychcentral.com/about/privacy)
- Privacy Settings
- [Advertising Policy](https://www.psychcentral.com/about/advertising-policy)
- [Medical Affairs](https://www.psychcentral.com/about/medical-team)
- [Content Integrity](https://www.psychcentral.com/about/content-integrity)
- [Newsletter](https://www.psychcentral.com/newsletter)
- [Find a Therapist](https://www.psychcentral.com/find-help)
- [Your Privacy Choices](https://privacyportal.onetrust.com/webform/b45407c6-ee79-4a08-912e-02ce898f9a14/8f420b32-53af-4399-935d-32eb9b61201e)
- © 2026 Psych Central, a Healthline Media Company. All rights reserved. Healthline Media is an RVO Health Company. Our website services, content, and products are for informational purposes only. Psych Central does not provide medical advice, diagnosis, or treatment. [See additional information](https://www.psychcentral.com/about/additional-information).
© 2026 Psych Central, a Healthline Media Company. All rights reserved. Healthline Media is an RVO Health Company. Our website services, content, and products are for informational purposes only. Psych Central does not provide medical advice, diagnosis, or treatment. [See additional information](https://www.psychcentral.com/about/additional-information).
[About](https://www.healthlinemedia.com/?utm_source=psychcentral.com&utm_medium=site&utm_campaign=footer&utm_content=about)[Careers](https://rvohealth.com/careers)[Advertise with us](https://www.healthlinemedia.com/advertise?utm_source=psychcentral.com&utm_medium=site&utm_campaign=footer&utm_content=advertise)
OUR BRANDS
[Healthline](https://www.healthline.com/)[Medical News Today](https://www.medicalnewstoday.com/)[Greatist](https://greatist.com/)[Psych Central](https://psychcentral.com/)[Bezzy](https://bezzy.com/)
 | |||||||||
| Readable Markdown | Several things, such as caffeine and stress, can cause involuntary muscle spasms at night. Here’s what to know about twitching in your sleep.
Have you ever suddenly been awoken by a quick jerk or twitch in your body? Maybe you have seen this twitching in a sleeping baby or your partner.
This sudden, uncontrollable movement or “jerking” of muscles is quite common and affects up to [70%](https://www.sciencedirect.com/science/article/abs/pii/S1389945716301198) of people of all ages and genders.
These muscle jerks can be unnoticeable or mild, but for some people can be intense enough to wake you up. While the exact cause is unknown, some factors may contribute to why you may twitch in your sleep.
If twitching in your sleep is becoming bothersome, there are a few things you can do to reduce those nighttime spasms.
If you’ve ever been close to falling asleep then suddenly jerk awake, you are experiencing a type of sleep myoclonus.
Sleep myoclonus also called “hypnic myoclonus,” is defined by the [National Institutes of Health](https://www.ninds.nih.gov/health-information/patient-caregiver-education/fact-sheets/myoclonus-fact-sheet) as a type of myoclonus — non-rhythmic, sudden, and involuntary movement — that occurs during sleep or sleep transitions. It’s most common as you drift off to sleep.
These sudden contractions of one or more of your body parts are also known as “hypnic jerks” or “hypnagogic jerks,” which are types of sleep myoclonus.
A hypnagogic jerk is a sudden, involuntary twitch that occurs as you’re falling asleep, while a hypnic jerk is the same phenomenon, but occurs as you awaken.
While the names may differ, they all refer to the same thing, an involuntary muscle twitch.
While many people aren’t bothered by and don’t need treatment for twitching in their sleep, for others, it may be a sign of a sleep condition that needs attention.
Signs and symptoms
The symptoms of sleep myoclonus occur during sleep and sleep transitions, such as falling asleep, waking up, or right before deep REM sleep.
Myoclonus causes involuntary muscle twitches in one or more muscle groups. These movements may include:
- localized muscles spasms
- widespread muscle spasms
- sudden jerking of a specific part of the body
- brief, shock-like muscle twitches
This twitching may also be called:
- spasms
- jerks
- shakes
- contractions
The exact cause of sleep twitches is unknown. But a [study](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4481805/) explored the connection between twitching and sleep and cited the following factors that can increase your risk of twitching while you sleep:
Anxiety and stress
[Stress](https://psychcentral.com/stress/stress-overview) can make it difficult to unwind at night, increasing the likelihood of hypnic jerks while you sleep.
Physical stress
If you exercise before bedtime, you’re putting physical stress on your body. It can have a stimulating effect and may increase the frequency of twitching.
Caffeine intake
Drinking too much caffeine before bedtime may also be the culprit. Caffeine is a stimulant and drinking it close to or right before you sleep can make it difficult for your body and brain to fully relax.
Stimulates
Stimulants, such as drugs or alcohol, can also increase twitching while you sleep. Nicotine is a stimulant, making nighttime muscle spasms more likely in people who use cigarettes or vapes. A [2019 study](https://bmcpublichealth.biomedcentral.com/articles/10.1186/s12889-019-6929-4) suggests smoking causes poor sleep quality.
Sleep or neurological disorder
For most people, twitching isn’t a sign of an underlying condition. But in some cases, nighttime jerks can be a symptom of a [sleep disorder](https://psychcentral.com/disorders/sleep), such as [restless legs syndrome (RLS)](https://psychcentral.com/disorders/symptoms-of-restless-legs-syndrome-rls#1), or a nervous system disorder, such as:
- Parkinson’s disease
- Alzheimer’s disease
- multiple sclerosis (MS)
- epilepsy
There are a few things in your control that may prevent twitching while you sleep. You can:
- **Reduce caffeine intake:** Avoid caffeine in the late afternoon and evening to give yourself the best chance of minimizing twitches or jerks while you sleep.
- **Avoid stimulants:** Avoiding alcohol, drugs, or other stimulants like nicotine before bedtime may help prevent twitching throughout the night.
- **Exercise earlier in the day**: Exercise is great for your body, but consider doing your exercise earlier in the day to reduce involuntary twitches throughout the night. A
[2017 study](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5385214/)
suggests daytime physical exercise can help you sleep better.
- **Practice relaxation techniques:** To help bring about your body’s relaxation response and minimize twitching you can practice [breathing techniques](https://psychcentral.com/anxiety/reduce-your-anxiety-this-minute-3-different-types-of-deep-breathing) or use [guided imagery](https://psychcentral.com/lib/the-benefits-of-imagery). They may help you calm your body and mind before bedtime.
Treatment
Treatment for sleep myoclonus is only needed if it interferes with sleep or disrupts your quality of life. If the condition is serious, then your doctor may prescribe a medication, such as tetrabenazine, which is typically used to treat movement disorders like Huntington’s disease.
The sudden jerk that you feel as you’re falling asleep or during sleep is called sleep myoclonus. It can also be referred to as a hypnic jerk or hypnagogic jerk depending on its timing.
There is no definitive answer to why you may twitch in your sleep. However, a few factors that may contribute are:
- being stressed or having anxiety
- stimulants (alcohol, drugs, nicotine)
- drinking too much caffeine close to bedtime
- exercising close to bedtime
For most people, nighttime twitches are a mild nuisance. But if they’re disrupting your life or preventing you from sleeping, consider reaching out to your doctor or seeking a board certified sleep physician to figure out a treatment that’s right for you. | |||||||||
| ML Classification | ||||||||||
| ML Categories |
Raw JSON{
"/Health": 998,
"/Health/Health_Conditions": 860,
"/Health/Health_Conditions/Neurological_Conditions": 603
} | |||||||||
| ML Page Types |
Raw JSON{
"/Article": 999,
"/Article/Tutorial_or_Guide": 424
} | |||||||||
| ML Intent Types |
Raw JSON{
"Informational": 999
} | |||||||||
| Content Metadata | ||||||||||
| Language | en | |||||||||
| Author | Janelle Cox | |||||||||
| Publish Time | not set | |||||||||
| Original Publish Time | 2022-11-15 09:56:25 (3 years ago) | |||||||||
| Republished | No | |||||||||
| Word Count (Total) | 1,810 | |||||||||
| Word Count (Content) | 873 | |||||||||
| Links | ||||||||||
| External Links | 26 | |||||||||
| Internal Links | 203 | |||||||||
| Technical SEO | ||||||||||
| Meta Nofollow | No | |||||||||
| Meta Noarchive | No | |||||||||
| JS Rendered | No | |||||||||
| Redirect Target | null | |||||||||
| Performance | ||||||||||
| Download Time (ms) | 703 | |||||||||
| TTFB (ms) | 574 | |||||||||
| Download Size (bytes) | 60,566 | |||||||||
| Shard | 89 (laksa) | |||||||||
| Root Hash | 16330228191540156489 | |||||||||
| Unparsed URL | com,psychcentral!/health/twitching-in-sleep s443 | |||||||||