Mushrooms and Vitamin D: What You Need to Know
By Louis on 06/23/2026
Mushrooms are the only plant food that makes real vitamin D, but only when UV-exposed. Here is how to boost it at home and what the D2 vs D3 research shows.

Mushrooms and Vitamin D: What You Need to Know
Mushrooms are the only non-animal food capable of producing meaningful amounts of vitamin D, and almost nobody takes advantage of it. The reason is a quirk of modern food production: commercial mushrooms are grown in the dark, which is fine for cultivation but means they contain essentially zero vitamin D by the time they reach your grocery cart. The same mushroom that has near-zero D off the shelf can deliver several hundred international units per serving after spending 30 minutes in direct sunlight. That is a meaningful contribution to your daily vitamin D intake from a 22-calorie food that you can boost with literally no effort beyond moving it to a windowsill. Here is what is actually happening, how to take advantage of it, and what the research says about whether mushroom-derived vitamin D is as useful as the kind your skin produces.
The Basic Biology: How Mushrooms Make Vitamin D
Mushrooms produce vitamin D the same way human skin does. They start with a sterol precursor in their cell walls (ergosterol, the fungal equivalent of our 7-dehydrocholesterol) and convert it to vitamin D when exposed to ultraviolet light, specifically UVB radiation in the 280 to 320 nanometer range. This is the same wavelength range that produces vitamin D in human skin during sun exposure. The chemistry is identical in principle: UV light breaks a specific bond in the sterol molecule, which then rearranges into the vitamin D structure.
The form of vitamin D mushrooms produce is vitamin D2 (ergocalciferol), distinct from the vitamin D3 (cholecalciferol) that human skin produces and that you find in animal-source foods like fatty fish and egg yolks. The D2 versus D3 distinction matters and is covered in detail below. Both are biologically active. Both raise your blood vitamin D levels. They are just not perfectly interchangeable.
What makes the mushroom mechanism unique among foods is that fungi are the only organisms outside the animal kingdom with the metabolic machinery to make this conversion at meaningful scale. Plants do not produce vitamin D. Algae produce trace amounts. Yeasts produce some, but humans do not typically eat them in raw form. Mushrooms are essentially the only practical food-based vitamin D factory available to vegans, vegetarians, and anyone trying to source D from non-animal foods. We have an article for the complete mushroom nutrient profile including how vitamin D fits with the broader compound list.
The Catch: Commercial Mushrooms Are Grown in the Dark
Here is the part that catches most shoppers off guard. Modern commercial mushroom production happens in controlled, climate-regulated indoor facilities with minimal light exposure. This is good for cultivation. Mushrooms do not require sunlight to grow (they are decomposers, not photosynthesizers), and growing them in the dark allows for tighter quality control, faster cycles, and protection from pests. But it also means the mushrooms never get the UV exposure they need to produce vitamin D.
A typical white button mushroom from a standard grocery store contains somewhere between 5 and 18 IU of vitamin D per 100-gram serving. That is essentially nothing. For context, the recommended daily intake for most adults is 600 to 800 IU per day, and many vitamin D researchers argue the optimal intake is closer to 1,500 to 2,000 IU. A standard commercial mushroom delivers maybe 1 percent of your daily requirement, if you eat a full cup.
The fix is straightforward: expose them to UV light. Some commercial growers now do this, selling the result as "UV-exposed mushrooms," "vitamin D mushrooms," or under specific brand names like Sun Bella. These products can deliver 400 IU or more per 3-ounce serving, which is comparable to a glass of fortified milk and represents a meaningful contribution to daily vitamin D intake. If your grocery store carries them, they are typically labeled clearly and priced only slightly higher than standard mushrooms.
How to UV-Boost Mushrooms at Home
If your store does not carry UV-exposed mushrooms, you can do it yourself in less time than it takes to preheat an oven. The biology does not change just because the UV source is the sun coming through your kitchen window instead of an industrial lamp. The basic protocol:
Slice the mushrooms gills-up. The vitamin D-producing ergosterol concentrates on the underside of the cap, where the gills are. Slicing exposes maximum surface area to UV light. Whole mushrooms still produce some vitamin D when exposed, but sliced and gills-up produces dramatically more.
Place them in direct sunlight. A south-facing windowsill works. A spot in the yard works better, since window glass blocks some UVB radiation. Outdoor sun produces faster and more substantial vitamin D conversion than indoor sun through glass.
Leave them for 30 to 60 minutes between 10 AM and 3 PM. This is when UVB radiation is strongest. The conversion happens quickly. Studies have documented that 30 to 60 minutes of midday sun exposure can take vitamin D content from near-zero to several hundred IU per serving.
Cook and eat normally. Vitamin D is heat-stable, so all standard cooking methods (sautéing, roasting, grilling) preserve the vitamin D you just generated. You can also dry the UV-exposed mushrooms for storage and the vitamin D content remains stable for months.
A few practical notes: cloudy days, winter sun in northern latitudes, and indoor light through standard windows all produce less UV than direct outdoor summer sun. The conversion still happens, just at a slower rate. Some experimentation with timing for your location and season is worth doing if you want to get serious about this.
D2 vs D3: The Honest Discussion
Here is where the science gets a little messier than supplement marketing tends to admit. Vitamin D2 (the form mushrooms produce) and vitamin D3 (the form human skin produces and that comes from animal sources) are both biologically active, both raise blood levels of the active vitamin D metabolite, and both prevent deficiency. They are not identical in efficiency, though.
Most studies comparing D2 and D3 supplementation in humans have found that D3 raises serum 25-hydroxyvitamin D (the standard blood marker for vitamin D status) slightly more efficiently per unit consumed. A 2012 meta-analysis published in the American Journal of Clinical Nutrition concluded that D3 is more effective than D2 at raising serum vitamin D, though both forms work. The gap is not enormous (estimates range from D3 being roughly 1.5 to 2 times more effective per IU), but it is consistent across multiple studies.
What this means in practice: if your goal is maximizing vitamin D status, D3 supplementation is the most efficient route per dose. If your goal is meaningful vitamin D intake from food, particularly on a vegan or vegetarian diet, mushroom-derived D2 still works, still raises blood levels, and is still associated with reduced deficiency risk in observational data. People who eat UV-exposed mushrooms regularly do not show D2 toxicity or any documented downside compared to D3 consumers, and the absolute increases in serum vitamin D from regular mushroom intake are meaningful.
For most readers, the practical answer is: do not view mushroom vitamin D as a complete substitute for sunlight, fortified foods, or supplements if you are deficient. View it as a useful component of a multi-source approach to maintaining vitamin D status, particularly valuable for plant-based eaters who otherwise have limited natural dietary options.
Which Mushrooms Have the Most Vitamin D
The answer depends almost entirely on UV exposure rather than species, since the vitamin D-producing potential is fairly consistent across edible mushroom varieties. Some practical guidance:
White button, cremini, and portobello (all Agaricus bisporus) respond well to UV exposure and are the most commonly available varieties marketed as vitamin D mushrooms. They contain plenty of ergosterol in their gills and convert efficiently.
Maitake has been documented to produce particularly high vitamin D levels when UV-exposed, and some studies have used it specifically for vitamin D research because of its strong conversion rate.
Shiitake also produces meaningful vitamin D under UV exposure and has the additional advantage of being commonly available dried, which preserves vitamin D content well over time.
Wild mushrooms that grow with natural sun exposure can contain significant vitamin D content depending on the species and growing conditions. Wild morels, chanterelles, and porcini all show measurable vitamin D levels in their natural state, though variability is high.
The takeaway is that species selection matters less than exposure conditions. A UV-exposed white button mushroom will outperform an unexposed shiitake on vitamin D content. If you are buying mushrooms specifically for vitamin D, look for labeling that confirms UV exposure rather than choosing based on species alone.
How Mushroom Vitamin D Fits Into Your Overall Intake
Vitamin D deficiency is genuinely common in the United States. Estimates suggest that 35 to 40 percent of American adults have blood levels below the threshold for sufficiency, and that proportion is higher for adults over 70, people with darker skin, those living in northern latitudes, and those who avoid sun exposure. Dietary sources are limited. Fatty fish (salmon, sardines, mackerel) lead the list. Fortified dairy and plant milks provide modest amounts. Egg yolks contribute small amounts. Beyond that, the options thin out quickly.
This is where mushrooms genuinely contribute. Two or three servings per week of UV-exposed mushrooms can provide 800 to 1,200 IU of vitamin D, which is a meaningful portion of weekly intake even by the higher standards some researchers advocate. For vegans and vegetarians who do not eat fish, this is one of the only natural food sources available.
For people with diagnosed vitamin D deficiency, mushroom-derived D2 is a useful contributor but typically not sufficient on its own to correct deficiency efficiently. Most clinical guidelines recommend D3 supplementation for active deficiency correction, then dietary sources for maintenance. Mushrooms slot best into the maintenance category, supporting baseline vitamin D status as part of a varied diet.
ShroomSpy's tested mushroom collection includes both culinary and concentrated products. If vitamin D is a specific goal, the most effective approach is combining regular UV-exposed culinary mushrooms with sun exposure when practical and supplementation when needed.
Conclusion
Mushrooms and vitamin D have one of the more interesting relationships in nutrition: they are biologically capable of producing meaningful amounts of D when exposed to UV light, but the standard grocery store mushroom rarely is. The fix is so simple it is almost embarrassing that it is not more widely known. Slicing mushrooms gills-up and leaving them in direct sunlight for 30 to 60 minutes converts them from near-zero vitamin D to a serious dietary source. The D2 they produce is not perfectly interchangeable with the D3 in fatty fish or supplements, but it raises blood vitamin D meaningfully and offers one of the only natural food-based options for people on plant-based diets. As one component of a multi-source approach to vitamin D, mushrooms are uniquely useful and far underused.
Ready to take your mycology journey to the next level? Browse our full range of mushroom products and find everything you need to grow, forage, and thrive.
Check out our Functional Mushrooms!
Frequently Asked Questions
Standard commercial mushrooms grown in the dark contain very little vitamin D, typically 5 to 18 IU per 100-gram serving. UV-exposed mushrooms (either commercially treated or DIY sun-exposed) can deliver 400 IU or more per 3-ounce serving, which is comparable to a glass of fortified milk. The variation depends almost entirely on UV exposure rather than species.