If you have eczema, read this first. Clinical evidence does not support coconut oil as a reliable atopic eczema treatment. It can work less well than mineral oil, and its lauric acid may worsen a fragile skin barrier. Use the bland moisturizer your clinician recommends, and skip the coconut oil section unless a clinician confirms fungus and approves oil.
UV light damages fungus
Ultraviolet (UV) light is antifungal. It damages fungal DNA and cell membranes. On skin, measured outdoor UV (especially UVB) can help dry damp folds and slow surface infections like some tinea (ringworm) and pityriasis versicolor.
Sunburn is not a treatment dose. It damages your skin barrier and can worsen inflammation. In psoriasis, burned skin can grow new plaques (the Koebner effect).
Coconut oil is mildly antifungal in lab studies
Coconut oil is roughly half lauric acid, a fatty acid that disrupts fungal and some bacterial membranes in lab studies. On the scalp, feet, and folds, it moisturizes and adds a mild antimicrobial layer.
Signs fungus may be involved
Yeast and dermatophytes (the fungi behind ringworm and athlete’s foot) thrive on warm, damp, airless skin.
- Athlete’s foot: scaling, peeling, and itch between the toes, worse in tight shoes and humid locker rooms.
- Jock itch and under-breast rash: red, spreading, often sharp-edged, fed by sweat and friction.
- Scalp flaking (seborrheic dermatitis): linked to Malassezia yeast. Antifungal shampoo comes first. Light and oil can make the scalp less yeast-friendly.
- Pityriasis versicolor: lighter or darker trunk patches from yeast overgrowth. Sun often helps alongside treatment.
- Nail fungus: sun and oil rarely reach the nail bed. Serious cases need medical antifungals.
Eczema and psoriasis can look like fungus. If an over-the-counter antifungal clears the rash within a week, it was likely fungus. If not, see a clinician rather than oiling an undiagnosed rash.
How to use sunlight safely
- Get 5 to 15 minutes of morning or late-afternoon sun on dry feet, trunk patches, or folds. Stop before you turn pink.
- Pat folds dry first. Sun helps less on wet skin.
- Don’t swap sun for prescribed phototherapy, which is dosed and monitored.
- Ask your clinician first if you have lupus, rosacea, or another light-sensitive condition, or take sun-sensitizing medicines like doxycycline or thiazides (a type of water pill).
How to use coconut oil wisely
Not for eczema. This section covers only fungus-prone folds and scalp yeast.
- Apply a thin layer of virgin, unrefined coconut oil to clean, dry skin: feet at night, your scalp line, or patches. Too much oil blocks airflow and can worsen some folds.
- Keep skin dry: cotton socks, loose breathable clothes, and quick changes out of sweaty clothes.
- Patch test first. Some people react to coconut, and it can clog acne-prone facial skin.
- Use medical antifungals when needed: over-the-counter clotrimazole or terbinafine often clears tinea faster. Once the rash’s active edge calms, oil can go on top as barrier care. Ask your pharmacist or clinician.
- On your scalp, massage in a little, wait 20 to 30 minutes, then wash with antifungal shampoo if yeast causes the flakes. Hair loss or bleeding scales need a diagnosis.
Using sunlight and coconut oil together
Wash and dry completely, get a little sun if your skin type and condition allow, then apply a thin layer of oil. Skip oil before tight, sweaty shoes, or use oil at night and sun in the morning.
If redness spreads, blisters form, or pain worsens, stop home care and get checked. A bacterial infection can look like worsening fungus.
Signs it’s working
Over 1 to 2 weeks, itch at the rash’s edge eases, peeling slows, color evens out, foot odor fades, and your scalp stays calmer between washes. Fungi grow slowly, so expect gradual change.
What to track for two weeks
Each day, note sun, oil, itch (0 to 10), and a photo of the rash’s edge. A daily check-in shows whether sun, oil, or both change your pattern. If flares cluster, also look at fiber-rich meals and lower stress for immune health.
When to see a clinician
- Rash still spreading after 1 to 2 weeks of steady care
- Pain, pus, fever, or red streaks (possible bacterial infection)
- Diabetes, a weakened immune system, or pregnancy
- Nail thickening or lifting, or scalp hair loss
- An unclear diagnosis
Selected sources
- Evangelista MTP, et al. The effect of topical virgin coconut oil on SCORAD index, TEWL, and skin capacitance in mild to moderate pediatric atopic dermatitis: a randomized, double-blind clinical trial. Int J Dermatol. 2014 — mixed results; not a blanket eczema recommendation. PubMed: 24320105
- AAD — fungal infections overview: aad.org ringworm
Want more guides like this?
Get skin-first guides in your inbox while we build early access, or keep reading now.
Email me guides More guides