Moderate sun exposure can improve eczema for many people, but the benefit comes with a catch: the heat and sweat that come with time outdoors can trigger flares just as easily. UV light has real, measurable effects on the immune activity driving eczema, and sunlight boosts vitamin D production, which plays a direct role in skin barrier health. The key is getting enough UV to calm inflammation without overheating your skin or burning it.
How UV Light Calms Eczema
Eczema is fundamentally an inflammatory condition, and UV light works against it on multiple fronts. UV radiation triggers overactive immune cells in the skin to self-destruct through a process called apoptosis, essentially clearing out the cells responsible for redness, swelling, and itching. At the same time, UV exposure stimulates the production of regulatory immune cells that help keep the remaining immune response in check. This dual action is why UV-based phototherapy has been a standard dermatology treatment for eczema for decades.
There’s also an antimicrobial benefit. People with eczema tend to have high levels of Staphylococcus aureus bacteria colonizing their skin, which worsens inflammation and interferes with healing. Research published in the Journal of Investigative Dermatology found that UV exposure triggers skin cells to produce natural antimicrobial compounds called defensins, which significantly reduce S. aureus growth. In the same study, UV treatment led to measurable drops in bacterial colonization alongside reduced inflammation. So sunlight doesn’t just suppress the immune overreaction; it also helps address one of the bacterial imbalances that feeds the cycle.
The Vitamin D Connection
Vitamin D, which your skin synthesizes when exposed to UVB rays, has its own role in eczema beyond general immune health. It regulates the production of filaggrin, a protein essential for maintaining the skin barrier. People with eczema often have a compromised skin barrier, meaning moisture escapes more easily and irritants penetrate more readily. Vitamin D also supports the production of antimicrobial peptides that help protect against infection.
A cross-sectional study of Bangladeshi patients living in London found a statistically significant inverse relationship between vitamin D levels and eczema severity: the lower someone’s vitamin D, the worse their eczema scores tended to be. The researchers noted that low UV exposure, particularly in people with darker skin who synthesize vitamin D less efficiently, may partly explain this pattern. This doesn’t prove that raising vitamin D through sun exposure will improve your eczema, but it adds to a body of evidence suggesting the two are connected.
Why Sun Exposure Can Also Make Eczema Worse
Here’s where it gets complicated. Sunlight means heat, and heat means sweat. For many people with eczema, sweat is a reliable trigger for flares. The salt and minerals in perspiration irritate already-compromised skin, and the moisture itself can break down barrier function further. Frequent sweating can set off eczema flares even in people who aren’t otherwise having symptoms. So spending 30 minutes in the sun on a hot day might deliver helpful UV while simultaneously provoking a sweat-induced flare.
Sunburn is the other obvious risk. Eczema-affected skin is already inflamed, and adding UV damage on top of that worsens the cycle. Even mild sunburn triggers an immune response that can push eczema into a more active state.
How to Get the Benefits Safely
Short sessions of 10 to 15 minutes of direct sun exposure are a reasonable starting point, particularly during morning hours before 10 a.m. or late afternoon after 4 p.m. when UV intensity is lower. The goal is consistent, brief exposure rather than long stretches that lead to overheating or burning. If you notice your skin improving with regular short sun sessions, you’re likely getting enough UV to have an anti-inflammatory effect.
On days when you’ll be outside longer, sunscreen becomes important, but choosing the right one matters. Many chemical sunscreen ingredients irritate eczema-prone skin. Mineral sunscreens based on zinc oxide are generally the safest option. Zinc oxide sits on the skin’s surface rather than being absorbed, which makes it less likely to trigger reactions. The National Eczema Association has recognized several zinc oxide-based sunscreens through its product seal program. Avoid sunscreens with fragrance, alcohol, or long lists of chemical UV filters.
Protective clothing is worth considering too. A lightweight long-sleeved shirt with UPF rating lets you stay outside without needing to coat every inch of skin in sunscreen. This is especially useful for covering areas where eczema is active, since applying any product to inflamed skin can sting or irritate.
Watch for Medication Interactions
Some common eczema treatments make your skin more sensitive to UV light. Coal tar preparations, which are still used for stubborn eczema, are known photosensitizers and can cause exaggerated sunburn reactions. Antihistamines taken for eczema-related itching, including diphenhydramine and hydroxyzine, are also on the list of photosensitizing medications. If you’re using either of these, you’ll burn faster and more easily than you’d expect, which narrows the window of safe sun exposure considerably.
Phototherapy as a Controlled Alternative
If natural sunlight helps your eczema but the heat or unpredictability of outdoor exposure causes problems, clinical phototherapy offers a more controlled version of the same principle. Narrowband UVB phototherapy delivers a specific wavelength of UV light in measured doses, without the infrared heat that causes sweating. Sessions typically last a few minutes and are done two to three times per week.
A large cohort study following 6,205 eczema patients over an average of 11 years found that UVB phototherapy did not increase the risk of skin cancer, including both melanoma and non-melanoma types. Even the number of sessions a patient received showed no association with increased cancer risk. This is reassuring for people who worry about the long-term safety of repeated UV exposure as a treatment strategy.
Who Benefits Most
Sun exposure tends to help people whose eczema is widespread rather than limited to a small patch, since UV light only works on skin it reaches. It also tends to be more beneficial for people whose eczema worsens in winter, which suggests their condition is partly driven by low UV exposure and vitamin D levels. If your eczema flares primarily in summer, heat and sweat are likely bigger factors for you than UV deficiency, and aggressive sun-seeking may do more harm than good.
People with darker skin tones may need longer sun exposure to synthesize adequate vitamin D, but they also have more natural protection against UV damage. People with very fair skin burn quickly, which limits how much therapeutic UV they can safely absorb from natural sunlight. In either case, clinical phototherapy can deliver precise doses without the variables that make natural sun exposure unpredictable.

