E. coli infections
E. coli infections are illnesses caused by Escherichia coli bacteria, most often food poisoning with diarrhea or urinary tract infections, and sometimes serious blood or kidney problems.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
E. coli is short for Escherichia coli, a type of bacteria (germ) that lives in the gut of people and animals. The medical name for illness it causes is Escherichia coli infection. Most kinds of E. coli are harmless. In fact, they are a normal part of the healthy bacteria in your intestines and help keep your gut working well.
Some kinds (strains) of E. coli can make you sick. An E. coli infection happens when a harmful strain gets into your digestive system, usually through food or water, or when gut E. coli moves to a part of the body where it does not belong, such as the bladder or the bloodstream.
Most E. coli infections get better with rest, fluids or a short course of medicine. A few can be serious, especially in young children, older adults, pregnant people and anyone with a weak immune system. Knowing the warning signs helps you get the right care quickly.
Types of E. coli infection
E. coli can cause several quite different illnesses, depending on the strain and where in the body it grows.
Gut infections (food poisoning)
- Shiga toxin-producing E. coli (STEC): these strains make a poison called Shiga toxin. The best known is E. coli O157:H7. STEC can cause severe stomach cramps and bloody diarrhea. In some people, especially children under 5, it leads to a kidney problem called hemolytic uremic syndrome (HUS).
- Traveller's diarrhea: strains such as enterotoxigenic E. coli (ETEC) are a leading cause of watery diarrhea in people visiting areas where food and water may be contaminated.
- Other gut strains: some strains cause diarrhea mainly in babies and young children, especially in low-income countries.
Infections outside the gut
- Urinary tract infections (UTIs): E. coli is the most common cause of bladder and kidney infections. The bacteria move from the skin around the anus to the opening of the urethra (the tube that carries urine out of the body).
- Bloodstream infection and sepsis: E. coli can spread into the blood, often from a kidney infection or a problem in the belly. Sepsis is the body's extreme, life-threatening reaction to an infection.
- Meningitis in newborns: E. coli is one of the main causes of meningitis (infection of the lining around the brain and spinal cord) in newborn babies.
- Other infections: E. coli can also infect the belly lining, gallbladder, surgical wounds and lungs, mostly in people who are already ill or in hospital.
Symptoms
Symptoms depend on the type of infection.
Gut infection
- Diarrhea, which may be watery or bloody
- Stomach cramps and pain
- Nausea or vomiting
- Mild fever, or no fever (STEC often causes little or no fever)
STEC symptoms usually begin 3 to 4 days after eating or drinking something contaminated, but this can range from 1 to 10 days. Most people feel better in 5 to 7 days.
Signs of HUS
HUS usually starts about a week after diarrhea begins, often just as the diarrhea is improving. Watch for:
- Peeing much less than usual
- Feeling very tired or irritable
- Pale skin, including inside the lower eyelids
- Unexplained bruises or tiny red spots on the skin
- Swelling of the face, hands or feet
Urinary tract infection
- Burning or pain when you pee
- Needing to pee often or urgently, even when little comes out
- Cloudy, bloody or strong-smelling urine
- Pain low in the belly
- With a kidney infection: fever, chills, pain in the side or back, nausea and vomiting
Bloodstream infection
Fever or a low body temperature, shaking chills, a fast heartbeat, fast breathing, confusion and feeling very unwell. This is an emergency.
Causes and how it spreads
Harmful gut strains of E. coli spread when tiny amounts of feces (poop) from people or animals get into your mouth. You cannot see, smell or taste them. Common sources include:
- Undercooked ground beef and other meat
- Raw (unpasteurized) milk, juice and cheese
- Raw vegetables and leafy greens, sprouts and flour that were contaminated in the field or during processing
- Untreated water from wells, streams or lakes, and swallowing water while swimming
- Touching farm animals, petting zoo animals or their surroundings, then not washing your hands
- Close contact with someone who is sick, such as changing diapers or caring for an ill family member
Only a small number of STEC bacteria are needed to make you sick, so they spread easily in households and child care settings.
UTIs and most other infections outside the gut are caused by your own E. coli. These bacteria normally live harmlessly in your bowel but cause infection when they reach the urinary tract, blood or other parts of the body.
Risk factors
Anyone can get an E. coli infection. You are more likely to get one, or to get very sick, if you:
- Are a young child, especially under 5, or an older adult
- Have a weak immune system, for example from cancer treatment, an organ transplant or poorly controlled diabetes
- Travel to areas with less safe food and water
- Eat undercooked meat or unpasteurized products
- Are pregnant (higher risk of UTIs and kidney infections)
Things that raise the chance of an E. coli UTI include being female (because the urethra is shorter), being sexually active, using spermicides, menopause, kidney stones, an enlarged prostate, having a urinary catheter, and having had UTIs before.
Diagnosis
Your health care provider will ask about your symptoms, what you have eaten recently, any travel and whether anyone around you is sick. They will also examine you. Tests may include:
- Stool test: a sample of your poop is checked for harmful E. coli strains or Shiga toxin. This is especially important if you have bloody diarrhea.
- Urine test: a dipstick test and a urine culture (growing bacteria from the sample in a lab) can confirm a UTI and show which antibiotics will work.
- Blood tests: a blood culture checks for bacteria in the blood. For HUS, tests look at red blood cells, platelets (cells that help blood clot) and kidney function.
- Other tests: if a newborn might have meningitis, a lumbar puncture (spinal tap) tests the fluid around the spinal cord. Imaging such as an ultrasound or CT scan may look for a kidney blockage or an abscess (pocket of pus).
Lab results also help your care team know whether the bacteria are resistant to some antibiotics.
Treatment
Gut infections
Most E. coli food poisoning goes away on its own. The most important treatment is to replace lost fluids:
- Drink plenty of fluids. An oral rehydration solution (a drink with the right balance of salt and sugar, sold in pharmacies) is best for children and for anyone losing a lot of fluid.
- Keep eating normal, gentle foods as you can. Breastfed babies should keep breastfeeding.
- Rest at home until you feel better.
If you have bloody diarrhea or STEC is found, antibiotics are usually not given, because they may raise the risk of HUS. Medicines that slow the bowel, such as loperamide, are also usually avoided in this case. Ask your provider before taking any diarrhea medicine.
For traveller's diarrhea, bismuth subsalicylate can ease symptoms in adults. If diarrhea is severe, your provider may suggest an antibiotic such as azithromycin or ciprofloxacin.
People with HUS need care in hospital. This may include fluids through a vein, blood transfusions and, for some, dialysis (a treatment that filters the blood when the kidneys are not working).
Urinary tract infections
Bladder infections are treated with antibiotics such as nitrofurantoin, fosfomycin, trimethoprim-sulfamethoxazole or cephalexin. Kidney infections may need stronger antibiotics, such as ciprofloxacin, levofloxacin or ceftriaxone. Your provider will choose based on your history, local resistance patterns and your urine culture. Take the full course exactly as prescribed, even if you feel better.
Serious infections
Bloodstream infections, meningitis and other deep infections are treated in hospital with antibiotics through a vein. These may include ceftriaxone, cefotaxime, ampicillin with gentamicin (for newborns), or, for resistant bacteria, meropenem, ertapenem, amikacin or ceftazidime with avibactam. Some infections also need a procedure to drain pus or remove an infected catheter.
Antibiotic resistance
Some E. coli have become resistant to common antibiotics. One important group makes enzymes called ESBLs (extended-spectrum beta-lactamases) that break down many penicillin and cephalosporin antibiotics. A rarer group, called carbapenem-resistant bacteria, resists even last-line medicines. Resistant infections can be harder to treat but are still usually treatable. You can help slow resistance by taking antibiotics only when they are prescribed for you, never sharing them, and finishing the course as directed.
Self-care and recovery
- Sip fluids often, even if you can only manage small amounts.
- Wash your hands well with soap and water after using the toilet, changing diapers and before handling food.
- Do not prepare food for others while you have diarrhea and for at least 2 days after it stops.
- Children with diarrhea should stay home from child care or school until their care team or local public health says they can return. Workers in food handling, health care and child care may need to stay off work longer or have clear stool tests.
- Avoid swimming pools and lakes until 2 weeks after diarrhea ends.
- For a UTI, drink enough fluids and pee when you need to. Pain relievers such as acetaminophen may help with discomfort.
Complications
- Dehydration: losing too much fluid, which is most dangerous in babies and older adults.
- Hemolytic uremic syndrome (HUS): red blood cells are destroyed, platelets drop and the kidneys can fail. It affects about 5% to 10% of people with STEC O157, most often young children. Most people recover, but some have lasting kidney damage, high blood pressure or, rarely, brain or other organ problems.
- Kidney infection and kidney scarring from an untreated or repeated UTI.
- Sepsis and septic shock, which can be life-threatening.
- Long-term effects of meningitis in newborns, such as hearing loss or developmental delay.
Outlook
Most healthy people with E. coli diarrhea recover fully within a week. UTIs usually clear up within a few days of starting the right antibiotic, although some people get them again. HUS and bloodstream infections are serious, but prompt hospital care greatly improves the chances of a good recovery. Children who had HUS need regular checkups of their kidneys and blood pressure for years afterward.
Prevention
Food and water safety
- Cook ground beef and hamburgers until the inside reaches 71°C (160°F). Use a food thermometer, since colour is not a reliable guide.
- Choose pasteurized milk, juice and cheese.
- Wash fruits and vegetables under running water. Do not eat raw flour or raw cookie dough.
- Keep raw meat away from ready-to-eat foods, and wash cutting boards, knives and counters after use.
- Refrigerate leftovers promptly.
- When travelling, drink bottled or treated water and choose foods that are cooked and served hot.
Hand washing
Wash your hands after using the toilet, changing diapers, touching animals or their areas, and before preparing or eating food. Supervise young children's hand washing at farms and petting zoos.
Preventing UTIs
- Drink enough fluids and do not hold urine for long periods.
- Wipe from front to back after using the toilet.
- Pee soon after sex.
- If you have frequent UTIs, talk to your provider about other options, such as vaginal estrogen after menopause or a preventive medicine.
In Canada
In Canada, verotoxigenic (Shiga toxin-producing) E. coli infection is a nationally notifiable disease, and isolates are typed through PulseNet Canada, coordinated by the Public Health Agency of Canada. Ground beef recalls and outbreak notices are issued by the Canadian Food Inspection Agency. Health Canada recommends cooking ground beef to 71°C.
Diagnosis
E. coli is the leading cause of community-acquired UTI and Gram-negative bacteremia, and STEC is a major cause of bloody diarrhea and pediatric HUS. Pathotypes include STEC/EHEC (O157:H7 and non-O157), ETEC, EPEC, EAEC and EIEC, plus extraintestinal pathogenic E. coli (ExPEC).
- Diarrhea: test all patients with bloody diarrhea, and those with suspected outbreak exposure, for Shiga toxin or stx genes plus culture for O157 (IDSA 2017). Isolate culture is needed for public health typing when a multiplex PCR is positive.
- HUS: triad of microangiopathic hemolytic anemia (schistocytes, raised LDH, low haptoglobin), thrombocytopenia and acute kidney injury. In STEC enteritis, monitor CBC, creatinine and electrolytes, particularly in children, over the 2 weeks after onset.
- UTI: urinalysis and culture (not needed for uncomplicated cystitis in otherwise healthy women with typical symptoms). Do not screen or treat asymptomatic bacteriuria except in pregnancy and before urologic procedures with mucosal trauma.
- Invasive disease: blood cultures before antibiotics; source imaging for pyelonephritis not responding in 48 to 72 hours or suspected obstruction; CSF analysis and culture in neonatal sepsis.
Management
- STEC: supportive care with early, generous isotonic IV volume expansion, which is associated with reduced oligoanuric HUS. Avoid antibiotics, antimotility agents, opioids and NSAIDs. Dialysis and transfusion as required; eculizumab has been used in severe neurologic HUS but evidence is limited.
- Traveller's diarrhea: oral rehydration; azithromycin preferred for severe or dysenteric illness; fluoroquinolones or rifaximin (non-invasive only) as alternatives, guided by regional resistance.
- Uncomplicated cystitis (IDSA/ESCMID): nitrofurantoin 100 mg twice daily for 5 days, fosfomycin 3 g single dose, or trimethoprim-sulfamethoxazole for 3 days where local resistance is under 20%. Reserve fluoroquinolones given resistance and FDA/Health Canada safety warnings (tendinopathy, aortic aneurysm, neuropathy, CNS effects).
- Pyelonephritis: culture-guided therapy; fluoroquinolone or an initial dose of ceftriaxone or an aminoglycoside followed by oral therapy; hospitalize if septic, pregnant or unable to tolerate oral intake.
- Bacteremia and sepsis: third-generation cephalosporin, piperacillin-tazobactam or cefepime per local antibiogram; carbapenem (meropenem, ertapenem) for ESBL producers (MERINO trial). For carbapenem-resistant isolates, follow IDSA AMR guidance (e.g. ceftazidime-avibactam, meropenem-vaborbactam). Oral step-down after clinical response is reasonable for uncomplicated Gram-negative bacteremia, typically 7 days total.
- Neonatal meningitis: ampicillin plus cefotaxime and/or gentamicin empirically, then cefotaxime (or meropenem for ESBL) for at least 21 days; repeat CSF and neuroimaging as indicated.
Public health: STEC infection is notifiable (and post-diarrheal HUS in the US); exclusion rules apply to food handlers, health care workers and children in child care.
When to get medical help
See a doctor or nurse practitioner soon if you:
- Have diarrhea that lasts more than 3 days, or with a fever higher than 38.9°C (102°F)
- See blood in your stool
- Have symptoms of a bladder infection, especially if you are pregnant, male, or have diabetes or kidney problems
- Have a baby or young child with diarrhea who is not feeding well or seems unwell
- Keep getting UTIs
Go to the emergency department or call emergency services if you or your child:
- Show signs of severe dehydration: very little or no pee, a dry mouth, no tears, sunken eyes, dizziness or extreme sleepiness
- Pee much less than usual, look pale, or develop unusual bruising after a diarrhea illness (possible HUS)
- Have a high fever with shaking chills, confusion, fast breathing or a racing heart (possible sepsis)
- Have back or side pain with fever and vomiting and cannot keep fluids or medicine down
- Are a baby under 3 months old with a fever of 38°C (100.4°F) or higher, or a newborn who is floppy, feeding poorly or very sleepy
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Escherichia coli Infections. meshb.nlm.nih.gov
- CDC: E. coli infection. cdc.gov/ecoli/index.html
- MedlinePlus: E. coli infections. medlineplus.gov/ecoliinfections.html
- WHO: E. coli fact sheet. who.int/news-room/fact-sheets/detail/e-coli
- IDSA: 2017 clinical practice guidelines for the diagnosis and management of infectious diarrhea. doi.org/10.1093/cid/cix669
- IDSA/ESCMID: International clinical practice guidelines for the treatment of acute uncomplicated cystitis and pyelonephritis in women (2011). doi.org/10.1093/cid/ciq257