Doctors Note Logo

Published on: 4/9/2026

Painful stye? Why your eyelid is swollen and medical next steps

A painful stye is a red, tender eyelid lump from a blocked, infected oil gland or eyelash follicle; most improve in 1 to 2 weeks with warm compresses 10 to 15 minutes, 3 to 5 times daily, gentle lid cleaning, and by avoiding makeup, contacts, and squeezing.

Seek medical care if swelling worsens after 48 hours, you have vision changes, severe pain, fever, or spreading redness, since cellulitis may need antibiotics or drainage. There are several factors to consider that could change your next steps; see the complete guidance below.

answer background

Explanation

Painful Stye? Why Your Eyelid Is Swollen and What to Do Next

A painful stye can seem to appear overnight. One day your eyelid feels slightly irritated, and the next it's red, swollen, and tender to the touch. While a stye is usually not dangerous, it can be uncomfortable and sometimes signals a deeper issue that needs medical attention.

Here's what you need to know about a stye, why your eyelid is swollen, and what medical steps to take next.


What Is a Stye?

A stye (also called a hordeolum) is a small, painful lump that forms along the edge of your eyelid. It's usually caused by a bacterial infection—most commonly Staphylococcus bacteria—that affects the oil glands or hair follicles in the eyelid.

A stye may look like:

  • A red, swollen bump near the eyelash line
  • A pimple-like lump on the eyelid
  • A tender, sore area that may produce discharge
  • A swollen eyelid that feels warm

It can form on the outside of the eyelid (external stye) or on the inside (internal stye). Internal styes may be more painful because they press against the surface of the eye.


Why Is Your Eyelid Swollen?

The swelling from a stye happens because your body is fighting off infection. When bacteria enter an oil gland or eyelash follicle, your immune system responds by sending white blood cells to the area. This creates:

  • Redness
  • Warmth
  • Swelling
  • Pain or tenderness

The gland may become blocked, causing fluid and pus to build up. This is why a stye sometimes develops a yellowish center before draining.


Common Causes and Risk Factors

A stye can happen to anyone, but certain factors increase your risk:

  • Touching your eyes with unwashed hands
  • Not removing eye makeup completely
  • Using old or contaminated makeup
  • Wearing contact lenses without proper hygiene
  • Chronic eyelid inflammation (blepharitis)
  • Skin conditions like rosacea
  • A weakened immune system

If you get frequent styes, it may signal an underlying eyelid condition that needs medical treatment.


Stye vs. Chalazion: What's the Difference?

It's easy to confuse a stye with a chalazion.

  • Stye: Usually painful, caused by infection, often red and tender.
  • Chalazion: Usually painless, caused by a blocked oil gland without active infection, often firmer and slower growing.

If the swelling isn't painful and lasts for weeks, it may not be a stye. A doctor can help confirm the diagnosis.


Symptoms That Are Normal With a Stye

Most styes cause mild to moderate symptoms that improve within 1–2 weeks. Common symptoms include:

  • Localized swelling on the eyelid
  • Tenderness or pain
  • A scratchy feeling in the eye
  • Mild tearing
  • Light sensitivity
  • A small amount of eye discharge

If you're experiencing crusty discharge or gunk around your eyes along with the stye, you can use Ubie's free AI-powered Eye booger symptom checker to help identify possible causes and understand when to seek care.


How to Treat a Stye at Home

Most styes improve on their own with simple care. The main goal is to help the stye drain naturally.

✅ Warm Compresses (Most Important Step)

  • Use a clean washcloth soaked in warm (not hot) water.
  • Place it over your closed eyelid for 10–15 minutes.
  • Repeat 3–5 times per day.

Warmth helps open the blocked gland and allows drainage.

✅ Keep the Eyelid Clean

  • Gently clean the eyelid with diluted baby shampoo or a doctor-recommended eyelid cleanser.
  • Rinse carefully.

✅ Avoid These Mistakes

  • Do NOT squeeze or pop a stye.
  • Do NOT wear eye makeup until it heals.
  • Avoid contact lenses if possible.

Popping a stye can spread infection and worsen swelling.


When to See a Doctor

While a stye is usually mild, some situations require medical attention.

