What Vitamin Do You Get From the Sun? (Vitamin D)

What Vitamin Do You Get From the Sun? (Vitamin D)

That last sentence is the reason this question is worth more than a one-word answer. Two people can spend the same hour outdoors and end up with very different levels, and neither of them can feel the difference.

Which vitamin is it, and what does the blood test measure?

It is vitamin D, and the marker that reflects your status is Vitamin D (25-OH), also written 25-hydroxyvitamin D. It is the circulating storage form, and it pools what your skin made from sunlight with whatever came from food, so one blood draw summarises months of habits rather than one afternoon. Compare your result with the range printed on your lab report. FitScript's optimal range is 50 to 80 ng/mL, an optimization target rather than a diagnostic cut-off. Reference ranges vary by lab, age and sex, so read your number against the range printed on your own report. The biomarker page covers the test itself, the bands and how results are followed over time. Everything below answers the question people actually arrive with, which is what the sun has to do with any of it.

How does your skin turn sunlight into vitamin D?

Your skin runs a photochemical reaction that no other organ can. Sitting in the upper layers of the epidermis is 7-dehydrocholesterol, a cholesterol precursor. When ultraviolet B light, the narrow slice of solar ultraviolet roughly between 290 and 315 nanometres, reaches those cells, it opens one of the molecule's rings and produces previtamin D3. Body heat then rearranges previtamin D3 into vitamin D3 (cholecalciferol) over the hours that follow, and a carrier protein moves it into the bloodstream 1.

Two more steps are needed before anything useful happens. The liver adds a hydroxyl group to make 25-hydroxyvitamin D, the long-lived circulating form that laboratories measure. The kidneys add a second hydroxyl group to make 1,25-dihydroxyvitamin D, the active hormone that drives calcium absorption in the gut and binds receptors found across many tissues 1. That final step is held tightly in check by parathyroid hormone, calcium, phosphate and FGF23, which is exactly why the active form is a poor way to judge your status. It can read normal while stores quietly run down.

Three practical points follow. The circulating storage form persists for weeks, so a result reflects recent months rather than yesterday. UVA and visible light contribute nothing to this reaction, only UVB does. And anything that filters UVB before it reaches living skin cells also filters out your supply, whether that is cloud, glass, clothing, pigment or a low sun angle.

Why do season and latitude change how much your skin makes?

Because UVB has to cross more atmosphere when the sun sits low in the sky, and ozone absorbs most of it on the way down. The angle between the sun and the point directly overhead, the solar zenith angle, is the single biggest control on how much UVB reaches the ground. When that angle is wide, in winter and at the beginning and end of the day, the UVB fraction falls away sharply even though the light still looks bright and the UVA still warms your face.

Further from the equator, the sun never climbs high enough during the coldest months for meaningful skin synthesis, a stretch sometimes called the vitamin D winter. During that window the body draws on what it banked over the warmer half of the year, and 25-hydroxyvitamin D concentrations drift down until the sun climbs again. Research suggests that, in many populations, vitamin D status follows this seasonal cycle and that low status remains widespread despite ample summer sunshine in some of those same places 3.

Altitude pushes the other way, since there is less atmosphere above you, and reflective surfaces such as snow, water and pale sand increase the UVB reaching skin from below. None of that changes the basic shape of the year. If your level matters to you, the season in which you tested matters too, because a sample taken at the end of summer and one taken at the end of winter can tell quite different stories about the same person.

How does skin tone change the equation?

Melanin is an efficient absorber of ultraviolet light, and it sits in the same skin layers as 7-dehydrocholesterol, so the two compete for the same photons. More pigment means fewer UVB photons reach the precursor molecule, and the skin needs a longer or more intense exposure to produce the same amount of vitamin D3. This is a photoprotective trade-off rather than a flaw, and it is why a single rule of thumb about sun exposure cannot apply to everyone.

At the population level, lower 25-hydroxyvitamin D concentration is associated with darker skin pigmentation, particularly at higher latitudes and among people who spend most of their day indoors 4. The interpretation is still being worked out. Total 25-hydroxyvitamin D is bound mostly to vitamin D binding protein, and researchers continue to debate how well the total number reflects the biologically available fraction across different groups, since bone outcomes do not always track the total in the way you might expect.

