Health Library Logo

Health Library

Health Library

How to Restore Your Vitamin D and B12 Levels Through Food and Daily Habits

March 3, 2026


Question on this topic? Get an instant answer from August.

If you've been told your vitamin D or B12 levels are low, you're not alone. These two nutrients are surprisingly common deficiencies, and the good news is that with some thoughtful changes to your diet and lifestyle, you can often bring them back up. Your body needs both vitamins for energy, mood, bone health, and nerve function, so understanding how to support them is an important step toward feeling your best again.

Why Do Vitamin D and B12 Matter So Much?

Vitamin D helps your body absorb calcium, which keeps your bones strong and healthy. It also supports your immune system and plays a role in mood regulation. When you don't have enough, you might feel tired, notice muscle aches, or feel more down than usual.

Vitamin B12 is essential for making red blood cells and keeping your nervous system running smoothly. Without enough B12, you might experience fatigue, tingling in your hands or feet, or trouble concentrating. Both vitamins work quietly in the background, but when they're low, you really notice the difference.

What Are the Best Food Sources of Vitamin D?

Getting vitamin D from food alone can be tricky because not many foods naturally contain it. That said, some options can help you boost your intake, especially when combined with sunlight and, if needed, supplements.

Fatty fish like salmon, mackerel, sardines, and trout are among the richest natural sources. A serving of cooked salmon can provide a significant portion of your daily needs. If you enjoy fish, aim to include it in your meals two to three times a week.

Egg yolks also contain small amounts of vitamin D. While they won't meet your entire requirement, they contribute to your overall intake, especially if you eat eggs regularly. Choose pasture-raised eggs when possible, as they tend to have slightly higher vitamin D levels.

Fortified foods are another helpful option. Many brands of milk, plant-based milk alternatives, orange juice, and breakfast cereals are fortified with vitamin D. Check the labels to see how much each serving provides, and try to include these foods consistently in your diet.

Mushrooms exposed to ultraviolet light can produce vitamin D, much like your skin does in sunlight. Some grocery stores now sell UV-treated mushrooms that offer a plant-based source of this nutrient. They're a great addition to stir-fries, salads, or omelets.

Cod liver oil is a traditional supplement that's also technically a food source. It's very high in vitamin D, but it has a strong flavor that not everyone enjoys. If you can tolerate it, a small daily dose can make a big difference.

How Can I Get More Vitamin B12 from My Diet?

Vitamin B12 is found almost exclusively in animal products, which means people who eat meat, fish, eggs, and dairy usually get enough. However, if you follow a plant-based diet or have absorption issues, you'll need to be more intentional about your sources.

Meat, especially beef and liver, is one of the richest sources of B12. Liver might not be a common choice in modern diets, but it's incredibly nutrient-dense. If you're open to trying it, even a small serving once a week can help. Ground beef, steak, and pork also provide good amounts.

Fish and shellfish are excellent options as well. Clams, sardines, tuna, and salmon all contain high levels of B12. Canned fish is a convenient and affordable way to get this nutrient regularly, and it's shelf-stable, which makes it easy to keep on hand.

Eggs and dairy products like milk, yogurt, and cheese contribute to your B12 intake. While they don't have as much as meat or fish, they're still valuable, especially if you eat them daily. Greek yogurt and cottage cheese are particularly good choices because they're also rich in protein.

For those following a vegetarian or vegan diet, fortified foods become essential. Nutritional yeast, fortified plant milks, fortified breakfast cereals, and some meat substitutes are enriched with B12. Always check the label to confirm the amount per serving, and aim to include these foods every day.

If you're vegan or have trouble absorbing B12 due to digestive issues, pernicious anemia, or certain medications, a supplement is often necessary. Sublingual tablets, sprays, and patches can help you meet your needs when food alone isn't enough.

Does Sunlight Really Help with Vitamin D?

Yes, sunlight is actually your body's primary way of making vitamin D. When ultraviolet B rays hit your skin, they trigger a chemical reaction that produces this vitamin. For many people, spending time outdoors is one of the most effective ways to maintain healthy levels.

How much sun you need depends on your skin tone, where you live, the season, and the time of day. People with lighter skin can often make enough vitamin D with 10 to 15 minutes of midday sun exposure on their arms and legs a few times a week. Those with darker skin may need more time because melanin reduces the skin's ability to produce vitamin D.

If you live in a northern climate or during winter months, the sun's angle makes it harder for your skin to produce vitamin D. In these situations, food and supplements become more important. Similarly, if you wear sunscreen regularly or cover most of your skin for cultural or medical reasons, you may need to rely more on dietary sources.

It's important to balance sun exposure with skin health. You don't need to sunbathe for hours or skip sunscreen entirely. Short, regular periods of sun exposure without sunscreen, followed by protection, can help you get what you need without increasing your risk of skin damage.

Are There Lifestyle Changes That Support These Vitamins?

Beyond diet and sunlight, certain habits can help your body absorb and use vitamin D and B12 more effectively. Small shifts in your daily routine can make a meaningful difference over time.

First, taking care of your digestive health supports B12 absorption. Your stomach produces a protein called intrinsic factor, which is necessary for B12 to be absorbed in your small intestine. Conditions like atrophic gastritis, Crohn's disease, or celiac disease can interfere with this process. If you have a digestive condition, work closely with your doctor to monitor your B12 levels and consider supplementation if needed.

