The vitamin your skin makes from sunlight, which the body then turns into a hormone. It keeps calcium where your bones need it, and it reaches well beyond bone: the receptor it works through sits in many tissues and helps switch genes on and off. This page covers what it does, what running low costs and what low levels only travel with, who tends to run low, how to get enough safely and when a blood test is worth having.
Last updated:
Vitamin D from sunlight, food or a supplement does nothing until the body activates it, first in the liver and then mainly in the kidneys. The active form is a hormone, and its best-established job is calcium: it helps the gut absorb calcium and keeps the calcium and phosphate in your blood at the levels bones need to stay hard1.
Without enough vitamin D, bones can become thin, brittle or misshapen. A real deficiency causes rickets in children and osteomalacia, a softening of the bones, in adults1.
Muscle fibers need vitamin D to develop and grow, and too little can bring muscle weakness and pain. Muscles and nerves also run on calcium, so a severe shortfall can cause cramps and spasms1.
Many tissues carry the vitamin D receptor (immune cells among them), and some can activate vitamin D themselves1. Whether taking more prevents infections is a separate question, and the answer is weaker than the claims, as the next sections show.
It also takes part in cell growth, glucose metabolism and the control of inflammation, largely by changing which genes are active1. The next section explains how, and how many genes are involved.
Active vitamin D works through a receptor inside the cell, the vitamin D receptor. Together they attach to DNA and turn the activity of nearby genes up or down, which is how one vitamin can matter to bone, muscle, immune cells and cell growth at once2.
In immune cells given active vitamin D, the receptor attached to DNA at 2,776 places, and 229 genes changed their activity3. Across many kinds of cells, the receptor binds thousands of sites in the genome, and in any one kind of cell a few hundred genes respond2.
In a small pilot trial, eight adults took vitamin D3 for two months, and 291 genes changed their activity in their white blood cells4. It had no placebo group and measured gene activity, not health, and its authors called it exploratory because of its size.
A widely cited review estimates that about 3% of the genome is under vitamin D's influence, directly or indirectly5. That is an estimate, not a count of genes.
A place where the receptor binds is not a gene, and a gene changing its activity is not a health benefit. Much of this work gives cells far more of the active hormone than the body makes, and researchers in the field caution that it does not reflect what happens in the body2.
Every day, vitamin D takes part in
A real deficiency softens bones and upsets the calcium balance that muscles rely on. Beyond that, low vitamin D turns up alongside many problems, but turning up alongside is not the same as causing: in large trials, giving vitamin D to people who were not selected for a deficiency has mostly not prevented them. That difference decides whether a supplement will help you, so each area below says which kind of evidence it rests on.
People with low vitamin D report more sleep problems. Pooling nine studies of 9,397 people, researchers found that those with the lowest levels had higher odds of a sleep disorder (an odds ratio of 1.50), poor sleep quality (1.59), short sleep (1.74) and daytime sleepiness (1.36)7. Most of those studies measured sleep and vitamin D at the same time, so they cannot show which came first.
The trials are thinner. Three small trials pooled together found better sleep-quality scores with vitamin D, but they were short, used high doses and were in particular groups: people on methadone treatment, people with fibromyalgia and adults who already slept poorly. The longest and largest trials found no improvement8. So if you sleep badly and a test shows you are low, correcting it is sensible, but it is unlikely to fix sleep on its own. The habits on our Sleep page do more, and loud snoring or pauses in breathing point to sleep apnea, which needs its own assessment.
| Area | What the evidence shows |
|---|---|
| Bones and fractures | A real deficiency softens bones: rickets in children, osteomalacia in adults1. But in more than 25,000 US adults not selected for a deficiency, 2,000 IU (50 mcg) a day for about five years did not reduce fractures9, and a 2026 review of the trials found vitamin D alone had little to no effect on fractures10. Correcting a real deficiency is a different matter from topping up a normal level. |
| Muscles and falls | Too little vitamin D can weaken muscles1. For preventing falls in people who are not deficient, the US Preventive Services Task Force advised against vitamin D in 2018, and its December 2024 draft does the same, after trials in more than 36,000 people found no fewer people falling11. |
| Heart and cancer | In the same trial of more than 25,000 US adults, 2,000 IU (50 mcg) a day for about five years did not lower cancer, heart attacks, strokes or deaths from any cause. Deaths from cancer were slightly lower, but not by a margin the trial could confirm12. |
| Infections | A 2021 pooled analysis of the trials found a small drop in respiratory infections; its 2025 update, with 40 trials and more than 61,000 people, found the effect was no longer clear13. |
| Autoimmune disease | In that same trial, autoimmune disease was diagnosed at a 22% lower rate on vitamin D over about five years14. Once more cases were confirmed, and people were followed for two years after they stopped, the effect was weaker and did not last15. Our multiple sclerosis guide covers the genetic evidence that low vitamin D raises the risk of developing it. |
| Mood | In more than 18,000 adults aged 50 and older, 2,000 IU (50 mcg) a day for about five years did not prevent depression or change mood scores16. It was a prevention trial, not a trial of treating depression. |
| Blood sugar | In adults with prediabetes, pooled data from three trials found vitamin D lowered the risk of developing type 2 diabetes by 15%, an absolute 3.3% over three years17, and the Endocrine Society suggests it for adults with high-risk prediabetes, alongside lifestyle change18. No trial has shown it reverses diabetes. |
Most people in the US get enough: in national data, about 5% were at risk of deficiency and 18% at risk of having too little for good bone health1. Getting enough from food alone is hard, so most people rely on fortified foods and some sun. These groups are the most likely to fall short1.
There are three sources, and each comes with a catch.
Your skin makes vitamin D from the sun's UVB rays. How much depends on the season, the time of day, cloud, smog, your skin color, your age and sunscreen, and window glass blocks it completely1. Because UV light is also the most preventable cause of skin cancer, health agencies advise protecting your skin rather than seeking out the sun for vitamin D, and most people still make some with sunscreen as they usually apply it1.
| Food | Serving | Vitamin D |
|---|---|---|
| Wild sockeye salmon, cooked | 3 ounces (85 g) | 570 IU |
| White mushrooms exposed to UV light, raw, sliced | Half a cup | 366 IU |
| Sardines, canned in oil, drained | 2 sardines | 46 IU |
| Egg, large (the vitamin D is in the yolk) | 1 egg | 44 IU |
| Beef liver, braised | 3 ounces (85 g) | 42 IU |
| Natural cheese | 1.5 ounces (43 g) | 17 IU |
Amounts are from the NIH Office of Dietary Supplements, whose cheese figure is for a hard natural cheese1. Apart from mushrooms exposed to UV light, fruit, vegetables, grains, beans, nuts and seeds have essentially none, and fortified foods supply most of the vitamin D in American diets1.
The recommended amount is 600 IU (15 mcg) a day from age 1 to 70, including in pregnancy and while breastfeeding, and 800 IU (20 mcg) a day after 70; babies under a year need 400 IU (10 mcg)1. These amounts assume very little sun1.
For everyone aged 9 and older, the upper limit is 4,000 IU (100 mcg) a day. It is lower for young children, from 1,000 IU for babies up to six months to 3,000 IU at ages 4 to 8 1. The panel that set it noted that even intakes below the limit might have adverse effects over time1.
Vitamin D3 raises blood levels more, and keeps them up longer, than vitamin D2. A meal with some fat helps absorption, though some is absorbed without it, and an animal-free D3 made from lichen exists1. For healthy adults under 75, the Endocrine Society does not suggest a supplement beyond the recommended amount; it does suggest one for children and teenagers, in pregnancy, for adults 75 and older, and for adults with high-risk prediabetes18.
A deficiency found on a test is corrected differently from everyday topping up. When it is causing symptoms, or needs correcting quickly, clinicians often prescribe a short course at a higher dose, taken daily or weekly over several weeks, and then a lower daily dose to keep the level up1920. Children with rickets are treated the same way, for at least three months, at doses set by age21.
Three things keep it safe. The dose is set by the clinician who ordered the test, because it depends on how low the level is and on your health and medicines. It is split into regular doses, never one very large one: a single high dose once a year raised falls and fractures in older women22. And blood calcium is usually checked a month after the course20. For adults 50 and older, the Endocrine Society prefers a daily dose to a larger one taken weeks apart18.
Vitamin K activates proteins involved in bone metabolism and, it is thought, in keeping calcium out of artery walls, and supplements often pair it with vitamin D23. European regulators accept that vitamin K in the diet helps maintain normal bone, while the FDA has not authorized that claim; it is unclear whether a vitamin K supplement lowers the risk of osteoporosis, and the evidence that it keeps calcium out of arteries comes mainly from observational studies23. In a two-year trial in 365 men with calcium building up on a heart valve, vitamin K2 taken with vitamin D slowed neither that nor the calcium in their heart arteries24.
Vitamin K has no set upper limit, since no harm from food or supplements has been reported23, so K2 is not a risk for most people. But the evidence does not make it a requirement for taking vitamin D, and it is no substitute for staying within the limits above. Leafy greens supply most of the vitamin K people eat, and K2 comes in modest amounts from cheese, eggs and meat and in large amounts from natto, a fermented soybean dish23. If you take warfarin or a similar blood thinner, do not start, stop or change a vitamin K supplement without your prescriber: vitamin K works against these medicines, so your intake needs to stay steady23.
The test measures 25-hydroxyvitamin D, the form that circulates in the blood and reflects what you get from sun, food and supplements together1.
| Blood level | What it means |
|---|---|
| Below 12 ng/mL (30 nmol/L) | At risk of deficiency, which can cause rickets in children and osteomalacia in adults |
| 12 to 20 ng/mL (30 to 50 nmol/L) | Generally too low for bone and overall health |
| 20 ng/mL (50 nmol/L) or more | Enough for most people |
| Above 50 ng/mL (125 nmol/L) | Linked to possible harm, especially above 60 ng/mL (150 nmol/L) |
These are the bands used by the National Academies panel that set the US intake recommendations1. No level has been shown to bring extra health benefits, and the panel advised against pushing levels above about 50 to 60 ng/mL1.
Screening healthy adults is not recommended. The US Preventive Services Task Force found too little evidence to recommend for or against screening adults without symptoms25, and the Endocrine Society suggests against routine testing in healthy adults, including adults with darker skin18.
A test is worth asking about when there is a reason: signs of deficiency; low blood calcium; bone disease; a condition that affects absorption, the kidneys or the liver; weight-loss surgery; or long-term use of a medicine that lowers vitamin D1. That is a decision for your clinician, and so is the dose that follows.
Vitamin D comes up across dozens of our condition guides. Here is what each one says about it, grouped by the strength of the link. Each line is the guide's own conclusion, and its evidence and sources are on the guide.
Vitamin D is a real treatment for a real deficiency. These are the signs that one might be present, the signs that you are taking too much and the situations where a supplement needs a conversation first.
Bone pain, muscle weakness and aching, and spasms; in children, bones that bend or grow misshapen, and poor growth1. Each of these has other causes too, which is why a blood test, not a guess, should decide.
Nausea, vomiting, weakness, confusion, great thirst and passing a lot of urine while taking a supplement point to high calcium1. Stop the supplement and see a doctor promptly.
If you are in one of the groups that tends to run low, ask your clinician whether a test makes sense, and let the result set the dose. Everyone else usually gets enough from food and ordinary time outdoors.
Each numbered entry below is either a source you can follow or a note setting out what the evidence does and does not support. Both are numbered together so the markers in the text line up.
Last reviewed October 20, 2026. This page is nutrition education, not medical advice, and it does not replace your doctor. Vitamin D treats a vitamin D deficiency, and for most other problems the large trials say it is not the answer. Any dose above the everyday amounts, and any course to correct a deficiency, belongs with the clinician who ordered your test, and anyone with kidney disease, high blood calcium or a granulomatous disease such as sarcoidosis should ask before taking any vitamin D at all.