The practical takeaway is modest and useful. Skin tone is a real input into how much the sun gives you, it is not a verdict on your health, and it is one more reason to measure rather than assume. A result is a starting point for a conversation with a clinician, never a label.

Does skin make less vitamin D with age?

Yes, generally less. The concentration of 7-dehydrocholesterol in the epidermis declines with age, so the same dose of UVB yields less previtamin D3 in older skin than in younger skin. Behaviour compounds the chemistry. Time outdoors tends to fall across later decades, clothing coverage tends to rise, and people living in residential care may get very little direct sun at all. Kidney function also tends to decline gradually with age, and the kidneys perform the final activation step.

Research suggests that, in older adults, low vitamin D status is common and is associated with poorer musculoskeletal health, which is why specialist consensus work has focused on this group in particular 5. Association is not causation, and a low number on its own does not explain a fall or a fracture. It does make the marker worth checking rather than guessing at, especially alongside calcium and parathyroid hormone.

What this does not mean is that older adults should chase sun exposure to compensate. Skin that makes less vitamin D is also skin that has accumulated decades of ultraviolet damage. The sensible route is measurement, then a plan discussed with a clinician who can weigh the whole picture.

Does sunscreen stop vitamin D production?

In controlled laboratory conditions it can, but in real-world use it does not appear to be a meaningful cause of low vitamin D status. Sunscreens work by absorbing or scattering ultraviolet light, including the UVB that drives skin synthesis, so applied thickly and evenly across all exposed skin, a high-protection product measurably reduces the reaction. That is the laboratory picture.

Everyday use looks different. People apply thinner layers than the standard test density, miss areas, reapply less often than instructions suggest, and tend to use sunscreen on the days they are outside longest. A review of the field concluded that evidence suggests sunscreen use as practised in daily life is not associated with vitamin D deficiency 6. Field studies of regular sunscreen users during sunny holidays have found vitamin D status rising anyway, which fits that conclusion 6.

So the trade-off people worry about is smaller than it feels. Sun protection reduces the ultraviolet damage that drives skin cancer risk, and vitamin D status has routes that do not involve ultraviolet exposure at all. If you are weighing the two, the question to bring to a clinician is what your measured level is, not whether to abandon sun protection.

Can you make vitamin D through glass, in the shade, or under cloud?

Through glass, essentially no. Ordinary window glass transmits most UVA but blocks almost all UVB, so a sunlit room, a conservatory or a long drive with the sun on your arm delivers warmth, some skin ageing and no meaningful vitamin D. This surprises people more than any other fact in this topic, and it explains why someone who feels they get plenty of light can still show a low result.

Shade is a partial block. Full shade from a building removes direct beam UVB but still delivers scattered radiation from open sky, so synthesis continues at a reduced rate. Cloud behaves on a sliding scale. Thin high cloud attenuates UVB only slightly, heavy overcast cuts it substantially, and urban air pollution with high aerosol loading reduces ground-level UVB further. Clothing is close to a complete block for the skin it covers, regardless of weather.

The useful mental model is that being outside and making vitamin D are two separate claims. Only exposed skin, under open sky, when the sun is high enough, is running the reaction at any real rate. That is a lot of conditions to satisfy by accident, which is why estimating your status from your lifestyle tends to go wrong in both directions.

Which factors move the needle most?

The largest effects come from sun angle, pigment and whether UVB reaches bare skin at all. The table below summarises the main inputs and the direction each one pushes.

