Our Services
Medical Information
Helpful Resources
Published on: 3/10/2026
A swollen, painful eyelid is often a sty, a small bacterial infection of an oil gland that typically improves in 7 to 10 days with warm compresses, gentle eyelid hygiene, avoiding squeezing, and taking a break from eye makeup and contacts.
There are several factors to consider, including look-alikes and red flags like worsening swelling, fever, vision changes, or pain with eye movement that need medical care. See below for complete, medically approved steps, prevention tips, and when to seek treatment so you can choose the right next step.
A sty (also spelled stye) is a common, painful bump that forms along the edge of your eyelid. If your eyelid is swollen, tender, and red, a sty is often the reason. While it can look alarming and feel uncomfortable, most sties are mild and heal on their own with proper care.
Still, not every swollen eyelid is just a simple sty. Understanding what's happening — and knowing when to act — can help you recover faster and avoid complications.
A sty is a small infection of an oil gland or eyelash follicle in the eyelid. It's usually caused by bacteria (most often Staphylococcus species) that normally live on the skin but enter a blocked gland.
There are two main types:
External sty (hordeolum):
Forms at the base of an eyelash. You'll see a red, pimple-like bump on the outer eyelid.
Internal sty:
Develops deeper inside the eyelid when an oil gland becomes infected. These can be more painful and cause more swelling.
Sties are not dangerous in most cases, but they can be uncomfortable.
Swelling happens because your body is fighting an infection. When bacteria enter a blocked oil gland:
This is a normal immune response — but in a small space like your eyelid, even minor inflammation can feel intense.
A sty usually develops quickly — often within a day or two. You may notice:
Sometimes, the bump fills with pus and may drain on its own.
Several factors increase your risk of developing a sty:
Sties are not usually caused by stress directly, but stress can weaken immune defenses, making infections more likely.
Not all eyelid swelling is a sty. Other conditions can look similar:
If your symptoms are worsening or you're experiencing significant discomfort, try Ubie's free AI-powered Eye pain Symptom Checker to help determine whether you're dealing with a simple sty or a condition that requires immediate medical attention.
Most sties improve within 7–10 days with simple home care. Here's what doctors recommend:
This is the first-line treatment.
Warmth helps:
Consistency matters more than intensity.
Gently clean your eyelids:
This reduces bacteria and prevents spread.
It can be tempting — don't do it.
Squeezing can:
Let it drain naturally.
Until the sty heals:
This prevents reinfection and irritation.
If discomfort is significant:
Most sties are mild. However, you should seek medical care if:
A doctor may prescribe:
If symptoms are severe or spreading quickly, speak to a doctor immediately. In rare cases, deeper infections around the eye can become serious and require urgent treatment.
Most do not.
However, untreated infection can occasionally spread to surrounding tissues, causing:
Warning signs include:
These symptoms require urgent medical attention.
Do not delay care if you notice these changes.
Typical timeline:
Internal sties may take slightly longer.
If a bump remains but is no longer painful, it may have turned into a chalazion, which sometimes needs medical treatment.
Prevention focuses on hygiene and gland health.
For people with recurring sties, a doctor may recommend a consistent eyelid cleaning routine.
The bacteria can spread through direct contact. Avoid sharing towels, makeup, or pillowcases.
Stress doesn't directly cause a sty, but it may weaken immunity, increasing infection risk.
Yes. A sty is not typically a reason to stay home unless symptoms are severe.
Not usually. Most sties resolve with warm compresses alone. Antibiotics are reserved for specific cases.
A sty is a common eyelid infection that causes swelling, redness, and pain. While uncomfortable, most cases improve within a week using:
Do not squeeze or pop the bump.
If symptoms worsen, vision changes, or swelling spreads, speak to a doctor right away. Although rare, more serious infections around the eye can occur and require prompt treatment.
When you're uncertain about your symptoms or need guidance on whether to seek care, Ubie's free Eye pain Symptom Checker can help you quickly assess your situation and understand your next steps based on your specific symptoms.
And remember: anytime symptoms feel severe, unusual, or potentially life-threatening, speak to a doctor immediately. Your eyes are delicate — early care is always the safest choice.
(References)
* Branes L, Schechter CD. Hordeolum (Sty). 2024 Jan-. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2024 Jan-. PMID: 32837949.
* Raskin N, Briscoe C. Treatment of hordeolum: an update. Curr Opin Ophthalmol. 2021 Jul 1;32(4):307-310. doi: 10.1097/ICU.0000000000000768. PMID: 33758156.
* Milman T, Intili A, Ben Zaken Z, et al. Common Eyelid Disorders. Dis Mon. 2020 Apr;66(4):100898. doi: 10.1016/j.disamonth.2019.10.007. Epub 2019 Nov 13. PMID: 31735314.
* Sun Q, Chen X, Yang M, Li G, Yang W, Zhang X. Microbial spectrum of external hordeolum. J Ophthalmol. 2020 Sep 4;2020:6677934. doi: 10.1155/2020/6677934. PMID: 32908757; PMCID: PMC7489501.
* Shokrollahi K, Khan U, Davies J. Eyelid and Adnexal Disorders: A Review. Plast Reconstr Surg Glob Open. 2022 Sep 14;10(9):e4521. doi: 10.1097/GOX.0000000000004521. PMID: 36245842; PMCID: PMC9558909.
We would love to help them too.
For First Time Users
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.