Pericarditis: sharp chest pain, causes, tests and treatment explained
Pericarditis is swelling of the thin sac around the heart that often causes sharp chest pain. This article explains causes, symptoms, tests, treatment, recovery and when to seek urgent help.
Educational information only, not medical advice. Always ask a qualified doctor about your own health. In an emergency call 112 (India) or 911 (US). Read the full disclaimer.
Abstract
Background. Pericarditis is inflammation of the pericardium, the thin fluid-filled sac that surrounds the heart. It often causes sharp chest pain and is usually not serious, although it can sometimes lead to serious problems.
Key points. This review describes the typical pain, which is worse on deep breathing, coughing or lying down and eases when leaning forward. It explains that many cases follow a viral infection, while other causes include heart attack, heart surgery, injury and some medicines. It outlines the tests doctors use, such as an ECG and echocardiogram, the treatment options and the usual recovery time.
Conclusion. Chest pain should always be taken seriously because it can be a sign of a heart attack. Get medical advice promptly, and call emergency services for severe or spreading pain. Your doctor decides the treatment.
Keywords: pericarditis; pericarditis symptoms; sharp chest pain; inflammation around the heart; pericarditis treatment; pericarditis causes
In simple words
Pericarditis means the thin bag around your heart is swollen and sore.
What it feels like
- Sharp chest pain
- Pain that is worse when you breathe in deeply, cough, swallow or lie down
- Pain that gets better when you sit up and lean forward
- Sometimes a fever
Why it happens
Often it follows a virus, like a cold or flu. Other causes include a heart attack, heart surgery, an injury, some medicines and some long-term illnesses.
How doctors check
- They listen to your heart.
- They may do blood tests, a chest X-ray, an ECG and a heart ultrasound.
Treatment and recovery
Your doctor picks the treatment based on the cause. Most people feel better within weeks to a few months.
Get help fast
Chest pain can also be a heart attack. Call emergency services (112 in India, 911 in the United States) if the pain is heavy, spreads to the arm, neck or jaw, comes with breathlessness or sweating, or lasts more than 15 minutes. Do not drive yourself.
This is a short summary for general readers. Switch to for the details and references.
On this page
Chest pain has many causes, and one of them is swelling around the heart. This article explains pericarditis, how it is recognised and treated, and why any new chest pain needs medical advice. It draws on the NHS and MedlinePlus.
1. Introduction
The pericardium is a thin sac, filled with a little fluid, that surrounds the heart. Pericarditis means this sac is inflamed, which is swelling and irritation [1, 2]. The NHS says it is usually not serious but can sometimes lead to serious health problems, and that blood or fluid can leak into the sac [1]. MedlinePlus describes two related problems: pericardial effusion, which is a build-up of fluid in the sac, and cardiac tamponade, a serious condition in which the fluid stops the heart from working properly [3].
2. Signs and symptoms
The main symptom is chest pain. The NHS describes it as usually sharp or stabbing, and it may spread to the shoulders, arms or tummy [1]. Typical features include [1, 2]:
- Pain that gets worse with deep breaths, swallowing, coughing or lying down, especially on the left side
- Pain that eases when you sit up and lean forward
- A fever, or feeling hot, cold or shivery
- A dry cough and painful joints
MedlinePlus also lists leg or ankle swelling, tiredness, anxiety and trouble breathing when lying down [2]. A fast heartbeat can occur too, and MedlinePlus says fever is a common symptom of acute pericarditis [3].
3. Causes and risk factors
The exact cause is often hard to confirm, but the NHS says it is usually a viral infection, such as a cold or flu [1]. MedlinePlus explains that other causes include bacterial infections, heart attack, heart surgery, chest injury, chest radiation therapy and some medicines [2, 3]. It is linked with conditions such as autoimmune diseases, an underactive thyroid, kidney failure and tuberculosis [2]. It is most often seen in men aged 20 to 50, and MedlinePlus says the cause is often unknown [2].
4. Diagnosis and tests
A doctor will listen to your heart, because pericarditis can change the sounds. MedlinePlus says a friction (rubbing) sound may be heard and heart sounds may seem muffled [2]. To confirm the diagnosis the NHS says a doctor may arrange [1]:
- Blood tests
- A chest X-ray
- An electrocardiogram (ECG), which records the electrical activity of the heart. The NHS says an ECG is painless and some GP surgeries can do one [1]
- An echocardiogram, which is an ultrasound scan of the heart
MedlinePlus adds that heart MRI or CT scans, and blood tests for heart muscle damage, inflammation or infection, may be used [2].
5. Treatment and recovery
Treatment depends on the cause [1, 3]. The NHS says anti-inflammatory painkillers are commonly used to relieve the pain, and that sitting up or leaning forward can ease the pain. If these do not work or the problem returns, a doctor may prescribe a medicine called colchicine, and steroids may be considered if that is not enough. Antibiotics are used if a bacterial infection is the cause [1]. MedlinePlus says antifungal medicines treat fungal causes [2].
If a lot of fluid collects and affects the heart, doctors can drain it with a needle procedure. In persistent or repeated cases, surgery on the sac may be needed [2]. MedlinePlus says pericarditis is usually not life-threatening but can be dangerous without treatment [2]. Medicines should only be taken as your doctor advises.
The NHS says most people improve within a few weeks [1]. MedlinePlus gives a range of about 2 weeks to 3 months with prompt treatment. It warns that the condition can return and that severe cases may lead to scarring and thickening of the sac, called constrictive pericarditis, which can resemble heart failure [2].
6. Prevention
MedlinePlus says many cases cannot be prevented [2]. The NHS says anyone with chest pain should get medical advice [1].
Keeping a short record can help at your appointment. Note when the pain began, what makes it better or worse, and whether you had a cold, flu or other illness before it started, since the NHS says pericarditis often follows a viral infection [1]. Tell the doctor about every medicine you take, because MedlinePlus says some medicines can cause pericarditis [2]. Ask your doctor when it is safe to return to your usual activities. If the pain comes back after you have felt better, contact your doctor again, because MedlinePlus says pericarditis can recur [2]. Do not take extra painkillers beyond your doctor's instructions.
7. When to see a doctor
See a doctor urgently if you have sharp chest pain that gets worse when you breathe in deeply, swallow, cough or lie down [1]. The NHS advises calling emergency services for sudden chest pain that spreads to the arms, back, neck or jaw, feels tight or heavy, comes with breathlessness, sweating or sickness, or lasts more than 15 minutes, because it could be a heart attack. Do not drive yourself to hospital [1].
In an emergency, call your local emergency number (112 in India, 911 in the United States).
8. Conclusion
Pericarditis is swelling of the sac around the heart. It often follows a viral illness and most people improve within weeks to months with the right care. Because chest pain can be a sign of a heart attack, anyone with chest pain should get medical advice. Your doctor will decide which tests and treatment are right for you.
Common questions
How is pericarditis pain different from a heart attack?
The NHS says pericarditis pain is often sharp, worsens on deep breathing or lying down and eases when leaning forward. The NHS says anyone with chest pain should get medical advice (1).
What usually causes pericarditis?
The NHS says it is usually a viral infection such as a cold or flu, though the exact cause is often hard to confirm (1).
How long does recovery take?
The NHS says most people improve within a few weeks. MedlinePlus says recovery can take from 2 weeks to 3 months (1, 2).
Can pericarditis come back?
MedlinePlus says recurrence is possible, so follow-up with your doctor matters (2).
Important: please read
- Educational information only. This article is general health education. It is not medical advice, diagnosis or treatment. Reading it does not create a doctor–patient relationship with MyDoctor or with anyone else.
- Ask a qualified doctor. Always talk to a qualified, registered doctor about your own health. In India, that means a doctor registered with the National Medical Commission (NMC) or a State Medical Council. In the United States, a licensed physician. Elsewhere, a doctor licensed where you live.
- Never ignore or delay professional advice because of something you read here. Do not start, stop or change any medicine or treatment without your doctor.
- Emergencies: call 112 in India, 911 in the United States, or your local emergency number. Do not wait for an online answer.
- No product is endorsed. MyDoctor does not recommend any brand, product or supplement in this article.
- About the sources. This article summarises, in our own words, information from the public health bodies named under Sources. Health knowledge changes, and this summary may not reflect the latest research or your personal situation.
- Liability. To the extent permitted by law, MyDoctor (MODERNUS HEALTH TECHNOLOGIES PRIVATE LIMITED) accepts no liability for any decision made on the basis of this content.
References
- NHS. Pericarditis - NHS [Internet]. 2023 [cited 2026 Oct 19]. Available from: https://www.nhs.uk/conditions/pericarditis/
- NIH MedlinePlus. Pericarditis - MedlinePlus Medical Encyclopedia [Internet]. 2026 [cited 2026 Oct 19]. Available from: https://medlineplus.gov/ency/article/000182.htm
- NIH MedlinePlus. Pericardial Disorders - MedlinePlus [Internet]. 2025 [cited 2026 Oct 19]. Available from: https://medlineplus.gov/pericardialdisorders.html
Article information
- Article ID
- MDG-ART-CARDIO-0002
- Version
- 1
- Author and corresponding author
- Dr. Ambed Mishra, PharmD, PhD, Scientist and Chief Medical Officer, MyDoctor. Contact the author's office
- Written
- 2026 Oct 15
- Approved and published
- 2026 Oct 20
- Last reviewed
- 2026 Oct 19
- Next review due
- 2027 Oct 19
- Conflict of interest
- The author leads MyDoctor, which offers health services. No company paid for this article.
- Funding
- None.
Cite this article
Mishra A. Pericarditis: sharp chest pain, causes, tests and treatment explained [Internet]. MyDoctor Health Library. 2026 [updated 2026 Oct 20; cited 2026 Oct 20]. Available from: https://mydoctor.social/app/blog/pericarditis-sharp-chest-pain-causes-treatment
Mishra A. Pericarditis: sharp chest pain, causes, tests and treatment explained. MyDoctor Health Library. Published October 20, 2026. Updated October 20, 2026. Accessed October 20, 2026. https://mydoctor.social/app/blog/pericarditis-sharp-chest-pain-causes-treatment
Mishra, A. (2026, October 20). Pericarditis: sharp chest pain, causes, tests and treatment explained. MyDoctor Health Library. https://mydoctor.social/app/blog/pericarditis-sharp-chest-pain-causes-treatment

