A swollen upper eyelid is most commonly caused by a chalazion, a blocked oil gland that creates a firm bump set back from the eyelid margin. Other frequent culprits include styes, allergic reactions, insect bites, and infections. Most causes are harmless and resolve on their own, but the location of the swelling, whether it hurts, and any accompanying symptoms like fever or vision changes can help you figure out what’s going on.
Chalazion: The Most Common Cause
A chalazion forms when one of the tiny oil glands inside your eyelid gets clogged. These glands normally release oils that keep your tear film from evaporating too fast. When one plugs up, the oil backs up and forms a round, firm lump. Chalazia typically appear farther back on the eyelid, away from the lash line, which is one easy way to tell them apart from a stye.
The bump may start with mild redness and tenderness, but it usually becomes painless within a few days even as the swelling persists. A chalazion can stick around for weeks or even a couple of months. Most shrink on their own, but warm compresses speed the process by softening the trapped oil. Research on meibomian gland blockages shows that warming the eyelid to about 40 to 42°C (roughly 104 to 107°F) is the sweet spot for melting the clogged material. A clean washcloth soaked in warm water and held against the closed lid for 5 to 10 minutes, several times a day, is the standard approach. Avoid using water hot enough to sting, since eyelid skin is thin and burns easily.
Styes: Painful Bumps Along the Lash Line
A stye (hordeolum) looks a lot like a chalazion at first glance, but the key differences are location and pain. Styes form right at the edge of the eyelid, usually around a lash follicle, and they hurt. They often develop a visible white or yellow head, similar to a pimple, and the surrounding skin turns red and tender to the touch.
Styes typically last one to two weeks and go away on their own. Warm compresses help here too. Resist the urge to squeeze or pop a stye, since that can push the infection deeper. If a stye doesn’t drain on its own after a couple of weeks, or keeps coming back, a doctor can lance it in the office.
Allergic Reactions and Contact Irritants
If your upper eyelid is puffy rather than lumpy, and it itches but doesn’t hurt, an allergic reaction is the likely explanation. The swelling is often pale or slightly pink and can affect one or both eyes. Seasonal allergens like pollen are obvious triggers, but the eyelid is also extremely sensitive to things you touch and then transfer to your face.
Contact allergens are a particularly common and underrecognized cause. Cosmetics, skincare products, and hair products contain several classes of ingredients that frequently trigger eyelid reactions: fragrances, preservatives (especially formaldehyde-releasing compounds), dyes like p-phenylenediamine found in hair color, latex, and metals like nickel. You don’t have to apply a product directly to your eyes for it to cause eyelid swelling. Touching your face after handling a product, or vapors from nail polish or hair dye, can be enough. If the swelling keeps returning, think about any new product you’ve introduced in the past few weeks, including shampoo, sunscreen, or hand soap.
Blepharitis: Chronic Lid Inflammation
Blepharitis is ongoing inflammation of the eyelid margin that can make your lids look puffy, red, and irritated over time. You’ll usually notice crusting or flaking around your lashes, and your eyes may feel gritty, itchy, or burn. There are two overlapping types. Anterior blepharitis centers on the skin and lash follicles, often caused by bacteria or dandruff-like flaking. Posterior blepharitis involves the oil glands along the inner lid margin and frequently overlaps with chalazia.
Blepharitis tends to be a chronic, recurring condition rather than a one-time event. Daily lid hygiene, meaning gently cleaning the lash line with a warm washcloth or diluted baby shampoo, is the cornerstone of keeping it under control.
Insect Bites
A mosquito or other insect bite on or near the eyelid causes dramatic-looking swelling because the skin there is so thin and loose. You’ll typically see a small papule (raised dot) at the center, with itching and redness spreading outward. The swelling can be significant enough to partially close the eye, which looks alarming but is usually harmless. A cool compress and an oral antihistamine bring the swelling down within a day or two.
Infections That Need Attention
Most upper eyelid swelling is minor, but two infections deserve a closer look: preseptal cellulitis and orbital cellulitis.
Preseptal cellulitis is an infection of the eyelid skin and tissue in front of the eye socket. The lid becomes red, warm, swollen, and sometimes painful, often following a scratch, insect bite, or sinus infection. When you manage to open the swollen lid, the eye itself looks normal: the white of the eye isn’t red, your vision is fine, and you can move the eye in all directions without pain. Preseptal cellulitis needs antibiotics but isn’t an emergency.
Orbital cellulitis is the dangerous version. The infection sits behind the eyelid, inside the eye socket itself. The warning signs that distinguish it from preseptal cellulitis are specific: pain when you move the eye, limited eye movement, bulging of the eyeball forward, decreased vision, and often fever. If you notice any combination of these, get to an emergency room. Orbital cellulitis can threaten your vision and spread to the brain.
Tear Gland Swelling
The lacrimal (tear) gland sits in the outer upper corner of each eye socket, tucked under the brow bone. When it becomes inflamed, a condition called dacryoadenitis, the outer portion of the upper eyelid swells and can become red and tender. The swelling is distinctly off to one side, toward the temple, rather than centered on the lid. This is less common than the causes above but worth considering if your swelling is specifically in that outer upper corner. It can result from a viral infection, a blocked tear duct, or occasionally an autoimmune condition.
Thyroid Eye Disease
Thyroid conditions, particularly an overactive thyroid caused by Graves’ disease, can affect the tissues around the eyes. In the active stage, inflammation causes swelling of the eyelids and surrounding soft tissue, redness of the white of the eye, and sometimes a bulging appearance. Upper eyelid retraction, where the upper lid pulls back and exposes more of the white above the iris, is the most common sign and affects up to 90% of people with thyroid eye disease. If you’ve noticed puffy, swollen eyelids along with a staring appearance, weight changes, a racing heart, or tremors, thyroid function is worth checking.
Signs That Need Prompt Medical Care
Most swollen eyelids improve within a few days with warm compresses and patience. But certain combinations of symptoms signal something more serious:
- Fever with eyelid swelling: suggests an infection that may need antibiotics
- Pain when moving the eye: a hallmark of orbital cellulitis
- Double vision or vision loss: indicates the problem has moved beyond the eyelid
- Eye bulging forward: points to swelling or infection behind the eye
- Swelling so severe both eyes are nearly shut: can indicate a serious allergic reaction or systemic process
For children, the same red flags apply, and parents should also seek care if the child’s outer eyelid is very red and swollen with a fever, or if the child seems unusually unwell. In kids, insect bites and allergies are particularly common triggers, but infections can progress faster than in adults.

