Myocarditis is inflammation of the heart muscle (the myocardium), most often set off by a viral infection. It can be so mild that it goes unnoticed, or it can cause chest pain, shortness of breath, a racing or uneven heartbeat, and heart failure. Most people recover fully, but because the heart is healing, doctors advise avoiding hard exercise for several months.
Key points
- Common viruses, including those that cause colds, the flu and COVID-19, are the usual triggers.
- Symptoms often start days to weeks after a viral illness.
- Blood tests, an ECG, an ultrasound of the heart and a heart MRI help confirm it.
- Treatment supports the heart while it heals. Rare severe types need medicines that calm the immune system.
- Most people get better within weeks to months. A few are left with a weaker heart and need long-term care.
What causes myocarditis
Heart muscle can be damaged directly by a germ, and also by the immune system as it fights the infection. Often the immune response does more harm than the germ itself.
Infections
- Viruses cause most cases in the US. They include enteroviruses such as coxsackievirus, adenovirus, parvovirus B19, herpes viruses, influenza (the flu), COVID-19, hepatitis C and HIV.
- Bacteria are less common causes. Lyme disease, spread by ticks, can inflame the heart and slow its rhythm. Diphtheria, caused by the bacterium Corynebacterium diphtheriae, can damage the heart but is now rare in the US because of vaccines.
- Parasites. Chagas disease, spread by insects called kissing bugs in parts of Mexico and Central and South America, can enlarge and weaken the heart years after infection.
- Fungi, mostly in people with very weak immune systems
Other causes
- Medicines, such as some cancer immunotherapy drugs (checkpoint inhibitors), clozapine, and allergic reactions to certain drugs
- Vaccines, rarely. mRNA COVID-19 vaccines can cause myocarditis, mostly in teen boys and young men within a week of a dose. Most of these cases are mild. COVID-19 infection itself can also cause myocarditis.
- Autoimmune diseases, such as lupus and sarcoidosis
- Drugs such as cocaine and methamphetamine
Types of myocarditis
When doctors look at a tiny sample of heart muscle under a microscope, they can name the type. Lymphocytic myocarditis is the most common and is usually linked to viruses. Rarer types include giant cell myocarditis, which can worsen quickly, and eosinophilic myocarditis, often linked to allergies or medicines. These rarer types need specific immune treatment.
Myocarditis symptoms
- Chest pain, which can feel like pressure or a sharp ache
- Shortness of breath, at rest or with activity, or when lying flat
- A fast, pounding or irregular heartbeat
- Tiredness and feeling weak
- Swelling in the legs, ankles or feet
- Lightheadedness or fainting
- Fever, body aches, sore throat or diarrhea from the infection that came first
Babies and young children may breathe fast, feed poorly, be very fussy or seem unusually sleepy. In rare cases, the first sign is a dangerous heart rhythm or sudden collapse, sometimes during sports.
Most chest pain in young adults comes from muscles, acid reflux or anxiety. But chest pain with shortness of breath, a racing heart or fainting, especially after a recent viral illness, needs prompt medical care at any age.
How it’s diagnosed
- ECG (electrocardiogram), which records the heart’s electrical activity
- Blood tests, including troponin, which rises when heart muscle is damaged, and markers of inflammation
- Echocardiogram, an ultrasound that shows how well the heart squeezes
- Cardiac MRI, the most useful scan for spotting swelling and scarring in the heart muscle
- Tests of the heart arteries, such as a CT scan or catheter test, to rule out a heart attack, which can look similar
- Heart biopsy, taking tiny samples through a thin tube in a vein, if myocarditis is severe or not improving
How myocarditis is treated
Many people are watched in the hospital at first, because heart rhythm problems can appear suddenly. Treatment depends on how sick you are and what caused it.
- Rest from hard exercise. Competitive sports and intense workouts are usually off-limits for 3 to 6 months, until tests show the heart has healed.
- Heart failure medicines, if the heart is weak. These may include ACE inhibitors or similar drugs, beta-blockers, water pills (diuretics) and SGLT2 inhibitors.
- Treatment for heart rhythm problems, which may include medicines, a pacemaker or an implanted defibrillator.
- Immune treatment, such as steroids and other drugs that calm the immune system, for giant cell, eosinophilic or sarcoid myocarditis, and for myocarditis caused by cancer immunotherapy.
- Treatment of the cause, such as antibiotics for Lyme disease or medicines for early Chagas disease.
- Machines that support the heart, in the rare cases where it fails badly. Some people recover once the heart rests, and a few need a heart transplant.
Pain relievers such as ibuprofen help pericarditis, but doctors are more careful with them when the heart muscle is inflamed. Ask before taking them.
Recovery and follow-up
Most people with mild myocarditis feel back to normal within a few weeks to a few months. Follow-up visits, with an echocardiogram, heart rhythm monitoring and sometimes a repeat MRI, check that the heart has healed before you return to sports. Some people are left with a weak, enlarged heart (dilated cardiomyopathy) or scarring that can cause rhythm problems, and they need ongoing treatment. Myocarditis comes back in a small number of people.
Lowering your risk
- Keep up with vaccines, including flu, COVID-19 and tetanus-diphtheria boosters.
- Wash your hands often to avoid viral infections.
- Protect yourself from ticks outdoors.
- Don’t use cocaine or methamphetamine.
- When traveling in rural Latin America, use bed nets and avoid sleeping in mud or thatched houses where kissing bugs live.
- Rest and skip intense exercise while you have a fever or feel sick with a virus.
When to see a doctor
See a doctor promptly for chest pain, shortness of breath, a racing heart or new leg swelling, especially in the weeks after a viral illness.
Call 911 for severe chest pain, trouble breathing, fainting, or a heartbeat that is very fast or irregular.
Common questions about myocarditis
Is myocarditis permanent?
Usually not. Most people with mild myocarditis recover fully within weeks to months, and the heart returns to normal. Some are left with a weaker heart muscle or scarring that needs long-term medicine and checkups. Follow-up tests show whether your heart has healed completely.
Can you drink alcohol with myocarditis?
It’s best to avoid alcohol while your heart is healing. Alcohol can trigger irregular heart rhythms, interact with heart medicines, and in large amounts weaken heart muscle on its own. Once you’ve recovered, ask your cardiologist whether small amounts are fine for you.
What is myopericarditis?
Myopericarditis means both the heart muscle and the thin sac around the heart (the pericardium) are inflamed. When the sac is mainly affected, people usually have sharp chest pain that is worse lying down and better leaning forward. It is often milder than myocarditis alone and is treated with anti-inflammatory medicines and rest.
Can a bug bite cause an enlarged heart?
Yes, in the case of Chagas disease. Kissing bugs in parts of Latin America can pass a parasite through their droppings near a bite. Years later, it can enlarge and weaken the heart. Blood tests can check for it, and early treatment with antiparasitic medicine lowers the risk of heart damage.
Questions to ask your doctor
- What caused my myocarditis?
- How well is my heart pumping now?
- When can I return to exercise and sports?
- Which follow-up tests will I need, and how often?
- Which symptoms mean I should seek care right away?
Learn more
- Heart inflammation (National Heart, Lung, and Blood Institute)
- Myocarditis (MedlinePlus, U.S. National Library of Medicine)
This guide is general information and doesn’t replace advice from your own doctor. Last updated October 2026.





