Back to all facts
Fresh white button mushrooms placed gill-side up on a wooden cutting board bathed in warm golden sunlight streaming through a window Today's Fact

Button Mushrooms Act Just Like Human Skin When Exposed to Sunlight

29 June 2026 Dr. Sonia Dahiya 10 min read Nutrition & Biology

Here is a fascinating biological fact about button mushrooms that sounds impossible until you learn the science behind it: when you place a common white button mushroom in sunlight, it does something that no other food in your kitchen can do. It starts producing vitamin D — using the exact same type of photochemical reaction that happens in your own skin when you step outside on a sunny day. The mushroom is, in a very real biochemical sense, sunbathing.

The headline fact: Button mushrooms contain a compound called ergosterol in their cell membranes — the fungal equivalent of the 7-dehydrocholesterol in human skin. When either compound is struck by ultraviolet-B (UV-B) radiation from the sun, it undergoes a photochemical conversion into vitamin D. Humans produce vitamin D3 (cholecalciferol); mushrooms produce vitamin D2 (ergocalciferol). The reaction is so similar at the molecular level that mushrooms are the only non-animal food in the world that can naturally produce significant amounts of vitamin D — and they can do it even after they've been harvested and are sitting on your kitchen counter.

The Chemistry: Two Kingdoms, One Reaction

The parallels between mushroom and human vitamin D synthesis are not vague analogies — they are precise, step-by-step biochemical mirrors of each other. Understanding the chemistry reveals just how deeply connected the fungal and animal kingdoms are at the molecular level.

In Human Skin

Your skin contains a sterol compound called 7-dehydrocholesterol (7-DHC), which sits in the cell membranes of your epidermal cells — the outermost layer of your skin. When UV-B photons (wavelength 290–315 nanometres) strike a molecule of 7-DHC, they cause a specific chemical bond in the molecule's B-ring to break — a reaction called photolytic ring opening. This converts 7-DHC into previtamin D3. Over the next 24–48 hours, previtamin D3 undergoes a slow, heat-driven rearrangement (thermal isomerisation) to become vitamin D3 (cholecalciferol) — the biologically active form that enters your bloodstream and regulates calcium absorption, bone health, immune function, and dozens of other critical processes.

In Mushroom Tissue

Mushroom cell membranes contain ergosterol — a sterol that serves the same structural role in fungal cells that cholesterol serves in animal cells. Ergosterol and 7-DHC are structurally almost identical; they differ by only two chemical bonds in their side chains. When UV-B photons strike ergosterol, the exact same photolytic ring-opening reaction occurs: the B-ring of the sterol molecule breaks open, converting ergosterol into previtamin D2. This then thermally isomerises into vitamin D2 (ergocalciferol).

The reaction is so chemically similar that if you placed the molecular diagrams of the two pathways side by side, you would struggle to tell them apart without looking at the subtle differences in the side chain. The same wavelength of light. The same type of bond breakage. The same thermal rearrangement. Two entirely different kingdoms of life — Animalia and Fungi — running the same photochemical program.

Why are they so similar? Because animals and fungi share a common ancestor. Modern phylogenetic analysis has confirmed that fungi are more closely related to animals than they are to plants. The last common ancestor of animals and fungi — which lived approximately 1 billion years ago — likely already possessed sterol-based cell membranes capable of UV-driven vitamin D synthesis. When the lineages diverged, animals retained 7-dehydrocholesterol and fungi kept ergosterol, but the underlying UV-conversion chemistry was preserved almost unchanged across a billion years of independent evolution.

The Dark Secret: Why Store-Bought Mushrooms Have Almost No Vitamin D

If mushrooms can produce vitamin D from sunlight, you might assume that the button mushrooms in your grocery store are already loaded with it. They are not. In fact, commercially grown white button mushrooms typically contain less than 0.1 micrograms (4 IU) of vitamin D per 100 grams — an almost negligible amount. The recommended daily intake for adults is 15–20 micrograms (600–800 IU), meaning you would need to eat roughly 150–200 kilograms of store-bought mushrooms per day to meet your vitamin D needs from them alone.

Why so little? The answer lies in how mushrooms are commercially cultivated:

The ergosterol is there, sitting patiently in every cell membrane, ready to convert — but it never gets the UV-B trigger it needs. The mushroom has the loaded gun; it just never pulls the trigger.

The 30-Minute Sunlight Trick: How to "Charge" Your Mushrooms

Here is where this fact becomes genuinely useful in your daily life. Because mushroom ergosterol converts to vitamin D2 even after the mushroom has been harvested, you can dramatically boost the vitamin D content of store-bought mushrooms with an astonishingly simple technique:

