Contact Dermatitis vs Sunburn

Contact dermatitis is a rash caused by something that touched the skin. It comes in two forms - irritation from a substance that would bother anyone given enough exposure, and an allergic reaction to something only some people react to. Both clear once the cause is found and removed. Sunburn is an injury to the skin from ultraviolet light. The redness and pain are the body clearing away damaged cells, which is why they arrive hours after the exposure rather than during it. The skin heals in about a week. Some of the DNA damage underneath does not.

Reviewed by Dr. Schwarz, Board-Certified Dermatologist · Research updated 2026-10-23
The back of one hand and the wrist on pale skin. A bright pink, slightly swollen patch with tiny blisters covers the back of the hand and stops at a straight line across the wrist.Sunburn: 1. Sunburn Header — Light Skin; Lighter skin.

Key differences

The same eight facts on every condition comparison.

Usual age
Any age
Any age
Where
Where something touched
Sun-exposed skin
Main sign
Red, itchy or burning rash
Red, hot, sore skin hours after sun
Itch or pain
Itchy or burning
Painful, then itchy
Contagious
No
No
Long term
Clears once the cause stops
Heals in about a week
Scars
No
No
Who gets it
Anyone; wet-work jobs
Anyone; fair skin most

What is it?

Contact Dermatitis
Sunburn
What is it?

It is eczema from contact.
A substance touching the skin provokes the rash.

There are two types.
Irritant dermatitis damages the barrier directly; allergic dermatitis is a delayed immune reaction.

Patch testing finds allergies.
It differs from skin-prick testing.

The exposure is part of treatment.
Identifying what touched the skin guides care.

It is an ultraviolet injury.
Sunburn is inflammatory skin damage caused by excessive ultraviolet exposure.

Symptoms follow exposure.
Warmth, tenderness, swelling and color change develop afterwards; severe burns may blister.

Cool weather still counts.
Ultraviolet damage occurs even when it feels cool or redness is hard to see.

Unusual reactions have causes.
A severe burn after little sun can reflect a photosensitizing medicine or condition.

What it looks like

Contact Dermatitis

Contact Dermatitis: Dry, cracked hands; Irritant.

Irritant contact dermatitis Damage from soaps, solvents or water; most common.

Contact Dermatitis: Allergic.

Allergic contact dermatitis Immune reaction to nickel, fragrance, plants and more.

Sunburn

Sunburn: Redness.

Redness Hot, tender skin in sun-exposed areas.

Sunburn: Blisters.

Blisters Fluid-filled blisters in severe burns.

Sunburn: Peeling.

Peeling Skin flaking as it heals.

Skin tones
The back of one hand and the wrist on pale skin. A bright pink, slightly swollen patch with tiny blisters covers the back of the hand and stops at a straight line across the wrist.
The back of one hand and the wrist on medium olive skin. A dusky pink-brown, slightly swollen and scaly patch covers the back of the hand and stops at a straight line across the wrist.
The back of one hand and the wrist on mid-brown skin. A violet-brown, swollen, slightly scaly patch covers the back of the hand and stops at a straight line across the wrist, with no red color in it.
The back of one hand and the wrist on deep brown skin. A dark violet-brown, swollen, scaly patch covers the back of the hand and stops at a straight line across the wrist, with no red color anywhere in it.
Sunburn: 1. Sunburn Header — Light Skin; Lighter skin.
Sunburn: 2. Sunburn Header — Medium Skin; Medium skin.
Sunburn: 3. Sunburn Header — Brown Skin; Brown skin.
Sunburn: 4. Sunburn Header — Deep Skin; Darker skin.
Diagram
Contact Dermatitis mechanism diagram. Irritants damage the barrier: Repeated exposure can directly injure outer skin. Inflammation causes a rash: Both routes can cause itching, scale, and swelling. Allergy activates immune memory: A sensitized immune system reacts to a contact allergen.
Sunburn mechanism diagram. UV damages skin cells: Excess ultraviolet light injures cell components. Inflammation develops: Chemical signals increase blood flow and swelling. Damaged cells are shed: The skin may peel as it recovers.
In the skin

Skin contact can cause inflammation through direct irritation or a delayed allergic reaction. These are different routes to a rash that may itch, swell, blister or scale.