Dr. Ambed Mishra, PharmD, PhD
- Clinical Research
- Psychiatry
- Community Medicine
- Clinical Pharmacy
- Electronic Health Records
- Patient Outcomes Research
MyDoctor by MODERN US HEALTH, Austin, Texas. Ahmedabad, Gujarat. Bangalore, India.
Dr. Ambed Mishra is a clinical (patient care) scientist, author and former professor. He is Group CEO and Chief Medical Officer of MODERN US HEALTH (MODERN US GROUP), Austin, Texas, the group behind MyDoctor, and a senior consultant who teaches and trains MD/DO physicians, PharmD and PhD professionals, nurses and other healthcare professionals in patient care in the United States and India.
More about Dr. Ambed Mishra
- More than ten years of full-time leadership in United States healthcare, building patient care services that improve medication adherence and bring doctors, pharmacists and nurses together around each patient.
- Leads the MD and engineering teams behind MyDoctor: clinic and hospital management software, electronic health records and telehealth for hospitals and physician groups in the United States and India.
- Former Assistant Professor and Clinical Preceptor at Rajiv Gandhi University of Health Sciences, Bangalore, and senior researcher with hospitals, universities and patient care groups in India and the United States.
- More than 30 published research and review articles and case reports, and more than 15 international conference presentations in India, Australia, Canada, the United States, Spain and other countries.
- Chief Medical Officer and Global Program Head of a nonprofit mission that helps cover hospital and doctor visit bills for patients in need in India, Nepal, the United States and other countries.
The author's office answers questions about articles, research, speaking and collaboration. It cannot give personal medical advice.