Our Services
Medical Information
Helpful Resources
Published on: 6/17/2026
Sharp chest pain that worsens when lying flat and improves when sitting up is a hallmark sign of pericarditis—inflammation of the sac surrounding the heart. Doctors typically diagnose pericarditis through a physical exam, electrocardiogram (ECG), imaging tests, and blood work, then treat it with anti-inflammatory medications such as NSAIDs or colchicine.
Several factors influence diagnosis and recovery, including underlying triggers (viral infections, autoimmune conditions, or recent heart procedures), treatment plans, and the risk of complications like fluid buildup or recurrence. Complete details are provided below.
Because chest pain can stem from many causes—some serious—it's important to identify what's driving your symptoms quickly. Take this free, instant, online symptom check to get personalized insight into possible conditions and clear guidance on your next steps. It takes only a few minutes and could help you decide whether to see a doctor today or monitor at home.
Reviewed for medical accuracy: 06/17/2026
Pericarditis is an inflammation of the pericardium, the thin sac that surrounds your heart. One of its hallmark symptoms is sharp, stabbing chest pain that often worsens when you lie flat and improves when you sit up or lean forward. While pericarditis can be alarming, understanding its signs, causes, and treatments can help you take prompt, appropriate action without unnecessary anxiety.
Symptoms of pericarditis can range from mild discomfort to severe, sharp pain. Key signs include:
If you're experiencing chest pain that worsens when lying down along with any of these symptoms, Ubie's free AI-powered Acute Pericarditis symptom checker can help you understand whether your symptoms align with pericarditis and what steps to take next.
Pericarditis has many triggers. Understanding the potential causes can help you and your doctor pinpoint the best treatment:
In many cases, no clear cause is found; this is termed idiopathic pericarditis.
A thorough evaluation by a healthcare provider typically includes:
Medical history & physical exam
Electrocardiogram (ECG/EKG)
Chest X-ray or CT scan
Echocardiogram (ultrasound of the heart)
Blood tests
Most cases of pericarditis are acute and respond well to medical therapy. Treatment goals are to relieve pain, reduce inflammation, and treat any underlying cause.
Non-steroidal anti-inflammatory drugs (NSAIDs)
Colchicine
Corticosteroids (e.g., prednisone)
Antibiotics or antifungals
Pericardiocentesis
Hospital monitoring
Although most cases resolve within weeks, complications can occur if pericarditis is untreated or severe:
Early diagnosis and treatment greatly reduce these risks.
While not all cases of pericarditis can be prevented, you can lower your risk by:
Some symptoms warrant urgent evaluation:
If you experience any of these, call emergency services or go to the nearest emergency department. Always err on the side of caution: chest pain can be a sign of other serious conditions like a heart attack.
Even if your symptoms seem mild, it's important to discuss any unusual chest pain with a healthcare professional. Be prepared to:
If you're unsure whether your symptoms could be related to Acute Pericarditis, try Ubie's free AI-powered symptom checker for personalized insights before your doctor's appointment. And remember: any chest pain that could be life-threatening or seriously impacts your breathing or consciousness requires prompt medical evaluation. Speak to a doctor to get the right tests and treatment plan for your situation.
(References)
* Imazio M, Gaita F, LeWinter M. Diagnosis and Treatment of Pericarditis. Circulation. 2015 Oct 20;132(16):1549-54. PMID: 26482810.
* Adler Y, Charron P, Imazio M, et al. 2015 ESC Guidelines for the diagnosis and management of pericardial diseases. Eur Heart J. 2015 Nov 7;36(42):2921-64. PMID: 26322045.
* Chiabrando JG, Bonaventura A, Vecchié A, et al. Management of Acute Pericarditis: A Review. JAMA. 2020 Jan 14;323(2):155-165. PMID: 31934572.
* López-Menéndez M, Imazio M. Update on Pericardial Diseases. Curr Treat Options Cardiovasc Med. 2021 May 1;23(5):34. PMID: 33822262.
* Imazio M, Badano L, Baschetti R, et al. Pericarditis: an update. Curr Opin Cardiol. 2018 Sep;33(5):542-550. PMID: 30028246.
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.