The Method

  1. Take your mushrooms out of the packaging. Plastic film and cardboard block UV light.
  2. Place them gill-side up on a plate, tray, or cutting board. The gills (the dark, ridged underside of the cap) have a much larger surface area than the smooth cap, maximising UV exposure.
  3. Set them in direct sunlight — outdoors or on a window sill that receives unfiltered sunlight (not through glass, which blocks most UV-B). The ideal time is between 10:00 AM and 3:00 PM, when UV-B intensity is highest.
  4. Leave them for 15–60 minutes. Even 15 minutes of strong midday sun can produce a significant vitamin D boost. Thirty to sixty minutes is optimal.
  5. Use them as normal. Cook, refrigerate, or freeze them. The vitamin D2 produced is heat-stable — it survives cooking, sautéing, boiling, and baking with minimal loss.

The Results Are Staggering

Published research has demonstrated the following vitamin D2 levels in button mushrooms after controlled UV-B exposure:

That's an increase of up to 40,000% — from virtually zero to one of the richest natural food sources of vitamin D on the planet — with nothing more than placing a mushroom in the sun for half an hour.

The most mind-bending part: The mushroom doesn't need to be alive for this to work. The ergosterol-to-vitamin-D2 conversion is a purely chemical reaction — it requires only the ergosterol molecule and UV-B photons, not any living cellular machinery. A dried mushroom slice, a mushroom that's been in your fridge for a week, even mushroom powder — all will produce vitamin D2 when exposed to UV light. The mushroom is essentially a solar panel for vitamin D that works whether the mushroom is living, dead, cooked, or dried.

Why This Matters Enormously for India

This fact has profound implications for public health in India, where vitamin D deficiency has reached epidemic proportions:

The Indian Vitamin D Crisis

Mushrooms: The Only Vegetarian "Vitamin D Factory"

Sun-exposed mushrooms are the only non-animal, non-fortified food source of significant vitamin D in the world. This makes them uniquely important for India's vegetarian population. Unlike vitamin D supplements (which are often derived from lanolin — sheep's wool grease — or fish oil), sun-exposed mushrooms provide a completely plant-kingdom-compatible, natural, affordable, and readily available source of vitamin D2.

And the economics are compelling: a 100-gram serving of button mushrooms costs approximately ₹15–25 in most Indian markets. Thirty minutes of sunlight is free. The resulting vitamin D content is equivalent to a vitamin D supplement tablet that costs ₹5–10 per dose. For families in rural India, where supplements may not be available or affordable, sun-exposed mushrooms could be a transformative dietary intervention.

What we do at Dr. Dahiya Mushroom Farm: In our mushroom farming training programme, we teach every student the sunlight trick and explain the science behind it. We also advise our farmers on the commercial potential of marketing their mushrooms as "sun-kissed" or "vitamin D-enriched" — a simple value addition that requires no equipment, no chemicals, and no additional cost beyond setting harvested mushrooms in the sun for 30 minutes before packaging. Some of our trained farmers have begun offering UV-exposed mushrooms at a 20–30% premium in local markets, with strong consumer response.

D2 vs. D3: Are They Equally Effective?

A common question — and an important one — is whether vitamin D2 (from mushrooms) is as effective as vitamin D3 (from animal sources and human skin synthesis) at raising blood levels of active vitamin D.

The science is nuanced:

The practical takeaway: if you eat sun-exposed mushrooms regularly — even a few times per week — the vitamin D2 they provide is a clinically meaningful and effective contribution to your vitamin D status, particularly if you are vegetarian, vegan, or have limited sun exposure.

The Evolutionary Story: A Billion-Year-Old Sunscreen

Why do mushrooms have this ability at all? The answer reaches back into deep evolutionary time.

Ergosterol serves multiple functions in fungal cell membranes beyond being a vitamin D precursor. It helps maintain membrane fluidity, permeability, and structural integrity — much like cholesterol does in animal cell membranes. But ergosterol also acts as a natural UV-absorbing shield. When the ergosterol molecule absorbs a UV-B photon and converts to previtamin D2, it is effectively neutralising that photon — preventing it from damaging the cell's DNA, proteins, or other sensitive molecules.

In other words, the vitamin D synthesis pathway may have originally evolved not as a way to produce a nutrient, but as a UV-protection mechanism — a molecular sunscreen. The production of vitamin D was initially a byproduct of this protective function. Over evolutionary time, organisms that could use vitamin D for calcium regulation and immune modulation gained a survival advantage, and the pathway became essential rather than incidental.

This means that when you place a mushroom in sunlight and it produces vitamin D, you are witnessing the modern expression of a billion-year-old survival strategy — one that was already ancient before the first animals, the first plants, and the first true fungi had even diverged into separate kingdoms of life.

Practical Tips: How to Maximise Vitamin D in Your Mushrooms

Back to all facts