What Is Vitamin D Good For? Bones, Immunity, and More

Vitamin D supports bone strength, immune defense, muscle function, and mood regulation. It acts more like a hormone than a typical vitamin, with receptors on cells throughout your body. Despite being easy to get from sunlight, deficiency is remarkably common, affecting more than half of adults in some populations.

Stronger Bones and Calcium Absorption

Vitamin D’s best-known role is helping your body absorb calcium from food. Without enough vitamin D, your intestines absorb a fraction of the calcium you eat. In vitamin D-deficient animals, calcium absorption efficiency drops by more than 75%. That’s a dramatic reduction, and it explains why severe deficiency leads to soft, weak bones (rickets in children, osteomalacia in adults).

Here’s how it works: your body converts vitamin D into its active form, which then binds to receptors in the lining of your intestines. This activates a transport system that pulls calcium from your food into your bloodstream. When your calcium intake is low (as it is for most American women), this active transport system becomes especially important because passive absorption alone can’t keep up. Once calcium reaches your blood, it’s available to strengthen and maintain bone tissue. Without vitamin D driving this process, even a calcium-rich diet won’t fully protect your skeleton.

Immune System Support

Vitamin D plays a dual role in immunity: it helps your body fight infections while also keeping the immune system from overreacting. When your immune cells detect a pathogen, they ramp up their vitamin D receptors. This triggers production of a natural antimicrobial peptide called cathelicidin, which can kill bacteria, viruses, and fungi directly. It’s one of the body’s frontline defenses, and it depends on having adequate vitamin D available.

On the other side of the equation, vitamin D helps prevent your immune system from attacking your own tissues. It shifts certain immune cells toward a more tolerant state, dialing down the production of inflammatory signals. Specifically, it reduces the activity of immune cells that drive inflammation (Th1 and Th17 cells) and encourages the development of regulatory cells that keep immune responses in check. This balancing act is why researchers have found links between low vitamin D and autoimmune conditions like multiple sclerosis and type 1 diabetes.

Muscle Strength and Fall Prevention

Vitamin D is essential for muscle repair and contraction. A study tracking adults over time found that people who were deficient in vitamin D were 70% more likely to develop significant muscle weakness compared to those with normal levels. This matters most for older adults, where muscle weakness translates directly into a higher risk of falls and fractures. Optimum blood levels appear to be 20 ng/mL or above, based on Mayo Clinic reference ranges, though many older adults fall below that threshold.

Mood and Sleep Regulation

Vitamin D is involved in the production of serotonin, the brain chemical that regulates mood, and melatonin, which controls your sleep-wake cycle. This connection helps explain why people living at higher latitudes often experience seasonal dips in mood during winter months, when sunlight exposure drops and vitamin D production in the skin slows or stops entirely. Improving vitamin D status may help with both mood and sleep quality, though it’s one piece of a larger puzzle that includes light exposure, activity levels, and other factors.

How Your Body Makes Vitamin D

Your skin produces vitamin D when ultraviolet B (UVB) rays hit a cholesterol compound in your skin cells and convert it into a precursor of the vitamin. Exposing bare arms and legs to midday sun (between 10 a.m. and 3 p.m.) for 5 to 30 minutes twice a week is generally enough to maintain adequate levels for people with lighter skin.

Skin tone makes a significant difference. Melanin, the pigment that darkens skin, competes with the cholesterol compound for UV absorption. People with darker skin may need up to ten times as long in the sun to produce the same amount of vitamin D as someone with fair skin. Geography matters too. If you live at or above 40 degrees north latitude (roughly the line running through Boston), there isn’t enough UVB radiation from November through early March to produce any vitamin D in your skin. At latitudes like Edmonton, Canada, that “vitamin D winter” stretches from October to April.

How Much You Need

The recommended daily amount, set by the National Academies of Sciences, Engineering, and Medicine, varies by age:

  • Infants (0 to 12 months): 400 IU (10 mcg)
  • Children and adults (1 to 70 years): 600 IU (15 mcg)
  • Adults over 70: 800 IU (20 mcg)
  • Pregnant and breastfeeding women: 600 IU (15 mcg)

These are baseline recommendations for healthy people. Some individuals, particularly those with darker skin, limited sun exposure, or obesity, may need more. A blood test measuring your level of 25-hydroxyvitamin D is the standard way to check. Mayo Clinic Laboratories defines the ranges as follows:

  • Optimum: 20 to 50 ng/mL
  • Mild to moderate deficiency: 10 to 19 ng/mL
  • Severe deficiency: below 10 ng/mL
  • Risk of excess calcium in urine: 51 to 80 ng/mL
  • Possible toxicity: above 80 ng/mL

Food Sources of Vitamin D

Few foods naturally contain significant vitamin D. Fatty fish like salmon, mackerel, and sardines are the richest natural sources, providing roughly 400 to 600 IU per serving. Cod liver oil is even more concentrated. Egg yolks contain a modest amount, typically around 40 IU each. Most of the vitamin D in the average diet comes from fortified foods: milk, orange juice, and many breakfast cereals have vitamin D added during processing, usually providing 100 to 150 IU per serving.

UV-exposed mushrooms are one of the few plant-based sources. When mushrooms are grown or placed under ultraviolet light, they produce vitamin D2 in meaningful amounts. If you eat little fish and get limited sun, a supplement is often the most practical way to reach the recommended intake.

Risks of Taking Too Much

Vitamin D toxicity doesn’t happen from sun exposure or food. It comes from over-supplementing. The main danger is a buildup of calcium in the blood, which can cause nausea, kidney stones, and in severe cases, kidney damage or heart rhythm problems. Blood levels above 80 ng/mL carry a risk of toxicity. Staying within the recommended intake and checking your blood levels periodically if you supplement at higher doses keeps this risk very low.