Infections and food safety
E. coli infection: symptoms, how long it lasts, treatment and when to get help
E. coli are bacteria found in the gut of people and animals. Most types are harmless, but Shiga toxin-producing E. coli (STEC), including O157, can cause diarrhoea (sometimes bloody), stomach cramps and fever. Most people recover within 5 to 7 days without specific treatment. It is contagious, and a small proportion, mainly children, develop a serious kidney complication.
Last checked: 2026-10-11
Key facts
At a glance.
-
What it is
NHS inform says E. coli are bacteria found in the environment, food and the intestines of animals and people. Most types are harmless, but some can make you unwell.
-
Main symptoms
UKHSA lists diarrhoea (about 50% of cases have bloody diarrhoea), stomach cramps and fever. NHS inform also lists vomiting.
-
Onset
NHS inform says it usually takes between 2 and 4 days from infection to symptoms, but can be anywhere from 1 to 14 days.
-
How long
NHS inform says most people get better within 5 to 7 days, but symptoms can last up to 2 weeks.
-
Contagious
Yes. UKHSA says STEC is very infectious because very few bacteria are needed. NHS inform says most people are no longer infectious after about a week, but some, particularly children, may carry it for months.
-
Treatment
UKHSA says there is no specific treatment, and antibiotics are not recommended because they are likely to increase the risk of complications such as HUS. Drink plenty of fluids.
-
Urgent help
NHS inform says to contact your GP practice urgently if you or your child has bloody diarrhoea, and to phone 111 if your GP practice is closed.
What is E. coli?
NHS inform says Escherichia coli (E. coli) are bacteria found in the environment, food, and the intestines of animals and people. Most types are harmless and are an important part of a healthy digestive tract. Some can make you unwell.
It divides them into two groups: those that can produce Shiga toxin, known as Shiga toxin-producing E. coli (STEC), which includes E. coli O157, and those that cannot. STEC are known to cause more severe illness.
UKHSA says the most common type of STEC in the UK is O157.
E. coli is also a common cause of urinary tract infections. NICE says E. coli is the most commonly identified cause, found in up to 77% of cases of lower UTI in women. This page focuses on the gut infection; see the UTI page for bladder infections.
What are the symptoms of E. coli infection?
UKHSA says people infected with STEC can have a combination of diarrhoea (about 50% of cases have bloody diarrhoea), stomach cramps and fever. Some people have mild diarrhoea, or no symptoms at all, which is called asymptomatic carriage.
NHS inform lists diarrhoea, stomach pain, vomiting, fever and bloody diarrhoea. It says STEC can cause severe stomach pain, bloody diarrhoea and kidney failure.
How long does E. coli last?
NHS inform says it usually takes 2 to 4 days from being infected to developing symptoms, though in some cases symptoms can start anywhere between 1 and 14 days afterwards.
Most people get better within 5 to 7 days but sometimes symptoms can last up to 2 weeks. UKHSA says it often clears within a week, and that symptoms can last up to 2 weeks in cases without complications.
Is E. coli contagious, and for how long?
Yes. UKHSA says STEC are very infectious because very few bacteria (possibly fewer than 100) are needed to cause illness. It spreads easily within families and in nurseries, primary schools, nursing homes and hospitals.
NHS inform says most people are no longer infectious after about a week, but some people, particularly children, may carry STEC for several months after getting better and could still pass it on.
NHS inform says anyone who has had a STEC infection should stay away from work or school until they have been completely free of symptoms for 48 hours. UKHSA says people who have been ill should not prepare food for others for at least 48 hours after they have recovered.
| Group | What the guidance says |
|---|---|
| Most people | Stay away from work or school until symptom-free for 48 hours |
| Health, social care, childcare and food handling | Ask your local health protection team when it is safe to return; stool samples may be requested |
| Children aged 5 or under | Speak to the health protection team or GP; stool samples may be needed, and tests may be required before swimming or soft play |
| Anyone preparing food for others | Do not prepare food until 48 hours after symptoms have stopped |
How is E. coli infection treated?
UKHSA says there is no specific treatment for STEC infection. The illness is usually self-limiting and will get better without treatment. It is important to drink plenty of fluids, as diarrhoea can lead to dehydration.
UKHSA says antibiotics are not recommended and are likely to increase the risk of complications such as haemolytic uraemic syndrome (HUS). NHS inform adds that anti-diarrhoeal drugs like loperamide are also not recommended in most cases, because they may prolong exposure to the toxin.
NHS inform says this can nevertheless be a serious infection requiring admission to hospital. The NHS diarrhoea and vomiting page says to avoid fruit juice and fizzy drinks, and not to give children under 12 medicine to stop diarrhoea.
How do you catch E. coli?
UKHSA says cattle are the most important reservoir of STEC O157 in the UK. People can become infected through:
-
Eating contaminated food, for example undercooked minced beef, unpasteurised milk or dairy products, and contaminated fresh produce.
-
Contact with infected animals, directly or through animal faeces, for example at farms, petting farms and campsites.
-
Contact with other people who have the illness, through inadequate hand hygiene.
-
Drinking water from inadequately treated supplies.
-
Swimming or playing in contaminated water such as ponds or streams.
Complications: haemolytic uraemic syndrome (HUS)
NHS inform says a small number of people, mainly children, with STEC go on to develop HUS, a serious life-threatening condition. Symptoms include peeing less, pee that is pink or brown, tiredness, swelling and bruising. It says this can sometimes lead to kidney failure and death, although this is rare, and that the risk is highest in children under 5.
UKHSA clinical guidance says it is thought that up to 10% of cases develop HUS after an initial period of gastroenteritis or bloody colitis, most commonly in young children or the elderly. It says a small proportion of adults may develop a similar condition called thrombotic thrombocytopaenic purpura (TTP).
E. coli in pregnancy
NHS inform lists pregnant women among the people with a weakened immune system who are particularly vulnerable and may be at increased risk from unpasteurised dairy products, which may contain STEC.
For urinary infection, the NHS says to ask for an urgent GP appointment or get help from NHS 111 if you think you may have a UTI and you are pregnant.
If you are pregnant and have bloody diarrhoea or are unwell, contact your GP practice, midwife or NHS 111 promptly.
When to get medical help
NHS inform says to contact your GP practice urgently if you or your child has bloody diarrhoea, and to phone 111 if your GP practice is closed.
It says to contact your GP practice if you or your child has diarrhoea and any of the following:
-
It is particularly frequent or severe.
-
It lasts for more than 7 days.
-
Vomiting lasts for more than 2 days, or you keep being sick and cannot keep fluids down.
-
You have a severe or continuous stomach ache.
-
You have lost weight, or pass a large amount of very watery diarrhoea.
-
You have signs of dehydration, like dark, smelly pee or peeing less than usual.
How to avoid E. coli and stop it spreading
UKHSA advises cooking all minced meat products thoroughly until the colour is the same all the way through and no blood runs from them. Wash salad vegetables, do not use a utensil on raw meat and then on other food before washing it, store raw meat below cooked food, and boil drinking water if unsure of its source.
Children and elderly people, who are particularly susceptible, should avoid unpasteurised dairy products.
To stop spread at home, NHS inform advises washing hands thoroughly with soap and water after the toilet, changing nappies, contact with animals and before preparing food. It says to wash soiled clothing and bedding separately on a hot wash, and to clean toilet seats, flush handles, taps and surfaces at least daily.
NHS and private pathways in general terms
STEC is usually diagnosed by a stool sample, and UKHSA says cases are reportable to local health protection teams under the Health Protection (Notification) Regulations 2010. This is handled by the NHS and public health system.
Private stool testing is available, but any positive result still needs to go through your GP or the local health protection team so that contacts and exclusion advice are handled properly.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
What are the symptoms of E. coli?
For the gut infection (STEC), UKHSA lists diarrhoea (about 50% of cases bloody), stomach cramps and fever. NHS inform also lists stomach pain and vomiting. Some people have mild symptoms or none.
-
How long does E. coli last?
NHS inform says most people get better within 5 to 7 days, but symptoms can last up to 2 weeks. Symptoms usually start 2 to 4 days after infection.
-
Is E. coli contagious?
Yes. UKHSA says STEC is very infectious because very few bacteria are needed. It spreads through contaminated food, animals, water and contact with infected people, particularly via poor hand hygiene.
-
How long are you contagious with E. coli?
NHS inform says most people are no longer infectious after about a week, but some, particularly children, may carry STEC for several months after getting better.
-
How is E. coli treated?
UKHSA says there is no specific treatment and the illness usually gets better without it. Drink plenty of fluids. Antibiotics are not recommended and may increase the risk of complications.
-
Can I take loperamide (Imodium) for E. coli?
NHS inform says anti-diarrhoeal drugs like loperamide are not recommended in most cases, because they may prolong exposure to the toxin. Ask a pharmacist or GP.
-
What is E. coli O157?
A type of Shiga toxin-producing E. coli. UKHSA says O157 is the most common type of STEC in the UK. NHS inform says STEC are known to cause more severe illness than E. coli that does not produce Shiga toxin.
-
What is HUS?
Haemolytic uraemic syndrome is a serious complication affecting mainly children. NHS inform says symptoms include peeing less, pink or brown pee, tiredness, swelling and bruising, and it can lead to kidney failure.
-
When should I stay off work or school?
NHS inform says stay away until you have been completely free of symptoms for 48 hours. Some groups, such as food handlers and healthcare workers, should ask their health protection team before returning.
-
Is E. coli dangerous in pregnancy?
NHS inform lists pregnant women among those at increased risk from unpasteurised dairy products, which may contain STEC. Seek advice promptly from your GP, midwife or NHS 111 if you have bloody diarrhoea or are unwell.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-11, next review 2027-10-11.
-
UKHSA: Shiga toxin-producing Escherichia coli (STEC): symptoms, how to avoid, how to treat, https://www.gov.uk/government/publications/vero-cytotoxin-producing-escherichia-coli-symptoms-how-to-avoid-how-to-treat/vero-cytotoxin-producing-escherichia-coli-symptoms-how-to-avoid-how-to-treat, retrieved October 2026
-
UKHSA: Shiga toxin-producing Escherichia coli: complications, https://www.gov.uk/government/publications/vero-cytotoxin-producing-escherichia-coli-vtec-complications/vero-cytotoxin-producing-escherichia-coli-complications, retrieved October 2026
-
NHS inform: Shiga toxin-producing E. coli (STEC), https://www.nhsinform.scot/illnesses-and-conditions/infections-and-poisoning/escherichia-coli-e-coli-o157, retrieved October 2026
-
NHS: Diarrhoea and vomiting, https://www.nhs.uk/conditions/diarrhoea-and-vomiting/, retrieved October 2026
-
NHS: Urinary tract infections (UTIs), https://www.nhs.uk/conditions/urinary-tract-infections-utis/, retrieved October 2026
-
NICE CKS: Urinary tract infection (lower) - women: causes, https://cks.nice.org.uk/topics/urinary-tract-infection-lower-women/background-information/causes/, retrieved October 2026
Related guides
Keep reading.
-
Food poisoning
Causes, symptoms and what to do.
Read guide -
Urinary tract infection
Bladder and kidney infections, often caused by E. coli.
Read guide -
Atypical HUS
A related kidney condition.
Read guide -
Salmonella
Another cause of food-borne diarrhoea.
Read guide -
Campylobacteriosis
A common bacterial gut infection.
Read guide -
Norovirus
The winter vomiting bug.
Read guide -
Listeria in pregnancy
Food safety during pregnancy.
Read guide -
Chronic diarrhoea
When diarrhoea does not settle.
Read guide