Pink eye, also called conjunctivitis, is an inflammation of the thin clear tissue that lines the inside of your eyelid and covers the white part of your eye. You get pink eye from viral or bacterial infections, allergies, or irritants. The most common cause is a virus, usually the same adenoviruses that cause colds. Bacterial infections are also common, especially in children. Allergic conjunctivitis happens when your eyes react to pollen, dust, or pet dander.
What Is Pink Eye?
Pink eye is exactly what it sounds like — the white part of your eye turns pink or red. This happens because the small blood vessels in the conjunctiva become inflamed and more visible. The inflammation can come from an infection, an allergic reaction, or direct irritation.
The medical term is conjunctivitis. It is one of the most common eye conditions worldwide. Most cases are mild and clear up on their own, but some types need treatment. Knowing what caused your pink eye matters because it changes whether you need to see a doctor and how to treat it.
How Do You Get Pink Eye?
You get pink eye through direct contact with the cause. For infectious types, the cause is usually a virus or bacteria. These germs spread easily from person to person, often through touching contaminated surfaces and then touching your eyes.
Viruses are the most common culprit. Adenovirus, the same virus that causes many common colds, is responsible for most cases of viral pink eye. You can catch it from someone who has a cold or pink eye. Coughing, sneezing, or touching shared objects like doorknobs, towels, or phones can spread the virus to your eyes.
Bacterial pink eye is caused by bacteria such as Staphylococcus aureus, Streptococcus pneumoniae, and Haemophilus influenzae. These bacteria spread the same way viruses do — through direct contact with infected eye discharge or respiratory droplets. Children in schools and daycare centers are especially prone to bacterial pink eye.
You cannot get pink eye from looking into someone’s eyes who has it. It is not airborne in the way that measles or the flu are. Transmission almost always requires touching something contaminated.
What Are the Different Causes of Pink Eye?
Pink eye falls into three main categories based on cause: viral, bacterial, and allergic. A fourth category, irritant conjunctivitis, results from chemicals or foreign objects.
Viral conjunctivitis. This is the most common type. It often starts in one eye and spreads to the other. The discharge is usually watery or clear, not thick. It often accompanies a cold or upper respiratory infection. It is highly contagious.
Bacterial conjunctivitis. This type produces a thick, yellow or green discharge that can make your eyelids stick together, especially after sleep. It often starts in one eye but can spread to both. It is also highly contagious.
Allergic conjunctivitis. This is not contagious. It happens when your immune system overreacts to an allergen like pollen, dust mites, or pet dander. Both eyes are usually affected at the same time. Common symptoms include intense itching, redness, and watery eyes.
Irritant conjunctivitis. This is caused by anything that directly irritates the eye — smoke, chlorine in swimming pools, or chemicals in makeup or contact lens solutions. It is not contagious. Symptoms typically go away once the irritant is removed.
Is Pink Eye Contagious? How Long Does It Last?
Viral and bacterial pink eye are contagious. Allergic and irritant pink eye are not. The contagious period depends on the type and when treatment starts.
Viral pink eye remains contagious as long as the eye is red and producing discharge. This can last anywhere from a few days to two weeks. There is no specific treatment for viral pink eye that shortens the contagious period — it runs its course.
Bacterial pink eye is usually contagious until 24 hours after you start antibiotic eye drops or ointment. Without treatment, bacterial pink eye can remain contagious for one to two weeks.
Keeping children home from school or daycare is recommended until the contagious period is over. Adults should also avoid close contact with others while symptoms are present.
How Is Pink Eye Treated?
Treatment depends entirely on the cause. For viral pink eye, there is no specific antiviral medication for most cases. The infection resolves on its own. You can use artificial tears and warm compresses to soothe symptoms.
Bacterial pink eye is often treated with antibiotic eye drops or ointments. However, many mild cases of bacterial pink eye will clear up without antibiotics within a week or two. Your doctor can determine whether antibiotics are needed based on your symptoms and the bacteria suspected.
Allergic pink eye improves with antihistamine eye drops or oral allergy medications. The best approach is avoiding the allergen if possible. Cold compresses can help with itching and swelling.
For irritant conjunctivitis, the treatment is to flush the eye with clean water or saline and remove the irritant. Most cases resolve within hours to a day.
Over-the-counter eye drops labelled “redness relievers” are not recommended for pink eye. They contain vasoconstrictors that can mask symptoms and cause rebound redness with prolonged use.
When Should You See a Doctor for Pink Eye?
Most cases of pink eye are mild and do not require a doctor visit. However, you should seek medical care if you have any of the following:
- Moderate to severe eye pain
- Sensitivity to light (photophobia)
- Blurred vision that does not clear with blinking
- Intense redness in one eye
- Discharge that is thick, green, or yellow
- Symptoms that do not improve after a week
- A weakened immune system from chemotherapy, HIV, or other conditions
- A newborn with pink eye — infants should always be evaluated promptly
Contact lens wearers who develop pink eye should remove their lenses immediately and see an eye doctor. Bacteria can stick to lenses and cause more serious infections, including a corneal ulcer.
How to Prevent Pink Eye
Preventing pink eye relies on good hygiene. The same measures that prevent colds and flu also reduce your risk.
- Wash your hands frequently with soap and water, especially after touching your face or eyes.
- Avoid touching or rubbing your eyes with unwashed hands.
- Do not share towels, washcloths, pillowcases, or makeup, especially eye makeup.
- If you have pink eye, replace any eye makeup you used before the infection started.
- Clean and store contact lenses properly. Do not wear contacts until symptoms fully resolve.
- Disinfect frequently touched surfaces like doorknobs, countertops, and phones.
- If you are around someone with pink eye, avoid direct contact with their tears or discharge.
There is no vaccine for pink eye. However, getting the flu shot and staying up to date on other vaccinations can reduce your overall risk because pink eye often accompanies respiratory infections.
Common Myths About Pink Eye
Several myths about pink eye persist. One is that you can get pink eye from sleeping in a room with someone who has it. That is not true unless you touch something contaminated and then your eyes.
Another myth is that pink eye always requires antibiotics. As explained earlier, viral pink eye does not respond to antibiotics, and many bacterial cases resolve on their own.
Some people believe that pink eye can be cured by putting breast milk in the eye. There is no evidence that breast milk effectively treats pink eye. It can introduce bacteria and cause more irritation. Stick to proven treatments.
Frequently Asked Questions
Can you get pink eye from a fart?
No. Farts do not contain viruses or bacteria that cause pink eye. This is a common myth with no basis in science.
How long is pink eye contagious after starting eye drops?
For bacterial pink eye, you are usually no longer contagious 24 hours after starting antibiotic eye drops. For viral pink eye, no drops shorten the contagious period, so you remain contagious as long as symptoms last.
Is pink eye serious if left untreated?
Most cases of pink eye are not serious and will clear on their own. However, untreated bacterial infections can sometimes lead to complications like keratitis, especially in contact lens wearers. See a doctor if symptoms are severe or do not improve.
Can you get pink eye from a pool?
Chlorine in pools kills many germs but does not kill all viruses that cause pink eye. Adenovirus can survive in chlorinated water. However, the more common risk is from touching contaminated surfaces around the pool or sharing towels.

