In a nutshell
- Vitamin D’s best-established role is in bone health: helping absorb calcium and phosphate.
- The skin makes vitamin D from UVB sunlight; production depends on season, time of day, latitude, skin pigmentation, age, clothing, sunscreen and pollution.
- Few foods are naturally rich in vitamin D: oily fish, egg yolks, UV-exposed mushrooms; fortified milk and oils add more.
- Low levels are common in India despite sunshine, linked to indoor lifestyles, clothing, skin pigmentation and diet.
- More isn’t better — very high supplement doses can cause harm. Don’t self-prescribe high doses.
What vitamin D does
Vitamin D is a fat-soluble vitamin that acts more like a hormone than most vitamins. Whether it comes from sunlight or food, it’s inactive until the body converts it in two steps — first in the liver to 25-hydroxyvitamin D (25(OH)D, the form measured in blood tests), then mainly in the kidneys to the active hormone calcitriol.
Bone health
Vitamin D’s best-established role is helping the intestine absorb calcium and phosphate, which are needed to build and maintain bones and teeth. Without enough vitamin D:
- Children can develop rickets, with soft, deformed bones.
- Adults can develop osteomalacia — softening of the bones, causing bone pain and muscle weakness.
- Low vitamin D contributes to osteoporosis risk in older adults, alongside calcium intake, physical activity and other factors.
Other roles
Vitamin D also supports muscle function, and receptors for it are found in many tissues, including immune cells. That has prompted research into links with infections, autoimmune conditions, heart disease, cancer, diabetes and mood.
How people get vitamin D
Sunlight
When ultraviolet B (UVB) rays reach the skin, a cholesterol-related compound is converted into vitamin D3. For many people worldwide, sunlight is the main source. How much you make depends on:
- Time of day — UVB is strongest around the middle of the day.
- Season and latitude — further from the equator, UVB is weak in winter months.
- Skin pigmentation — more melanin means more sun exposure is needed to make the same amount.
- Age — older skin produces less vitamin D.
- Clothing and sunscreen — covering skin blocks UVB.
- Air pollution and cloud — reduce UVB reaching the ground.
- Time spent indoors — and glass windows block UVB.
There’s no single safe sun-exposure recommendation that fits everyone, because the same UV that makes vitamin D also damages skin and raises skin cancer risk. Avoid sunburn.
Food sources
Few foods naturally contain much vitamin D. Approximate amounts:
| Food | Approx. vitamin D | Notes |
|---|---|---|
| Oily fish (salmon, mackerel, sardines, hilsa) | Varies widely; often several hundred IU per 100 g | Among the best natural sources |
| Cod liver oil | Very high | Also high in vitamin A — don’t exceed label directions |
| Egg yolk | Around 40 IU per egg | Depends on hen’s diet and sun exposure |
| Mushrooms exposed to UV light | Can be substantial | Ordinary mushrooms contain little |
| Liver | Small amounts | Also very high in vitamin A |
| Fortified milk | Varies by product | Check the label for “+F” (FSSAI fortification logo) and vitamin D content |
| Fortified edible oil | Varies by product | Fortification of oil with vitamins A and D is promoted under FSSAI standards |
Vegetarian diets contain very little natural vitamin D apart from UV-exposed mushrooms and fortified foods.
Geographic and lifestyle factors
It surprises many people that vitamin D deficiency is common in sunny countries. Studies across India have repeatedly found low blood levels of vitamin D in a large proportion of participants — though estimates vary widely depending on the population studied and the cut-off used. Contributing factors include:
- Indoor work, study and commuting.
- Clothing that covers most of the skin.
- Higher skin pigmentation.
- Air pollution in cities.
- Largely vegetarian diets low in natural vitamin D sources.
- Limited fortified foods in some diets.
Groups more likely to have low vitamin D worldwide include older adults, people who are housebound or in care homes, people who cover their skin, people with darker skin living at higher latitudes, people with obesity, people with conditions that impair fat absorption (such as coeliac disease or inflammatory bowel disease), people with kidney or liver disease, and breastfed infants.
Testing for vitamin D
Vitamin D status is assessed by measuring 25(OH)D in the blood. Interpretation varies between organisations. The US National Academies’ framework, used by the NIH Office of Dietary Supplements, is:
| 25(OH)D level | Interpretation (NAM framework) |
|---|---|
| Below 30 nmol/L (below 12 ng/mL) | Associated with deficiency |
| 30–50 nmol/L (12–20 ng/mL) | Generally considered inadequate for bone health in some people |
| 50 nmol/L or above (20 ng/mL or above) | Generally adequate for bone health for nearly all people |
| Above 125 nmol/L (above 50 ng/mL) | Linked to potential adverse effects |
Some laboratories and organisations use higher thresholds — which is one reason why reported “deficiency” rates differ so much between studies.
In 2024, the Endocrine Society’s clinical guideline for vitamin D in disease prevention advised against routine testing of 25(OH)D in the general healthy population, while suggesting that some groups — such as children and adolescents, adults over 75, pregnant people and adults with prediabetes — may benefit from vitamin D without testing. Other organisations and Indian clinicians may take different approaches. Testing is appropriate when a doctor suspects deficiency or for people with specific conditions.
Deficiency risk and symptoms
Mild deficiency often causes no obvious symptoms. More significant deficiency can cause:
- Bone pain and tenderness
- Muscle weakness and aches
- In children, delayed growth and bone deformities (rickets)
These symptoms have many other possible causes. See a doctor rather than self-diagnosing.
Supplements
Supplements contain vitamin D2 (ergocalciferol, from plants and fungi) or vitamin D3 (cholecalciferol, usually from lanolin or fish oil; vegan D3 from lichen exists). Both raise blood levels, with D3 generally raising them somewhat more.
Reference intakes from the US National Academies (2011) are 600 IU (15 µg) a day for most adults up to 70, and 800 IU (20 µg) over 70, with a tolerable upper intake level of 4,000 IU (100 µg) a day for adults. Indian reference values are published by ICMR-NIN. Clinicians may prescribe higher doses for a limited time to treat confirmed deficiency — under supervision.
Too much vitamin D
Unlike sunlight — where the skin regulates production — supplements can push vitamin D to toxic levels. Vitamin D toxicity causes high blood calcium (hypercalcaemia), with symptoms such as nausea, vomiting, weakness, confusion, excessive thirst and urination, kidney stones and, in severe cases, kidney damage and heart rhythm problems.
Toxicity almost always results from taking very high doses for a long time, sometimes due to mislabelled products or misunderstanding weekly versus daily doses. It’s a real risk with high-dose “sachets” and injections used without supervision.
Common claims
“Living in a sunny country means you can’t be deficient.” Lifestyle, clothing, skin pigmentation, pollution and time indoors mean deficiency is common even in sunny regions.
“Sitting by a sunny window gives you vitamin D.” Glass blocks most UVB, so window sunlight produces little vitamin D.
“Higher blood levels are always better.” Benefits for bone health level off, and very high levels can cause harm.
Frequently asked questions
What is vitamin D mainly used for in the body?
Its best-established role is helping absorb calcium and phosphate to keep bones and teeth strong. It also supports muscle function and has roles in the immune system.
Which foods are highest in vitamin D?
Oily fish such as salmon, mackerel and sardines, cod liver oil, egg yolks, UV-exposed mushrooms and fortified foods such as some milks and edible oils.
Can vegetarians get enough vitamin D?
It can be harder, because few vegetarian foods contain vitamin D naturally. Sun exposure, UV-exposed mushrooms and fortified foods help. Some vegetarians may need supplements — discuss with a doctor.
Should I get my vitamin D level tested?
Not necessarily. Many guidelines don’t recommend routine testing for healthy people. A doctor may test if you have symptoms, risk factors or conditions affecting bones or absorption.
Can you get too much vitamin D from the sun?
No. The skin limits how much vitamin D it makes from sunlight. Too much sun exposure does, however, increase skin damage and skin cancer risk.
What is the difference between vitamin D2 and D3?
D2 comes from plants and fungi; D3 is the form made in human skin and found in animal foods. Both raise vitamin D levels; D3 tends to raise them a little more.
Key terms in this guide
Sources and references
We link to original research, official guidance and authoritative reviews. Read more about how we evaluate evidence.
- Vitamin D — Fact Sheet for Health Professionals. NIH Office of Dietary Supplements
- Vitamin D — Fact Sheet for Consumers. NIH Office of Dietary Supplements
- Vitamin D. NHS
- Dietary Reference Intakes for Calcium and Vitamin D. National Academies Press (2011)
- Vitamin D for the Prevention of Disease: An Endocrine Society Clinical Practice Guideline. Demay MB et al., J Clin Endocrinol Metab (2024)
- Vitamin D Supplements and Prevention of Cancer and Cardiovascular Disease (VITAL). Manson JE et al., NEJM (2019)
How to cite this guide
NourishDecoded Editorial Team. “Vitamin D: What It Does, Food Sources and How People Get It.” NourishDecoded. Published 22 November 2026; updated 22 November 2026. https://nourishdecoded.com/nutrition-basics/vitamin-d-guide/