Vitamin D is often called the sunshine vitamin, but for many people, the sun simply isn’t enough. Deficiency is one of the most common nutrient shortfalls worldwide. It happens when your body does not get enough vitamin D from sunlight, food, or supplements to keep your blood levels in a healthy range. Several distinct factors can cause this, ranging from where you live to how your body absorbs fat. Understanding the specific cause in your case is the first step to fixing it.
What Can Lead To Vitamin D Deficiency?
Vitamin D deficiency usually comes from a combination of limited sun exposure, low dietary intake, and how your body processes the vitamin. The most common causes are spending most of your time indoors, living far from the equator, wearing sunscreen consistently, and having darker skin. Additionally, certain medical conditions that affect fat absorption can prevent your gut from pulling vitamin D from food into your bloodstream.
Your body makes vitamin D when ultraviolet B (UVB) rays from the sun hit your skin. That process is efficient but fragile. Anything that blocks UVB rays, reduces skin exposure, or impairs your liver and kidney function can lead to low levels. Age also matters because older skin produces less vitamin D than younger skin.
How Does Sun Exposure Actually Work?
Sunlight is the primary source of vitamin D for most people. UVB rays convert a cholesterol compound in your skin into vitamin D3. That vitamin D3 then travels to your liver and kidneys to become the active form your body uses.
Several factors reduce how much vitamin D your skin can make. Living at latitudes above roughly 37 degrees north or below 37 degrees south means the sun’s rays hit at an angle for much of the year. That angle filters out most UVB rays. In Boston, for example, your skin makes little to no vitamin D from November through February. The same applies to much of Europe and Canada.
Time of day matters too. UVB rays are strongest between roughly 10 a.m. and 3 p.m. Going outside early morning or late afternoon exposes you to light but not enough UVB to trigger vitamin D production. Cloud cover, air pollution, and window glass also block UVB. Sitting by a sunny window does not help because glass filters out the UVB rays your skin needs.
Why Does Skin Color Affect Vitamin D Levels?
Melanin is the pigment that gives skin its color. It acts as a natural sunscreen. Higher melanin levels mean more UVB rays are absorbed before they can trigger vitamin D production. This is an evolutionary adaptation that protects against skin damage in sunny regions, but it has a cost in less sunny climates.
Research consistently shows that people with darker skin need significantly more sun exposure to produce the same amount of vitamin D as people with lighter skin. Some studies suggest the difference is three to five times more exposure. This is not a defect. It is a biological trade-off. In sunny equatorial regions, darker skin offers protection from skin cancer. In northern climates, the same melanin can contribute to deficiency.
This means a person with dark skin living in Seattle or London will likely need more deliberate sun exposure or dietary vitamin D than a fair-skinned person in Miami. Sunscreen also reduces vitamin D production, but the protection it provides against skin cancer is well established. Most dermatologists recommend getting vitamin D from diet and supplements rather than unprotected sun exposure.
Which Medical Conditions Interfere With Vitamin D?
Vitamin D is fat-soluble. That means your intestines need dietary fat to absorb it properly. Any condition that disrupts fat absorption can cause deficiency even if you eat plenty of vitamin D-rich foods.
Inflammatory bowel disease, including Crohn’s disease and ulcerative colitis, damages the intestinal lining where absorption happens. Celiac disease has a similar effect. Even when treated, these conditions can leave you with lower vitamin D stores. Cystic fibrosis and chronic pancreatitis also impair fat digestion and absorption.
Obesity is another major factor. Body fat sequesters vitamin D. It pulls the vitamin out of your bloodstream and holds it in fat tissue. People with a higher body mass index often need higher doses of vitamin D to reach normal blood levels. This is not about lifestyle judgment. It is about how fat-soluble vitamins behave in the body.
Liver and kidney disease also matter. Your liver converts vitamin D into a storage form, and your kidneys convert it into the active hormone your body uses. Damage to either organ reduces the amount of usable vitamin D even if your skin makes plenty and your diet is adequate.
What Role Does Diet Play?
Diet is a secondary source of vitamin D for most people. Very few foods naturally contain vitamin D. Fatty fish like salmon, mackerel, and sardines are the best natural sources. Cod liver oil is extremely high in vitamin D but is rarely consumed in meaningful amounts today. Egg yolks and some mushrooms contain small amounts.
Many countries fortify foods with vitamin D. In the United States, most milk is fortified with vitamin D. Some orange juices, yogurts, and breakfast cereals are also fortified. But fortification levels are modest. A glass of fortified milk provides about 100 IU of vitamin D, which is a fraction of what many adults need daily.
Strict vegan and vegetarian diets can increase deficiency risk because the richest natural sources are animal-based. Fortified plant milks and supplements are the practical alternatives. Older adults also tend to eat less and absorb nutrients less efficiently, which compounds the problem.
Who Is At The Highest Risk?
Certain groups face a much higher risk of deficiency. Infants who are exclusively breastfed are at risk because breast milk contains very little vitamin D. This is why pediatric guidelines recommend vitamin D drops for breastfed infants. Older adults are at risk because skin production declines with age and kidney function often declines too.
People who are homebound, institutionalized, or work night shifts get limited sun exposure. People who cover their skin for religious or cultural reasons may also have low levels. This includes women who wear full-body coverings in regions with weak sunlight.
Medications can also play a role. Some anti-seizure drugs, glucocorticoids, and certain antifungal medications increase the breakdown of vitamin D in the body. If you take any of these long-term, your doctor should monitor your vitamin D status.
What Are The Symptoms Of Deficiency?
Vitamin D deficiency is often silent. Many people have no symptoms at all. When symptoms do appear, they tend to be vague. Fatigue, bone pain, muscle weakness, and mood changes are the most commonly reported. These symptoms overlap with many other conditions, which is why deficiency is frequently missed without a blood test.
Severe, prolonged deficiency causes rickets in children and osteomalacia in adults. Rickets leads to soft, weakened bones that can bow under body weight. Osteomalacia causes bone pain and muscle weakness. Both conditions are rare in countries with food fortification but still occur in high-risk groups.
Blood testing is the only reliable way to confirm deficiency. The standard test measures 25-hydroxyvitamin D in your blood. Levels below 20 nanograms per milliliter are generally considered deficient. Levels between 20 and 30 are often called insufficient. Levels above 30 are typically considered sufficient for bone health. Some experts argue for higher targets, but the strongest evidence supports the 30 ng/mL threshold for bone outcomes.
How Is Deficiency Treated?
Treatment depends on how low your levels are and why they dropped. For mild deficiency, increasing sun exposure and eating more vitamin D-rich foods may be enough. For moderate to severe deficiency, supplements are usually necessary.
Vitamin D3 is the form most commonly recommended for supplementation. It is more effective at raising blood levels than vitamin D2. Typical maintenance doses range from 600 to 2000 IU daily for adults, but your doctor may prescribe a higher dose for a limited time to correct a deficiency. High-dose prescriptions are given weekly or monthly and are followed by a maintenance dose.
No clinical guidelines exist for everyone because needs vary. Your doctor should base your dose on your blood test results, your age, your skin color, where you live, and any underlying conditions. Taking very high doses without testing can cause vitamin D toxicity, which leads to dangerously high calcium levels in the blood. This is rare but real. More is not better.
Frequently Asked Questions
Can you get enough vitamin D from sunlight through a window?
No. Window glass blocks UVB rays, which are the specific rays your skin needs to make vitamin D. You get light but not vitamin D production.
How long should you spend in the sun to make vitamin D?
It varies widely by skin tone, latitude, season, and time of day. For fair skin in summer, roughly 10 to 15 minutes of midday sun on arms and legs may be enough, but darker skin may need several times longer.
Does sunscreen cause vitamin D deficiency?
Sunscreen reduces vitamin D production because it blocks UVB rays. However, the risk of skin cancer from unprotected sun exposure is well documented, so most experts recommend using sunscreen and getting vitamin D from food or supplements instead.
Can taking vitamin D supplements fix a deficiency quickly?
Supplements raise blood levels over several weeks, not overnight. A doctor may prescribe a high loading dose to correct a severe deficiency, followed by a lower maintenance dose to keep levels stable.