Excess ultraviolet exposure injures skin cells and triggers inflammation. Increased blood flow and swelling cause soreness and warmth, and damaged surface cells may later peel away.

Where it shows up

Where the skin meets a trigger
Skin exposed to ultraviolet radiation

When it usually starts

010203040506070+

Contact Dermatitis. Can begin at any age after irritation or sensitization to a contacting substance.

Sunburn. Can occur at any age after enough ultraviolet exposure.

Causes and triggers

Causes

Contact dermatitis happens when something touching the skin either damages it directly or sets off an allergic reaction. The rash shows up where the contact happened.

Sunburn is damage to skin cells from ultraviolet light. The redness and pain come from the inflammation that follows.

Family tendency

People with eczema or a family history of allergies react more easily.

Fair skin, red hair and freckles mean less natural protection from melanin.

Risk factors
Eczema, Wet work, Healthcare, cleaning and hairdressing jobs, Frequent handwashing
Fair skin, Some medicines, Retinoids and acids, Young children
Trigger
● Contact Dermatitis
● Sunburn
Nickel
Well established
Not listed
Fragrance
Well established
Not listed
Poison ivy
Well established
Not listed
Hair dye
Strong link
Not listed
Harsh soaps and solvents
Well established
Not listed
Preservatives in skincare
Strong link
Not listed
Midday sun
Not listed
Well established
High altitude
Not listed
Strong link
Water, sand and snow reflection
Not listed
Strong link
Tanning beds
Not listed
Well established

Daily Care

Contact Dermatitis
Sunburn
Daily care

Habits that help

  • Find the cause and stop it
    Photograph it and list what touches it.
  • Learn the ingredient names
    One molecule hides in dozens of products.
  • Switch to fragrance-free products
    A meaningful label, unlike unscented.
  • A thick, plain moisturizer, applied often
    Barrier repair is half the treatment.
  • The right gloves, worn the right way
    Vinyl or nitrile, cotton liner, off when done.
  • Lukewarm water and a non-foaming wash
    Dry gently, moisturize straight after.
  • Barrier protection for nickel
    Clear polish short term, titanium or steel long term.
  • Cool compresses
    Gently apply a cool, damp cloth to soothe weeping or irritated skin.
  • Patch testing
    The only way to name an allergen.

Avoid

  • Avoid: Carrying on using the product
    Why most rashes last months.
  • Avoid: Frequent handwashing and hand sanitizer
    Water, detergent and alcohol strip broken skin.
  • Avoid: Occlusive gloves worn for hours
    Trapped sweat swells skin.
  • Avoid: Hot water and scrubbing
    Both strip barrier fats.
  • Avoid: Scratching
    Lets more trigger in and thickens the skin.
  • Avoid: Adding more products to soothe it
    Fragrance and botanicals cause a second reaction.
  • Avoid: Numbing and anti-itch creams
    Names ending in -caine often cause allergy.
  • Avoid: Wet wipes and moist toilet tissue
    The preservatives are known allergens.
  • Avoid: Sweat under metal
    Nickel releases faster in sweat - buckles and jewelry flare.
  • Avoid: Sunlight, for some substances
    Some ingredients only react after sunlight changes them.
  • Avoid: An allergen hiding in another product
    Nail polish on eyelids, hair dye on the neck.
  • Avoid: Stopping treatment when it looks better
    Allergic reactions take two to four weeks.
  • Avoid: Anti-itch creams ending in -caine
    Numbing ingredients such as benzocaine are another frequent cause of allergic contact dermatitis. The relief is brief, and a rash that gets worse the more cream you use is a classic story. If an anti-itch product seems to be making things worse, stop it and mention it to your doctor.

