Vitamin D helps your body absorb calcium and phosphorus, which keeps bones and teeth strong, and it also supports muscle function and the immune system. Your skin makes vitamin D when it is exposed to sunlight, which is why it is often called the sunshine vitamin. But many people spend most of their time indoors, use sunscreen, live far from the equator, or have darker skin, which makes less vitamin D from the same amount of sun. For them, food and supplements matter more.
The difficulty is that very few foods contain vitamin D naturally. This guide explains what vitamin D does, how much you need at each age, which foods contain the most (with figures from the U.S. government food composition data), the signs of deficiency and what the latest guidelines say about supplements.

What does vitamin D do?
Vitamin D is a fat-soluble vitamin that acts a little like a hormone. It helps regulate calcium and phosphate in the body and affects many tissues. Its best-established roles are:
- Bones and teeth. It helps the gut absorb calcium and phosphorus. Severe deficiency causes rickets in children and softened bones (osteomalacia) in adults.
- Muscles. Low levels are linked with muscle weakness, which matters most for older adults at risk of falls.
- Immune function. Vitamin D takes part in normal immune function. Whether supplements prevent illness in people who are not deficient is still being studied, and results are mixed.
You get vitamin D from three sources: sunlight on the skin, foods and drinks, and supplements. The NIH points out that ultraviolet light can cause skin cancer, so it is important to limit how much time you spend in the sun.
Vitamin D2 and vitamin D3
Vitamin D2 (ergocalciferol) comes mainly from UV-exposed mushrooms and fortified foods. Vitamin D3 (cholecalciferol) is the form your skin makes in sunlight, and it is found in animal foods such as fatty fish, egg yolks and cod liver oil. Both forms raise vitamin D levels, but D3 appears to be more effective at raising and maintaining them, which is why many fortified foods and supplements use D3.
How much vitamin D do you need?
The table shows the U.S. Recommended Dietary Allowances. Vitamin D is measured in micrograms (mcg) or International Units (IU), and 1 mcg equals 40 IU.
| Life stage | Amount (IU) | Amount (mcg) | Notes |
|---|---|---|---|
| Infants, 0 to 12 months | 400 | 10 | Adequate Intake. Upper limit: 1,000 IU (0 to 6 months) and 1,500 IU (7 to 12 months) |
| Children and teens, 1 to 18 years | 600 | 15 | RDA |
| Adults, 19 to 70 years | 600 | 15 | RDA |
| Adults, 71 years and older | 800 | 20 | RDA |
| Pregnancy and breastfeeding | 600 | 15 | RDA |
| Upper limit for adults | 4,000 | 100 | Highest daily intake unlikely to cause harm. Mostly relevant to supplements, not food |
Some medical groups suggest more for particular people. For example, the Bone Health and Osteoporosis Foundation recommends 800 to 1,000 IU a day for adults aged 50 and older, and the 2024 Endocrine Society guideline, covered below, suggests vitamin D for certain groups. Ask your health care provider what amount is right for you.
Best food sources of vitamin D
Fatty fish are the richest natural sources. Many other useful sources are fortified, which means vitamin D has been added. The table uses figures from the Dietary Guidelines for Americans food-source tables, which draw on USDA FoodData Central.
| Food | Portion | Vitamin D (IU) | % Daily Value | Calories |
|---|---|---|---|---|
| Cod liver oil | 1 tablespoon | 1,360 | 170% | n/a |
| Rainbow trout, freshwater | 3 oz (85 g) | 645 | 81% | 142 |
| Salmon (varies by type) | 3 oz (85 g) | 383 to 570 | 48% to 71% | about 115 to 175 |
| Light tuna, canned | 3 oz (85 g) | 231 | 29% | 168 |
| Herring | 3 oz (85 g) | 182 | 23% | 172 |
| Sardines, canned | 3 oz (85 g) | 164 | about 21% | 177 |
| Tilapia | 3 oz (85 g) | 127 | 16% | 108 |
| Soy milk, unsweetened, fortified | 1 cup | 119 | 15% | 80 |
| Low-fat (1%) milk, fortified | 1 cup | 117 | 15% | 102 |
| Plain nonfat yogurt, fortified | 8 oz | 116 | about 15% | 137 |
| Almond milk, unsweetened, fortified | 1 cup | 107 | 13% | 36 |
| Orange juice, 100%, fortified | 1 cup | 100 | 13% | 117 |
| Mushrooms, raw (depends on UV exposure) | 1 cup | 0 to 1,110 | 0% to 139% | about 15 to 20 |
| Egg yolk, large | 1 yolk | about 37 | about 5% | about 55 |
Fatty fish
Rainbow trout, salmon, canned light tuna, herring, sardines and tilapia all provide meaningful amounts, along with protein, and the oily ones also provide omega-3 fats. The amount in salmon varies by type, and cooking method matters too. These fish are all on the FDA and EPA Best Choices list for fish, which is useful to know if you are pregnant or feeding young children.
Mushrooms
Mushrooms are the only common plant food that can contain vitamin D, and what they provide is vitamin D2. The amount depends on UV exposure: untreated mushrooms contain almost none, while UV-treated ones can contain a lot. Check the label, which usually states the vitamin D content when the mushrooms have been treated.
Eggs, liver and cheese
Egg yolks, beef liver and cheese contain small amounts of vitamin D. A large egg yolk has roughly 37 IU. Beef liver is also very high in vitamin A, so it is best eaten in moderation.
Fortified foods and drinks
Vitamin D is added to many breakfast cereals, orange juices, yogurts, margarines, and some dairy and plant-based milks. Fortification differs between brands and countries, and in many countries milk is not routinely fortified, so always read the Nutrition Facts label.
Cod liver oil
Cod liver oil is one of the richest sources, with 1,360 IU in a tablespoon. It is also high in preformed vitamin A, which can build up in the body, so follow the label serving size and ask your health care provider before using it, especially during pregnancy.
Signs of vitamin D deficiency
Early deficiency often causes no symptoms. When it is more severe it can contribute to muscle weakness or aches and bone pain. In children it causes rickets, with soft bones, bowed legs and delayed growth, and in adults it causes osteomalacia and a higher risk of fractures. Tiredness and low energy are often mentioned, but they are not specific to vitamin D and have many causes. Only a blood test can confirm low levels, so speak with a health professional instead of diagnosing yourself.
Who is at higher risk?
- Breastfed infants, because human milk contains little vitamin D
- Older adults, because the skin makes less vitamin D with age
- People with dark skin, because more melanin means less vitamin D is made from sunlight
- People who spend most of their time indoors, cover most of their skin outdoors, or live far from the equator, especially in winter
- People with conditions that limit fat absorption, such as Crohn’s disease, celiac disease or ulcerative colitis

