Doctors Note Logo

Published on: 9/13/2026

Could fluttering under my ribs be a sign of an irregular heartbeat or ALS?

Fluttering under the ribs is most often caused by benign muscle twitching in the diaphragm or chest wall, anxiety, caffeine, dehydration, or acid reflux, though it can also reflect an irregular heartbeat such as premature beats, supraventricular tachycardia, or atrial fibrillation. ALS is a rare explanation, and it usually presents with progressive limb weakness, muscle wasting, cramping, slurred speech, or difficulty swallowing rather than isolated fluttering. Red flags that deserve prompt medical attention include fainting, chest pain, breathlessness, a racing pulse that will not settle, or twitching paired with growing weakness. There are several important distinctions between a rhythm issue, a muscular cause, and a neurological one, including timing, triggers, and accompanying symptoms, so see below to understand more before drawing conclusions.

Because a fluttering sensation can point in very different directions, a structured review of your specific pattern is the fastest way to know whether you need a cardiology workup, reassurance, or a closer neurological look, and you can start that clarity right now with a free, instant, online symptom check.

Last reviewed for medical accuracy: 09/12/2026

answer background

Explanation

Fluttering or twitching sensations under the ribs can be unsettling, and you may wonder whether they point to a heart rhythm problem or something more serious like ALS (amyotrophic lateral sclerosis). In most cases, these sensations are harmless, but it’s important to understand the possible causes, know when to seek help, and what you can do now to ease your mind.

Irregular Heartbeat (Arrhythmia)

An arrhythmia occurs when the heart beats too fast, too slow, or erratically. You might feel it as a fluttering, pounding, or “skipping” sensation in your chest or under your ribs.

Common features

  • Palpitations: Awareness of your own heartbeat—fluttering, pounding or racing
  • Location: Often felt in the center of the chest, left side, or under the lower ribs
  • Triggers: Stress, caffeine, alcohol, certain medications, dehydration

When to consider arrhythmia

  • Fluttering lasts more than a few seconds, happens frequently, or gets worse
  • You feel lightheaded, dizzy, short of breath or chest pain at the same time
  • You have known heart disease, high blood pressure, or a family history of arrhythmias

What to do

  • Stay calm and sit or lie down
  • Try slow, deep breathing or the Valsalva maneuver (bearing down as if having a bowel movement)
  • Track when it happens—time of day, what you ate, recent exercise, stress levels
  • Speak to a doctor if episodes are frequent, prolonged or accompanied by other symptoms

Fasciculations: Muscle Twitches

Fasciculations are small, involuntary muscle twitches visible under the skin. They can occur anywhere in the body, including the chest wall or diaphragm (the muscle under your ribs).

Why fasciculations happen

  • Benign Fasciculation Syndrome (BFS): A harmless condition causing widespread twitching
  • Electrolyte imbalances: Low magnesium, calcium or potassium levels
  • Stress and fatigue: Physical or emotional stress can trigger twitching
  • Medications and stimulants: Caffeine, certain asthma drugs, or antidepressants

When to worry about fasciculations

  • Twitching is accompanied by muscle weakness, wasting or cramping
  • You notice slurred speech, difficulty swallowing or changes in walking
  • Twitching spreads and becomes persistent, day and night

Fasciculations in ALS

  • In ALS, twitching is often accompanied by progressive muscle weakness and atrophy
  • Symptoms usually involve both upper and lower motor neurons: spasticity, hyperreflexia (overactive reflexes)
  • ALS-related fasciculations are often widespread and come with other neurological signs

Bottom line: Occasional twitches alone, especially if brief and isolated, are rarely a sign of ALS.

Magnesium Deficiency

Magnesium plays a key role in muscle and nerve function. Low magnesium levels can lead to both muscle twitching and irregular heartbeats.

Signs of low magnesium

  • Muscle cramps, spasms or fasciculations (twitches)
  • Palpitations or arrhythmias, especially in people with heart disease
  • Fatigue, irritability or difficulty sleeping

Common causes

  • Poor diet: Not enough green leafy vegetables, nuts, seeds, whole grains
  • Gastrointestinal losses: Diarrhea, vomiting or certain GI diseases
  • Medications: Diuretics, proton pump inhibitors, some antibiotics

Addressing low magnesium

  • Dietary sources: Spinach, almonds, pumpkin seeds, black beans, avocados
  • Supplements: Magnesium citrate or glycinate—talk to your doctor about dose
  • Monitor: If you suspect deficiency, blood tests can confirm magnesium levels

Other Possible Causes

  • Diaphragm spasms (“fluttering diaphragm”)
    • Can feel like rapid, rhythmic twitching under your ribs
    • Often related to irritation, overexertion, or electrolyte imbalance
  • Gastrointestinal issues
    • Gas moving through the digestive tract can cause fluttering or gurgling sensations
    • Bloating, indigestion, reflux or irritable bowel syndrome may coexist
  • Stress and anxiety
    • Heightened awareness of normal body sensations
    • Can trigger muscle tension, twitches and palpitations

When to Seek Immediate Help

Fluttering under the ribs is usually harmless, but seek urgent medical attention if you experience:

  • Severe chest pain or pressure
  • Sudden shortness of breath or difficulty breathing
  • Fainting or near-fainting spells
  • Rapid or irregular heartbeat that doesn’t improve with rest
  • Neurological changes: sudden weakness, numbness, slurred speech

