What Vitamin Does the Sun Give Your Body?

The sun gives you vitamin D, often called the “sunshine vitamin.” Your skin produces it when ultraviolet B (UVB) rays hit a cholesterol compound sitting in your outer skin layers. This makes sunlight the single largest natural source of vitamin D for most people, outpacing anything you could reasonably get from food alone.

How Your Skin Makes Vitamin D

Your skin contains a cholesterol-based molecule called 7-dehydrocholesterol. When UVB rays penetrate your skin, they break open part of this molecule’s ring structure, creating a precursor called pre-vitamin D3. Body heat then gradually converts pre-vitamin D3 into vitamin D3 over the following hours.

But vitamin D3 isn’t useful yet. It travels through your bloodstream to the liver, where it’s converted into a storage form called calcidiol. This is what doctors measure in a blood test to check your vitamin D levels. Your kidneys then convert calcidiol into calcitriol, the fully active hormone your body actually uses. Calcitriol regulates calcium absorption in your gut, supports bone mineralization, and plays roles in immune function and cell growth.

One reassuring detail: your body self-regulates this process. Sun-induced vitamin D toxicity has rarely or never been reported, because your skin starts breaking down excess pre-vitamin D3 once you’ve had enough UV exposure. Overdosing from sunlight is essentially not a concern, though overdosing from supplements is possible.

How Much Sun Exposure You Need

The amount of sun you need depends on the season, your skin tone, and where you live. During warmer months when the UV index is 3 or above, most people produce enough vitamin D by exposing their face, arms, and hands for just a few minutes on most days. This works best outside the peak UV window of roughly 10 a.m. to 2 p.m., when you can get vitamin D without as much sunburn risk.

During winter months when the UV index drops below 3, you need significantly more: about two to three hours of sun on your face, arms, and hands spread across the week. People with naturally very dark skin need three to six times more exposure than lighter-skinned individuals in either season, because higher melanin levels filter out more UVB before it can trigger vitamin D production.

Vitamin D production is roughly linear up to moderate UV doses, meaning longer exposure within a reasonable range produces proportionally more vitamin D. But there’s a ceiling. Once your skin starts to pink, you’re past the point of productive synthesis and into the range of DNA damage.

What Blocks Vitamin D Production

Several everyday factors reduce or eliminate your skin’s ability to make vitamin D, sometimes dramatically.

  • Sunscreen: SPF 15 filters out 93% of UVB rays. SPF 30 blocks 97%, and SPF 50 blocks 98%. That still leaves 2 to 7% reaching your skin, so sunscreen reduces vitamin D production significantly but doesn’t completely shut it down.
  • Latitude and season: In the northern hemisphere, UVB intensity drops so low from October through March that spending most of the day outdoors doesn’t guarantee adequate vitamin D levels. The farther from the equator you live, the worse this winter gap becomes.
  • Cloud cover: Heavy overcast skies cut vitamin D-producing UV radiation to roughly 45% of what you’d get on a clear day. Moderate cloud cover still allows about 71% through.
  • Glass windows: Standard window glass blocks virtually all UVB radiation. Sitting in a sunny office or driving with the windows up does not produce vitamin D.
  • Clothing: Any covered skin is removed from the equation. The more skin exposed, the more vitamin D you can produce in a shorter time.

How to Know If You’re Getting Enough

A simple blood test measuring 25-hydroxyvitamin D (calcidiol) tells you where you stand. The NIH defines the key thresholds as follows: below 12 ng/mL (30 nmol/L) is deficiency, which can cause soft, weak bones in adults and rickets in children. Between 12 and 20 ng/mL (30 to 50 nmol/L) is considered inadequate for bone and overall health. At or above 20 ng/mL (50 nmol/L), most healthy people have sufficient levels. On the high end, levels above 50 ng/mL (125 nmol/L) can be associated with adverse effects.

If you live at a high latitude, have dark skin, spend most of your time indoors, or consistently wear sunscreen, your levels are more likely to fall into the insufficient range, especially by late winter. Controlled UV experiments show that even suberythemal doses (meaning UV exposure just below the level that would cause redness) can raise blood levels by 10 to 50 nmol/L, a contribution that’s difficult to match with diet alone. For context, the traditional recommended daily intake of 200 IU from something like cod liver oil cannot maintain the same levels that moderate sun exposure produces.

Vitamin D From Sun vs. Supplements and Food

Very few foods contain meaningful amounts of vitamin D. Fatty fish like salmon and mackerel, egg yolks, and fortified milk or cereal provide some, but most people can’t reach sufficient levels through food alone. Supplements (typically vitamin D3) are the standard alternative when sun exposure falls short, and they’re especially important during winter months at higher latitudes.

Sun-produced vitamin D has one advantage over supplements: your body regulates it automatically. Your skin stops producing excess once you’ve had enough UV exposure, while supplements bypass that feedback loop entirely, which is why very high supplement doses over time can push levels into a harmful range. For most people, a combination of brief, regular sun exposure during warmer months and supplementation during darker months is the most practical approach to keeping levels in a healthy range year-round.

Balancing Vitamin D and Skin Cancer Risk

The tension between needing UVB for vitamin D and avoiding UV damage is real but manageable. Research published in the Proceedings of the National Academy of Sciences found that moderately increased sun exposure may carry more health benefits than risks, even when accounting for skin cancer, particularly for populations at risk of vitamin D deficiency. The key word is “moderately.” You don’t need a tan or a burn to make vitamin D. A few minutes of unprotected exposure on your arms and face, followed by sunscreen or shade, covers what your skin needs without significant cumulative damage.

The practical takeaway: short, consistent sun exposure is more effective than occasional long sessions, and it carries far less risk. If you burn easily or have a history of skin cancer, supplements offer the same vitamin D without any UV exposure at all.