Factor Direction of effect on skin synthesis Why it happens
Season Strongly lower in winter at higher latitudes Low sun angle means UVB is absorbed by ozone before reaching the ground
Latitude Lower further from the equator Sun spends less of the year high in the sky
Sun height in the sky Highest when the sun is highest UVB takes the shortest atmospheric path
Skin pigmentation More pigment, less synthesis per exposure Melanin absorbs UVB in the same skin layers as the precursor
Age Lower in older skin Less 7-dehydrocholesterol in the epidermis, plus less time outdoors
Sunscreen Lower in laboratory conditions, little real-world effect on status Thin, uneven everyday application blocks less UVB than test conditions
Clothing coverage Strongly lower Fabric blocks UVB from the skin it covers
Glass and indoor time Effectively zero through glass Window glass transmits UVA but blocks UVB
Cloud and air pollution Lower, variable Water droplets and aerosols scatter and absorb UVB
Body composition Higher body fat is associated with lower blood levels Vitamin D is fat soluble and distributes into a larger fat mass

No single row decides your result. They stack, and they stack differently in February than in July, which is the real reason a measured number beats an estimate.

Why does food supply so little of it?

Because very few foods contain vitamin D naturally, and those that do are not daily staples for most people. Oily fish such as salmon, mackerel, sardines and herring are the richest natural sources, followed by cod liver oil, egg yolks and liver. Mushrooms exposed to ultraviolet light produce vitamin D2, a related form that behaves somewhat differently in the body from the D3 your skin makes.

Fortification fills part of the gap, and it varies enormously by country and product. Some milks, plant drinks, breakfast cereals, yoghurts and spreads carry added vitamin D, others carry none, and the amounts are not standardised across markets. Reviews of vitamin D physiology describe cutaneous synthesis as the dominant natural source for most people, with diet contributing a minor share in the absence of fortification 2, 1.

That is the structural reason this nutrient behaves unlike most others. With iron or vitamin C, a change in the shopping basket moves the number. With vitamin D, the sun does the heavy lifting for part of the year and does almost nothing for the rest, and food rarely covers the shortfall on its own. Whether anything else is appropriate for you is a decision for a licensed provider who can see your result, your history and your other markers.

Can you get enough sun without raising skin cancer risk?

Partly, and the one clear rule is that nobody should seek a sunburn for vitamin D. Ultraviolet radiation is the main modifiable risk factor for skin cancer, sunburn is associated with melanoma risk, and tanning beds deliver ultraviolet without any of the benefits people hope for. There is no version of this topic where burning is a reasonable price for a higher blood level.

The research literature treats this as a balance question rather than a binary one 7. A review of sunlight, ultraviolet exposure and skin cancer risk concluded that evidence suggests brief, non-burning incidental exposure sits in a different risk category from deliberate, prolonged tanning, while stressing that vitamin D status can also be addressed by routes that carry no ultraviolet risk 7. That is why this guide gives no exposure times. The right amount depends on your skin, your latitude, the season and your personal and family skin cancer history, and no article can know those things.

If you have a history of skin cancer, a large number of moles, or a condition that makes you photosensitive, the calculation changes again, and it belongs with a clinician rather than a blog. For most people the honest summary is that sun exposure happens anyway during normal life, deliberate burning adds risk without adding stores, and measurement tells you whether anything further is worth discussing.

How do you know whether the sun is giving you enough?

You measure it, with a 25-hydroxyvitamin D blood test. Nothing else is reliable. A tan reflects melanin production, not vitamin D production. Symptoms attributed to low vitamin D, including tiredness, aching and low mood, are nonspecific and overlap with thyroid problems, low iron, poor sleep and ordinary stress. And a lifestyle estimate fails because the modifiers in the table above multiply together in ways people consistently misjudge.

The test is a routine venous blood draw, and because the storage form persists for weeks, the result reflects your recent months. That makes the timing of the sample informative in itself. A sample taken near the end of the darker half of the year shows roughly your low point, while one taken after a sunny stretch shows closer to your peak, and the gap between them tells you how much of your status is seasonal.

Read a result in three steps. What the value shows, which is a number against a reference range. What it may reflect, which is the combination of sun exposure, pigment, age, body composition, absorption and intake. And what is worth discussing with a clinician, which is where any decision belongs. A FitScript membership includes 150+ biomarkers tested per year, with interpretation from Atlas, the AI health advisor, and any therapy decided on by a licensed provider after reviewing the member.

What can a low or a high result reflect?

