What Does Vitamin D Do for Bones, Immunity, and Mood

Vitamin D helps your body absorb calcium, fight infections, maintain muscle strength, and regulate mood. It functions less like a traditional vitamin and more like a hormone, with receptors in nearly every tissue in your body. That wide reach explains why low levels are linked to problems ranging from brittle bones to persistent fatigue.

How It Strengthens Bones

Vitamin D’s most well-established role is helping your intestines absorb calcium and phosphorus, the two minerals that make bones hard and dense. Without enough vitamin D, your body absorbs only a fraction of the calcium you eat, no matter how much dairy or leafy greens you consume. When blood calcium drops too low, your body compensates by pulling calcium out of your bones, gradually weakening them.

In children, severe deficiency causes rickets, a condition where bones grow soft and bend into abnormal shapes. In adults, the equivalent condition is called osteomalacia, which produces deep bone pain and muscle weakness. Even moderate deficiency over years accelerates bone loss and raises fracture risk, particularly in older adults. This is why the recommended intake increases after age 70: your skin produces less vitamin D with age, and your bones need more support.

How It Supports Your Immune System

Your immune cells have vitamin D receptors, and they actively use the vitamin to coordinate both branches of your immune defense. On the front line, when immune cells called monocytes and macrophages detect a pathogen, they ramp up their vitamin D receptors. This triggers production of an antimicrobial peptide called cathelicidin, a natural substance with antiviral, antibacterial, and antifungal activity that directly kills invading microbes.

Vitamin D also shapes the slower, more targeted immune response. When T cells first encounter a threat, they need vitamin D to complete their activation process and become fully functional. At the same time, vitamin D acts as a brake on the immune system, preventing overreactions. It dials down the production of inflammatory signaling molecules and promotes the development of regulatory T cells, which keep immune responses in check. This balancing act helps explain why vitamin D deficiency is associated with both increased infections and autoimmune conditions.

Muscle Strength and Recovery

Muscle tissue contains both vitamin D receptors and the enzyme needed to convert vitamin D into its active form, meaning your muscles process the vitamin locally. At the cellular level, vitamin D supports mitochondrial function in muscle fibers. Mitochondria are the structures that generate energy for muscle contraction, and when vitamin D signaling is impaired, mitochondrial energy output drops. This directly affects how much force a muscle can produce and how quickly it recovers.

After muscle injury, vitamin D receptor activity surges in the damaged area, particularly in the stem cells responsible for repair. This suggests the vitamin plays an active role in muscle regeneration, not just maintenance. For older adults, the practical consequence of deficiency is real: weak, slow-to-respond muscles contribute to falls, which in turn lead to the fractures that low vitamin D also makes more likely.

Mood, Sleep, and Brain Health

Vitamin D receptors are found throughout the brain, including regions involved in mood regulation. Research has identified a pathway through which vitamin D influences the production of serotonin, a chemical messenger tied to feelings of well-being, and melatonin, which regulates your sleep-wake cycle. Depression is one of the recognized symptoms of vitamin D deficiency, and people with low levels frequently report mood changes alongside their physical symptoms.

The relationship between vitamin D and mood is complex, and supplements don’t work like antidepressants. But correcting a deficiency does appear to improve both mood and sleep quality in people whose levels were low to begin with.

Vitamin D and Blood Pressure

Observational data shows a clear pattern: the risk of developing high blood pressure drops by about 7% for every 25 nmol/L increase in blood vitamin D levels. The relationship follows an L-shaped curve, meaning that hypertension risk rises sharply once levels fall below 75 nmol/L but flattens out above that point. However, a large meta-analysis published by the CDC found that vitamin D supplements did not actually lower blood pressure in the general population. This is one of those cases where low vitamin D and high blood pressure tend to occur together, but taking supplements doesn’t fix the blood pressure problem. Maintaining adequate levels through sun, food, and overall health likely matters more than popping a pill after the fact.

Signs You’re Not Getting Enough

Vitamin D deficiency often develops slowly, and mild cases may produce only vague symptoms that are easy to dismiss. The most common signs in adults include:

  • Fatigue that doesn’t improve with more sleep
  • Bone pain, often in the lower back, hips, or legs
  • Muscle weakness, aches, or cramps
  • Mood changes, particularly depression

Children with mild deficiency may only notice sore or weak muscles. In severe cases, deficiency triggers rickets, producing visible bone deformities, incorrect growth patterns, and joint problems. A simple blood test measuring your 25(OH)D level is the standard way to check your status.

How Your Body Makes Vitamin D

Your skin produces vitamin D when ultraviolet B rays from sunlight hit it. The amount you make depends on your skin tone, latitude, time of year, time of day, and how much skin is exposed. In spring and summer, with your hands, face, neck, and arms uncovered, about 8 to 10 minutes of midday sun produces a sufficient amount for lighter-skinned individuals. In Miami during summer, that drops to roughly 3 minutes. In Boston during winter, the same person would need about 23 minutes at noon with 25% of their body exposed. Since winter clothing typically leaves only about 5% of skin uncovered, the actual time needed stretches to over 2 hours.

People with darker skin have more melanin, which blocks UV absorption and significantly increases the sun exposure needed to produce the same amount of vitamin D. This is one reason deficiency rates are higher in people with darker complexions, especially those living at northern latitudes. During winter months at higher latitudes, most people cannot produce meaningful vitamin D from sunlight alone, making dietary sources and supplements important.

How Much You Need

The NIH recommends 600 IU (15 mcg) daily for adults aged 19 to 70, and 800 IU (20 mcg) for adults over 70. Infants need 400 IU (10 mcg) from birth through 12 months. These amounts assume minimal sun exposure and are designed to maintain bone health in the general population.

Food sources include fatty fish like salmon and mackerel, egg yolks, fortified milk, and fortified cereals. Most people get some combination of vitamin D from sunlight, food, and supplements. If you’ve been tested and found deficient, your provider may recommend doses well above the standard recommendation for a period of weeks or months to restore your levels, followed by a maintenance dose. Vitamin D is fat-soluble, so taking it with a meal that contains some fat improves absorption.

The tolerable upper intake level for adults is 4,000 IU per day. Toxicity from vitamin D is rare and virtually impossible from sun exposure or food alone. It occurs from excessive supplementation over time and causes dangerously high calcium levels, leading to nausea, kidney problems, and in severe cases, heart rhythm disturbances. Staying within recommended or prescribed doses avoids this entirely.