Back to Blog

Mushrooms: The Only Plant-Based Source of Vitamin D — If You Do This

Jul 2, 2026 | 12 min read | Nutrition

Here is a fact that sounds like a party trick but is real biochemistry: a mushroom sitting on your counter can make vitamin D the same way your skin does. Give it a few hours of sunlight and it will manufacture a meaningful dose of the one vitamin that almost no other plant-based food provides. The catch is in those three words — a few hours of sunlight. The mushrooms in most grocery stores are grown in the dark, and they arrive with almost none of it. The magic only happens if you do one simple thing first.

Let's get one bit of pedantry out of the way, because it is genuinely interesting: mushrooms are not plants. They are fungi, more closely related to animals than to broccoli. But on a plant-forward plate — vegetarian, vegan, or just heavy on the vegetables — mushrooms are the only whole food that reliably supplies vitamin D. Nearly every other natural source is animal-based. So if you eat few or no animal products, this quirk of fungal chemistry matters more than almost anyone realizes.

Why Vitamin D Is So Hard to Get From Food

Vitamin D is often called the "sunshine vitamin" for good reason: your body makes most of it when UV-B light hits your skin. That works beautifully in July and much less well in January, at higher latitudes, for people who spend their days indoors, or for anyone with darker skin, which needs more sun exposure to produce the same amount. The result is that vitamin D shortfall is genuinely common — one analysis of U.S. adults aged 50 to 79 found that roughly a third had insufficient levels, with more falling short in the fall and winter months.

Food is supposed to be the backup, but here the cupboard is nearly bare. As the National Institutes of Health Office of Dietary Supplements puts it plainly, "few foods naturally contain vitamin D." The best natural sources are fatty fish like salmon, trout, and mackerel, followed by smaller amounts in egg yolks, beef liver, and cheese. Notice the pattern: they are all animal foods. Most of the vitamin D in the American diet actually comes from fortified milk and cereal, not from anything that grew that way. For anyone eating a plant-forward diet, that leaves a real gap — and a single, unlikely food that can help fill it.

How a Mushroom Makes Vitamin D Like Your Skin Does

The mechanism is almost poetic in its symmetry. Your skin contains a cholesterol-derived compound that UV-B light converts into vitamin D3. A mushroom's cell walls contain a closely related compound called ergosterol, and when UV light strikes it, ergosterol is transformed into pre-vitamin D2, which then settles into ergocalciferol — vitamin D2. Same trigger (ultraviolet light), same basic photochemistry, slightly different end product. The mushroom is running its own version of the process your skin performs on a sunny afternoon.

The problem is that commercial mushrooms almost never see the sun. According to a review of mushrooms as a dietary vitamin D source published in Nutrients, standard button mushrooms grown indoors contain less than 1 microgram of vitamin D2 per 100 grams — a nutritionally trivial amount. All the raw material (ergosterol) is sitting there in the mushroom, fully loaded and ready. It just never got the light that flips the switch.

That is the "if you do this" at the heart of the whole story. The vitamin D potential of a mushroom is almost entirely unrealized on the shelf, and you can unlock it at home for free.

The Windowsill Trick: Give Your Mushrooms a Sunbath

Here is the practical part. Take fresh mushrooms — button, cremini, portobello, shiitake, oyster, whatever you have — and set them out in direct sunlight, gills facing up. That orientation matters: the gills (the fluted underside) hold the highest concentration of ergosterol, so exposing them to the sky puts the most raw material in the path of the light. Slicing the mushrooms first helps too, by exposing even more surface area.

The payoff is dramatic. That same Nutrients review reports that when button mushrooms get midday sun for anywhere from 15 minutes to two hours, their vitamin D2 content typically climbs to more than 10 micrograms per 100 grams — up from essentially nothing. To put that in perspective, the recommended daily intake is 15 micrograms (600 IU) for most adults and 20 micrograms for those over 70. In other words, a serving of sun-treated mushrooms can go from a rounding error to a serious chunk of your day's vitamin D, just from sitting in a sunbeam.

A few tips to get it right:

  • Gills up, in direct sun. Behind window glass works, but glass filters out some UV-B, so an outdoor spot (a porch, a balcony, a windowsill with the window open) is more effective.
  • Midday is best. The sun is highest and UV-B strongest around noon. Summer beats winter, and clear skies beat overcast.
  • Do not overdo it. More is not endlessly better — very long exposure can start to degrade the vitamin D that formed. A window of roughly 15 minutes to a couple of hours captures most of the benefit.
  • Cooking keeps most of it. The vitamin D2 in mushrooms holds up well on the stove; the review found that pan-frying preserved about 88 percent of it. So sun your mushrooms, then cook them normally.
  • Use them within a week. UV-treated mushrooms kept in the fridge retain nutritionally useful amounts for about a week.

