If you want more B vitamins from vegetables, put spinach, asparagus, and mushrooms near the top of your list. Spinach is a strong source of folate, asparagus delivers several B vitamins at once, and mushrooms are one of the few non-animal foods with meaningful amounts of B12 in certain forms. Peas, potatoes, and dark leafy greens also contribute. The exact ranking depends on which B vitamin you mean, because the eight B vitamins are separate nutrients with different food sources.
That distinction matters more than most people realize. “Vitamin B” is not one thing. It is a family of eight water-soluble vitamins, and no single vegetable is highest in all of them. A vegetable that tops the list for folate may be modest for B6. So the useful answer is a vegetable-by-vegetable breakdown rather than one ranking.
Which Vegetables Are Highest In Vitamin B?
There is no single winner, but a handful of vegetables show up repeatedly across the different B vitamins. Here is how the main ones compare based on USDA nutrient data.
| Vegetable | Strongest B vitamins | Notes |
|---|---|---|
| Spinach (cooked) | Folate, riboflavin (B2), B6 | One of the best plant sources of folate |
| Asparagus | Folate, thiamin (B1), riboflavin, niacin | Broad coverage across several B vitamins |
| Mushrooms | Riboflavin, niacin, pantothenic acid; B12 in some varieties | B12 content depends on how they are grown or treated with UV light |
| Green peas | Thiamin, folate, B6 | Good all-around contributor |
| Potatoes (with skin) | B6, niacin, folate | B6 content is notable for a common vegetable |
| Beets and beet greens | Folate | Greens carry more than the root |
| Broccoli | Folate, small amounts of others | Modest but useful |
Spinach and asparagus are the two vegetables most often cited as top plant sources of folate, which is vitamin B9. If your goal is general B-vitamin coverage rather than one specific nutrient, asparagus is hard to beat because it contributes to several at once.
What Are The Eight B Vitamins And What Do They Do?
The B vitamins are a group of water-soluble nutrients your body uses for energy metabolism, red blood cell production, and nervous system function. Each one has a distinct job.
- Thiamin (B1): helps convert food into energy; supports nerve function
- Riboflavin (B2): involved in energy release and antioxidant activity
- Niacin (B3): supports metabolism and DNA repair
- Pantothenic acid (B5): needed for making coenzyme A, central to energy use
- Pyridoxine (B6): involved in amino acid metabolism and red blood cell formation
- Biotin (B7): supports metabolism of fats and carbohydrates
- Folate (B9): essential for cell division and DNA synthesis
- Cobalamin (B12): needed for nerve function and red blood cell formation
Because each vitamin does something different, a diet short in one B vitamin does not automatically mean a shortfall in another. This is why the “highest in vitamin B” question is really several questions in one.
Why Is Spinach So High In Folate?
Spinach is one of the richest plant sources of folate, and cooking concentrates it because the water content drops. Folate is the natural form of vitamin B9 found in food. Folic acid is the synthetic form used in supplements and fortified foods.
Leafy greens make folate in large amounts because the vitamin is central to cell division, and fast-growing leaves need a lot of it. Spinach delivers folate alongside iron, magnesium, and vitamin K, so it earns its reputation as a nutrient-dense vegetable.
One practical note: folate is sensitive to heat and can leach into cooking water. Boiling spinach in a large volume of water and discarding the water loses more folate than steaming or sautéing. Steaming or quick cooking preserves more.
Are Mushrooms A Reliable Source Of Vitamin B12?
Not reliably. This is where a lot of confusion lives. Mushrooms can contain B12, but the amount varies widely and depends on how they were grown or whether they were exposed to ultraviolet light.
Some mushrooms treated with UV light contain measurable B12. Untreated mushrooms typically contain very little. The form present in mushrooms may also differ from the form found in animal foods, and it is not clear that the body uses it as efficiently.
For anyone following a vegan diet, no vegetable — mushrooms included — is a dependable B12 source. The established clinical position is that people eating little or no animal food should get B12 from fortified foods or supplements, and should have their B12 status checked. Relying on mushrooms alone is not a safe strategy.
Does Cooking Destroy B Vitamins In Vegetables?
Cooking reduces B vitamins, but how much depends on the vitamin and the method. The B vitamins are water-soluble, which means they dissolve into cooking water and break down with heat.
Thiamin and folate are among the more heat-sensitive. Riboflavin breaks down with prolonged exposure to light. Boiling is the harshest method because vitamins leach into the water you then pour away.
Methods that limit water contact and cooking time preserve more:
- Steaming rather than boiling
- Stir-frying or sautéing with minimal liquid
- Roasting whole rather than cutting into small pieces, which limits surface area exposed to heat and water
- Using cooking water in soups or sauces when you do boil
The loss is real but rarely total. Even after cooking, these vegetables remain meaningful sources of B vitamins. The goal is not perfect preservation but reasonable cooking habits.
Can You Get Enough B Vitamins From Vegetables Alone?
For most B vitamins, yes — a varied plant-rich diet covers them. B12 is the clear exception, and it is the one that matters most for people eating little or no animal food.
B12 occurs naturally almost exclusively in animal products. Fortified plant foods and supplements are the established ways to get it without animal foods. This is a well-settled point in clinical nutrition, not a debated one.
Folate is the other vitamin worth attention. It is abundant in vegetables, so deficiency is uncommon in people eating a varied diet. The exception is pregnancy, where folate needs rise, and clinical guidance recommends folic acid supplementation. That recommendation comes from established public health guidance, and anyone who is pregnant or planning pregnancy should follow their clinician’s advice rather than relying on food alone.
For B6, thiamin, riboflavin, and niacin, vegetables contribute steadily across the day. The pattern that works is variety — different colors and types of vegetables — rather than leaning on one “best” vegetable.
Which Vegetables Are Highest In B6 And Other B Vitamins?
Different B vitamins have different vegetable leaders. If you are targeting a specific one, here is where to look.
- B6: potatoes with skin, green peas, and spinach are among the better vegetable sources
- Thiamin (B1): asparagus, green peas, and legumes
- Riboflavin (B2): spinach, asparagus, and mushrooms
- Niacin (B3): mushrooms and potatoes
- Folate (B9): spinach, asparagus, beets, and other dark leafy greens
Potatoes deserve a mention that surprises people. A whole potato with the skin on is a solid source of B6 and contributes niacin and folate too. It is rarely listed among “healthy” vegetables, but on B-vitamin content it holds its own.
Frequently Asked Questions
Which vegetable has the most vitamin B overall?
Asparagus and spinach are the strongest all-around choices, each contributing several B vitamins at once. Asparagus covers more B vitamins across the board, while spinach is especially high in folate.
Do potatoes contain vitamin B?
Yes, a whole potato with the skin is a good source of vitamin B6 and also provides niacin and folate. Leaving the skin on preserves more of the nutrients.
Are mushrooms a good source of vitamin B12?
Only in limited cases, and not reliably. Some UV-treated mushrooms contain measurable B12, but no vegetable is a dependable B12 source, so people eating little or no animal food should use fortified foods or supplements.
Does cooking vegetables remove B vitamins?
Cooking reduces B vitamins, especially when vegetables are boiled, because the vitamins dissolve into the water. Steaming, stir-frying, or roasting preserves more than boiling.

