A man sitting in bed rubbing his eyes with both hands

Viral or bacterial conjunctivitis: what’s the difference?

Published June 16 2023 inGeneral Health
stopwatch11 minutes read

Summary:

  • Viral conjunctivitis is more likely to make your eye watery, and bacterial conjunctivitis is more likely to cause a sticky yellow discharge. But the two overlap, and studies show that even doctors can’t reliably tell them apart by looking.
  • Both usually get better without treatment within a couple of weeks. Antibiotics don’t work on viruses, and they make only a small difference to bacterial conjunctivitis.
  • Now and then, an STI is the cause. If Chlamydia or Gonorrhoea could be behind your symptoms, your eye needs checking by a doctor. To check for a genital infection too, the Better2Know Chlamydia and Gonorrhoea (Urine) test looks for both from 14 days after sex, with results in 2 days.

Conjunctivitis, also known as pink eye or red eye, is a common eye condition that makes your eyes red, gritty and watery or sticky. It can be caused by a virus, by bacteria or by an allergy, and the three can look very alike.

In this blog, we explain how viral and bacterial conjunctivitis differ, how long each lasts, how they’re treated, when a red eye needs urgent help, and when an STI such as Chlamydia or Gonorrhoea is the cause.

What is conjunctivitis?

Conjunctivitis is inflammation of the conjunctiva, the thin, clear layer that covers the white of your eye and lines the inside of your eyelids. The NHS describes it as an eye condition caused by infection or allergies. It usually affects both eyes and makes them red, gritty, itchy, watery or sticky with pus.

There are three common types:

  • Viral: caused by a virus, usually one of the viruses behind colds and flu.
  • Bacterial: caused by bacteria. The College of Optometrists says it occurs more often in children and older people.
  • Allergic: a reaction to something like pollen, house dust mites or animals. It isn’t an infection, so you can’t pass it on.

Viral and bacterial conjunctivitis are together known as infective conjunctivitis. UK figures are limited. In one trial in 30 general practices in southern England, bacteria were found in half of the eye swabs tested. A review in the American medical journal JAMA says viruses cause up to 80% of all cases of acute conjunctivitis, and that a group of viruses called adenoviruses is behind 65% to 90% of the viral cases. It says bacteria are the second most common cause of infective conjunctivitis, but cause most cases in children.

Viral and bacterial conjunctivitis compared

The table shows what each type is more likely to look like. Treat it as a guide, not a diagnosis.

At a glance Viral Bacterial
Usual cause Viruses, usually cold and flu viruses Bacteria
Discharge More likely to be watery More likely to be sticky and yellow, with eyelids stuck together in the morning
Eyes affected One or both. It often starts in one eye, then affects the other One or both
Itching Can happen Makes a bacterial cause less likely
How long it lasts Up to two to three weeks Often five to seven days
Antibiotics Don’t work Speed up recovery slightly, and often aren’t needed
Can you pass it on? Yes. It’s highly infectious Yes

Either type can come with flu-like symptoms, such as a sore throat, a high temperature and aching muscles, according to Moorfields Eye Hospital. The JAMA review says swollen glands are seen in up to half of viral cases, and are more common with viral conjunctivitis than with bacterial.

Can you tell them apart by looking?

Not reliably. The signs in the table point one way or the other, but research shows they aren’t enough to be sure.

  • Discharge tells you less than you’d think. A study in The BMJ looked at 184 adults who went to Dutch health centres with a red eye and either discharge or glued eyelids. It found that the type of discharge told doctors almost nothing about whether bacteria were the cause. Only about a third of the eyes tested (32%) had bacteria in them.
  • Three clues did help. In the same study, eyelids glued together in the early morning made bacteria more likely. Itching, and having had conjunctivitis before, made bacteria less likely.
  • Symptoms overlap. The JAMA review describes a study of people with confirmed bacterial conjunctivitis in which 58% had itching and 35% had a watery discharge or none at all.
  • Doctors find it hard too. An analysis of three trials in UK and Dutch general practice, published in the British Journal of General Practice, said that telling a viral cause from a bacterial one is difficult from symptoms and signs.

