Vitamin D and Type 2 Diabetes

Interest in vitamin D and its role in the prevention and treatment of diabetes has grown tremendously over the past two decades. Despite many studies showing a connection between vitamin D and diabetes, uncertainty of vitamin D's effects still exists.

This article will explore available research surrounding vitamin D and type 2 diabetes and how to ensure you get enough of this important vitamin.

Woman holding vitamin D supplements

Grace Cary / Getty Images

Vitamin D and Diabetes Prevention

The belief that vitamin D status may influence the development of type 2 diabetes seems reasonable. Low vitamin D levels have been linked to high levels of inflammatory markers, impaired pancreatic beta-cell function (cells that make insulin), and insulin resistance (when your body's cells don't respond well to insulin and can't take up enough glucose to use for energy)—all of which can lead to type 2 diabetes.

While observational studies suggest that individuals with low vitamin D levels are more likely to develop type 2 diabetes, research remains mixed on whether vitamin D supplementation lowers the risk of diabetes.

The Research

In an extensive study, researchers followed 2,423 adults at high risk for diabetes for an average of 2.5 years. Half of the participants were provided 4,000 international units (IU) of vitamin D supplementation, and the others were given a placebo (an identical pill that did not contain vitamin D). The research found:

  • Participants who took the vitamin D supplement were 12% less likely to develop diabetes at the end of the trial than those who received the placebo. However, researchers did not consider this to be statistically significant.
  • Notably, 80% of participants had adequate levels of vitamin D before the trial began, which could limit the study's ability to detect the benefit of vitamin D.
  • At the beginning of the study, participants who had deficient vitamin D levels found that vitamin D supplements appeared to lower their risk of diabetes. No conclusion was drawn due to the limited number of participants with low vitamin D levels.

Another review of studies found that vitamin D supplementation may delay the development of diabetes in people with prediabetes and vitamin D deficiency. However, no benefit was seen in those with normal vitamin D levels.

Managing Type 2 Diabetes With Vitamin D

Research suggests that individuals with type 2 diabetes often have a vitamin D deficiency. One study noted people with type 2 diabetes and vitamin D deficiency are more likely to have inflammation and a higher hemoglobin A1c (A1C) than those who do not have a deficiency. The reversal of vitamin D deficiency could improve this population's insulin secretion and A1C levels.

A review of 29 trials found no noticeable differences in fasting blood glucose levels, but a significant reduction in A1C after vitamin D supplementation was observed. Participants who were deficient in vitamin D experienced more significant reductions in A1C.

In another study, participants with type 2 diabetes who took a vitamin D supplement with the antidiabetic drug metformin had lower A1C levels over three and six months compared to those who only took metformin. Researchers called for further investigation to determine the optimal dose of vitamin D in people with type 2 diabetes.

Other Health Benefits of Vitamin D

Although research on vitamin D and diabetes remains inconclusive, vitamin D has many health benefits for the body. The most important is its ability to help your body absorb calcium, which is essential for normal bone mineralization.

In children, a vitamin D deficiency can cause the rare disease known as rickets, which can lead to delayed growth, bowed legs, and weakness due to softening of the bones. In teens and adults, vitamin D deficiency can cause osteomalacia (a softening of the bones) that also causes muscle weakness and bone pain. Long-term deficits in vitamin D and calcium can lead to osteoporosis (a condition of weak or brittle bones).

Your nerves and muscles also need vitamin D to function, and your immune system needs vitamin D to fight viruses and bacterial infections.

Studies have found that long-term vitamin D deficiency may lead to inflammatory diseases, including the autoimmune conditions rheumatoid arthritis and lupus, as well as inflammatory bowel disease (IBD). However, more research is needed to confirm this.

Preventing Vitamin D Deficiency

The amount of vitamin D a person needs daily to prevent a deficiency depends on age. Current daily recommended dietary allowances for vitamin D are:

  • 400 IU for infants up to 12 months
  • 600 IU for children and adults under the age of 70
  • 800 IU for adults over 70

Most adults can safely consume up to 4,000 IU daily. The best way to prevent vitamin D deficiency is to ensure you get adequate amounts of vitamin D from the foods you eat, dietary supplements, and sun exposure.

Vitamin D and Your Diet

Foods that contain vitamin D include:

  • Beef liver
  • Fatty fish (salmon, trout, tuna, and mackerel)
  • Mushrooms
  • Egg yolks
  • Cod liver oil

Foods fortified with vitamin D provide most of the vitamin D in your diet. These include:

  • Cow’s milk and soy, almond, and oat milk
  • Breakfast cereals
  • Orange juice
  • Yogurt

Sunlight and Vitamin D

Although the sun is your best source of vitamin D, it can be challenging to meet your daily needs this way, especially during the winter. People with dark skin and older adults may also struggle to get enough vitamin D because their skin doesn't make enough of it when exposed to sunlight.

If you suspect a vitamin D deficiency, your healthcare provider can order a simple blood test to check your vitamin D levels.


Vitamin D is necessary to help your body absorb calcium. It also affects your immune, muscle, and nervous systems. While several observational studies suggest that vitamin D may play a role in treating and preventing type 2 diabetes, more research is still needed.

The potential benefit of vitamin D supplementation appears to be more significant among individuals with a confirmed vitamin D deficiency. Some food, sunlight, and supplements are good sources of vitamin D.

A Word From Verywell

When it comes to preventing and managing type 2 diabetes, the best way to do so is by making lifestyle changes, including exercising, following a nutritious diet, and maintaining a healthy weight. Given that there are no official guidelines for using vitamin D supplements to prevent or treat type 2 diabetes, it's essential to speak with your healthcare provider before adding these supplements to your diet.

Frequently Asked Questions

  • What vitamins should people with diabetes take daily?

    Research on vitamins and supplements for diabetes is inconclusive. Unless you have a confirmed nutrient deficiency or your healthcare provider recommends adding a specific vitamin to your supplement regimen, it's unlikely to be helpful.

  • How much vitamin D does a person with diabetes need?

    There is no established dose of vitamin D recommended for people with diabetes. The recommended daily amount of vitamin D is 600 IU for individuals ages 1 to 70 and 800 IU for those over 70.

  • Does vitamin D help regulate blood sugar?

    It is believed that vitamin D plays a role in blood sugar regulation because it boosts insulin secretion through the vitamin D receptor on pancreatic beta cells. Vitamin D can also reduce insulin resistance through its receptors in the liver and muscles.

12 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Pittas AG, Jorde R, Kawahara T, Dawson-Hughes B. Vitamin d supplementation for prevention of type 2 diabetes mellitus: To d or not to d? The Journal of Clinical Endocrinology & Metabolism. 2020;105(12):3721-3733. doi:10.1210/clinem/dgaa594

  2. Pittas AG, Dawson-Hughes B, Sheehan P, et al. Vitamin d supplementation and prevention of type 2 diabetesNew England Journal of Medicine. 2019;381(6):520-530. doi:10.1056/NEJMoa1900906

  3. Vitamin D and Type 2 Diabetes. A summary of the D2d study results and what they mean.

  4. Chang Villacreses MM, Karnchanasorn R, Panjawatanan P, Ou HY, Chiu KC. Conundrum of vitamin D on glucose and fuel homeostasisWorld J Diabetes. 2021;12(9):1363-1385. doi:10.4239/wjd.v12.i9.1363

  5. Khudayar M, Nadeem A, Lodi MN, et al. The association between deficiency of vitamin d and diabetes mellitus type 2(Dmt2). Cureus. doi:10.7759/cureus.22221

  6. Lee CJ, Iyer G, Liu Y, et al. The effect of vitamin D supplementation on glucose metabolism in type 2 diabetes mellitus: A systematic review and meta-analysis of intervention studies. J Diabetes Complications. 2017;31(7):1115-1126. doi:10.1016/j.jdiacomp.2017.04.019

  7. Cojic M, Kocic R, Klisic A, Kocic G. The effects of vitamin d supplementation on metabolic and oxidative stress markers in patients with type 2 diabetes: a 6-month follow up randomized controlled study. Front Endocrinol. 2021;12:610893. doi:10.3389/fendo.2021.610893

  8. National Institutes of Health. Vitamin D.

  9. Bui L, Zhu Z, Hawkins S, Cortez-Resendiz A, Bellon A. Vitamin D regulation of the immune system and its implications for COVID-19: A mini review. SAGE Open Medicine. 2021;9:205031212110140. doi:10.1177/205031212110140

  10. Medline Plus. Vitamin D deficiency.

  11. American Diabetes Association. Vitamins & diabetes.

  12. National Institutes of Health. Vitamin D.

By Lindsey DeSoto, RD, LD
Lindsey Desoto is a registered dietitian with experience working with clients to improve their diet for health-related reasons. She enjoys staying up to date on the latest research and translating nutrition science into practical eating advice to help others live healthier lives.