Pericarditis and myocarditis are both forms of heart inflammation, but they affect different layers of the heart and behave differently. Pericarditis is inflammation of the pericardium, the protective sac surrounding the heart. Myocarditis is inflammation of the myocardium, the muscular wall that actually pumps blood. The two conditions share some symptoms, especially chest pain and fever, but they differ in how that pain feels, what complications they carry, and how recovery looks.
Different Layers, Different Problems
The heart wall has three layers. The innermost is the endocardium, the thick muscular middle layer is the myocardium, and the outermost is the epicardium. Wrapping around all of this is the pericardium, a double-walled fibrous sac made of connective tissue that holds the heart in place and produces a small amount of lubricating fluid.
When the pericardium becomes inflamed, that fluid production can increase, creating pressure around the heart. When the myocardium becomes inflamed, the heart’s ability to contract and pump blood is what’s at risk. This fundamental difference shapes nearly everything about how each condition presents, what doctors worry about, and what recovery involves.
How the Chest Pain Differs
Both conditions cause chest pain, but pericarditis has a more distinctive pattern. The pain tends to be sudden and sharp, often worsening when you lie down and improving when you sit up and lean forward. It can also get worse with deep breaths, a quality called pleuritic pain. This positional pattern is one of the most recognizable clues pointing toward pericarditis.
Myocarditis chest pain is less predictable. It doesn’t follow the same positional rules and can feel more like a dull pressure or ache. In some cases, myocarditis chest pain mimics a heart attack, which makes it harder to identify without further testing. Both conditions commonly cause fever, but pericarditis is more likely to present as a short-lived, clearly defined episode, while myocarditis can develop more gradually alongside fatigue, shortness of breath, and a general sense of feeling unwell.
Common Causes and Triggers
Viral infections are the leading cause of both conditions in developed countries. Coxsackievirus, Epstein-Barr virus, hepatitis B and C, influenza, and HIV have all been linked to heart inflammation. SARS-CoV-2, the virus behind COVID-19, was identified early in the pandemic as a trigger for both myocarditis and pericarditis, and the two conditions frequently coexist in infected patients.
In developing countries, tuberculosis is a common cause of pericarditis and tends to carry worse outcomes. Non-infectious triggers also play a role. Autoimmune diseases, certain cancers, kidney failure, and chest injuries or surgeries can all provoke inflammation in either layer. mRNA COVID-19 vaccines were associated with rare cases of both conditions, though the overall risk remained low.
One important nuance: myocarditis doesn’t always require a large amount of virus in the heart tissue. Animal models show that even with barely detectable levels of a virus, an autoimmune response can develop that closely mimics the damage seen in full-blown viral myocarditis. This means the immune system’s overreaction, not just the infection itself, can drive the disease.
How Doctors Tell Them Apart
Pericarditis is diagnosed when at least two of the following are present: characteristic chest pain, a scratchy sound called a pericardial friction rub heard through a stethoscope, specific changes on an ECG, or fluid around the heart visible on imaging.
The ECG pattern in pericarditis is fairly distinctive. ST-segment elevation appears across multiple leads in a concave shape, sometimes described as a “happy face” curve. This differs from a heart attack, where the ST elevation tends to be convex (a “sad face” curve) and localized to specific leads with reciprocal depression in others. The widespread, concave pattern is a hallmark of pericarditis.
Myocarditis is trickier to pin down on ECG alone. Doctors rely more heavily on blood tests and imaging. Troponin, a protein released when heart muscle cells are damaged, is typically elevated in myocarditis. It can also be mildly elevated in pericarditis, but when inflammation markers like C-reactive protein (CRP) are high and troponin is only modestly raised, that pattern points more toward an inflammatory process like pericarditis rather than direct muscle damage. A heart attack, by contrast, tends to show high troponin with relatively low CRP. Cardiac MRI is particularly useful for myocarditis because it can reveal inflammation within the heart muscle itself and show whether the heart’s pumping ability has been affected.
When Both Occur Together
Because the heart’s layers sit right next to each other, inflammation often crosses boundaries. When pericarditis is the dominant problem but there’s also evidence of mild heart muscle involvement (slightly elevated troponin, for example, with normal heart function), the condition is called myopericarditis. When the myocardium is more significantly affected, with reduced pumping function or abnormal wall motion visible on imaging, the term perimyocarditis is used instead.
The distinction matters because the prognosis is different. Myopericarditis, where pericarditis leads and muscle involvement is minimal, generally behaves more like straightforward pericarditis. Perimyocarditis, where the muscle is more compromised, carries the higher risks associated with myocarditis.
Complications and What’s at Stake
The complications reflect which layer is inflamed. Pericarditis can lead to a buildup of fluid in the pericardial sac. If that fluid accumulates quickly or in large volume, it can compress the heart and prevent it from filling properly, a life-threatening emergency called cardiac tamponade. Pericarditis can also become chronic or recurrent, with inflammation flaring repeatedly over months or years.
Myocarditis carries a different set of risks. Because the heart muscle itself is damaged, myocarditis can cause heart failure, dangerous irregular heart rhythms, and in severe cases, sudden cardiac death. Over time, some patients develop dilated cardiomyopathy, a condition where the heart becomes enlarged and weakened. These complications make myocarditis generally the more serious of the two conditions, though most mild cases still resolve.
Recovery Timelines
Pericarditis often improves within days to a couple of weeks with anti-inflammatory treatment. The main challenge is recurrence. A significant number of people who have one episode of pericarditis will experience at least one more, sometimes requiring longer courses of treatment to keep inflammation from coming back.
Myocarditis recovery is more variable. According to cardiologist Dr. Weber, speaking to the American Medical Association, about 50% of patients with biopsy-confirmed myocarditis recover within two to four weeks. But recovery demands patience: patients are typically advised to avoid exercise for three to six months to reduce the risk of dangerous heart rhythms during the healing period. For those with more significant symptoms, including abnormal cardiac MRI findings or elevated biomarkers, recurrence runs about 3% to 10% per year.
The exercise restriction is one of the most practical differences between the two conditions. While people recovering from pericarditis are also advised to limit intense physical activity, myocarditis requires a longer and stricter period of rest because an inflamed heart muscle is vulnerable to rhythm disturbances under physical stress.