A swab can be tested in a laboratory, but the same analysis notes that it’s generally impractical to wait for the result before deciding on treatment. For most people it makes little difference, because most cases get better whichever type they are.

How long does conjunctivitis last?

Most infective conjunctivitis clears up without treatment within a couple of weeks. That’s the NHS’s summary for conjunctivitis in general. In more detail:

  • Bacterial: the College of Optometrists says it often clears up in five to seven days without treatment. In trials, about 56% of people given dummy eye drops were better within 4 to 9 days.
  • Viral: Moorfields Eye Hospital says it can last for two to three weeks, which is how long your immune system may need to clear the virus.

See a doctor if your symptoms haven’t cleared up within 7 days. The NHS says conjunctivitis caused by an STI takes longer to get better, which is one reason to get a lingering red eye checked.

Is conjunctivitis contagious?

Viral and bacterial conjunctivitis are both contagious. Allergic conjunctivitis isn’t. Moorfields Eye Hospital says both infective types spread very easily, through droplets from coughs and sneezes and through contact with tissues, flannels, towels and pillowcases. The College of Optometrists describes viral conjunctivitis as highly infectious, and bacterial conjunctivitis as contagious.

The NHS doesn’t give a number of days. It says conjunctivitis that produces sticky pus is contagious, and that red, gritty eyes usually are too. The JAMA review estimates that viral conjunctivitis can be passed on for 10 to 14 days and bacterial conjunctivitis for 2 to 7 days.

To avoid passing it on, the NHS suggests:

  • washing your hands regularly with warm soapy water
  • washing pillowcases and face cloths in hot water and detergent
  • covering your mouth and nose when you sneeze, and putting used tissues in the bin
  • not sharing towels or pillows
  • not rubbing your eyes

The NHS says you don’t need to stay away from work or school unless you or your child feel very unwell. UK Health Security Agency guidance for schools and nurseries says people with conjunctivitis can attend as usual.

How is conjunctivitis treated?

Most cases need no medical treatment, only simple care at home while the infection clears. The NHS suggests:

  • cleaning your eyelids with water that has been boiled and left to cool, using a clean cotton wool pad for each eye
  • holding a cold flannel on your eyes for a few minutes to cool them
  • leaving contact lenses out until your eyes are better

A pharmacist can give advice and suggest eye drops or antihistamines to help with your symptoms.

Viral conjunctivitis

Antibiotics don’t work on viruses, and the College of Optometrists says there’s no effective antiviral drug for ordinary viral conjunctivitis. Cool compresses and lubricating eye drops can ease the discomfort while your body clears the virus. Moorfields Eye Hospital says the drops may reduce grittiness but won’t shorten the illness.

Bacterial conjunctivitis

Antibiotic eye drops or ointment can speed things up, but only a little. In the analysis of three general practice trials, which took people with infective conjunctivitis of either type, 80% of those given antibiotics were cured by day 7, compared with 74% of those who weren’t. A 2023 Cochrane review of 21 trials found the same pattern: 68% of people given antibiotic drops were better within 4 to 9 days, against 56% of those given dummy drops.

One antibiotic, chloramphenicol, can be bought from pharmacies as eye drops or ointment for most adults and children aged 2 and over. Children under 2 need a prescription.

Allergic conjunctivitis

This is treated with anti-allergy eye drops or antihistamines, and antibiotics don’t help. It causes redness, watering and itching, is more likely to affect both eyes, and often comes with hay fever or an allergy to animals.

When does a red eye need urgent help?

Get urgent medical help if a red eye comes with pain, sensitivity to light or a change to your sight. On its conjunctivitis page, the NHS lists these as possible signs of a more serious eye problem:

  • pain in your eyes
  • sensitivity to light
  • changes in your vision, like wavy lines or flashing
  • very red eyes, in one eye or both
  • a baby less than 30 days old with red, sticky eyes

A red eye is also urgent if you wear contact lenses, because it could be an infection of the cornea, the clear window at the front of the eye.

