Doctors Note Logo

Published on: 9/16/2026

Could sharp pain under my ribs be my heart or a blood clot instead of my diaphragm?

Sharp pain under the ribs often comes from the diaphragm, rib muscles, or digestive organs, but it can also point to a heart issue or a pulmonary embolism (a blood clot in the lung), so the location alone does not confirm the cause. Red flags that suggest something more serious include pain that sharpens with each deep breath, shortness of breath, a racing heartbeat, coughing up blood, dizziness, sweating, nausea, or pressure spreading into the arm, jaw, neck, or back. Risk factors like recent surgery or immobility, long flights, pregnancy, hormonal birth control, smoking, cancer, or a prior clot meaningfully change how urgently this should be evaluated. There are several factors to weigh, including how the pain started, whether breathing or movement affects it, and which side it favors, so see below for the details that matter most before you decide what to do next.

Because heart and clot-related chest pain can imitate a harmless muscle strain, the safest next step is to organize your symptoms rather than guess: a free, instant, online symptom check asks the same targeted questions a clinician would, flags urgent warning signs, and helps you understand whether this warrants emergency care, a same-day appointment, or watchful waiting.

Last reviewed for medical accuracy: 09/15/2026

answer background

Explanation

Could Sharp Pain Under My Ribs Be My Heart or a Blood Clot Instead of My Diaphragm?

Sharp pain under the ribs can be alarming. Many people wonder if it’s a simple diaphragm strain or something more serious—like a heart issue or a blood clot. This guide explains common causes, how to tell them apart, and when to seek help. Always remember that only a healthcare professional can diagnose your condition; if you’re ever in doubt, speak to a doctor.


1. Understanding the Diaphragm and Its Role

The diaphragm is a dome-shaped muscle that separates your chest cavity from your abdomen. It plays a vital role in breathing:

  • When you inhale, the diaphragm contracts and moves downward, creating space for your lungs to expand.
  • When you exhale, it relaxes and moves upward, helping push air out of your lungs.

Because it sits right under your ribcage, diaphragm irritation or strain can cause pain that feels like it’s “under your ribs.”

Common diaphragm-related pain features:

  • Sharp or stabbing sensations, especially when taking a deep breath, coughing, laughing, or sneezing.
  • A feeling of tightness or pulling under one or both sides of the ribcage.
  • Often improves with rest and gentle stretching.

Causes of diaphragm pain:

  • Muscle strain (from heavy lifting, intense coughing or sneezing).
  • Irritation from acid reflux (stomach acid irritating the lower esophagus and diaphragm).
  • Hiatal hernia (part of the stomach pushes up through the diaphragm).

2. Could It Be Your Heart?

Heart-related pain under the ribs is less common than chest pain, but it can refer (radiate) to the upper abdomen. Key heart causes include:

A. Myocardial Ischemia or Heart Attack

  • Typically felt as pressure, squeezing, or burning in the center of the chest.
  • May radiate to the jaw, left arm, back or upper abdomen.
  • Often accompanied by sweating, nausea, shortness of breath, or light-headedness.

B. Pericarditis (Inflammation of the Heart Lining)

  • Sharp, stabbing pain that worsens when lying down and eases when leaning forward.
  • May be relieved by sitting up and leaning forward.
  • Can be linked to viral infections, autoimmune diseases, or after a heart attack.

C. Angina (Reduced Blood Flow to the Heart)

  • Predictable chest or upper abdominal discomfort during exertion or stress.
  • Typically relieved by rest or nitroglycerin (under doctor’s guidance).

How to distinguish heart pain:

  • Associated symptoms: sweating, nausea, palpitations, shortness of breath.
  • Pain does not change significantly with breathing or position.
  • Often occurs with physical activity or emotional stress.

3. Could It Be a Blood Clot (Pulmonary Embolism)?

A blood clot in the lung (pulmonary embolism, or PE) can cause sharp, pleuritic pain—that is, pain worsened by breathing—in the chest or upper abdomen.

Key features of pulmonary embolism:

  • Sudden onset of sharp chest or upper abdominal pain, often one-sided.
  • Worsens with deep breaths (pleuritic).
  • Shortness of breath, rapid breathing, fast heart rate, or cough (possibly with blood).
  • Risk factors: recent surgery, long flights or car rides, sedentary lifestyle, cancer, pregnancy, certain birth control pills, or a history of blood clots.

4. Other Possible Causes of Sharp Rib Pain

While diaphragm irritation, heart issues, and blood clots are important to consider, other conditions can mimic these symptoms:

A. Gastrointestinal

  • Gallbladder disease (gallstones or cholecystitis): sharp pain under the right ribs, often after fatty meals.
  • Peptic ulcer or gastritis: burning pain in the upper abdomen, sometimes referred to the ribs.

B. Pulmonary

  • Pleurisy (inflammation of lung lining): sharp pain with deep breaths, cough, or movement.
  • Pneumonia: pain plus cough, fever, chills, sputum production.

C. Musculoskeletal

  • Costochondritis: inflammation where ribs attach to the breastbone; pressing on the ribs reproduces pain.
  • Rib fracture or bruised ribs: history of trauma, pain worsens with movement or pressure.

D. Other

  • Splenic issues (enlarged spleen or rupture): left-sided pain under ribs, possibly after a blow to the abdomen.
  • Kidney stones: sharp flank pain that may radiate to the groin, often with urinary symptoms.

5. When to Seek Immediate Medical Attention

