For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Bacterial endocarditis

Bacterial endocarditis is a serious infection of the inner lining of the heart, usually the heart valves, caused by bacteria that spread through the bloodstream.

Overview

Bacterial endocarditis is an infection of the endocardium, the thin, smooth lining on the inside of your heart. It most often affects the heart valves, the small flaps that keep blood flowing in the right direction. Doctors often use the broader medical name infective endocarditis, which also includes rare infections caused by fungi.

The infection starts when bacteria get into your bloodstream and stick to a part of the heart that is already damaged or to an artificial (prosthetic) valve or device. There, the bacteria grow into clumps called vegetations. These clumps can damage the valve so it leaks, and small pieces can break off and travel to other parts of the body, such as the brain, lungs, kidneys or spleen.

Endocarditis is not common, but it is serious. It needs care in hospital and long courses of antibiotics, and some people need heart surgery. With quick diagnosis and treatment, many people recover well.

Acute and subacute forms

  • Acute endocarditis comes on quickly over days, with high fever and feeling very unwell. It is often caused by Staphylococcus aureus, a common skin germ, and can damage a valve quickly.
  • Subacute bacterial endocarditis develops slowly over weeks or months. Symptoms can be vague, like tiredness, low fever and weight loss. It is often caused by streptococci from the mouth or by enterococci from the gut or urinary tract.

Symptoms

Symptoms can be very different from person to person. They may be sudden or build slowly, which is why endocarditis is sometimes missed at first.

Common symptoms

  • Fever and chills, which may come and go
  • Feeling very tired or weak
  • Night sweats
  • Aching muscles and joints
  • Loss of appetite and weight loss
  • Shortness of breath, or a new or changed heart murmur (a whooshing sound a doctor hears with a stethoscope)
  • Swelling in the feet, legs or belly

Less common signs

  • Tiny red or purple spots on the skin, inside the mouth or in the whites of the eyes (petechiae)
  • Thin dark red lines under the fingernails or toenails (splinter hemorrhages)
  • Small, painful bumps on the fingers or toes
  • Flat, painless red spots on the palms or soles
  • Blood in your urine
  • Pain in the left side of your belly, from the spleen

Sometimes the first sign is a complication, such as a stroke, sudden weakness or a painful, cold arm or leg caused by a clump blocking a blood vessel.

Causes

Bacteria can enter your blood in many everyday ways, such as brushing your teeth, chewing or having a skin cut. Usually your immune system clears them quickly. Endocarditis happens when bacteria settle on a spot in the heart where they can stick and grow, often a valve with rough or damaged surfaces.

Common bacteria include:

  • Staphylococci, including Staphylococcus aureus, from the skin. These are the most common cause today, especially linked to injecting drugs, hospital care, IV lines and heart devices.
  • Streptococci from the mouth (viridans group streptococci), often linked to gum disease or poor dental health.
  • Enterococci from the bowel or urinary tract, more common in older adults.
  • Other, less common bacteria, including a slow-growing group known as HACEK organisms.

You cannot catch endocarditis from another person. It is the bacteria in your own blood that cause it.

Risk factors

Anyone can get endocarditis, but your risk is higher if you have:

  • An artificial heart valve, or a valve that was repaired with artificial material
  • Had endocarditis before
  • Some types of heart defects present from birth (congenital heart disease), especially if not fully repaired
  • Heart valve disease, such as a narrowed or leaky valve, including damage from rheumatic fever
  • A pacemaker or implanted defibrillator
  • A history of injecting drugs
  • A long-term IV line, a catheter, or kidney dialysis
  • Poor dental health or gum disease
  • A weakened immune system, diabetes or older age

Diagnosis

Your doctor will ask about your symptoms and health history and listen to your heart. Because no single test proves endocarditis, doctors combine several results.

Common tests

  • Blood cultures: several samples of blood are taken, usually from different sites and before antibiotics start, to grow and identify the bacteria. This also shows which antibiotics will work.
  • Echocardiogram: an ultrasound scan of the heart. A standard scan through the chest (transthoracic echo) is usually first. A more detailed scan with a thin probe passed down the throat (transesophageal echo, or TEE) is often needed, especially if you have an artificial valve.
  • Blood tests: such as a blood count, markers of inflammation and kidney tests.
  • Urine test: to look for blood or protein.
  • ECG (electrocardiogram): to check your heart rhythm.
  • Other scans: such as a CT, MRI or PET-CT scan, to look for spread of infection or problems in the brain, spleen or other organs.

A dental check is often done to find and treat any source of infection in the mouth.

Treatment

Treatment starts in hospital. Your care is often guided by an endocarditis team, which may include heart doctors, infection specialists and heart surgeons.

Antibiotics