In an emergency, call 999, for example if it hurts to look at light, you lose some of your sight, you have a severe headache and feel sick, your eye is very dark red, or one pupil is bigger than the other.

When is an STI the cause?

Not often. But Chlamydia and Gonorrhoea can both infect the eye, and Gonorrhoea in the eye is an emergency. The NHS says some STIs can cause conjunctivitis, and that this type takes longer to get better. The bacteria reach the eye in infected semen or vaginal fluid, including on your own fingers.

Chlamydia

UK guidelines say Chlamydial conjunctivitis more typically affects one eye, can come on quickly or linger, and is hard to tell from viral conjunctivitis without a lab test. Up to 8 in 10 people who have it also have Chlamydia in their genitals, often without knowing. That’s why it’s treated with antibiotic tablets, usually doxycycline for 7 days, and not with eye drops alone. Read more in “Can you get Chlamydia in your eyes?”

Gonorrhoea

Gonorrhoea in the eye usually causes a red eye with a lot of pus. UK guidelines warn that the bacteria can get through the surface of the cornea and cause ulcers that threaten your sight. So it’s treated straight away, with an antibiotic injection and antibiotic eye drops, and with an urgent referral to an eye specialist. Get urgent medical help if you have Gonorrhoea, or think you might, and your eyes are red, itchy or painful, or you have pus that sticks to your eyelashes.

Herpes

The Herpes simplex virus can infect the eye too. But it’s usually the cold sore virus, which most people catch in childhood, and it mainly affects the cornea. Read more in “Can you get Herpes in your eye? Symptoms, causes and treatment”

How rare are these? The JAMA review estimates that Chlamydia causes between 1.8% and 5.6% of acute conjunctivitis. Gonorrhoea is rarer still: an eye hospital in Dublin found 14 cases between 2011 and 2013, which was fewer than 1 in every 5,000 people coming to its emergency department. Read more in “Which STIs cause conjunctivitis?”

Conjunctivitis in newborn babies

A baby less than 30 days old with red, sticky eyes needs urgent medical help. Conjunctivitis in the first month of life can come from an infection picked up during birth, including Chlamydia and Gonorrhoea. The College of Optometrists says Gonorrhoea used to be the usual cause, but Chlamydia is now more common.

Usually both eyes are affected, with redness, swelling and watering or discharge. Symptoms caused by Gonorrhoea usually start 2 to 5 days after birth, and those caused by Chlamydia 5 to 12 days after. The NHS says Gonorrhoea in a baby’s eyes can cause blindness if it isn’t treated with antibiotics, so treatment starts without delay.

Testing for STIs during pregnancy, and treating any that are found, helps prevent this.

Which test do you need?

An eye problem needs checking by a doctor or an optometrist, and the tests below don’t test the eye itself. But if Chlamydia or Gonorrhoea could be the cause, it’s worth testing for a genital infection too, as many people have one without symptoms. Better2Know offers:

  • Chlamydia and Gonorrhoea (Urine): tests one urine sample for both infections, from 14 days after sex, with results in 2 days. You can book it at one of our clinics or have a nurse visit you, and there’s also a home test kit.
  • Peace of Mind: tests for Chlamydia, Gonorrhoea and Syphilis from 14 days after sex, with results in 2 days. It’s also available as a home test kit.
  • Full Screen: tests for 7 infections, including HIV, Syphilis, Hepatitis B, Chlamydia and Gonorrhoea, from 28 days after sex, with results in 3 days (5 days for the home test).

If you test before 45 days, a negative HIV result needs a repeat test. A Syphilis test in the first 3 months after sex can miss the infection, so you may need a repeat test. Not sure which test you need? Our Patient Care Team is available 24/7 on 020 7099 0955.

FAQs

Is pink eye the same as conjunctivitis?

Yes. The NHS says conjunctivitis is also known as red or pink eye.

Do you need antibiotics for conjunctivitis?

Usually not. They don’t work on viral or allergic conjunctivitis, and most bacterial conjunctivitis clears up without them. Conjunctivitis caused by Chlamydia or Gonorrhoea is different and does need antibiotics.

