Skip to content
Foxfire Mushrooms Logo
Contact Us
  • Home
  • Insights
  • Nutrition & functional

Vitamin D in mushrooms.

  • By the Scott Brenton
  • September 15, 2026
  • 4 min read

Why mushrooms can do this and vegetables cannot

Fungi build their cell membranes with ergosterol, where animals use cholesterol and plants use phytosterols. Ergosterol is a vitamin D precursor: hit it with ultraviolet light and it converts to vitamin D2 (ergocalciferol) — the same basic photochemistry that happens in your own skin, which converts a cholesterol derivative to D3.

No plant does this. That makes mushrooms genuinely unique in the produce aisle, and the most interesting single fact in mushroom nutrition.

The catch: mushrooms grown indoors have very little

Commercial mushrooms — ours included — are grown in dark or dimly lit rooms with no UV exposure at all. The ergosterol is there; the conversion has not happened. So a mushroom straight from a fruiting room is not a vitamin D food, whatever the general claim says.

Which is what makes the home method worth knowing: you are not adding anything, you are triggering a conversion that the mushroom is already set up for.

How to do it at home

  • Slice them, or at minimum arrange them gills or pore surface upward. That surface has the highest ergosterol concentration and needs the light.
  • Direct sunlight. Outdoors is best; a windowsill works less well because most modern window glass blocks a large share of UV-B. If you use a window, open it.
  • Fifteen minutes to two hours depending on intensity. Midday summer sun does the job fastest.
  • Then cook or dry them as normal. Vitamin D2 is reasonably heat-stable, so cooking does not undo the work.

Colorado is unusually good for this: high altitude means noticeably stronger UV, and around 300 sunny days a year. It also means the same thing happens incidentally while air-drying mushrooms outdoors, which is a pleasant bonus.

Gills up, in real sunlight, for an hour, before you cook them. That is the entire technique — and it costs nothing.

D2 versus D3 — being straight about it

Mushrooms give you D2. Sunlight on skin, oily fish and most supplements give D3. Both raise circulating vitamin D, but the research consensus is that D3 is somewhat more effective at raising and maintaining blood levels, particularly over time.

So UV-exposed mushrooms are a real contributor, not a solution. If you have a diagnosed deficiency, this is not the treatment — that is a conversation with a clinician, and Colorado’s winter sun angle means deficiency is common here despite all the sunshine.

Which species

All of them contain ergosterol, so all of them respond. The practical variable is surface area exposed to light — species with big open gill or pore surfaces convert most efficiently, which favours shiitake caps gills-up and sliced king trumpet over a dense whole cluster. Sliced anything works better than whole.

What this is not

It is not a claim that mushrooms treat or prevent anything. It is a genuinely useful piece of food science: a food you were going to eat anyway can carry a nutrient that is otherwise hard to get without animal products or a supplement. Worth doing, worth knowing, and worth keeping in proportion.

Common questions

Share this article

Put it into practice today

Grab a beginner-friendly kit and apply what you just read —

or take the quiz and we’ll match you to the right

starting point.