Doctors Note Logo

Published on: 9/14/2026

Can anxiety cause a fluttering feeling under my rib cage?

Yes, anxiety can cause a fluttering feeling under the rib cage, often from heart palpitations, rapid shallow breathing, diaphragm spasms, or tense stomach and chest muscles triggered by the body's stress response. This sensation may feel like a butterfly flapping, a twitch, or a brief skipped beat, and it usually fades once breathing and heart rate settle. Still, similar flutters can stem from acid reflux, caffeine, dehydration, thyroid issues, or arrhythmias, so there are several factors to consider before assuming anxiety is the only cause. See below for the warning signs that call for prompt medical attention, including fainting, chest pain, shortness of breath, or flutters that last more than a few minutes. Because anxiety and heart or digestive symptoms overlap so closely, a free, instant, online symptom check can help you sort out what is most likely driving your flutter and decide whether self-care, a primary care visit, or urgent evaluation is the right next step.

Last reviewed for medical accuracy: 09/13/2026

answer background

Explanation

Anxiety can manifest with a surprising range of physical sensations—one of which is a fluttering or twitching feeling under the rib cage. Many people wonder whether this odd “flip-flopping” is dangerous or simply a sign of stress. In most cases, anxiety-related muscle tension is harmless, but it’s always wise to understand what’s happening in your body and when to seek help.

How Anxiety Triggers Muscle Tension

When you’re anxious or stressed, your nervous system shifts into “fight-or-flight” mode. That releases stress hormones (like adrenaline and cortisol) which prepare your muscles for action. If you don’t actually run or fight, those muscles stay tense—and sometimes spasm or flutter.

  • Heightened awareness of normal muscle twitches
  • Prolonged tension in breathing muscles
  • Increased sensitivity to small movements under the skin

Two muscles often involved in rib-cage sensations are the diaphragm and the intercostals (the muscles between your ribs).

What Is Diaphragm Flutter?

The diaphragm is your body’s main breathing muscle—a dome-shaped sheet of muscle that sits just under your lungs. A “diaphragm flutter” feels like a quick, repetitive flip or vibration right under your lower ribs.

Common features of diaphragm flutter:

  • Brief, rhythmic twitching under the rib cage
  • Often more noticeable when you’re resting or lying down
  • May come and go in episodes lasting seconds to minutes
  • Usually painless, but can feel strange or uncomfortable

Diaphragm flutter is generally harmless and often linked to anxiety, over-breathing (hyperventilation), or muscle fatigue. Drinking water, slowing your breath, and gently stretching your torso can help the muscle settle.

What Is an Intercostal Spasm?

Between each rib lies a small muscle called an intercostal. When these muscles spasm, you might feel a flutter or a sharp, fleeting twinge.

Key points about intercostal spasms:

  • Localized twitch or cramp between ribs
  • Can be triggered by poor posture, sudden movement, or deep breathing
  • May worsen if you hold your breath or hunch forward
  • Often resolves on its own within seconds to a few minutes

Intercostal spasms aren’t usually serious. They can happen after exercise, heavy lifting, or any activity that strains your torso.

The Role of Stress

Stress amplifies your body’s normal reactions. Chronic stress can:

  • Keep your muscles in a constant low-level tension
  • Increase your awareness of minor sensations
  • Lower your threshold for noticing twitches or spasms
  • Disrupt sleep and make you more sensitive to discomfort

When stress is high, even routine muscle activity—like breathing—can feel pronounced. Practicing relaxation regularly can help reset your muscle tone and reduce fluttering sensations.

Other Possible Causes

While anxiety is a common culprit, it’s important to consider other explanations for a fluttering feeling under your ribs:

  • Gastrointestinal issues (gas, acid reflux)
  • Rip currents of air in the stomach (belching)
  • Cardiac palpitations (feeling your heartbeat in unusual places)
  • Nerve irritation (Thoracic radiculopathy)
  • Electrolyte imbalances (low magnesium or potassium)

If your flutter is accompanied by chest pain, shortness of breath, dizziness, or fainting, these less common causes should be evaluated by a healthcare professional.

When to Seek Immediate Medical Help

Although most rib-cage fluttering is benign, call emergency services or see a doctor right away if you experience any of the following:

  • Intense chest pain spreading to jaw, arm or back
  • Severe shortness of breath or difficulty speaking
  • Sudden weakness or numbness on one side of the body
  • Fainting or near-fainting episodes
  • Irregular heartbeat with lightheadedness

These symptoms could indicate a life-threatening condition such as a heart attack, pulmonary issue, or serious nerve problem.