Can you wear contact lenses with conjunctivitis?

The NHS says not to wear them until your eyes are better. If you wear contact lenses and get a red eye, get urgent medical advice, because it could be an infection of the cornea.

Can you get conjunctivitis from semen in your eye?

It can happen if your partner has Chlamydia or Gonorrhoea. The NHS says both infections can reach the eye in infected semen or vaginal fluid, including on your hands.

Final thoughts

Viral and bacterial conjunctivitis look alike, are both contagious and usually get better without treatment within a couple of weeks. Telling them apart matters less than spotting the cases that need help: pain, sensitivity to light, a change to your sight, a red eye when you wear contact lenses, a newborn baby with sticky eyes, or a red eye that won’t clear up. If an STI could be the cause, see a doctor about your eye and get tested.

Book a Chlamydia and Gonorrhoea test at a clinic near you or order a home test kit. Our Patient Care Team is available 24/7 on 020 7099 0955.

Don’t leave your sexual health to chance

Chlamydia and Gonorrhoea often cause no genital symptoms, so a test is the only way to know. Protect your sexual health by booking a Chlamydia and Gonorrhoea test with Better2Know today.

About this article

Not in the UK? Choose your country from the selector at the top of the page for local tests and prices.

This article originally appeared on 16 June 2023 and was last updated on 5 October 2026.

This article is general information and not a substitute for personal medical advice.

