Higher vitamin D levels are associated with longer sleep and fewer nighttime awakenings in middle-aged and older adults, according to a 2026 study of 460 participants in the Baltimore Longitudinal Study of Aging. Gram Research analysis found that people with adequate vitamin D slept approximately 24 minutes longer per night and experienced shorter periods of wakefulness compared to those with vitamin D deficiency. The connection was particularly strong in Black participants, suggesting vitamin D’s importance for sleep quality may vary by race.

A new study of 460 middle-aged and older adults found that people with higher vitamin D levels sleep longer and wake up less during the night. Researchers from the Baltimore Longitudinal Study of Aging measured actual sleep using wristband trackers and blood tests for vitamin D and B12. The results suggest that maintaining healthy vitamin D levels may help improve sleep quality as we age. Interestingly, the vitamin D-sleep connection was even stronger in Black participants. While B12 also showed some effects on sleep, the relationship was more complex and differed between men and women.

Key Statistics

A 2026 study of 460 adults aged 40 and older found that higher vitamin D concentration was associated with 23-24 minutes longer total sleep time per night compared to those with lower levels.

According to research in the Baltimore Longitudinal Study of Aging (2026, n=460), vitamin D deficiency was linked to approximately 23 minutes less sleep per night in middle-aged and older adults.

A 2026 analysis of 460 participants found that the association between vitamin D and sleep quality was significantly stronger in Black participants than in white participants, suggesting race-specific effects.

Research from the Baltimore Longitudinal Study of Aging (2026) showed that higher vitamin D levels were associated with shorter wake bout lengths during sleep, meaning people woke up for briefer periods when they did wake.

The Quick Take

  • What they studied: Whether vitamin D and B12 blood levels affect how well people actually sleep, measured with activity trackers rather than just asking people how they feel
  • Who participated: 460 adults aged 40 and older (average age 71), about half women, and 22% Black participants from a long-term aging study in Baltimore
  • Key finding: People with higher vitamin D levels slept about 24 minutes longer per night and had shorter periods of wakefulness during sleep compared to those with lower vitamin D
  • What it means for you: Getting enough vitamin D might help you sleep better and wake up less during the night, though more research is needed to prove this helps improve overall health. Talk to your doctor about your vitamin D levels if you’re having sleep problems.

The Research Details

Researchers looked at 460 adults who were part of a long-term study tracking aging in Baltimore. They measured vitamin D and B12 levels from blood samples and tracked actual sleep using special wristbands (actigraphs) that record movement and sleep patterns throughout the night. This is better than just asking people “How did you sleep?” because the wristbands give objective measurements.

The researchers looked at five different sleep measurements: total time asleep, how much of the night was actually spent sleeping versus lying awake, how long it took to fall asleep, how much time people spent awake after falling asleep, and the length of each wake period during the night. They also checked whether the vitamin-sleep connection was different for men versus women and for Black versus white participants.

This type of study is called observational research, meaning scientists watched what naturally happened rather than randomly assigning people to take vitamins or placebos. This helps identify connections but doesn’t prove that vitamins directly cause better sleep.

Using wristband trackers instead of just asking people about their sleep is important because people often misremember or misjudge their sleep. The wristbands provide accurate, objective data. Also, looking at multiple sleep measurements (not just total sleep time) helps researchers understand exactly how vitamins affect different aspects of sleep quality.

This study is fairly reliable because it used objective sleep measurements and included a diverse group of participants. However, it’s observational, so it can’t prove that low vitamin D causes poor sleep—only that they’re connected. The study was well-designed and published in a respected scientific journal focused on aging research.

What the Results Show

The main finding was clear: people with higher vitamin D levels slept better. Specifically, for every increase in vitamin D concentration, people slept about 23-24 minutes longer per night. People with vitamin D deficiency slept about 23 minutes less than those with adequate levels. Additionally, higher vitamin D was linked to shorter periods of wakefulness during sleep—people woke up for shorter stretches when they did wake up.

The vitamin D effect was particularly strong in Black participants, suggesting that race may play a role in how vitamin D affects sleep. This is an important finding because it suggests that different groups might benefit differently from maintaining healthy vitamin D levels.

Vitamin B12 showed more complicated results. In women, higher B12 was linked to less time spent awake after falling asleep, which is good. But in men, higher B12 was actually linked to more time awake after falling asleep. When people had B12 deficiency, men slept longer but women slept shorter, showing opposite effects by sex.

The study found that the relationship between these vitamins and sleep differs significantly between men and women, suggesting that sex hormones or other biological differences might influence how vitamins affect sleep. The stronger effect of vitamin D in Black participants raises questions about whether vitamin D deficiency is more common in this group or whether the body processes vitamin D differently. These secondary findings suggest that one-size-fits-all vitamin recommendations might not work for everyone.