What You Can Do Now

  1. Self-monitor

    • Keep a journal of your symptoms: when they occur, how long they last, any triggers
    • Note accompanying signs: pain, dizziness, weakness or digestive issues
  2. Lifestyle tweaks

    • Reduce caffeine, alcohol and other stimulants
    • Manage stress with relaxation techniques: deep breathing, meditation, yoga
    • Eat a balanced diet rich in magnesium and other electrolytes
    • Stay hydrated
  3. Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker
    (https://ubiehealth.com/) to get personalized guidance on when to see a healthcare professional.

Talking to Your Doctor

If fluttering under your ribs is persistent, worsening or accompanied by troubling symptoms, schedule an appointment. Be prepared to discuss:

  • A detailed description of your fluttering or twitching
  • Frequency, duration and triggers
  • Any other symptoms: chest pain, shortness of breath, muscle weakness
  • Your diet, medications, supplements and stress levels

Your doctor may recommend:

  • Electrocardiogram (ECG) or Holter monitor to check heart rhythm
  • Blood tests to measure magnesium, calcium, potassium and other electrolytes
  • Neurological exam if fasciculations are widespread or accompanied by weakness
  • Imaging studies (echocardiogram, chest X-ray) if structural issues are suspected

Bottom Line

  • Fluttering under the ribs can stem from harmless muscle twitches (fasciculations), electrolyte imbalances like magnesium deficiency, stress or digestive movements.
  • It can also be a symptom of an irregular heartbeat (arrhythmia), but that often comes with additional warning signs.
  • ALS is unlikely if twitching is your only symptom—ALS usually involves progressive weakness, muscle wasting and changes in reflexes.
  • Pay attention to any red-flag symptoms (chest pain, breathlessness, sudden weakness) and seek immediate care if they occur.
  • For non-urgent concerns, track your symptoms, optimize your diet and lifestyle, and consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.

Always speak to a doctor about anything that could be life threatening or serious. If you’re ever unsure, it’s better to get checked out than to wait.

(References)

  • * Gordon PH, Mitsumoto H, Hays AP. Amyotrophic lateral sclerosis. Sci Aging Knowledge Environ. 2003 Sep 3;2003(35):dn2. doi: 10.1126/sageke.2003.35.dn2. Epub 2003 Sep 3. PMID: 12954882.

  • * Sonoo M. [Electrodiagnosis of ALS]. Rinsho Shinkeigaku. 2006 Nov;46(11):819-21. PMID: 17432189.

  • * Walter TR. Benign fasciculation syndrome. J Pain Palliat Care Pharmacother. 2015 Mar;29(1):54-5. doi: 10.3109/15360288.2014.997856. Epub 2015 Feb 20. PMID: 25700216.

  • * Lip GY, Fauchier L, Freedman SB, Van Gelder I, Natale A, Gianni C, Nattel S, Potpara T, Rienstra M, Tse HF, Lane DA. Atrial fibrillation. Nat Rev Dis Primers. 2016 Mar 31;2:16016. doi: 10.1038/nrdp.2016.16. Epub 2016 Mar 31. PMID: 27159789.

  • * Baker MR, Williams TL. Twitchy about fasciculation. Pract Neurol. 2020 May;20(3):260-261. doi: 10.1136/practneurol-2019-002469. Epub 2020 Jan 23. PMID: 31974302.

  • * Juan W, Fang L, Qi W, Jing M, Shan H, Jing Z, Xueli C, Wei Z, Junhong G. Muscle ultrasonography in the diagnosis of amyotrophic lateral sclerosis. Neurol Res. 2020 Jun;42(6):458-462. doi: 10.1080/01616412.2020.1738100. Epub 2020 Mar 5. PMID: 32138623.

  • * Bashford J, Masood U, Wickham A, Iniesta R, Drakakis E, Boutelle M, Mills K, Shaw C. Fasciculations demonstrate daytime consistency in amyotrophic lateral sclerosis. Muscle Nerve. 2020 Jun;61(6):745-750. doi: 10.1002/mus.26864. Epub 2020 Apr 7. PMID: 32208527.

  • * Martins MP, de Lima FD, Bernardes Leoni T, Martinez ARM, Nubiato Crespo A, André Teixeira Kimaid P, Nucci A, de Carvalho M, França MC Jr. Laryngeal electromyography in amyotrophic lateral sclerosis. J Neurol Neurosurg Psychiatry. 2020 Jul;91(7):730-732. doi: 10.1136/jnnp-2020-322910. Epub 2020 Apr 21. PMID: 32317399.

  • * de Carvalho M, Kiernan MC, Pullman SL, Rezania K, Turner MR, Simmons Z. Neurophysiological features of primary lateral sclerosis. Amyotroph Lateral Scler Frontotemporal Degener. 2020 Nov;21(sup1):11-17. doi: 10.1080/21678421.2020.1837174. PMID: 33602011.

  • * Ravits J, Ferrey D, Gundogdu B, Qayoumi W, Zale C. Amyotrophic Lateral Sclerosis: A Review. JAMA. 2026 Jun 9;335(22):1970-1982. doi: 10.1001/jama.2026.6385. PMID: 42113599.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.