See a doctor if:

  • The swelling worsens after 48 hours
  • The stye does not improve after 1–2 weeks
  • Your entire eyelid becomes very swollen
  • You have vision changes
  • The pain becomes severe
  • Redness spreads into your cheek or eyebrow
  • You develop fever

These could signal a more serious infection, such as preseptal cellulitis or, rarely, orbital cellulitis. These conditions require prompt medical treatment.

If you experience severe swelling, eye pain with movement, double vision, or fever, speak to a doctor urgently. These symptoms can indicate a serious infection that should not be ignored.


Medical Treatment for a Stye

If home care doesn't work, your doctor may recommend:

🔹 Antibiotic Ointment or Drops

Used if there is active bacterial infection or spreading inflammation.

🔹 Oral Antibiotics

Needed if:

  • The infection spreads
  • There is surrounding cellulitis
  • You have repeated styes

🔹 Drainage Procedure

For persistent or large styes, a doctor may numb the eyelid and make a small incision to drain it safely. This is quick and usually done in an office setting.

Never attempt to drain a stye yourself.


Can a Stye Be Prevented?

Yes, especially if you get them frequently.

Prevention Tips

  • Wash hands before touching your eyes
  • Remove eye makeup every night
  • Replace mascara every 3 months
  • Clean eyelids regularly if you have blepharitis
  • Disinfect contact lenses properly
  • Avoid sharing towels or cosmetics

If you have chronic eyelid inflammation, a doctor may recommend a long-term lid hygiene routine.


Are Styes Contagious?

The bacteria that cause a stye can spread, but the condition itself is not highly contagious. Good hygiene reduces the risk of passing bacteria to others.

Avoid:

  • Sharing towels
  • Sharing makeup
  • Touching the stye and then touching other surfaces

When It Might Be Something More Serious

Most eyelid swelling is due to a simple stye, but occasionally other conditions may look similar:

  • Chalazion
  • Allergic reaction
  • Preseptal cellulitis
  • Orbital cellulitis (rare but serious)
  • Sebaceous gland carcinoma (very rare, usually persistent and not painful)

If a lump does not resolve after several weeks, keeps returning in the same location, or causes vision changes, speak to a doctor. Persistent eyelid lumps should always be evaluated.


The Bottom Line

A painful stye is common and usually harmless, but it can be uncomfortable. The good news is that most styes improve within one to two weeks with warm compresses and basic eyelid care.

Here's what to remember:

  • A stye is usually a localized bacterial infection.
  • Warm compresses are the most effective home treatment.
  • Do not squeeze or pop it.
  • Seek medical care if symptoms worsen or don't improve.

If you're dealing with unusual discharge or want to better understand what's causing your Eye booger alongside your stye, a free symptom checker can provide helpful guidance on next steps.

And most importantly: Speak to a doctor if you experience severe pain, vision changes, spreading redness, fever, or if anything feels significantly worse than a typical stye. While most cases are mild, eye infections can become serious if left untreated.

Taking early, sensible action can help you heal faster and protect your vision.

(References)

  • * Akpek EK, Çelik U, Göktaş S, Kısakol P, İnan UU. Acute hordeolum in adults: Evaluation and management. Surv Ophthalmol. 2023 Jul-Aug;68(4):815-829. doi: 10.1016/j.survophthal.2023.01.002. Epub 2023 Jan 28. PMID: 36738914.

  • * Chang M, Lin H, Tang Z, Li Z. Eyelid and orbital infections. Curr Opin Ophthalmol. 2022 Jul 1;33(4):347-353. doi: 10.1097/ICU.0000000000000859. PMID: 35619934.

  • * Lee JJ, Seiff SR. Common Eyelid Disorders. Am Fam Physician. 2021 Jan 15;103(2):109-118. PMID: 33443427.

  • * American Academy of Ophthalmology Preferred Practice Pattern Committee. Preferred Practice Pattern: Chalazion and Hordeolum. Ophthalmology. 2019 Jan;126(1):P1-P20. doi: 10.1016/j.ophtha.2018.10.027. Epub 2018 Oct 20. PMID: 30343825.

  • * Bernardes TF, Bonfioli AA. Inflammatory conditions of the eyelid: A review. Int Ophthalmol. 2018 Jun;38(3):1317-1331. doi: 10.1007/s10792-017-0621-5. Epub 2017 Jun 2. PMID: 28577038.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.