Some symptoms around the ribs are emergencies. Call 911 or go to the nearest emergency department if you have:

  • Sudden, severe chest or upper abdominal pain.
  • Pain radiating to your jaw, back, arm, or shoulder.
  • Difficulty breathing, shortness of breath at rest.
  • Rapid or irregular heartbeat.
  • Fainting, light-headedness or near-syncope.
  • Coughing up blood.
  • Severe indigestion-type pain unrelieved by antacids.

6. Diagnostic Steps You Might Encounter

When you see a doctor, they’ll take a detailed history and do a physical exam. Depending on findings, tests may include:

  • Blood tests: cardiac enzymes (to check for heart damage), D-dimer (to screen for clots).
  • Electrocardiogram (ECG): checks heart rhythm and signs of ischemia.
  • Chest X-ray: looks for lung inflammation, rib fractures, or other abnormalities.
  • Ultrasound (echocardiogram): visualizes heart function and pericardial effusion.
  • CT scan with contrast: high accuracy for pulmonary embolism and detailed chest imaging.
  • Endoscopy or abdominal ultrasound: evaluates gallbladder, liver, stomach, and diaphragm region.

7. What You Can Do Right Now

  • Note your pain pattern: onset, location, quality (sharp, dull, burning), triggers (breathing, movement, eating), and any associated symptoms.
  • Try gentle diaphragmatic breathing and avoid heavy lifting or harsh twisting.
  • Use over-the-counter antacids if you suspect mild acid reflux—but only for a short course.
  • Stay hydrated and maintain light activity to reduce clot risk (unless otherwise directed by your doctor).

For a quick check of your symptoms and personalized guidance, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. This tool can help you decide how urgently you need to seek in-person care.


8. Key Takeaways

  • Sharp pain under the ribs may originate from the diaphragm, heart, lungs, gallbladder, spleen, or ribs themselves.
  • Heart-related pain often includes pressure, radiation, sweating, and is not influenced by breathing.
  • Pulmonary embolism causes pleuritic pain with shortness of breath and carries risk factors (recent travel, surgery, immobilization).
  • Gastrointestinal and musculoskeletal issues are common but still warrant evaluation if severe or persistent.
  • Always err on the side of caution—seek immediate care for sudden, severe, or worrying symptoms.

9. Next Steps

No online guide can replace a personal medical evaluation. If your pain is severe, persistent, or accompanied by any red-flag symptoms, please speak to a doctor or go to the emergency department. Your health is too important to wait—early evaluation can make all the difference.

(References)

  • * Owens GM. Chest pain. Prim Care. 1986 Mar;13(1):55-61. PMID: 3633596.

  • * McNeely W, Goa KL. Triflusal. Drugs. 1998 Jun;55(6):823-33; discussion 834-5. doi: 10.2165/00003495-199855060-00011. PMID: 9617597.

  • * Lackie CL, Luzier AB, Donovan JA, Feras HI, Forrest A. Weight-based heparin dosing: clinical response and resource utilization. Clin Ther. 1998 Jul-Aug;20(4):699-710. doi: 10.1016/s0149-2918(98)80133-1. PMID: 9737830.

  • * de Lorgeril M, Salen P, Martin JL, Monjaud I, Delaye J, Mamelle N. Mediterranean diet, traditional risk factors, and the rate of cardiovascular complications after myocardial infarction: final report of the Lyon Diet Heart Study. Circulation. 1999 Feb 16;99(6):779-85. doi: 10.1161/01.cir.99.6.779. PMID: 9989963.

  • * Hirsh J, Warkentin TE, Shaughnessy SG, Anand SS, Halperin JL, Raschke R, Granger C, Ohman EM, Dalen JE. Heparin and low-molecular-weight heparin: mechanisms of action, pharmacokinetics, dosing, monitoring, efficacy, and safety. Chest. 2001 Jan;119(1 Suppl):64S-94S. doi: 10.1378/chest.119.1_suppl.64s. PMID: 11157643.

  • * Sabol BJ, Basa RR, Wilkins CE. Malabsorption-associated warfarin resistance. Am J Health Syst Pharm. 2009 Sep 1;66(17):1548-53. doi: 10.2165/ajhp080477. PMID: 19710438.

  • * Shah AY, Jamison M, Otero HJ, Jung L, Frank LH, Guerrera MF, Kirkorian AY. A 17-Year-Old With Chest Pain. Pediatrics. 2017 Mar;139(3):e20160794. doi: 10.1542/peds.2016-0794. 2017 Feb 3. PMID: 28159870.

  • * Alhassan S, Pelinescu A, Gandhi V, Naddour M, Singh AC, Bihler E. Clinical Presentation and Risk Factors of Venous Thromboembolic Disease. Crit Care Nurs Q. 2017 Jul/Sep;40(3):201-209. doi: 10.1097/CNQ.0000000000000159. PMID: 28557891.

  • * Reamy BV, Williams PM, Odom MR. Pleuritic Chest Pain: Sorting Through the Differential Diagnosis. Am Fam Physician. 2017 Sep 1;96(5):306-312. PMID: 28925655.

  • * Ocon AJ, Reed G, Pappas DA, Curtis JR, Kremer JM. Short-term dose and duration-dependent glucocorticoid risk for cardiovascular events in glucocorticoid-naive patients with rheumatoid arthritis. Ann Rheum Dis. 2021 Dec;80(12):1522-1529. doi: 10.1136/annrheumdis-2021-220577. 2021 Jul 2. PMID: 34215644.

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.