Habits that help

  • Get out of the sun and stay out
    More exposure deepens the injury.
  • Drink more fluid than usual
    Burned skin pulls fluid out of circulation.
  • Leave blisters intact
    If one opens, keep it clean, with petrolatum and a non-stick dressing.
  • Loose cotton clothing
    Less rubbing on inflamed skin.
  • Broad-spectrum sunscreen, SPF 30 or higher
    Use generously and reapply every two hours outdoors and after swimming or sweating.
  • Clothing, a wide-brimmed hat and shade
    More reliable, because they do not wear off.
  • Planning around midday
    Limit midday sun and seek shade when ultraviolet levels are high.
  • Cool compresses
    Use a cool, damp cloth for comfort; never apply ice directly to burned skin.
  • Moisturizing
    Apply a plain, fragrance-free moisturizer to slightly damp skin to ease dryness.
  • An anti-inflammatory painkiller early
    Better in the first hours than on day two. If you are pregnant or breastfeeding, ask the doctor managing your pregnancy which pain relief is appropriate.
  • Low-strength hydrocortisone cream
    One percent takes the edge off small areas for a few days.
  • Ask about sun precautions for photosensitizing medicines; do not stop them yourself
    A normal amount of sun produces an abnormal burn. Ask your prescriber about precautions, not stopping anything.

Avoid

  • Avoid: Not using enough sunscreen
    Most people apply a quarter to half of what testing assumes.
  • Avoid: Not reapplying
    About every two hours, and after swimming or sweating.
  • Avoid: Assuming cloud is protection
    Much of the ultraviolet passes through it.
  • Avoid: Reflected light from water and snow
    It reaches skin that shade would cover.
  • Avoid: Midday sun, altitude and the equator
    The same time in the sun does more damage.
  • Avoid: Staying in water because it feels cool
    Water barely filters ultraviolet light.
  • Avoid: Lime juice, hogweed and plant saps
    Exaggerated burns in streaks where the sap landed.
  • Avoid: Going back out on burned skin
    Damaged skin has no protection left.
  • Avoid: Popping blisters
    Opening them invites infection and can turn a clean burn into a scar.
  • Avoid: Hot showers, scrubbing and exfoliating
    Heat and friction increase pain and redness.
  • Avoid: Numbing sprays
    Benzocaine and lidocaine cause allergic rashes on inflamed skin.
  • Avoid: Not drinking enough
    Dehydration is why people feel unwell after a day in the sun.
  • Avoid: Tanning beds
    The same injury, delivered deliberately.

Treatment differences

Evidence labels come from each condition’s own treatment list.

Treatment
● Contact Dermatitis
● Sunburn
Over-the-counter
A plain white ointment tube lying on its side, labeled Hydrocortisone with a blue swoosh.

Hydrocortisone 1%

Limited evidence

The mildest topical steroid, and enough for a small patch on the body once the contact has stopped. Use it twice a day for one to two weeks rather than dabbing it on now and then. It is often too weak for the hands or feet, and on the face or eyelids it should be short-term and worth asking about first.

Illustration: Generic oral tablet bottle and tablets.

Antihistamine tablets

Limited evidence

Contact dermatitis is not driven by histamine, so antihistamines do very little for the rash itself. A sedating one at night can help you sleep through the itching instead of scratching, which is worth something. The non-drowsy daytime ones sold for hay fever will not make much difference here.

Illustration: Generic ointment jar and translucent ointment.

OTC antibiotic ointments

Avoid

Worth naming because they are so often reached for. Neomycin and bacitracin are among the most common contact allergens there are, so an ointment used on an itchy rash can become the reason the rash will not go. Unless the skin is genuinely infected, plain petroleum jelly does the same job with none of the risk.

Four ointments on white: CeraVe Healing Ointment, a Vaseline jar, a petroleum jelly tube and Aquaphor

Petrolatum

Moderate evidence

Plain petroleum jelly, or any thick fragrance-free ointment, rebuilds the barrier that irritation broke. Barrier repair is genuinely half the treatment in irritant hand dermatitis, and it works because it has no fragrance, preservative or botanical in it to start a second reaction. Apply after every hand wash, not once a day.

Five colloidal oatmeal eczema products lined up on white: tubes, a jar and a pump lotion

Colloidal Oatmeal

Limited evidence

An oatmeal bath can take the edge off the itch of a widespread reaction, in cool rather than hot water. It is comfort only. Pick a plain one, because an itch product with fragrance or botanicals in it is a common way people acquire a second allergy on top of the first.

Four ointments on white: CeraVe Healing Ointment, a Vaseline jar, a petroleum jelly tube and Aquaphor

Petrolatum

Listed

