Most people need between 10 and 30 minutes of midday sun on bare skin to support vitamin D production and mood. The exact amount depends on your skin tone, where you live, the season, and how much skin is exposed. That range is enough to trigger meaningful vitamin D synthesis and boost serotonin without significantly increasing sunburn risk for most skin types.
How Much Sun for Vitamin D
Your body starts producing vitamin D the moment UVB rays hit bare skin. The process is surprisingly fast under the right conditions. A person with a medium skin tone in Miami needs just 3 to 6 minutes of midday sun with about a quarter of their body exposed (think shorts and a t-shirt) to produce roughly 400 IU of vitamin D. In Boston, that same person needs 3 to 8 minutes from April through October.
Lighter skin tones synthesize vitamin D faster, while darker skin tones need more time because melanin acts as a natural UV filter. If you have very dark skin, you may need two to three times the exposure of someone with very fair skin to produce the same amount. The sweet spot for most people falls in that 10 to 30 minute window, with peak UVB available around noon.
Winter changes the equation dramatically. With only about 10 percent of your body exposed to sun (face and hands), you’d need close to two hours at noon to produce enough vitamin D in northern latitudes. Even in a city like Boston, winter exposure jumps to roughly 23 minutes at noon. For many people above 35 to 40 degrees latitude, the winter sun simply doesn’t deliver enough UVB to make meaningful vitamin D regardless of time spent outside.
Sun Exposure for Mood and Sleep
Vitamin D is only part of the picture. Sunlight also drives serotonin production and keeps your internal clock aligned, and these benefits follow a different timeline than vitamin D synthesis.
For circadian rhythm regulation, 30 minutes of bright light immediately after waking is enough to shift your body’s sleep-wake cycle. This was demonstrated even in extreme conditions: during the Antarctic winter, when the sun never rises above the horizon, just one hour of bright morning light improved cognitive performance and advanced participants’ sleep timing. You don’t need direct sunlight for this effect, but natural outdoor light, even on a cloudy day, delivers far more lux than indoor lighting.
For mood, the data is encouraging. Even 10 to 30 minutes of sun on bare skin can start to shift serotonin levels in a positive direction. A 2024 study found that spending more than one hour in daylight during winter protected against depression symptoms. In research on seasonal affective disorder, people who took a one-hour morning walk outdoors for just one week reported a 50 percent improvement in symptoms. If you can’t get outside, 30 minutes in front of a light therapy lamp each day provides a reasonable substitute.
What Blocks Your Sun Exposure
Sitting by a sunny window feels warm, but it does almost nothing for vitamin D. Standard window glass blocks 95 percent of UVB rays, the specific wavelength your skin needs to start production. You can still get sunburned through glass from UVA rays, but you won’t make any meaningful vitamin D. This matters for people who spend most of their day indoors near windows and assume they’re getting enough sun.
Sunscreen is more nuanced than you might expect. Lab studies consistently show that sunscreen blocks UVB and should theoretically shut down vitamin D synthesis. But a large meta-analysis of over 9,400 participants found that in practice, sunscreen use lowers vitamin D levels by only about 2 ng/mL on average. The likely explanation is that people don’t apply sunscreen as thickly or as consistently as lab conditions assume, so some UVB still gets through. That said, people who are already borderline on vitamin D and who apply sunscreen religiously before any sun exposure may see a more significant effect.
Age-Specific Considerations
Babies under six months should be kept out of direct sunlight entirely. The FDA and the American Academy of Pediatrics recommend shade as the primary protection for newborns, especially between 10 a.m. and 2 p.m. when UV is strongest. Lightweight long sleeves, long pants, and a brimmed hat that covers the neck are the safest approach. Sunscreen isn’t typically recommended for this age group.
Older adults face the opposite problem. Aging skin produces vitamin D less efficiently, and many people over 65 spend less time outdoors. Combined with living at higher latitudes or having limited mobility, this puts older adults at higher risk for deficiency. The same exposure that works for a 30-year-old may fall short for someone in their 70s, which is why vitamin D supplementation becomes more common with age.
Practical Guidelines by Season
In summer at mid-latitudes, 10 to 15 minutes of midday sun on your arms and legs, a few times per week, covers most people’s vitamin D needs. You don’t need to tan or burn. If you plan to stay out longer, apply sunscreen after that initial window.
In winter, particularly above 35 degrees latitude (roughly the line from Los Angeles to Atlanta in the U.S.), UVB levels drop so low that your skin can’t produce adequate vitamin D no matter how long you stay outside. During these months, dietary sources like fatty fish, fortified milk, and egg yolks become more important, and supplementation is worth considering.
For mood and sleep benefits, morning light matters year-round. Aim for at least 30 minutes of outdoor light exposure in the first hour or two after waking. Overcast skies still deliver several thousand lux, well above typical indoor lighting, so don’t skip your morning walk just because it’s cloudy.