A low result can reflect limited UVB reaching bare skin 9, but it is a signal rather than a diagnosis. Common contributors include the darker half of the year at higher latitudes, mostly indoor days, clothing that covers most skin, more pigmented skin, older age, and a higher body fat mass that distributes a fat-soluble vitamin across a larger volume. Reviews of vitamin D deficiency describe low status as common worldwide and strongly patterned by these same factors 4.

Absorption matters too. In people with coeliac disease, inflammatory bowel disease, chronic pancreatic insufficiency or a history of bariatric surgery, fat-soluble vitamin absorption can be reduced. Some medications are associated with faster breakdown of vitamin D metabolites, which is one more reason to bring your full medication list to the appointment rather than read a list online. None of this is something to self-assign. One number below a reference range is an observation worth explaining, not a condition.

A high result almost always reflects supplementation, because skin synthesis is self-limiting. A markedly high value, particularly alongside a raised calcium, is worth discussing with a clinician promptly, since the consequences of excess vitamin D run through calcium handling rather than through vitamin D itself. Either way, the next step is the same. Bring the result, the season it was taken in and your context to someone qualified to interpret all three together.

Can the sun give you too much vitamin D?

No. Prolonged ultraviolet exposure does not push vitamin D to toxic levels, because the reaction regulates itself. Once previtamin D3 accumulates in the skin, continued UVB exposure converts it into inactive photoproducts such as lumisterol and tachysterol, and degrades vitamin D3 itself into suprasterols. The result is a built-in ceiling on how much any single sun exposure can contribute 8.

Vitamin D toxicity, when it occurs, comes from excessive intake rather than from sunlight, and it causes trouble through raised blood calcium, with effects on the kidneys, the gut and the nervous system 1. This is uncommon and generally follows sustained high intake rather than ordinary use, but it is the reason supplementation is a decision for a licensed provider rather than a guess, and the reason a high result deserves the same attention as a low one.

The ceiling on skin synthesis should not be read as permission. Ultraviolet damage accumulates whether or not vitamin D is still being produced, so the extra hour after the reaction has saturated carries the skin risk without adding the benefit.

Which markers are worth looking at alongside it?

Vitamin D sits inside a calcium regulation system, so it reads better with company. The markers below are the ones requested alongside it, and a clinician decides which are appropriate for a given person.

Marker Why it is worth seeing alongside vitamin D
Calcium, with albumin Vitamin D's main role is calcium absorption, and albumin is needed to interpret a total calcium correctly
Parathyroid hormone (PTH) Rises when calcium supply is tight, so it adds context to a low vitamin D result
Phosphate Handled by the same hormonal system, and relevant to bone mineralisation
Magnesium Required as a cofactor for the enzymes that hydroxylate vitamin D
Alkaline phosphatase Often raised when bone turnover is increased, which can accompany longstanding low vitamin D
Creatinine and eGFR The kidneys perform the final activation step, so kidney function shapes interpretation

These ranges and relationships vary by laboratory, age and sex, and no single combination proves anything on its own. The value of a panel is pattern. A low vitamin D with a normal calcium and a normal PTH tells a different story from a low vitamin D with a raised PTH, and that difference is the kind of thing worth putting in front of a clinician.

When is it worth talking to a clinician?

Any result outside your laboratory's reference range is worth a conversation, and a markedly low or markedly high value is worth raising promptly rather than at the next routine visit. The same applies if you have persistent bone or muscle aching, frequent falls, a history of low-trauma fracture, or symptoms that have not been explained by anything else, since vitamin D is one candidate among several and only a clinician can sort through them.

Some situations warrant input regardless of how the number reads. Pregnancy and breastfeeding, infancy and childhood, chronic kidney or liver disease, conditions affecting fat absorption, longstanding use of medications that influence vitamin D metabolism, and a personal or family history of skin cancer all change how this topic is approached. In people with these circumstances, general guidance is a poor substitute for individual assessment.

This article is educational and is not medical advice. Discuss your results and any therapy with a clinician or licensed provider who can see your full history, since a licensed provider evaluates whether any prescribed option is appropriate for you.