Its job here comes later, on peeling skin and on any blister that has opened, where it stops the new skin drying and cracking and reduces the itch. Use it under a loose non-stick dressing rather than an adhesive one. It is not for the first day on an intact, hot burn, where a thick greasy layer traps heat and makes things feel worse.

Ibuprofen or naproxen.

Ibuprofen or naproxen

Limited evidence

An anti-inflammatory painkiller works on the actual mechanism of a sunburn, which is inflammation, and it helps most when it is started in the first few hours rather than added on day two. Take it regularly for the first day or so rather than only when the pain peaks. If you are pregnant or breastfeeding, ask the doctor managing your pregnancy which pain relief is appropriate.

A plain white ointment tube lying on its side, labeled Hydrocortisone with a blue swoosh

Hydrocortisone

Limited evidence

One percent hydrocortisone can take the edge off a small, sore area for a few days. Use it on unbroken skin only, never on blisters or open areas, and not over large parts of the body. It is a mild help rather than a fix, and if the burn is big enough that you want to cover it all, that is a burn worth having looked at.

Illustration: Generic gel tube and clear gel.

Numbing sprays and gels

Avoid

Benzocaine and lidocaine sprays sold for sunburn cause allergic rashes on inflamed skin often enough that they are not worth using. The relief is short, and an allergic reaction on top of a burn is a considerably worse week. Cool compresses and an anti-inflammatory painkiller do the same job without that risk.

Five aloe vera gel products lined up on white: squeeze bottles, a pump bottle and a jar

Aloe Vera

Limited evidence

Cooling and pleasant on a burn, and it is what most people reach for first. The trial evidence that it does anything beyond that is thin. Keep it in the fridge if you like it, choose a plain gel without added fragrance or alcohol, and do not expect it to shorten anything. It is comfort, not treatment.

Prescription topicals
Representative medication packaging labelled Triamcinolone, lying sideways on a white background.

Triamcinolone Acetonide

Moderate evidence

A mid-strength steroid cream or ointment, the usual prescription for contact dermatitis on the body, arms or legs. Two weeks of it will clear most reactions once the contact has stopped. It is too strong for the eyelids and the folds, and it is a treatment for the inflammation, not for the cause.

Clobetasol — Header Image

Clobetasol

Moderate evidence

Clobetasol Propionate. A potent steroid ointment for hands and feet, where the skin is thick enough that milder creams barely register. It is used in short bursts of two to three weeks with breaks in between, not continuously. Nothing above the neck, and remember that hand dermatitis takes six weeks or more to settle even when the steroid is doing its job.

Protopic — Header Image

Protopic

Moderate evidence

A non-steroid ointment for the eyelids, face and skin folds, where repeated steroid use thins the skin. It calms the same immune reaction without that risk, which makes it useful for eyelid dermatitis that keeps returning while the trigger is being tracked down. It stings for the first few days, and that usually passes.

16:9 hero for Desonide. Never cropped: the tone strip and the corner logo depend on the full frame.

Desonide

Limited evidence

A mild steroid stronger than over-the-counter hydrocortisone but gentle enough for the face and eyelids in short courses. It is the usual first prescription when a reaction has landed above the neck. Use it for the days it is prescribed for, not as something kept in the drawer.

16:9 hero for Elidel. Never cropped: the tone strip and the corner logo depend on the full frame.

Elidel

Limited evidence

A gentler alternative to tacrolimus for the face and eyelids, and easier to tolerate for people who cannot get past the initial burning. It is not strong enough for hand dermatitis. Like tacrolimus, it buys comfort while the actual trigger is being identified.

Mometasone — Header Image

Mometasone

Limited evidence

A stronger steroid cream, sometimes prescribed for a few days on a severe burn that hydrocortisone has not touched. It reduces the inflammation and the soreness a little. It does not change how long the burn lasts or repair any of the damage underneath, and it goes on unbroken skin only, never on blisters or open areas.

Mupirocin — Header Image

Mupirocin

Limited evidence

An antibiotic ointment for the specific situation where broken blisters have become infected, which shows as increasing redness, swelling, heat or pus. It is not for a plain burn and does nothing for one. If the infection is spreading beyond the burnt area, antibiotic tablets are needed instead.

Prescription pills
Prednisone — Header Image

Prednisone