What the latest research says about supplements
In 2024 the Endocrine Society published a new guideline, Vitamin D for the Prevention of Disease, which replaced its 2011 advice. It looks at generally healthy people who have no established reason for vitamin D treatment or testing, and it reflects a large amount of trial data collected since 2011.
| Group | What the guideline suggests |
|---|---|
| Children and teens, 1 to 18 years | Suggests taking vitamin D (from fortified foods or supplements) to prevent rickets and possibly lower the risk of respiratory infections |
| Healthy adults under 75 | Suggests against taking more than the recommended intake to lower disease risk; follow the RDA of 600 IU (15 mcg) |
| Adults 75 and older | Suggests taking vitamin D, mainly to lower the risk of death |
| Pregnancy | Suggests taking vitamin D to lower the risk of complications such as preeclampsia and preterm birth |
| Adults with high-risk prediabetes | Suggests taking vitamin D together with lifestyle changes to lower the risk of progression to diabetes |
| Healthy people, routine blood tests | Suggests against routine testing of blood vitamin D (25-hydroxyvitamin D) levels |
The guideline authors note that the best doses are still unclear and that, because few foods are naturally rich in vitamin D, a combination of fortified foods and supplements is a practical route when extra vitamin D is advised.
The NIH adds two cautions. Taking vitamin D supplements or eating vitamin D-rich foods has not been shown to help you lose weight, and extremely high vitamin D levels, almost always caused by too many supplements, can lead to kidney failure and an irregular heartbeat. The picture for prediabetes is not settled: the NIH notes that supplements have not stopped most people with prediabetes from developing diabetes, while the Endocrine Society suggests them for high-risk prediabetes alongside lifestyle changes.
Practical ways to get enough vitamin D
- Eat fatty fish once or twice a week, such as salmon, trout, sardines or herring.
- Choose fortified foods such as fortified milk, yogurt, plant milks or cereals, after checking the label.
- Look for UV-treated mushrooms when you buy mushrooms.
- Use sunlight sensibly. How much your skin makes depends on skin tone, season, time of day and where you live. Avoid sunburn.
- Talk to a health professional before taking supplements. Do not exceed 4,000 IU a day unless a clinician directs you to.
Frequently asked questions
Which food has the most vitamin D?
Cod liver oil has the most, with 1,360 IU in a tablespoon. Among everyday foods, farmed rainbow trout provides about 645 IU in 3 ounces, and salmon provides 383 to 570 IU depending on the type.
Is salmon rich in vitamin D?
Yes. A 3-ounce serving provides roughly 383 to 570 IU, which is about half to 70 percent of the Daily Value, depending on the type of salmon.
Are eggs a good source of vitamin D?
Eggs contain only a small amount, about 37 IU in a large yolk. They are useful as part of a varied diet but are not a main source.
Can mushrooms provide vitamin D?
Only some of them. UV-treated mushrooms can provide anywhere from none to over 1,000 IU per cup depending on the treatment, so check the label.
Can sunlight provide enough vitamin D?
It can, but how much your skin makes depends on where you live, the season, your skin tone, your age, how much skin is uncovered and whether you use sunscreen. Because ultraviolet light can cause skin cancer, sun exposure should be limited and sensible.
Which fruit has vitamin D?
Fruits contain almost none naturally. Fortified 100 percent orange juice provides about 100 IU per cup.
Can vitamin D deficiency be reversed?
Yes. It can usually be corrected with food, sensible sun exposure and, when a health professional advises it, supplements. Your clinician will decide whether follow-up blood tests are needed.
Do I need a vitamin D supplement?
It depends on your age, health, diet and sun exposure. The 2024 guideline suggests supplements for children, adults over 75, pregnancy and high-risk prediabetes, and suggests healthy adults under 75 follow the RDA. Ask your health professional.
Vitamin D at a glance
| Topic | Summary |
|---|---|
| Main job | Helps absorb calcium and phosphorus for bones and teeth; supports muscle and immune function |
| Daily need, most adults | 600 IU (15 mcg); 800 IU (20 mcg) from age 71 |
| Upper limit, adults | 4,000 IU (100 mcg) per day |
| Best food sources | Fatty fish, UV-exposed mushrooms, fortified milk, yogurt, plant milks and orange juice, cod liver oil |
| Higher-risk groups | Breastfed infants, older adults, people with dark skin, people with little sun exposure, people with conditions that limit fat absorption |
| Routine blood testing | Not suggested for healthy adults (Endocrine Society, 2024) |
Medical and editorial note
This article is for general education and is not medical advice. It does not replace advice from a doctor or registered dietitian. Last reviewed: October 2026.
References
- National Institutes of Health, Office of Dietary Supplements. Vitamin D: Fact Sheet for Consumers. ods.od.nih.gov/factsheets/VitaminD-Consumer
- National Institutes of Health, Office of Dietary Supplements. Vitamin D: Fact Sheet for Health Professionals. ods.od.nih.gov/factsheets/VitaminD-HealthProfessional
- U.S. Department of Health and Human Services and USDA. Food Sources of Vitamin D, Dietary Guidelines for Americans. dietaryguidelines.gov
- Demay MB, Pittas AG, Bikle DD, et al. Vitamin D for the prevention of disease: an Endocrine Society clinical practice guideline. J Clin Endocrinol Metab. 2024;109(8):1907-1947. doi:10.1210/clinem/dgae290
- MedlinePlus. Vitamin D. medlineplus.gov/ency/article/002405.htm
- U.S. Department of Agriculture. FoodData Central. fdc.nal.usda.gov
See also our guides to healthy eating, the Mediterranean diet and our free dietary calculators.