Sources

  1. NHS, Conjunctivitis, reviewed 23 April 2024. https://www.nhs.uk/conditions/conjunctivitis/
  2. NHS, Red eye, reviewed 27 October 2025. https://www.nhs.uk/symptoms/red-eye/
  3. NHS, About chloramphenicol, reviewed 30 January 2026. https://www.nhs.uk/medicines/chloramphenicol/about-chloramphenicol/
  4. NHS, Who can and cannot use chloramphenicol, reviewed 30 January 2026. https://www.nhs.uk/medicines/chloramphenicol/who-can-and-cannot-use-chloramphenicol/
  5. Moorfields Eye Hospital NHS Foundation Trust, Conjunctivitis. https://www.moorfields.nhs.uk/eye-conditions/conjunctivitis
  6. Moorfields Eye Hospital NHS Foundation Trust, Conjunctivitis: diagnosis and treatment. https://www.moorfields.nhs.uk/eye-conditions/conjunctivitis/diagnosis-and-treatment
  7. College of Optometrists, Conjunctivitis (bacterial), clinical management guideline, 28 January 2025. https://www.college-optometrists.org/clinical-guidance/clinical-management-guidelines/conjunctivitis_bacterial
  8. College of Optometrists, Conjunctivitis (viral, non-herpetic), clinical management guideline, 21 November 2024. https://www.college-optometrists.org/clinical-guidance/clinical-management-guidelines/conjunctivitis_viral_non-herpetic
  9. College of Optometrists, Conjunctivitis (seasonal and perennial allergic), clinical management guideline, 18 February 2025. https://www.college-optometrists.org/clinical-guidance/clinical-management-guidelines/seasonalallergicconjunctivitis_hayfeverconjunctivi
  10. College of Optometrists, Ophthalmia neonatorum, clinical management guideline, 15 October 2024. https://www.college-optometrists.org/clinical-guidance/clinical-management-guidelines/ophthalmianeonatorum
  11. College of Optometrists, Microbial keratitis (bacterial, fungal), clinical management guideline, 15 October 2024. https://www.college-optometrists.org/clinical-guidance/clinical-management-guidelines/microbialkeratitis_bacterial_fungal
  12. College of Optometrists, Herpes simplex keratitis, clinical management guideline, 14 August 2025. https://www.college-optometrists.org/clinical-guidance/clinical-management-guidelines/herpessimplexkeratitis_hsk
  13. College of Optometrists, Look After Your Eyes: conjunctivitis (pink eye), updated 29 April 2025. https://lookafteryoureyes.org/eye-conditions/conjunctivitis/
  14. NHS 111 Wales, Conjunctivitis, updated 21 December 2022. https://111.wales.nhs.uk/conjunctivitis/
  15. UK Health Security Agency, A to Z of infectious diseases in children and young people’s settings, updated 7 September 2026. https://www.gov.uk/government/publications/health-protection-in-schools-and-other-childcare-facilities/a-to-z-of-infectious-diseases-in-children-and-young-peoples-settings
  16. Rietveld RP and others, Predicting bacterial cause in infectious conjunctivitis: cohort study on informativeness of combinations of signs and symptoms, The BMJ, 2004. https://pmc.ncbi.nlm.nih.gov/articles/PMC487734/
  17. Everitt HA and others, A randomised controlled trial of management strategies for acute infective conjunctivitis in general practice, The BMJ, 2006. https://www.bmj.com/content/333/7563/321
  18. Jefferis J and others, Acute infective conjunctivitis in primary care: who needs antibiotics? An individual patient data meta-analysis, British Journal of General Practice, 2011. https://pmc.ncbi.nlm.nih.gov/articles/PMC3162176/
  19. Azari AA and Barney NP, Conjunctivitis: a systematic review of diagnosis and treatment, JAMA, 2013. https://pmc.ncbi.nlm.nih.gov/articles/PMC4049531/
  20. Chen YY and others, Antibiotics versus placebo for acute bacterial conjunctivitis, Cochrane Database of Systematic Reviews, 2023. https://pubmed.ncbi.nlm.nih.gov/36912752/
  21. NHS, Chlamydia, reviewed 24 October 2024. https://www.nhs.uk/conditions/chlamydia/
  22. NHS, Gonorrhoea, reviewed 16 December 2024. https://www.nhs.uk/conditions/gonorrhoea/
  23. NHS, Herpes simplex eye infections, reviewed 10 September 2026. https://www.nhs.uk/conditions/herpes-simplex-eye-infections/
  24. British Association for Sexual Health and HIV, UK national guideline for the management of infection with Chlamydia trachomatis, 2026. https://www.bashh.org/_userfiles/pages/files/national_guideline_for_the_management_of_infection_chlamydia_trachomatis_2026.pdf
  25. British Association for Sexual Health and HIV, UK national guideline for the management of infection with Neisseria gonorrhoeae, 2025. https://www.bashh.org/_userfiles/pages/files/fiferetal2025britishassociationofsexualhealthandhivuknationalguidelineforthemanagementofinfection_1.pdf
  26. McAnena L and others, Prevalence of gonococcal conjunctivitis in adults and neonates, Eye, 2015. https://www.nature.com/articles/eye201557
  27. Centers for Disease Control and Prevention, Chlamydial infections, STI treatment guidelines, reviewed 22 July 2021. https://www.cdc.gov/std/treatment-guidelines/chlamydia.htm
  28. Centers for Disease Control and Prevention, Gonococcal infections among neonates, STI treatment guidelines, reviewed 21 September 2022. https://www.cdc.gov/std/treatment-guidelines/gonorrhea-neonates.htm
  29. British HIV Association, British Association for Sexual Health and HIV and British Infection Association, Adult HIV testing guidelines, 2020. https://bhiva.org/wp-content/uploads/2024/10/HIV-testing-guidelines-2020.pdf
  30. British Association for Sexual Health and HIV, UK guidelines for the management of syphilis, 2024. https://www.bashh.org/_userfiles/pages/files/syphilis_2024.pdf
ABOUT THE AUTHOR

Mike has been delivering world class Sexually Transmitted Infections testing services to Better2Know patients around the world for over ten years. He has written extensively on the subject, including numerous blogs for Better2Know which are designed to demystify the complex intricacies of sexual health testing. Mike wants to help his readers understand the risks they take in their daily sexual lives and provide the information they need when choosing an STI or STD test in a clear, concise and understandable way. Mike is particularly interested in writing about viral STIs like HIV and Hepatitis, as these infections can have a devastating impact on people's lives if they are not diagnosed quickly. Only through being well informed can you best care for your health, and Mike is passionate about sharing his knowledge and experience to help you and all his readers lead a happier, healthier life.