If the DIY approach feels fiddly, there is a shortcut: some brands now sell mushrooms (and mushroom powders) that have been UV-treated at the farm, and the label will say so — often boasting a full day's vitamin D per serving. The FDA has even approved UV-treated mushroom powder as an added vitamin D2 source in food products. But the fact that you can replicate this on your own kitchen windowsill, with mushrooms you already bought, is one of the best-kept secrets in home nutrition.

Does Mushroom Vitamin D Actually Work in Your Body?

A reasonable skeptic asks: fine, the mushroom makes vitamin D2, but does eating it actually raise your levels? The answer is yes. The Nutrients review points to human trials in which vitamin D2 from mushrooms raised blood levels of 25(OH)D — the standard marker of vitamin D status — about as effectively as a vitamin D2 supplement over three weeks. Your body can absorb it and use it.

One honest caveat: mushrooms make vitamin D2, and the evidence suggests D2 is a bit less potent than the D3 your skin makes or that comes from fish and most supplements. As the NIH notes, "vitamin D3 increases serum 25(OH)D levels to a greater extent and maintains these higher levels longer than vitamin D2." So sun-treated mushrooms are a genuinely useful contributor, especially for people avoiding animal foods — but if you are significantly deficient, treat them as one helpful piece of the puzzle alongside sensible sun exposure and, where appropriate, a supplement your doctor recommends. This is about adding a good food source, not replacing medical advice.

The Part Nobody Talks About: Ergothioneine

Vitamin D is the headline, but it may not even be the most interesting thing in a mushroom. That distinction might belong to a compound with an unwieldy name: ergothioneine. It is a sulfur-containing amino acid, and mushrooms are, by a wide margin, the richest food source of it on the planet.

What makes ergothioneine remarkable is how your body treats it. Some scientists, including the biochemist Bruce Ames, have floated the idea that it is a "longevity vitamin" — a nutrient that isn't essential in the sense that you'll drop dead without it, but that appears to protect against the slow diseases of aging. The tell is that your body goes out of its way to keep it: cells make a dedicated transporter protein (the ergothioneine transporter) whose entire job is to grab ergothioneine from your food and stash it in tissues rather than flush it out. Bodies do not build specialized machinery for molecules that don't matter.

The associations are striking. According to a review published in Antioxidants, a long-running Swedish study following more than 3,200 people for over two decades found that higher blood ergothioneine was among the markers most strongly linked to lower cardiovascular disease and lower overall mortality. Blood levels of it also tend to fall with age and to drop faster in people with cognitive decline. And here is the part that should get an American reader's attention: the same review notes that people in the U.S. consume only about 1.1 milligrams of ergothioneine a day, compared with up to 4.6 milligrams in Italy — a gap that tracks, at least loosely, with differences in some age-related diseases. Different mushrooms carry different amounts (oyster mushrooms are especially rich, well above the common white button), but any mushroom beats almost every non-fungal food.

None of this proves that eating mushrooms will make you live longer — these are observational links, not guarantees. But it is a compelling reason to treat mushrooms as more than a pizza topping.

And There's More in the Package

Beyond vitamin D and ergothioneine, mushrooms quietly deliver a few more things worth having:

  • Beta-glucans. The fibrous compounds in mushroom cell walls, called beta-glucans, are the subject of a large research literature. A review in Nutrients describes their best-studied effects as immune-modulating and anti-inflammatory — they interact with receptors on immune cells — and notes they can act as prebiotics, feeding beneficial gut bacteria like Bifidobacteria and Lactobacilli that ferment them into helpful short-chain fatty acids. Good news for your gut microbes.
  • B vitamins and minerals. Mushrooms are a low-calorie source of riboflavin, niacin, and pantothenic acid, along with minerals like copper, selenium, and potassium — nutrients that plant-forward eaters can sometimes run short on.
  • Very few calories. All of the above comes wrapped in a food that is roughly 90 percent water, with almost no fat and very little in the way of calories. Mushrooms are nutrient-dense in the truest sense: a lot of function for very little energy.

The Umami Superpower: Eat Less Salt and Less Meat

Mushrooms have one more trick, and it is arguably the most useful in everyday cooking: they are loaded with natural glutamates, the compounds behind umami, that deep, savory, meaty taste. That savoriness does two genuinely valuable things on your plate.