Antibiotics are the main treatment. They are given through a vein (intravenously) for a long time, usually 4 to 6 weeks, because bacteria hidden in vegetations are hard to reach. The choice depends on which bacteria are found and whether you have an artificial valve. Medicines that may be used include:

  • penicillin or ampicillin, for streptococci and enterococci
  • nafcillin, oxacillin or cefazolin, for staphylococci that respond to these drugs
  • vancomycin or daptomycin, for resistant staphylococci (MRSA) or if you are allergic to penicillin
  • ceftriaxone, an option for many streptococcal infections
  • gentamicin and sometimes rifampin, added in certain cases, such as some artificial valve infections

You will have regular blood tests to check that the infection is clearing and that the medicines are not harming your kidneys or hearing. Some people who are stable can finish their antibiotics at home with IV care, or switch to antibiotic pills, if their care team agrees.

Surgery

About a quarter to half of people with endocarditis need heart surgery. Surgery may be needed to repair or replace a damaged valve, remove large vegetations, drain an abscess (a pocket of pus) or remove an infected pacemaker or device. Reasons include heart failure, infection that does not clear, or a high risk of clumps breaking off.

Living with it and recovery

Recovery takes time. You may feel tired for weeks or months after treatment. Some tips that may help:

  • Take every dose of your antibiotics, and go to all follow-up visits and blood tests.
  • Keep your teeth and gums healthy. Brush twice a day, floss and see your dentist regularly.
  • Tell every doctor and dentist that you have had endocarditis.
  • Look after your skin. Avoid tattoos and piercings, and clean cuts well.
  • If you use drugs, ask about support to stop, and about safer-use services. Never share needles.
  • Ask whether cardiac rehabilitation, a supervised exercise and education program, is right for you after surgery.

If you have had endocarditis or have certain heart conditions, your doctor may recommend an antibiotic before some dental procedures. Ask your care team whether this applies to you.

Complications

Endocarditis can cause serious problems, including:

  • Heart failure, when a damaged valve leaks and the heart cannot pump well
  • Stroke or other brain problems, if a clump travels to the brain
  • Emboli (blockages) in the lungs, kidneys, spleen, gut or limbs
  • Abscesses in the heart or other organs
  • Heart rhythm problems
  • Kidney damage
  • A bulge in a blood vessel wall caused by infection (mycotic aneurysm)
  • Infection coming back

Outlook

Endocarditis is a life-threatening illness, and the outlook depends on the bacteria, which valve is affected, your overall health and how quickly treatment starts. Infections with Staphylococcus aureus, artificial valve infections and those with complications such as heart failure or stroke tend to be more serious. Many people do recover fully with antibiotics and, when needed, surgery. Having endocarditis once raises your chance of getting it again, so long-term care and prevention matter.

Prevention

  • Keep up good dental care and regular dental checkups. This is one of the most important steps.
  • Treat skin infections and wounds promptly.
  • Avoid injecting drugs. If you do inject, use new, sterile equipment every time.
  • If you have a high-risk heart condition, ask your doctor whether you should take an antibiotic before certain dental work. Current guidelines recommend this only for people at highest risk.
  • If you have an IV line or catheter, follow your care team's advice to keep it clean.
  • See a doctor early for an unexplained fever if you have a heart valve problem or an artificial valve.

In Canada

In Canada, endocarditis care is usually delivered in hospital, and home IV antibiotic programs are available in many provinces. Coverage for outpatient IV therapy and antibiotics after discharge varies by province and private plan. Ask your care team about harm reduction services, such as supervised consumption sites, if you inject drugs.

When to get medical help

See a doctor soon if you:

  • Have a fever that lasts more than a few days, or keeps coming back, without a clear cause
  • Have an artificial valve, heart valve disease or past endocarditis and develop a fever, chills or night sweats
  • Feel unusually tired, lose weight without trying or have new aching joints
  • Notice small red spots on your skin or dark lines under your nails
  • Have a fever while you have an IV line, catheter or after injecting drugs

Call emergency services or go to the emergency department right away if you have:

  • Signs of a stroke: face drooping, arm or leg weakness, trouble speaking, confusion or sudden vision loss
  • Chest pain, severe shortness of breath, or trouble breathing when lying flat
  • Fainting, or a very fast or irregular heartbeat
  • High fever with shaking chills, confusion or feeling very unwell
  • A sudden cold, painful, pale arm or leg

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Bacterial Endocarditis. meshb.nlm.nih.gov
  2. MedlinePlus: Endocarditis. medlineplus.gov/endocarditis.html
  3. ESC: 2023 Guidelines for the management of endocarditis. doi.org/10.1093/eurheartj/ehad193
  4. AHA: Infective Endocarditis in Adults: Diagnosis, Antimicrobial Therapy, and Management of Complications (2015). doi.org/10.1161/CIR.0000000000000296
  5. AHA: Prevention of Viridans Group Streptococcal Infective Endocarditis (2021). doi.org/10.1161/CIR.0000000000000969
  6. NICE: Prophylaxis against infective endocarditis (CG64). nice.org.uk/guidance/cg64