Limiting alcohol intake also helps. Excessive drinking can damage the lining of your stomach and intestines, making it harder to absorb both B12 and other nutrients. Moderation is key, and if you're concerned about your intake, cutting back can support your overall nutrient status.

If you're taking medications like proton pump inhibitors for acid reflux or metformin for diabetes, know that these can reduce B12 absorption over time. You don't need to stop your medication, but it's worth discussing with your doctor whether you should monitor your levels more closely or add a supplement.

Regular physical activity, especially weight-bearing exercise like walking, jogging, or strength training, supports bone health. Since vitamin D helps your bones absorb calcium, staying active creates a synergy that benefits your skeletal system. Exercise also encourages you to spend more time outdoors, which can increase your sun exposure naturally.

Managing stress and getting enough sleep may also play a role. Chronic stress and poor sleep can weaken your immune system and interfere with how your body uses nutrients. While these factors don't directly cause deficiencies, they can make it harder for your body to maintain balance.

When Should I Consider Taking Supplements?

Supplements can be a helpful tool when food and lifestyle changes aren't enough. If your levels are very low, or if you have a condition that affects absorption, your doctor may recommend a supplement to help you recover more quickly.

Vitamin D supplements come in two forms: D2 and D3. Vitamin D3 is generally more effective at raising and maintaining your blood levels. Typical doses range from 1,000 to 2,000 international units per day for maintenance, but your doctor might suggest a higher dose initially if your levels are quite low.

Vitamin B12 supplements are available in several forms, including cyanocobalamin and methylcobalamin. Both work well for most people, though methylcobalamin is often preferred by those who want a form that's already active in the body. Sublingual tablets, which dissolve under your tongue, can be especially helpful if you have absorption issues.

If you're taking both vitamins, you don't need to worry about timing them together or separately. However, vitamin D is fat-soluble, which means it's absorbed better when taken with a meal that contains some fat. B12, on the other hand, can be taken with or without food.

Always talk to your doctor before starting supplements, especially if you're already on other medications or have a health condition. Too much vitamin D can lead to calcium buildup in your blood, and while B12 is generally safe even in high doses, it's still best to take only what you need.

What If My Levels Don't Improve?

Sometimes, despite your best efforts with diet and supplements, your levels remain low. This can be frustrating, but it's important to know that it doesn't mean you're doing anything wrong. There may be an underlying reason that needs attention.

For vitamin D, issues with absorption, kidney or liver disease, or certain genetic conditions can interfere with how your body converts or uses the vitamin. Your doctor might run additional tests to check how well your body is processing it and adjust your treatment plan accordingly.

For B12, persistent low levels often point to an absorption problem. Conditions like pernicious anemia, which affects intrinsic factor production, or surgical removal of part of the stomach or intestine, can make it nearly impossible to absorb B12 from food. In these cases, injections or high-dose oral supplements are usually needed.

Rarely, certain medications or interactions with other nutrients can also play a role. For example, excessive amounts of folate can sometimes mask a B12 deficiency in blood tests, making it harder to diagnose. Your doctor can help sort through these possibilities and find the right approach for you.

How Long Does It Take to Feel Better?

The timeline for improvement varies depending on how low your levels are and how well your body responds to treatment. Some people start to feel more energetic and clear-headed within a few weeks, while others may take a few months to notice significant changes.

Vitamin D levels typically rise steadily with consistent supplementation and sun exposure. Your doctor may recheck your blood levels after two to three months to see if your dose needs adjusting. Bone and muscle symptoms may take longer to improve, but mood and energy often respond more quickly.

With B12, the response can be faster, especially if you're receiving injections. Some people feel better within days, particularly if they had neurological symptoms like tingling or memory issues. However, nerve damage, if it has occurred, can take much longer to heal, and in some cases, it may not fully reverse.

Patience is important. Your body needs time to rebuild its stores and repair any damage caused by the deficiency. Keep following your treatment plan, stay in touch with your doctor, and trust that you're moving in the right direction.

Can I Prevent These Deficiencies in the Future?

Yes, with mindful habits, you can often prevent these deficiencies from returning. Once your levels are back to normal, the goal is to maintain them through a balanced approach that fits your lifestyle.

Continue eating a varied diet that includes the foods we discussed earlier. If you're vegetarian or vegan, make fortified foods and supplements a regular part of your routine. Don't wait until you feel symptoms again to check in with your levels.

Spend time outdoors when you can, especially in the warmer months. Even short walks during lunch or sitting outside with a book can help. If you live in a place with limited sunlight in winter, consider a vitamin D supplement during those months.

Stay on top of your health screenings. If you have a condition that affects absorption, or if you're on medications that interfere with these vitamins, regular blood tests can catch any dips before they become a problem. Your doctor can help you set up a monitoring schedule that makes sense for you.

Remember, you're not expected to do this perfectly. Life gets busy, and there will be times when your diet isn't ideal or you don't get outside as much. What matters most is that you stay aware, make adjustments when needed, and reach out for support when things feel off.

Taking care of your vitamin D and B12 levels is a gentle, ongoing process. With the right foods, a little sunshine, and occasional help from supplements, you can support your body in feeling strong, clear, and energized. You're already on the path by learning about this, and that's a powerful first step.

Health Companion

trusted by

6Mpeople

Get clear medical guidance
on symptoms, medications, and lab reports.