Previous research has shown that people with low vitamin D and B12 report poor sleep quality and have more sleep problems. This study goes further by using objective measurements instead of just asking people how they feel. The findings align with earlier research showing vitamin D’s importance for sleep, but the complex B12 results and sex differences are newer insights that add nuance to what we thought we knew.

This study can’t prove that vitamin D causes better sleep—only that they’re connected. People with higher vitamin D might also exercise more, eat better, or have other healthy habits that improve sleep. The study measured vitamins and sleep at one point in time, so we don’t know if changing vitamin D levels would actually improve sleep. The study also included mostly older adults, so results might not apply to younger people. Finally, the researchers couldn’t measure all the factors that might affect sleep, like stress, caffeine use, or sleep disorders.

The Bottom Line

If you’re having sleep problems, ask your doctor to check your vitamin D level. If it’s low, getting it to normal levels might help you sleep better. This recommendation has moderate confidence because the research shows a clear connection, but we need more studies to prove that raising vitamin D actually improves sleep. For B12, the picture is less clear, so focus on vitamin D first. Gram Research analysis suggests maintaining adequate vitamin D through sun exposure, food, or supplements may support better sleep quality.

Anyone over 40 with sleep problems should consider getting their vitamin D checked. Older adults, people with limited sun exposure, and Black individuals might benefit most from this information. People with diagnosed sleep disorders should still see a sleep specialist, as vitamin D alone may not solve serious sleep problems. Pregnant women, children, and people with certain medical conditions should talk to their doctor before making changes.

If your vitamin D is low and you start supplementing, you might notice better sleep within 4-8 weeks, though it could take longer. Vitamin D builds up in your body over time, so consistency matters more than immediate results. Some people notice improvements faster than others.

Frequently Asked Questions

Does vitamin D really help you sleep better?

Research shows a strong connection: people with higher vitamin D levels sleep about 24 minutes longer and wake up less during the night. However, studies haven’t yet proven that taking vitamin D supplements will improve your sleep. Talk to your doctor about checking your vitamin D level if you have sleep problems.

How much vitamin D do I need for better sleep?

The study didn’t specify an exact amount, but it found that higher vitamin D levels were associated with better sleep. Most experts recommend 600-800 IU daily for adults, though some suggest more. Your doctor can test your level and recommend the right amount for you personally.

What about vitamin B12 and sleep?

B12’s effect on sleep is more complicated and differs between men and women. Higher B12 helped women sleep better but had the opposite effect in men. The research suggests B12’s role in sleep isn’t as clear-cut as vitamin D’s, so focus on vitamin D first.

Can I improve my sleep by taking vitamin D supplements?

This study shows a connection between vitamin D and sleep, but doesn’t prove supplements will help. If your doctor finds you’re deficient, raising your level might improve sleep. Results typically take 4-8 weeks. Always consult your doctor before starting supplements.

Why does vitamin D affect sleep differently in Black people?

The study found vitamin D’s sleep benefits were stronger in Black participants, but researchers don’t yet know why. Possible reasons include differences in vitamin D absorption, sun exposure, or how bodies process the vitamin. More research is needed to understand these differences.

Want to Apply This Research?

  • Log your vitamin D supplement intake daily and rate your sleep quality each morning (1-10 scale) along with total sleep time. Track this for 8-12 weeks to see if there’s a pattern between consistent vitamin D use and improved sleep metrics.
  • Set a daily reminder to take a vitamin D supplement at the same time each day, and use the app to log it. Also log one sleep metric each morning—either how rested you feel or your total sleep time from a wearable device—to build awareness of your sleep patterns.
  • Create a weekly sleep summary showing average sleep duration and quality rating. Compare weeks when you consistently took vitamin D versus weeks you missed doses. After 8-12 weeks, review trends to see if your personal sleep improved with better vitamin D compliance. Share results with your doctor.

This research shows an association between vitamin D levels and sleep patterns but does not prove that vitamin D supplements will improve your sleep. Individual results vary, and sleep problems can have many causes. Before starting any vitamin supplements, consult with your healthcare provider, especially if you take medications, have medical conditions, or are pregnant or nursing. This article is for informational purposes only and should not replace professional medical advice. If you have persistent sleep problems, see a doctor or sleep specialist for proper evaluation and treatment.

This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.

Source: Association of Vitamin D and B12 Levels with Actigraphic Sleep in Cognitively Unimpaired Middle-Aged and Older Adults. , The journals of gerontology. Series A, Biological sciences and medical sciences (2026). PubMed 42696426 | DOI
Topics
vitamin D sleep vitamin B12 sleep quality sleep in older adults vitamin deficiency aging actigraphic sleep measurement sleep duration middle-aged adults vitamin D supplementation sleep health nutrition