A swollen eye is almost always caused by one of a handful of common conditions: allergies, a stye, a blocked oil gland, or an infection like pink eye. Most cases resolve on their own or with simple home care within a few days to a couple of weeks. The key is figuring out which type of swelling you’re dealing with, because that determines whether you need a compress, an antihistamine, or a trip to the doctor.
What’s Causing the Swelling
The first thing to notice is whether one eye is swollen or both. Swelling in both eyes almost always points to an allergic reaction, whether from pollen, pet dander, dust, or a product you applied near your eyes. Allergic swelling tends to be puffy rather than firm, and it usually comes with itching. A more intense allergic reaction called angioedema causes deeper swelling in both eyelids and can also affect the lips or other soft tissue areas of the body.
Swelling in one eye, concentrated in one spot, is most often a stye or a chalazion. These look similar but feel different. A stye is a bacterial infection at the base of an eyelash. It forms a tender, red bump right along the lid margin and hurts when you touch it. A chalazion is a blocked oil gland deeper in the eyelid. It forms a firm, round nodule that is painless and not red. Styes tend to come and go quickly, while chalazia develop slowly over days or weeks and linger longer.
Pink eye (conjunctivitis) can also cause eyelid swelling, along with redness across the white of the eye, discharge, and a gritty feeling. Bacterial pink eye usually produces thick yellow or green discharge that crusts your lashes shut overnight. Viral pink eye is more watery and often starts in one eye before spreading to the other. Most viral cases clear up without treatment.
Less commonly, swelling can come from blepharitis, a chronic inflammation along the eyelid margins that causes flaking, redness, and irritation that tends to come and go over time. Insect bites and minor trauma to the area can also cause puffiness that looks alarming but resolves within a day or two.
Painful vs. Painless Swelling
Pain is one of the most useful clues for narrowing down the cause. A stye hurts, especially when you blink or press on the bump. An internal stye, which forms deeper inside the lid from an infected oil gland, causes more widespread eyelid pain and swelling than the external type. Cellulitis, a skin infection around the eye, produces severe swelling with a deep reddish-purple color and significant pain.
Painless swelling is a different category. A chalazion is the most common painless lump on the eyelid. It feels firm under the skin but doesn’t hurt. Allergic swelling is also painless, though it itches. In rare cases, a painless nodule that keeps coming back in the same spot or won’t go away after weeks could be something more serious, including a type of skin cancer that can mimic a chronic chalazion. Any bump that persists for more than a month without improving deserves a professional evaluation.
Warm Compress vs. Cold Compress
The type of compress you use matters. They do different things.
A warm compress (a clean, damp washcloth soaked in warm water) is the right choice for styes and chalazia. The warmth helps soften the clogged oil inside the gland and encourages it to drain. It also loosens the sticky buildup and crust that can form on your lashes with bacterial infections. Hold it against your closed eyelid for 10 to 15 minutes, three or four times a day. Don’t squeeze or try to pop a stye. Let it drain on its own.
A cold compress works better for allergic swelling, insect bites, and general inflammation. The cold reduces blood flow to the area, which brings down puffiness and soothes itching. Use a clean cloth dampened with cool water, applied the same way, three or four times a day. For allergies, over-the-counter antihistamine eye drops can also help by blocking the chemical reaction that triggers the swelling and itch in the first place. Oral antihistamines work too, especially if you’re also dealing with sneezing or a runny nose.
How Long Recovery Takes
Styes are short-lived. The active infection typically lasts one to three days. Once the stye drains on its own, the healing phase takes another 7 to 10 days, so you’re looking at roughly two weeks from start to finish. Keep up the warm compresses and avoid wearing eye makeup during this time.
Chalazia take longer. A small one can shrink and disappear on its own over a few weeks without any treatment. Larger or stubborn chalazia that don’t change in size after several weeks may need medical attention. Options include prescription antibiotics, a steroid injection to reduce inflammation and promote drainage, or a minor in-office procedure where a doctor numbs the area and drains the contents through a small incision.
Allergic swelling can resolve within hours once you remove the trigger or take an antihistamine. If it’s seasonal, you may deal with recurring puffiness throughout allergy season. Viral pink eye usually runs its course in one to two weeks. Bacterial pink eye often improves within a few days of starting antibiotic drops, though mild cases can resolve without them.
Contact Lens Wearers Face Extra Risks
If you wear contact lenses and your eye is swollen, take your lenses out immediately and don’t put them back in until the swelling is completely gone. Contact lens wearers with bacterial conjunctivitis have a higher risk of developing a corneal infection called keratitis, which can threaten your vision. Symptoms of keratitis include pain, sensitivity to light, blurred vision, excessive tearing, and discharge along with the swelling.
The two biggest risk factors for contact lens infections are poor hygiene and sleeping in your lenses, which together account for the majority of cases. To protect yourself going forward: wash your hands before handling lenses, never top off old solution (dump it out and use fresh solution every time), replace your lens case every three months, and keep all water away from your lenses. That means no swimming, showering, or rinsing them in tap water.
When Swelling Signals Something Serious
Most eyelid swelling is harmless, but a few warning signs mean you need care right away. The concern is a deeper infection called orbital cellulitis, which affects the tissue behind the eye rather than just the skin in front of it. The difference is significant: preseptal cellulitis (in front of the eye) causes swelling, redness, and pain, but your vision stays normal and your eye moves freely. Orbital cellulitis causes those same symptoms plus a bulging eye, pain when moving the eye, restricted eye movement, and reduced vision or changes in color perception.
Orbital cellulitis is more common in children and often follows an upper respiratory infection, sinus infection, toothache, or earache rather than a skin wound. It requires emergency treatment because the infection can spread and damage the optic nerve. If you or your child develops a high fever along with severe eye swelling, especially with a protruding eye or difficulty moving it, go to the emergency room. Don’t wait for a regular appointment.
Also seek prompt care if swelling gets worse over 24 to 48 hours instead of better, if you develop vision changes of any kind, or if you notice swelling spreading beyond the eyelid to the cheek or forehead.