First, it lets you cut back on salt without food tasting flat. Umami and saltiness reinforce each other, so a dish built on mushroom depth needs less sodium to taste satisfying. Second, mushrooms make a superb meat extender — finely chopped and mixed into ground beef, they blend in almost invisibly while adding moisture and savor. A well-known study from the Culinary Institute of America put this to the test and found that a taco blend of 80 percent mushroom to 20 percent beef, made with 25 percent less salt, matched the full-salt, all-beef version for overall flavor intensity. You can swap out a good chunk of the meat and a quarter of the salt and still land a dish people happily eat.

That is not just a flavor win; it may be a longevity one. In a prospective study of 15,546 American adults published in Nutrition Journal, Penn State researchers found that people who ate mushrooms had a modestly lower risk of dying over the follow-up period — and, notably, that swapping just one daily serving of processed or red meat for mushrooms was associated with a meaningfully lower risk of all-cause mortality. Using mushrooms to stretch or replace some of the meat in your week, in other words, lines up with what the diet-and-longevity research keeps pointing toward.

This is exactly the kind of small, repeatable swap that is easy to talk about and easy to forget once you are standing in the kitchen at 6 p.m. If you use Eat Well Planner, you can ask its recipe chat how to work mushrooms into a dish you already make — how much to chop in as a meat extender, how to adjust the seasoning, how to build a low-sodium sauce around their umami — and get specific, practical guidance for that recipe rather than generic tips. And because the app tracks the nutrition of what you actually cook and log, you can see where your vitamin D is genuinely coming from, instead of assuming you're covered.

Take the Guesswork Out of Eating Well

Eat Well Planner helps you organize your favorite recipes, plan balanced meals, and automatically generate shopping lists — all in one place. Whether you're tracking macros, managing dietary restrictions, or just trying to stop asking "what's for dinner?", we've got you covered.

Our AI-powered tools can adapt any recipe to your dietary needs, help you discover new meals you'll love, and even log your nutrition effortlessly. It's meal planning made simple.

Start Organizing Your Meals — Free

Cooking Mushrooms So They're Actually Good

Half of mushroom disappointment is a technique problem, and it comes down to water. Mushrooms are mostly water, and when you crowd a pan with them, they release that water faster than it can evaporate. They end up simmering in their own liquid — pale, squeaky, and gray — instead of browning. The fixes are simple:

  • Do not overcrowd the pan. Give the mushrooms room in a single layer. If you have a lot, cook them in batches. A crowded pan steams; a roomy pan sears.
  • Get the pan properly hot first, and then leave them alone. Resist the urge to stir constantly. Let them sit long enough to develop a deep golden-brown crust before you toss them. That browning is where the savory, roasted flavor lives.
  • Salt near the end. Salting too early pulls water out prematurely. Season once they've browned.
  • Do not fear a little fat. A good glug of oil or a knob of butter helps conduct heat and carries flavor. Mushrooms are so low in calories that they can spare it.

Once you've got a batch of deeply browned, seared mushrooms, they go with almost anything: folded into eggs or an omelet, piled on toast, stirred through pasta or risotto, tucked into tacos, layered into a grain bowl, or simmered into a soup or stew where they add body and depth. Heartier varieties like portobello and king oyster can even stand in as the main event — a grilled portobello cap behaves a lot like a steak.

Making Mushrooms a Habit, Not an Afterthought

The theme running through all of this is that mushrooms punch far above their humble reputation — a natural vitamin D source you can supercharge on a windowsill, a leading dietary source of a possible longevity compound, a gut-friendly fiber, and a savory tool for eating less salt and less meat. The only thing standing between you and those benefits is remembering to buy them and actually working them into meals.

That is where a little planning goes a long way. When you build your week around recipes you've saved rather than improvising every night, an ingredient like mushrooms stops being a once-in-a-while impulse and becomes a regular. Eat Well Planner is built for exactly that: you can import mushroom-forward recipes from anywhere — a website, an Instagram reel, a YouTube cooking video — into one searchable recipe book, let it generate a weekly meal plan and an organized shopping list so the mushrooms are actually in your cart, and track your nutrition so you can watch your vitamin D and overall diet improve over time. The science of the sun-charged mushroom is a great trick. The habit of eating them is what actually pays off.

So the next time you bring home a carton of button mushrooms, before you tuck them in the fridge, set them out gills-up in a sunny spot for an hour. You'll turn a nutritional blank slate into one of the only plant-based foods that can meaningfully help with vitamin D — and get everything else mushrooms offer for free. Try planning your meals with Eat Well Planner and make the humble mushroom a regular on your plate.

Weekly Tips, Free Forever

Eat Better Without
Overthinking It

More overlooked-food breakdowns like this — plus gut-friendly recipes and meal plans that get nutrient-dense picks onto your plate.