The most common cause of a bump inside or on the edge of your eyelid is either a stye or a chalazion. Both are related to blocked or infected oil glands in the eyelid, but they feel different and develop for different reasons. A few less common conditions can also cause eyelid bumps, and knowing what to look for helps you figure out whether yours needs attention or will resolve on its own.
Styes: Painful Bumps Near Your Lashes
A stye is a red, sore lump that usually shows up right at the edge of your eyelid, near the base of an eyelash. It forms when bacteria, almost always Staphylococcus aureus, infect one of the tiny oil or sweat glands along your lash line. The result is essentially a small abscess. Styes are painful from the start, and the surrounding skin often feels tender, warm, and swollen.
There’s also a deeper version called an internal stye, which forms inside the eyelid when bacteria infect the larger oil glands (meibomian glands) embedded in the firm tissue of the lid itself. Internal styes tend to be more uncomfortable and may take longer to come to a head, but they follow the same basic pattern: infection, swelling, and a noticeable tender bump.
Chalazia: Slow-Growing, Painless Lumps
A chalazion develops farther back on the eyelid than a stye and is usually not painful. It starts when one of the meibomian glands gets blocked. These glands produce the oily layer of your tear film, and when that oil can’t drain properly, it leaks into the surrounding tissue. Your immune system reacts to the trapped oil by forming a small, firm, granuloma-like lump.
Because a chalazion isn’t caused by active infection, it behaves differently from a stye. It tends to grow slowly over days or weeks. You might not even notice it at first. As it enlarges, your eyelid can become red and swollen, and the bump may start to feel mildly tender, but the intense soreness of a stye is typically absent. Chalazia are more common in adults, especially those with chronically inflamed eyelid margins (a condition called blepharitis) or skin conditions like rosacea.
Less Common Causes of Eyelid Bumps
Not every eyelid bump is a stye or chalazion. A few other possibilities include:
- Milia: Tiny white bumps filled with keratin (a skin protein). They’re painless, pinhead-sized, and especially common in newborns, though adults get them too.
- Syringomas: Small, firm growths from sweat glands that appear yellow or skin-colored. They tend to cluster around the lower eyelids and are completely harmless.
- Xanthelasma: Yellowish, flat patches on or near the eyelids caused by cholesterol deposits under the skin. They don’t hurt but can signal elevated blood lipids.
These bumps look and feel quite different from styes and chalazia. If your bump is white, yellow, flat, or doesn’t seem inflamed at all, one of these is a more likely explanation.
How to Treat an Eyelid Bump at Home
Warm compresses are the first-line treatment for both styes and chalazia. The goal is to soften the blocked or hardened oil inside the gland so it can drain. Research on meibomian gland function shows that the oil in these glands needs to reach about 40 to 42°C (roughly 104 to 108°F) to fully liquefy. Since heat loses about 5°C as it passes from the outer lid surface to the glands inside, the compress itself should feel comfortably hot, around 45 to 46°C (113 to 115°F) at the skin. A clean washcloth soaked in hot water works well. Apply it for 10 to 15 minutes, several times a day, rewarming it as it cools.
Avoid squeezing or popping the bump. With a stye, squeezing can spread the bacterial infection into surrounding tissue. With a chalazion, it rarely works because the contents are semi-solid and walled off. Keep your eyelids clean by gently washing the lash line with warm water or a diluted baby shampoo. If you wear contact lenses or eye makeup, take a break from both until the bump resolves.
How Long Recovery Takes
Styes typically drain on their own within a week or so once they come to a head. You’ll notice a small white or yellow point at the surface, and after it ruptures (usually during a warm compress), the pain and swelling drop quickly.
Chalazia take longer. With consistent warm compresses, you should see a difference in size and redness within one to two weeks. Many chalazia heal completely within a month without any medical treatment. Some, though, linger for months, especially larger ones or those in people with recurring eyelid inflammation. If a chalazion hasn’t improved after about four weeks of home care, it’s worth having an eye doctor take a look.
When a Bump Needs Medical Treatment
An ophthalmologist has two main options for a stubborn chalazion. For smaller bumps, or ones located near the tear drainage system where a cut could cause complications, a steroid injection directly into the lump can shrink it effectively. For larger or deeper chalazia, a minor in-office procedure to drain the contents is the standard approach. The eyelid is numbed, a small incision is made on the inner surface of the lid (so there’s no visible scar), and the thickened material is scooped out. Swelling and bruising after the procedure typically clear within two weeks.
Styes that don’t drain on their own or that spread into a wider area of redness and swelling may need antibiotic treatment. If the infection extends beyond the bump itself and causes significant swelling across the entire eyelid, fever, or eye pain, this could indicate preseptal cellulitis, a skin infection around the eye that requires prompt treatment. Vision changes, a bulging eye, or pain with eye movement are signs the infection may have spread deeper, and these warrant emergency care.
Warning Signs Worth Taking Seriously
Most eyelid bumps are harmless, but a small number turn out to be something more concerning. Sebaceous carcinoma, a rare cancer of the oil glands, can mimic a chalazion. According to the Mayo Clinic, warning signs include a painless lump on the upper eyelid that may appear pink, red-brown, or yellowish, along with thickening of the eyelid skin and persistent swelling. The biggest red flag is a “chalazion” that keeps coming back in the same spot after treatment, or one that causes loss of eyelashes in the area around it. If your bump recurs, changes in appearance, or doesn’t respond to any treatment over several months, an eye doctor may recommend a biopsy to rule out malignancy.
Preventing Recurring Bumps
If you’re prone to styes or chalazia, daily eyelid hygiene makes a real difference. Gently cleaning your lash line each morning removes the debris, bacteria, and dried oil that clog glands. A warm compress for a few minutes before cleaning helps loosen the oil. This routine is especially important if you have blepharitis, which is chronic low-grade inflammation of the eyelid margins. Even after a bump fully heals, blepharitis tends to persist and requires ongoing daily attention to keep new bumps from forming.
Replacing eye makeup every few months, avoiding touching or rubbing your eyes with unwashed hands, and removing all makeup before bed also reduce your risk. People who get frequent chalazia sometimes benefit from omega-3 fatty acid supplements, which may improve the quality of the oil their meibomian glands produce, though results vary.

