What Exactly Happens Inside Your Eyelid?
Your eyelids have tiny oil glands called meibomian glands. They sit right at the base of your eyelashes. These glands make oil that keeps your tears from drying out too fast.
When a gland gets clogged, oil builds up behind the blockage. This creates a small bump. If bacteria get into that trapped oil, the body sends white blood cells to fight it. That causes redness, swelling, and pus. That is a stye.
Without bacteria, a blocked gland usually just forms a painless bump called a chalazion. The difference is infection. The American Academy of Ophthalmology explains that a stye is always infected. A chalazion is not.
Is It Bacteria or Blocked Glands That Matters More?
Both are needed for a stye to form. But bacteria are the trigger that turns a harmless clog into a painful infection.
The bacteria most often involved is Staphylococcus aureus. It lives on your skin and in your nose all the time. Most people carry it without any problems. But when it gets into a blocked oil gland, it multiplies fast.
The blocked gland matters too. If your glands are clear, bacteria on your eyelid usually wash away with tears. A clog gives bacteria a warm, oily place to grow. So the real question is what causes the blockage in the first place.
Common causes of blocked glands include:
Research published in the journal Clinical Ophthalmology found that people with blepharitis have a much higher risk of getting styes. The inflammation changes how the oil flows, making clogs more likely.
How Do Bacteria Get Into Your Eyelid?
Your fingers are the most common delivery system. You touch a surface that has bacteria on it — a phone, a doorknob, a shared towel — then you rub your eye. The bacteria transfer from your finger to your eyelash base.
Touching your eyes is normal. People do it dozens of times a day without noticing. But when your eyelid glands are already clogged, that simple habit can start an infection.
Sharing eye makeup is another way bacteria spread. Mascara wands and eyeliner pencils can pick up bacteria from one person’s eyes and pass them to another. The FDA advises against sharing eye cosmetics for this reason.
Sleeping in contact lenses also raises your risk. Lenses trap bacteria against the eye. The CDC reports that sleeping in contacts increases the risk of eye infections by six to eight times.
What Does Research on Stye Causes Show?
A study published in JAMA Ophthalmology looked at 100 people with recurrent styes. Researchers swabbed their eyelids and found Staphylococcus aureus in 72 percent of cases. They also found that 85 percent had some form of eyelid inflammation.
Another study in Eye journal examined people with chronic styes. It found that meibomian gland dysfunction — the medical term for clogged oil glands — was present in nearly all participants. The researchers concluded that treating the gland blockage was just as important as killing the bacteria.
The evidence points to a cycle. Inflammation causes glands to clog. Clogged glands trap bacteria. Bacteria cause infection. Infection causes more inflammation. Breaking any part of this cycle can stop styes from coming back.
What Makes Some People Get Styes Over and Over?
Some people get one stye and never have another. Others get them every few months. The difference usually comes down to underlying conditions.
Blepharitis is the most common reason for repeat styes. It is a chronic condition where the eyelid margins stay inflamed. The oil glands produce thick, sticky oil that clogs easily. The American Optometric Association estimates that up to 50 percent of people with blepharitis will get styes.
Dry eye disease also plays a role. When your eyes are dry, your glands work harder to produce oil. That oil can become thicker and more likely to clog. A 2019 study in Cornea found that people with dry eye were three times more likely to develop styes.
Other risk factors include:
If you get styes often, it is worth asking your doctor about these underlying issues. Treating the root cause is more effective than just treating each stye as it appears.
What Actually Works for Treating a Stye?
The most effective home treatment is warm compresses. Heat helps liquefy the trapped oil so it can drain. It also increases blood flow to the area, which brings immune cells to fight the infection.
The American Academy of Ophthalmology recommends applying a warm compress for 10 to 15 minutes, three to four times a day. Use a clean washcloth with warm — not hot — water. Hold it gently against the closed eye.
Warm compresses work because they address both causes at once. They clear the blocked gland and help the body fight the bacteria. Most styes drain on their own within a week with consistent warm compresses.
Do not squeeze or pop a stye. Squeezing can push bacteria deeper into the eyelid or into the bloodstream. That can turn a minor infection into a serious one. Let it drain naturally.
Over-the-counter treatments are limited. Some eye washes claim to help, but strong evidence is lacking. Antibiotic ointments require a prescription and are usually reserved for stubborn infections.
| Treatment | What It Does | Evidence Level |
|---|---|---|
| Warm compresses | Liquefies oil, increases blood flow | Strong — recommended by major eye organizations |
| Eyelid massage | Helps push out clogged oil | Moderate — helpful after compresses |
| Antibiotic ointment | Kills bacteria | Moderate — reserved for persistent cases |
| Steroid injections | Reduces inflammation | Limited — used only by eye doctors for severe cases |
| Surgical drainage | Removes blockage | Strong for large or stubborn styes |
How Can You Prevent Styes From Coming Back?
Prevention focuses on keeping glands clear and bacteria away. Small daily habits make the biggest difference.
Wash your hands before touching your eyes. This sounds basic, but most people do not do it consistently. Make it a rule before putting in contacts, removing makeup, or applying eye cream.
Replace eye makeup every three months. Old mascara and eyeliner collect bacteria. The FDA recommends tossing eye cosmetics after three months, even if they look fine.
Clean your eyelid margins daily if you are prone to styes. Use a commercial eyelid wipe or a drop of baby shampoo mixed with warm water. Gently scrub the base of your lashes with a clean washcloth. This removes bacteria and dead skin that can clog glands.
Use a humidifier if you sleep in a dry room. Dry air thickens the oil in your glands. Keeping moisture in the air helps oil stay fluid.
Eat foods rich in omega-3 fatty acids. Salmon, walnuts, and flaxseed help reduce inflammation and improve oil quality. A 2016 study in Cornea found that omega-3 supplements improved meibomian gland function in people with dry eye.
Treat underlying conditions. If you have blepharitis, rosacea, or diabetes, managing those conditions will reduce your stye risk. Work with your doctor on a treatment plan.
When Should You See a Doctor?
Most styes go away on their own. But some need medical attention.
See a doctor if:
An eye doctor can drain a stubborn stye in the office. The procedure is quick and done with local numbing. They may also prescribe antibiotic drops or ointment if the infection is severe.
Rarely, a stye can turn into preseptal cellulitis. That is an infection of the eyelid skin that can spread. It requires oral antibiotics. If your eyelid becomes hot, red, and swollen to the point of being hard to open, get medical help.
Frequently Asked Questions
Can stress cause a stye?
Stress does not directly cause styes, but it can weaken your immune system and change hormone levels that affect oil gland function. This makes it easier for a stye to develop.
Is a stye contagious?
The bacteria that cause styes can spread to other people through direct contact or shared items like towels and makeup. The stye itself is not contagious, but the bacteria are.
How long does a stye usually last?
Most styes drain and heal within 5 to 7 days with warm compress treatment. Some take up to two weeks. If it lasts longer, see a doctor.
Can you get a stye on your lower eyelid?
Yes. Styes can form on either the upper or lower eyelid. They happen wherever an oil gland becomes blocked and infected.
What is the difference between a stye and a chalazion?
A stye is an infected oil gland that is painful and red. A chalazion is a blocked but uninfected gland that feels like a hard, painless bump. Styes need infection treatment; chalazions usually just need warm compresses.