Moderate evidence

Steroid tablets for a widespread, blistering reaction, most often poison ivy covering large areas or a rash on the face that is closing an eye. The course has to run two to three weeks with a taper; the short packs are the usual reason the rash rebounds a few days after finishing. It is for the big reactions only, not for a patch on one arm.

An amber pill bottle labeled Cyclosporine tipped over with white tablets spilling out

Cyclosporine

Limited evidence

A short specialist course for severe hand dermatitis that has not responded to strong steroids and proper avoidance. It works quickly and reliably, which is exactly why it is used for a few months rather than long term — blood pressure and kidney function have to be watched throughout. It is a bridge, not an answer.

16:9 hero for Methotrexate. Never cropped: the tone strip and the corner logo depend on the full frame.

Methotrexate

Limited evidence

A weekly tablet sometimes used for chronic hand dermatitis when avoidance and creams have genuinely failed. The evidence in contact dermatitis specifically is thin, mostly borrowed from eczema. It needs regular blood tests, and it is a specialist decision rather than a next step.

Antibiotic tablets for infection

Antibiotic tablets for infection

Listed

Used only when bacteria have moved into the broken skin — spreading warmth and pain, pus, or fever. They treat the infection sitting on top and do nothing to the dermatitis underneath, so the steroid and the avoidance carry on alongside them.

None listed
Injections
A white and green autoinjector pen labeled Dupixent lying on a plain pale background

Dupixent

Limited evidence

An injected biologic increasingly asked about for chronic hand dermatitis. Reports are encouraging for the eczema-like cases, but it is not approved for allergic contact dermatitis and some allergens appear not to respond to it. It does not replace finding and removing the trigger, and it is a specialist conversation.

None listed

Outlook

Long term

Timing is the best clue to which form you have. The rash is temporary; the allergy is not - sensitization is generally lifelong, so avoidance is permanent. Once the substance is named and avoided, most people stay clear.

The worst of a sunburn arrives after you have gone indoors. Nothing makes it heal faster - aftercare makes the week bearable and prevents complications, but does not undo the injury. The DNA damage does not fully reverse, and repeated burns, particularly in childhood and adolescence, contribute to actinic keratoses, squamous cell carcinoma, basal cell carcinoma and melanoma decades later.

Complications

Possible complications
  • Infection in the broken skin
  • Chronic hand dermatitis
  • Time off work
More details

Infection in the broken skin
Weeping, cracked or scratched skin gives bacteria an opening, most often on the hands. The signs are honey-colored crusts, pus, increasing pain, or redness and warmth spreading outward. It is common and it is treatable, but it needs antibiotics rather than more steroid cream, so it is worth being seen rather than waiting it out.

Chronic hand dermatitis
When the exposure carries on, hand dermatitis stops settling between flares. The skin thickens, the normal lines deepen, and painful cracks open across the fingertips and knuckles that catch on everything and are slow to close. It is the reason contact dermatitis is a leading work-related skin problem, and it is largely preventable by naming the cause early instead of treating the rash for months.

Time off work
Hand dermatitis is one of the leading work-related health problems, and for people in wet or chemical work it can mean weeks of light duties, a change of role, or leaving a trade. It is also the part most often left out of the conversation. Naming the cause early, and getting the right gloves and routine in place, is what keeps the job.

  • Blisters that get infected
  • Heat illness and dehydration
  • Skin cancer decades later
More details

Blisters that get infected
A blister means the injury went deeper into the skin. An intact blister is a sterile cover over an open wound, and popping one lets bacteria in and can turn a burn that would have healed cleanly into one that scars. Leave them alone. If one opens by itself, keep it clean, use plain petrolatum and a non-stick dressing, and get it looked at if the area becomes hot, swollen or starts oozing pus.

Heat illness and dehydration
A large burn is not only a skin problem. Fever, chills, headache, nausea, weakness, dizziness and intense thirst come from a big area of inflamed skin losing fluid alongside hours in the heat. It is often called sun poisoning, which it is not. Children and older adults reach this point sooner. It needs shade, fluids and, if there is confusion, fainting, vomiting or very little urine, same-day medical care.

