Our Services
Medical Information
Helpful Resources
Published on: 9/16/2026
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
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.
The diaphragm is a dome-shaped muscle that separates your chest cavity from your abdomen. It plays a vital role in breathing:
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:
Causes of diaphragm pain:
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:
How to distinguish heart pain:
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:
While diaphragm irritation, heart issues, and blood clots are important to consider, other conditions can mimic these symptoms:
Some symptoms around the ribs are emergencies. Call 911 or go to the nearest emergency department if you have:
When you see a doctor, they’ll take a detailed history and do a physical exam. Depending on findings, tests may include:
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.
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.
We would love to help them too.
For First Time Users
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.