Can Vitamin D Help Treat Depression?

Nicknamed “the sunshine vitamin,” vitamin D’s moniker is enough to bring a smile to your face. And as it turns out, vitamin D might help boost your mood in other ways too.
“There is some research to show that our levels of vitamin D can impact cognitive function ... and also that vitamin D [supplementation] may help improve symptoms of depression in people who already have a deficiency,” says Marisa Moore, RDN, an integrative and culinary dietitian in Atlanta.
Here’s how to tell whether you’re getting too little vitamin D, and how to increase your intake if you’re living with depression.
Who’s Getting Too Little Vitamin D?
For example, people who live in the northern half of the United States — approximately in or north of cities such as San Francisco, Denver, St. Louis, and Richmond, Virginia — are unlikely to soak up enough vitamin D from sunlight, she says.
- Older adults (as we age, our skin doesn’t synthesize vitamin D as efficiently)
- People with obesity or who have had gastric bypass surgery (they may need higher amounts of vitamin D)
- Anyone who has difficulty absorbing fat, such as those with inflammatory bowel disease or celiac disease (this will also cause issues with vitamin D absorption)
- People who do not spend time outdoors or do not expose their skin to sunlight
Should You Take a Vitamin D Supplement for Depression?
“I like for people to get a blood test to see where they are before making a recommendation about supplementation,” says Moore.
Start by getting more D from sunlight and fortified foods, such as milk alternatives and cereals, if you can. “In order for vitamin D to be well absorbed, it needs to be taken with a source of fat,” Moore says.
When it comes to increasing your time in the sun, it’s best to ask your doctor how many minutes you’ll need. That’s because a number of factors come into play, including your skin tone, where you live, the time of day you’re going outside, and the time of the year.
Resources We Trust
- Cleveland Clinic: The Health Benefits of Sunshine (and How Much You Need Per Day)
- Mayo Clinic: Vitamin D
- Physiopedia: Vitamin D and the Effect on Mental Health
- Northwell Health: Is Low Vitamin D Making Me Depressed?
- Dresden University of Technology: Fact Check: Vitamin D — a Pill of Sunshine Against Depression?

Allison Young, MD
Medical Reviewer
Allison Young, MD, is a board-certified psychiatrist providing services via telehealth throughout New York and Florida.
In addition to her private practice, Dr. Young serves as an a...

Lorie A. Parch
Author
- Mikola T et al. The Effect of Vitamin D Supplementation on Depressive Symptoms in Adults: A Systematic Review and Meta‐Analysis of Randomized Controlled Trials. Critical Reviews in Food Science and Nutrition. July 11, 2022.
- Wang L et al. Meta-Analysis of the Effect of Vitamin D on Depression. Frontiers in Psychiatry. July 30, 2025.
- Cui A et al. Prevalence, Trend, and Predictor Analyses of Vitamin D Deficiency in the U.S. Population, 2001–2018. Frontiers in Nutrition. October 2, 2022.
- Vitamin D. National Institutes of Health: Office of Dietary Supplements. November 8, 2022.
- Brar G et al. A Comprehensive Review of the Role of UV Radiation in Photoaging Processes Between Different Types of Skin. Cureus. March 24, 2025.
- Goosenberg E et al. Lactose Intolerance. StatPearls. August 6, 2025.
- Vitamin D Deficiency and Seasonal Depression. CommonSpirit. March 4, 2022.
- Vitamin D2 and Vitamin D3: What Is the Difference? University of Central Florida Health.
- Guidelines for Treating Vitamin D. NHS.
- The Health Benefits of Sunshine (and How Much You Need Per Day). Cleveland Clinic. February 20, 2025.
- Puig S. How Does Sunscreen Affect Vitamin D Production? Clínic Barcelona. July 9, 2025.