Skin cancer decades later
This is the complication that never looks like one at the time. Repeated blistering sunburns, particularly in childhood and adolescence, are associated with a substantially higher risk of melanoma later, and ordinary cumulative exposure drives most other skin cancers. No amount of aftercare undoes it. It is why a pattern of burning every summer is worth a conversation, and why a history of repeated burns is a reason to arrange a skin check.

When to get help

When to get help

Seek help for persistent or recurrent rash; patch testing may identify contact allergy. Pain, spreading warmth, pus or fever require prompt assessment.

Get prompt help for extensive blistering, dehydration, fever or severe pain; babies and young children need a lower threshold for assessment.

Common questions

Contact Dermatitis:How do I figure out what caused it?

Start with location and shape, not a list of products. Photograph the rash, note where its edges are, and look for an object or habit that matches that outline. An allergic reaction shows up one to three days after contact, so look at what happened two days before, not that morning. Include things you have used for years - those are the likeliest candidates, not the least. If a few weeks of attention does not settle it, patch testing ends the guessing.

Contact Dermatitis:How long does it take to clear up?

An irritant reaction improves within days of contact stopping. An allergic reaction takes two to four weeks to settle even with treatment, because the immune cells doing the damage take that long to stand down. Hands are slowest, often six weeks or more, because the skin there is used and washed constantly. Judging it at day three tells you very little.

Contact Dermatitis:Is it contagious?

No. This is your own skin reacting to a substance, not an infection. You cannot pass it on by touch. If two people in a household get the same rash, they were both exposed to the same thing.

Contact Dermatitis:Will the allergy ever go away?

Generally no. Once your immune system has learned a substance, that memory is permanent, and tiny amounts can trigger a reaction years later. In practice it is less grim than it sounds - people who know their allergen and avoid it stay clear indefinitely, and the avoidance is usually narrower than they feared.

Contact Dermatitis:Why did this appear on my eyelids when I never put anything there?

Eyelid skin is the thinnest on your body, so it reacts to amounts the rest of your skin ignores. Nail polish, hair products, face creams and airborne particles reach the eyelids from your hands or from your scalp. When a rash is on the eyelids alone, the cause is usually somewhere else.

Contact Dermatitis:Can I just use hydrocortisone from the pharmacy?

For a small, mild patch on the body, often yes, alongside stopping the contact. Over-the-counter hydrocortisone is a mild strength and rarely clears thicker skin on hands or feet. On the face and eyelids keep it short-term, and ask first. It treats the inflammation, not the cause - if the rash returns each time you stop, find the trigger.

Sunburn:How long does a sunburn last?

Redness appears within two to six hours, peaks around twelve to twenty-four hours, and settles over three to seven days, with peeling toward the end. Blistering burns take longer and can leave marks for months. Nothing shortens it.

Sunburn:Can I stop it peeling?

Not really. Peeling is dead skin being shed; the damage is already done. Moisturizer reduces itching and cracking. Do not pull the flakes off - that exposes tender new skin.

Sunburn:Should I pop the blisters?

No. An intact blister is a sterile cover over an open wound and lowers the risk of infection and scarring. If one opens, keep it clean, use plain petrolatum and a non-stick dressing, and have it checked if the area becomes hot, swollen or oozes pus.

Sunburn:Does one bad sunburn really raise my skin cancer risk?

Each burn adds to a lifetime total rather than deciding anything on its own. Repeated blistering sunburns, particularly in childhood and adolescence, carry a substantially higher risk of melanoma. Ordinary cumulative exposure drives most other skin cancers.

Sunburn:Why did I burn so badly when I was barely in the sun?

Usually a medicine that increases sensitivity to ultraviolet light - some antibiotics, diuretics, anti-inflammatories, retinoids and others. Plant sap, especially lime juice, does the same in streaks, and recent peels or laser lower the threshold. Ask a pharmacist rather than stopping any prescribed medicine yourself.

Sunburn:Is a tan from a tanning bed safer than one from the sun?

No. A tanning bed delivers a concentrated dose of ultraviolet light and causes the same DNA damage. Using one before the age of 35 carries a notably higher risk of melanoma. The tan is the injury response, so no version of deliberate tanning avoids it.

Sources

Sources and further reading

  1. DermNet
  2. DermNet
Dermapedia on YouTube