E. Coli: what you need to know

Only some strains of E. coli are harmful. Learn how you can avoid getting sick.

Updated on August 25, 2025.

Millions of people in the United States get sick from foodborne illnesses each year, according to the Centers for Disease Control and Prevention (CDC). Tens of thousands are hospitalized as a result, and nearly 1,000 die annually.

One of the most common sources of foodborne illness is the group of bacteria known as Escherichia coli, or E. coli. Only some kinds of E. coli make people sick; most don’t cause illness. In fact, harmless strains of E. coli live in your intestines and could even help your body maintain a healthy digestive tract.

“There are a lot of different strains of E. coli,” says Robin Foroutan, an integrative registered dietitian and former spokesperson for the Academy of Nutrition and Dietetics. “But there are really only a few that are dangerous.”

Here’s what you need to know about E. coli and how to avoid infection with dangerous strains of the bacteria.

How you can get sick

Among the most dangerous types of E. coli tied to outbreaks of foodborne illness in the U.S. is O157:H7. This strain of the bacteria can produce a dangerous toxin in the body called Shiga.

O157:H7 lives in the intestines of farm animals including cattle, sheep, and goats, and we encounter it in more ways than you might realize. Ground beef can become tainted with E. coli if bacteria from animal intestines comes into contact with meat. E. coli can also live on a cow’s udders, so if you choose to drink unpasteurized milk, you may be putting yourself at risk of infection.

This harmful strain of E. coli can also make its way into produce when water sources that are contaminated with animal or human feces are used to irrigate crops. Some vegetables that are commonly affected include sprouts, lettuce, tomatoes, and spinach. E. coli can even taint drinking water and swimming pools.

E. coli can be spread by human error, as well. In many cases, infection occurs when someone doesn’t wash their hands properly before handling food or if meat is undercooked.

It’s worth noting that O157:H7 differs from enterotoxigenic E. coli (ETEC), also known as traveler’s diarrhea. Food and water can be contaminated with ETEC from human or animal feces. It most commonly affects children living in developing countries and people traveling abroad.

Recognize the signs of infection

You may develop early warning signs of E. coli infections, such as mild stomach pain or diarrhea, as early as 12 to 24 hours after being exposed. But there is a 10-day window when it’s still possible to become sick. As the infection progresses, symptoms may include severe stomach cramps, diarrhea with blood, vomiting, and a low fever.

Children can continue to infect anyone who comes into contact with their stool for up to two weeks after they’ve recovered.

Those who believe they may be affected should write down what they ate in the week before they started to get sick. This will help inform health officials about the source and the scope of any potential outbreak.

Most people feel better on their own within five to seven days, but the following red flags require immediate medical attention:

  • Diarrhea that lasts for more than three days or comes with a high fever
  • Bloody stool
  • Excessive vomiting that leads to dehydration

Five to ten percent of people with Shiga toxin-producing E. coli develop hemolytic uremic syndrome (HUS), a type of kidney failure associated with the infection. People younger than 5 and older than 65 as well as those with compromised immune systems are most susceptible. If you experience signs of this complication, seek medical help right away. These signs include:

  • Decreased frequency of urination
  • Extreme tiredness
  • Loss of color in the cheeks or inner eyelids

If you’re tracking E. coli outbreaks in the news, know that there’s a lag time between when people are sickened, when they report those illnesses, and when the CDC reports confirmed cases. The agency points out that it takes three to four weeks from the time a person becomes sick with E. coli to the time that illness can be connected to an outbreak.

How is the infection treated?

If you have an E. coli O157:H7 infection, it’s unlikely you will be treated with antibiotics. These drugs are used to treat many bacterial infections, but they are typically not recommended as a treatment for this illness since the risks may outweigh any possible benefits.

Unfortunately, once you’re infected, there’s not much you can do besides staying hydrated and getting rest. “You could take an electrolyte formula as well, or even just put a pinch of salt into your water and drink that,” Foroutan suggests.

Prevention is key

You can take simple steps to protect yourself from harmful E. coli infections:

Wash your hands

Before you handle produce, make sure you’ve washed your hands with warm water and soap for at least 20 seconds. This is especially important if you handle dirty diapers or have recently petted animals, especially at the zoo. Want to make sure you’re washing long enough? Sing the alphabet while you do so.

Wash your produce correctly

“You can also have contamination with amoebas and protozoas and different kinds of microscopic parasitic organisms, so it's always a good idea to give your produce a nice rinse for about 30 seconds,” says Foroutan. The temperature of the water doesn’t really matter. Instead of running the produce under the faucet, try leaving it in a large bowl or agitating it in a salad spinner. After you remove the produce from the water, dry it with a clean paper towel or cloth.

