People usually reach for vitamin D in winter for bones and immunity, not for better sleep. That makes new data from Johns Hopkins University and the U.S. National Institute on Aging surprising: people with higher vitamin D levels slept nearly 20 minutes longer per night and woke up less often. Reason to sprint to the pharmacy? Not quite—it did nothing to help people fall asleep faster.
Where Those 20 Extra Minutes Came From—and the Catch
Difei Chen and Adam Spira published the study in The Journals of Gerontology: Series A in 2026. They analyzed 460 cognitively healthy men and women from the BLSA project, with an average age around 71. Everyone had blood levels of vitamins D and B12 measured, while sleep was tracked via actigraphy—a wrist motion sensor that captures real sleep duration far more accurately than sleep diaries.
People in the top third for vitamin D slept almost 20 minutes longer than those in the bottom third, with shorter nighttime wakeups. Clinical deficiency shaved roughly 23 minutes off total sleep compared to normal levels. Over a week, 20 minutes a night adds up to more than two extra hours of rest. Low levels are common too: in the U.S., 22% of adults have vitamin D deficiency and nearly 41% sit below optimal levels. Vitamin B12 showed no consistent pattern, with men's and women's results splitting.
Two big caveats apply, though. First, the average participant was 71, so applying these numbers directly to healthy thirty-year-olds is premature. Second, this was an observational study, not a supplement trial. It shows a statistical link (correlation), not proof of cause and effect: people with higher vitamin D might simply spend more time outdoors in sunlight, move more, and sleep deeper overall.
Can Vitamin D Replace Nighttime Melatonin?
If vitamin D links to steadier sleep, should you clear melatonin off your nightstand and swap in the sunshine vitamin? Short answer: no.
They do completely different jobs. Neurologist and sleep specialist W. Christopher Winter notes that brain regions governing sleep and circadian rhythms—your 24-hour internal clock—hold vitamin D receptors, and vitamin D also influences melatonin breakdown. Yet in Adam Spira's data, vitamin D only tracked with longer, less fragmented sleep; it had zero effect on how fast people fell asleep.
Melatonin shifts sleep timing and nudges your circadian clock (for example during jet lag) rather than 'fixing' overall sleep quality. Comparing them is like comparing apples and oranges. The study also did not separate whether participants got vitamin D from sun, food, or pills, so nobody can promise a capsule delivers the same gain.
When to Get Tested and Why Mega-Doses Backfire
Suppose you go to bed on time, put away your phone, and air out your bedroom, yet still wake up exhausted. Then it makes sense to ask your doctor about a 25(OH)D blood test, which measures your actual vitamin D stores. If it confirms a deficiency and your doctor recommends a course, fixing it is smart.
Buying high-dose bottles blindly, however, is risky: vitamin D is fat-soluble, meaning it builds up in tissues instead of flushing out easily.
According to the U.S. Office of Dietary Supplements (NIH ODS), the tolerable upper intake limit for adults over 19 from all sources combined is 100 mcg (4,000 IU) per day. Doctors prescribe higher doses only temporarily for confirmed deficiency. Keeping 25(OH)D above 50–60 ng/mL (125–150 nmol/L) carries risks, and heavy overdosing can trigger hypercalcemia—a dangerous buildup of calcium in the blood.
If your blood test comes back normal, vitamin D is not behind your poor sleep—and seeing a sleep specialist to review habits, stress, or underlying issues is the better next step.