How Healthcare Providers Diagnose the Cause

If you decide to see a doctor, here’s what typically happens:

  1. Medical history and symptom review
  2. Physical exam, including listening to your lungs and heart
  3. Lung function tests or chest X-ray (if breathing issues are suspected)
  4. Electrocardiogram (ECG) or heart monitoring (if palpitations are a concern)
  5. Blood tests to check electrolytes, inflammation markers, or hormones

A clear diagnosis helps you focus on the right treatment—whether that’s stress management, physical therapy, or a specific medical intervention.

Self-Help Strategies for Diaphragm Flutter and Intercostal Spasm

Most fluttering sensations respond well to simple, non-medical approaches. Try these techniques:

  • Practice slow, diaphragmatic breathing:
    • Inhale gently for 4 counts, letting your belly rise
    • Exhale for 6 counts, letting your belly fall
  • Perform gentle torso stretches:
    • Reach arms overhead and lean side to side
    • Twist your torso slowly while seated
  • Apply a warm compress to your rib area for 10–15 minutes
  • Maintain good posture:
    • Sit tall with shoulders back
    • Avoid slouching or hunching forward
  • Stay hydrated and maintain balanced electrolytes by eating fruits, vegetables, and nuts

Consistency is key—daily relaxation and stretching can reduce overall muscle tension and lower your chance of fluttering.

Managing Stress Long-Term

Since stress plays a central role in muscle spasms, consider these ongoing strategies:

  • Mindfulness or meditation (5–10 minutes daily)
  • Regular aerobic exercise (walking, cycling, swimming)
  • Yoga or Pilates for flexibility and core strength
  • Keeping a stress journal to identify triggers
  • Talking with a counselor or support group

Addressing the root cause—your stress—often brings the greatest relief from these physical symptoms.

Next Steps

If you’re unsure what’s causing your rib-cage flutter, you might try a free, online symptom check, using the doctor approved Ubie Symptom Checker. It’s a quick way to gather insights and decide whether you need medical attention.

Above all, trust your instincts. If anything feels life threatening or your symptoms worsen, speak to a doctor right away. Your health and peace of mind are worth it.

(References)

  • * Cryer PE. Phaeochromocytoma. Clin Endocrinol Metab. 1985 Feb;14(1):203-20. doi: 10.1016/s0300-595x(85)80070-0. PMID: 3893809.

  • * Pétursson H. The benzodiazepine withdrawal syndrome. Addiction. 1994 Nov;89(11):1455-9. doi: 10.1111/j.1360-0443.1994.tb03743.x. PMID: 7841856.

  • * Tyrer P, Baldwin D. Generalised anxiety disorder. Lancet. 2006 Dec 16;368(9553):2156-66. doi: 10.1016/S0140-6736(06)69865-6. PMID: 17174708.

  • * Cackovic C, Nazir S, Marwaha R. Panic Disorder. 2026 Jan. PMID: 28613692.

  • * Zeppieri M, Patel BC. Benign Essential Blepharospasm. 2026 Jan. PMID: 32809668.

  • * Jaeschke RR, Sujkowska E, Sowa-Kućma M. Methylphenidate for attention-deficit/hyperactivity disorder in adults: a narrative review. Psychopharmacology (Berl). 2021 Oct;238(10):2667-2691. doi: 10.1007/s00213-021-05946-0. Epub 2021 Aug 26. PMID: 34436651; PMCID: PMC8455398.

  • * Mahon SM, Carr E. Hot Flashes: Common Side Effect. Clin J Oncol Nurs. 2021 Dec 1;25(6):28. doi: 10.1188/21.CJON.S2.28. PMID: 34800125.

  • * Kowalchuk A, Gonzalez SJ, Zoorob RJ. Anxiety Disorders in Children and Adolescents. Am Fam Physician. 2022 Dec;106(6):657-664. PMID: 36521463.

  • * Szuhany KL, Simon NM. Anxiety Disorders: A Review. JAMA. 2022 Dec 27;328(24):2431-2445. doi: 10.1001/jama.2022.22744. PMID: 36573969.

  • * Kong CH, Min HS, Jeon M, Kang WC, Park K, Kim MS, Jung SY, Bae HJ, Park SJ, Shin HK, Seo CS, Ryu JH. Cheonwangbosimdan mitigates post-traumatic stress disorder-like behaviors through GluN2B-containing NMDA receptor antagonism in mice. J Ethnopharmacol. 2024 Aug 10;330:118270. doi: 10.1016/j.jep.2024.118270. Epub 2024 Apr 27. PMID: 38685368.

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.