Sprouts are a rare exception to this rule. They must be cooked to avoid the bacteria; washing won’t do it.

Don’t forget to wash fruits and veggies with a peel

Yes, that includes produce you are going to peel. “You really ought to wash everything really well, even things like melon,” says Foroutan. If there are E. coli bacteria on the rind, your knife can push them into the flesh, contaminating the inside from the outside.

Even pre-packaged veggies can be dirty

You might think pre-packaged lettuce is already clean and ready to eat, but that’s not always the case. “It's tempting to skip the washing step, but it's still important to do that,” says Foroutan. Check the label to confirm whether the produce is pre-washed.

Splurge on a vegetable brush

For vegetables with a peel, you can use a brush to lightly scrub the outside. If you're getting produce straight from the farm, you might have to wash and brush it a few times to get all the sand and dirt off. After brushing it, run it under water for around 30 seconds. “That works well for carrots, squashes, and winter squash, where you're not necessarily eating the outside,” says Foroutan.

Cook your meat thoroughly

Ground beef should be cooked to an internal temperature of at least 160 degrees F before being served. If your hamburger looks undercooked at a restaurant, send it back. Cook steaks and chops to at least 145 degrees, and any type of poultry to at least 165 degrees.

Avoid certain foods

Raw milk, some ciders, certain soft cheeses, and other unpasteurized foods may carry dangerous bacteria that cause foodborne illness, including E. coli.

Article sources open article sources

Centers for Disease Control and Prevention. Food Safety: Estimates: Burden of Foodborne Illness in the United States. March 19, 2025.
U.S. Government Accountability Office. Food Safety: Status of Foodborne Illness in the U.S. February 3, 2025.
Centers for Disease Control and Prevention. About Escherichia coli Infection. May 14, 2024.
American Medical Association. Common Foodborne Disease Causes. Accessed August 25, 2025.
University of Minnesota Twin Cities. MDH Fact Sheet: E. coli O157:H7 on the Farm. Accessed December 2012.
Sepsis Alliance. Intestinal E. coli Infections. January 19, 2024.
U.S. Food and Drug Administration. 7 Tips for Cleaning Fruits, Vegetables. June 15, 2021.
FoodSafety.gov. Food Safety by Type of Food. August 14, 2025.
FoodSafety.gov. Bacteria and Viruses. August 14, 2025.
Safe Drinking Water Foundation. Escherichia Coli. Accessed August 25, 2025.
Centers for Disease Control and Prevention. You Can Help CDC Solve Foodborne Outbreaks. April 24, 2024.
St. Joseph’s Health. What You Need to Know About E. Coli. Accessed August 25, 2025.
Freedman SB, van de Kar NCAJ, et al. Shiga Toxin-Producing Escherichia coli and the Hemolytic-Uremic Syndrome. N Engl J Med. 2023 Oct 12;389(15):1402-1414. Centers for Disease Control and Prevention. Timeline for Identifying and Reporting Cases in Foodborne Outbreaks. April 24, 2024.
Johns Hopkins Medicine. Escherichia Coli O157:H7. Accessed August 25, 2025.
Children’s Mercy Kansas City. Acute Gastroenteritis Hemolytic Uremic Syndrome (HUS). Accessed August 25, 2025.
Cleveland Clinic. E. coli Infection. November 22, 2023.
Food Safety and Inspection Service. Handwashing for Food Safety. September 2021.
Food Safety and Inspection Service. Safe Temperature Chart. April 14, 2025.

More On

What foods are best to eat after a workout?

video

What foods are best to eat after a workout?
Give your body the nutrition it needs after your workouts.
Legumes: a simple food with big health benefits

article

Legumes: a simple food with big health benefits
Beans, peas, and lentils are filling, affordable, and may help to lower your risk of chronic disease.
6 surprising signs you need to drink more water

slideshow

6 surprising signs you need to drink more water
Staying properly hydrated may contribute to clearer skin, fresher breath, increased mental clarity and more.
What are probiotics, and how can I introduce them into my diet?

video

What are probiotics, and how can I introduce them into my diet?
Probiotics help maintain good immune health and digestion
Is it healthier to eat pasta and rice as leftovers?

video

Is it healthier to eat pasta and rice as leftovers?
Waiting to eat your rice or pasta leftovers the next day, can provide you with beneficial resistant starches.