Key takeaways

Related reading on this site covers does low vitamin d cause fatigue, which looks at how far one marker can explain a common symptom, and can you have high ldl and low apob, a useful example of why a single number rarely tells the whole story without its companion markers.

References

  1. Vitamin D: sources, physiological role, biokinetics, deficiency, therapeutic use, toxicity, and overview of analytical methods for detection of vitamin D and its metabolites. Critical reviews in clinical laboratory sciences, 2022.
  2. Vitamin D and health - The missing vitamin in humans. Pediatrics and neonatology, 2019.
  3. Optimisation of vitamin D status in global populations. Osteoporosis international, 2024.
  4. Vitamin D Deficiency: Defining, Prevalence, Causes, and Strategies of Addressing. Calcified tissue international, 2020.
  5. Vitamin D in the older population: a consensus statement. Endocrine, 2023.
  6. Sunscreen photoprotection and vitamin D status. The British journal of dermatology, 2019.
  7. Sunlight, UV Radiation, Vitamin D, and Skin Cancer: How Much Sunlight Do We Need?. Advances in experimental medicine and biology, 2020.
  8. The action spectrum for vitamin D3: initial skin reaction and prolonged exposure. Photochemical & Photobiological Sciences, 2016.
  9. Low Sun Exposure and Vitamin D Deficiency as Risk Factors for Inflammatory Bowel Disease, With a Focus on Childhood Onset. Photochemistry and photobiology, 2019.

Common questions

What vitamin do you get from the sun?

Vitamin D. Ultraviolet B light converts 7-dehydrocholesterol in the skin into vitamin D3, which the liver turns into 25-hydroxyvitamin D, the storage form measured on a blood test. The kidneys then activate it. No other vitamin is made in human skin from sunlight.

Can you get vitamin D through a window?

Essentially no. Ordinary window glass transmits most UVA but blocks almost all UVB, and only UVB drives the reaction in skin. A sunlit room, conservatory or car delivers warmth and some skin ageing without meaningful vitamin D production, which is one reason indoor workers often show lower levels.

Does sunscreen block vitamin D production?

Applied thickly and evenly in laboratory conditions it reduces synthesis, but everyday sunscreen use is not associated with vitamin D deficiency. People apply thinner layers and miss areas in real life. Sun protection still reduces the ultraviolet damage linked to skin cancer.

Can you get enough vitamin D from food alone?

Rarely, without fortification or supplementation. Oily fish, cod liver oil, egg yolks, liver and UV-exposed mushrooms are the main natural sources, and most other foods contain almost none. Fortification varies widely by country and product, so dietary intake usually contributes a minor share of total vitamin D.

Does skin tone affect how much vitamin D you make?

Yes. Melanin absorbs ultraviolet light in the same skin layers that hold the vitamin D precursor, so more pigmented skin needs greater ultraviolet exposure to produce the same amount.

Can you get too much vitamin D from sunlight?

No. Continued ultraviolet exposure converts the skin precursor into inactive photoproducts, which caps how much any single exposure can contribute. Excess vitamin D comes from very high intake rather than sun. That ceiling is not permission to stay out longer, because ultraviolet skin damage keeps accumulating regardless.

How do you know if your vitamin D level is low?

A 25-hydroxyvitamin D blood test is the only reliable way. Symptoms such as tiredness and aching are nonspecific and overlap with many other causes, and a tan reflects melanin rather than vitamin D. Because the storage form persists for weeks, the result reflects your recent months.

Is it safe to sunbathe to raise vitamin D?

Deliberate tanning is not a sensible route. Ultraviolet radiation is the main modifiable risk factor for skin cancer, and sunburn is associated with melanoma risk, so no one should seek a burn for vitamin D. Measure your level first, then discuss options with a clinician.

Why does the time of year matter for a vitamin D test?

Because skin synthesis follows the sun's height in the sky. At higher latitudes, little or no vitamin D is made through the darker months, so a sample then reflects roughly your low point, while one taken after a sunny stretch sits closer to your peak.

Related reading