The main vitamin you get from being outside is vitamin D, and sunlight is by far the most efficient way to produce it. Your skin manufactures vitamin D when exposed to ultraviolet B (UVB) rays, a process no other vitamin shares. Beyond vitamin D, spending time outdoors triggers several other measurable biological responses that support cardiovascular and mental health, even though they aren’t technically “vitamins.”
How Your Skin Makes Vitamin D
Your skin contains a cholesterol-based compound that reacts to UVB light. When UVB rays hit your skin, they break open this compound’s molecular ring, creating a precursor that your body’s heat converts into vitamin D3 (the same form found in supplements). From there, your liver and kidneys process it into its active form, which regulates calcium absorption, bone strength, immune function, and dozens of other processes throughout the body.
This is the only vitamin your body can produce in meaningful quantities just from sun exposure. No other nutrient works this way. And the amounts are significant: a single session of midday sun on exposed skin can generate far more vitamin D than most foods provide.
How Much Sun You Actually Need
For people with lighter skin (types I through IV on the Fitzpatrick scale), maintaining healthy vitamin D levels requires surprisingly little time. At midlatitudes like 40°N (roughly the latitude of New York, Madrid, or Beijing), just 4 to 5 minutes of midday sun with about 35% of your skin exposed is enough during summer months under clear skies. At 30°N (Cairo, Houston, New Delhi), it drops to 3 to 4 minutes year-round.
People with darker skin need considerably more time. Melanin, the pigment that gives skin its color, absorbs the same UVB radiation that triggers vitamin D production. Research on people with deeply pigmented skin (type V) living in the UK found they needed roughly 25 minutes of daily lunchtime sun from March through September to maintain adequate levels. Under typical cloudy conditions at 50°N latitude, the required time for darker skin jumps to 25 to 67 minutes depending on the month.
These numbers assume you’re outdoors, not behind glass. Standard window glass blocks nearly 100% of UVB light while letting UVA through. Sitting by a sunny window feels warm but produces essentially zero vitamin D.
The Vitamin D Winter Problem
If you live above 40° latitude (north of New York, Barcelona, or Istanbul in the Northern Hemisphere), there are months when the sun sits too low in the sky for any practical vitamin D synthesis, no matter how long you stay outside. Researchers call this “vitamin D winter,” defined as any period when the UV index stays below 2 throughout the month.
At 50°N (London, Vancouver, Prague), vitamin D winter runs from roughly October through February. At 60°N (Helsinki, Anchorage, Stockholm), it stretches from October through March. At 70°N and above, it lasts eight months or more. During these periods, your body relies entirely on stored vitamin D, food sources, and supplements. Healthy blood levels of vitamin D fall between 20 and 40 ng/mL according to most guidelines, though some experts prefer 30 to 50 ng/mL. Deficiency is common during winter at higher latitudes precisely because sunlight can’t do the job.
Nitric Oxide and Cardiovascular Benefits
Vitamin D gets all the attention, but sunlight also triggers your skin to release nitric oxide, a molecule that relaxes blood vessels and lowers blood pressure. This effect comes from a completely different part of the UV spectrum. UVA light, which is longer-wavelength and penetrates deeper than UVB, breaks down nitrogen-containing compounds stored in the skin and liberates nitric oxide into the bloodstream.
The shorter UVA wavelengths (closer to 340 to 360 nm) are the most efficient at producing nitric oxide, but the entire UVA range contributes. Lab studies on human skin cells found that even low doses of natural daylight, equivalent to about one standard unit of sun exposure, upregulated nitric oxide with negligible DNA damage. Unlike vitamin D synthesis, this process isn’t blocked by window glass since UVA passes through standard windows. However, the overall cardiovascular benefit of sunlight appears to come from the combination of UVA-driven nitric oxide release and UVB-driven vitamin D production together.
Light, Mood, and Your Internal Clock
Outdoor light is orders of magnitude brighter than indoor light. Even an overcast day delivers around 10,000 lux, while a typical office sits at 300 to 500 lux. This intensity matters because bright light acts as the primary signal that sets your circadian clock, the internal timing system that governs sleep, hormone release, and alertness.
Bright light exposure influences serotonin, the neurotransmitter linked to mood and well-being, which is one reason seasonal changes in daylight hours are associated with seasonal affective disorder. Morning outdoor light is particularly potent for circadian entrainment because it signals your brain that the day has begun. The effects on cortisol, the body’s main stress hormone, are more nuanced. Some studies show a brief spike in cortisol during the first 15 to 40 minutes of bright light exposure at wake time, possibly helping with alertness. Others show that sustained bright light over several hours actually lowers cortisol compared to dim conditions. The inconsistency across studies likely reflects differences in timing, duration, and light intensity, but the broad pattern is clear: outdoor light helps calibrate the hormonal rhythms that indoor lighting cannot.
What About Other Vitamins?
You may have heard that spending time in soil or nature exposes you to B vitamins, particularly B12. The reality is more limited than it sounds. Vitamin B12 is produced exclusively by certain bacteria and archaea, many of which live in soil. Plants and mushrooms that grow in contact with these soil bacteria can pick up trace amounts of B12 on their surfaces. But absorbing meaningful B12 through skin contact with dirt isn’t a documented pathway in humans. The B12 connection is real at the microbial level, but it doesn’t translate into a practical vitamin source from outdoor activity.
No other vitamins are synthesized or absorbed through sun exposure or outdoor contact. Vitamin D stands alone in that regard. The other health benefits of being outside, including nitric oxide release, circadian regulation, and the mental health effects of natural light, are real and well-documented, but they operate through different biological pathways rather than through vitamin production.
Getting the Most From Your Time Outside
To maximize vitamin D production, expose your arms and legs (or roughly a third of your skin) to midday sun when your shadow is shorter than you are. That’s when UVB intensity peaks. You don’t need to tan or burn. For lighter skin, 5 to 15 minutes is typically plenty during summer months at midlatitudes. For darker skin, 20 to 30 minutes or more may be necessary at the same latitude and season.
Sunscreen with SPF 30 or higher blocks about 97% of UVB, so applying it before you step outside effectively prevents vitamin D synthesis during that exposure. A practical approach is to get your brief unprotected exposure first, then apply sunscreen for longer time outdoors. During vitamin D winter months, supplementation becomes the most reliable option since no amount of outdoor time will produce meaningful vitamin D when the UV index stays below 2.
Cloud cover, air pollution, and aging all reduce the skin’s vitamin D output as well. People over 65 produce roughly 25% as much vitamin D from the same sun exposure as younger adults, because the precursor compound in the skin declines with age. If you fall into multiple categories that limit synthesis, darker skin, higher latitude, older age, limited time outdoors, a supplement of 1,000 to 2,000 IU daily is a common recommendation to bridge the gap.

