Enjoy sex like you used to

Learn more

Vitamin D3 and Sexual Health: How The Sunshine Vitamin May Boost Your Libido

Lynn-Marie Morski

Reviewed by Lynn Marie Morski, MD, JD

Written by Sian Ferguson

Published 08/16/2025

When we think of vitamin D3, bone health and immune support usually come to mind. But did you know this powerhouse vitamin might also affect your sexual health?

That’s right — vitamin D might be good for your D (sorry, we couldn’t resist!).

Nicknamed the “sunshine vitamin” because it’s naturally produced when your skin is exposed to sunlight, vitamin D3 supports many essential functions in your body — some of which may influence your sex life.

In men, it can support their sexual wellness by improving erectile dysfunction (ED), mood, and fertility — making it one of the best vitamins for ED.

Below, we’ll look at the benefits of vitamin D, sexually and generally. We also explain whether vitamin D3 supplementation is necessary and how to get more vitamin D.

Vitamin D3, also known as cholecalciferol, is the form of vitamin D most readily used by your body.

It’s a fat-soluble vitamin that your body needs to maintain strong bones, support the immune system, and regulate calcium and phosphate levels.

It’s naturally synthesized in your skin from exposure to sunlight, but you can also get it through supplements and certain foods, such as fatty fish, fortified dairy, and egg yolks.

While vitamin D3 is best known for its role in preventing conditions like osteoporosis and rickets, recent research has explored its effects on testosterone production, sperm quality, and sexual health — areas that make it particularly interesting for men.

Although more research is needed before we fully understand the role of vitamin D in sexual health, it’s pretty clear that it’s an important nutrient for male sexual function.

1. May Support Healthy Testosterone Levels

Testosterone is a sex hormone that plays a major role in male libido, energy levels, and overall sexual performance.

Some studies have found that low levels of vitamin D are associated with reduced testosterone levels, which may contribute to symptoms like decreased libido and fatigue.

However, other studies — like those included in this review — indicate little connection between vitamin D deficiency and low testosterone levels.

Another review noted that the research is mixed. While some clinical trials have found a connection between low vitamin D and low testosterone, others have not. The authors of this review suggest further randomized controlled trials on the topic.

2. Improves Erectile Function

Erectile dysfunction (ED) can stem from various causes, including cardiovascular health issues, stress, and low testosterone levels.

Vitamin D may help improve blood flow and vascular health, both of which are critical for maintaining erections.

Research links lower vitamin D levels to a higher prevalence of ED. A 2023 review found that low levels of vitamin D could worsen erectile function, mainly because it can make other health conditions worse over time.

These health conditions, which include high blood pressure, diabetes, and low testosterone levels, may all lead to new or worsening ED.

Another study found that vitamin D supplementation improved erectile function in middle-aged men with vitamin D deficiencies.

It seems that vitamin D can increase the bioavailability of nitric oxide (NO), a potent vasodilator that helps increase blood flow during erections.

While vitamin D3 isn’t a direct treatment for ED, it’s an important piece of the overall health puzzle.

3. Enhances Mood

Your sex drive doesn’t just depend on physical health — it’s also influenced by your mental state.

Psychological ED is a real thing. Mental health difficulties, like depressive disorder and anxiety disorders, are associated with low libido and erectile dysfunction.

Plenty of research suggests that there’s a link between low vitamin D levels and depressive symptoms.

A systematic review looked at the effects of vitamin D supplementation on 7,534 people experiencing negative emotions. It found that the participants who received vitamin D supplements noticed an improvement in their mood.

Other research supports the use of vitamin D for elderly and middle-aged men with depression and vitamin D deficiencies.

This doesn’t mean that vitamin D can replace antidepressants or therapy, but it may be helpful for people with depression who also have a vitamin D deficiency.

Why is there a link between vitamin D and depression? It might be that vitamin D plays an important role in the production of serotonin, a neurotransmitter that regulates feelings of happiness and well-being.

4. Improves Sperm Quality

For men looking to optimize fertility, vitamin D3 may offer another advantage.

Research suggests that vitamin D may improve sperm motility and quality, two key factors in male fertility.

A 2023 meta-analysis looked at 24 articles comprising 7,345 participants. The researchers found that men with vitamin D deficiencies were more likely to have:

  • Reduced sperm concentration

  • Lower total sperm count

  • Worse sperm motility

  • Altered sperm morphology

In other words, vitamin D deficiencies are associated with poorer sperm quality. This implies that vitamin D treatment could be helpful for men who want to conceive.

5. May Help with Premature Ejaculation

It turns out that vitamin D deficiency might be a risk factor for premature ejaculation (PE). PE, a surprisingly common condition, can affect your sexual satisfaction, self-esteem, and relationship quality.

A 2019 study found that men with low vitamin D levels were more likely to develop premature ejaculation. Another study linked low vitamin D levels to lifelong premature ejaculation.

Researchers speculate that this link may have to do with the fact that vitamin D deficiencies affect your endocrine function, which in turn can affect ejaculation.

If you have a vitamin deficiency, it might be worth exploring vitamins for premature ejaculation. But if vitamin D doesn’t help, don’t despair — there are other treatments for premature ejaculation.

6. Might Boost Libido

Vitamin D3 might not be the first thing that comes to mind when you think about sexual desire, but the link between vitamin D and sex drive may be stronger than you realize.

As mentioned, vitamin D3 enhances mood and may support healthy testosterone levels. Your mood and testosterone play a more significant role in regulating your sex drive.

Studies have shown that men with low vitamin D levels often experience depression and reduced testosterone, both of which can leave libido feeling a little lackluster.

Of course, many factors can impact your sex drive. Learn more about how to increase sex drive in men and medication for male libido.

You only need to take a vitamin D supplement if you have a deficiency.

A healthcare provider can perform a simple blood test to check your vitamin D levels and recommend a personalized dosage.

The symptoms of a vitamin D deficiency include:

  • Fatigue

  • Low mood

  • Unexplained aches and pains

  • Muscle weakness

Many people get enough vitamin D through sunlight exposure and eating a healthy, balanced diet. The recommended daily intake of vitamin D3 for most adults is around 600–800 IU, but some men may require more based on their specific needs.

You’re more likely to lack vitamin D if you:

  • Have limited sun exposure

  • Have darker skin

  • Don’t eat dairy and/or fish

If you experience the symptoms of a vitamin D deficiency and have one or more risk factors, it’s a good idea to address it at your next doctor’s appointment.

If you get your vitamin D through your diet and sunlight exposure, it’s very unlikely that you’ll take in “too much” vitamin D.

But if you’re using supplements, it’s important to stick to the recommended dosage.

When you take too much vitamin D, it can lead to side effects like:

  • Nausea

  • Vomiting

  • Kidney damage

  • Hypercalcemia (high calcium levels in the blood)

It’s always best to consult with a healthcare professional before starting any new supplement, especially if you’re taking other medications or have a health condition.

If you want to boost your vitamin D levels, here are some simple strategies:

  • Sunlight exposure. Spend 10–30 minutes in the sun a few times a week. How much time to spend outside depends on your skin tone and geographic location.

  • Diet. Incorporate vitamin D-rich foods like salmon, mackerel, egg yolks, and fortified dairy products into your meals.

  • Supplements. If your levels are low, a vitamin D3 supplement could help.

If you’re not sure where to start with getting more vitamin D, ask your healthcare provider. They can advise you on lifestyle changes and supplements.

It’s important to remember that vitamin D3 is not a direct treatment for conditions like ED or low libido. Vitamin D treatment can be good for people with deficiencies, but if your sexual dysfunction stems from another issue, it might not make a difference.

By addressing deficiencies and supporting overall health, vitamin D may complement other treatments or lifestyle changes aimed at improving sexual performance.

Still, you might want to consider other treatments to improve sexual function. We offer a wide range of erectile dysfunction medications, including Viagra(sildenafil) and Cialis(tadalafil).

We also have a range of premature ejaculation treatments. In addition to prescribing sildenafil off-label for PE, we offer Clockstopper benzocaine wipes.

Optimizing your vitamin D3 levels might give you the boost you’ve been looking for — both in and out of the bedroom. While vitamin D3 isn’t a magic bullet for sexual health, its benefits for testosterone, mood, and overall well-being make it a key player in maintaining healthy sexual function.

Here’s what you need to know about vitamin D3:

  • There’s a link between vitamin D and sexual function. Research suggests there may be a link between vitamin D and testosterone levels. Low vitamin D levels also seem to be associated with erectile dysfunction and depression, which can impact your sex drive.

  • There are many ways to get your dose of vitamin D. Sun exposure and a vitamin D-rich diet are good places to start. If you have a deficiency, consider vitamin D supplements.

  • Vitamin D3 can’t replace all sexual dysfunction medicine. Since low vitamin D levels aren’t the one-and-only cause of sexual dysfunction, vitamin D treatments won’t help everyone experiencing issues in the bedroom.

Not sure whether or not to take a supplement? The first step is to check your vitamin D status through a blood test, so chat with a healthcare professional to get your levels checked.

If you’re ready to enhance your sexual function, we can help you book an online consultation with a licensed healthcare professional. They can help you figure out a treatment plan that works for you.

16 Sources

  1. Abd El aal AM, et al. (2018). Serum vitamin D level may be a novel potential risk factor for premature ejaculation: a comparative study. https://link.springer.com/article/10.1007/s11255-018-1975-x
  2. Amini S, et al. (2021). Vitamin D, testosterone and depression in middle-aged and elderly men: a systematic review. https://www.tandfonline.com/doi/abs/10.1080/10408398.2021.2015284
  3. Arab A, et al. (2019). The association between serum vitamin D, fertility and semen quality: A systematic review and meta-analysis. https://www.sciencedirect.com/science/article/pii/S1743919119302560
  4. Canguven O, et al. (2021). Vitamin D and Male Erectile Function: An Updated Review. https://doi.org/10.5534/wjmh.190151
  5. Cheng YC, et al. (2020). The effect of vitamin D supplement on negative emotions: A systematic review and meta-analysis. https://pubmed.ncbi.nlm.nih.gov/32365423/
  6. Sizar O, et al. (2023). Vitamin D Deficiency. https://www.ncbi.nlm.nih.gov/books/NBK532266/
  7. Menon V, et al. (2020). Vitamin D and Depression: A Critical Appraisal of the Evidence and Future Directions. https://pubmed.ncbi.nlm.nih.gov/31997861/
  8. Monson NR, et al. (2023). Association Between Vitamin D Deficiency and Testosterone Levels in Adult Males: A Systematic Review. https://pubmed.ncbi.nlm.nih.gov/37750061/
  9. Canguven O, et al. (2017). Vitamin D treatment improves levels of sexual hormones, metabolic parameters and erectile function in middle-aged vitamin D deficient men. https://pubmed.ncbi.nlm.nih.gov/28074679/
  10. Darooneh T, et al. (2023). The effect of vitamin D on sexual function: a systematic review. https://link.springer.com/article/10.1186/s41110-023-00221-y
  11. Farag YMK, et al. (2016). Vitamin D deficiency is independently associated with greater prevalence of erectile dysfunction: The National Health and Nutrition Examination Survey (NHANES) 2001-2004. https://pubmed.ncbi.nlm.nih.gov/27505344/
  12. Książek A, et al. (2021). Correlative studies on vitamin D and total, free bioavailable testosterone levels in young, healthy men. https://doi.org/10.1038/s41598-021-99571-8
  13. Canat L, et al. (2019). Low serum vitamin D is associated with an increased likelihood of acquired premature ejaculation. https://pubmed.ncbi.nlm.nih.gov/31063279/
  14. Coskuner ER, et al. (2022). Premature Ejaculation and Endocrine Disorders: A Literature Review. https://pubmed.ncbi.nlm.nih.gov/33831976/
  15. Yan T, et al. (2023). The Association between Serum Vitamin D Levels and Male Fertility: A Systematic Review and Meta-Analysis. https://onlinelibrary.wiley.com/doi/full/10.1155/2023/9002938
  16. Vitamin D. (n.d.). https://ods.od.nih.gov/factsheets/VitaminD-HealthProfessional/
Editorial Standards

Hims & Hers has strict sourcing guidelines to ensure our content is accurate and current. We rely on peer-reviewed studies, academic research institutions, and medical associations. We strive to use primary sources and refrain from using tertiary references. See a mistake? Let us know at blog@forhims.com!

This article is for informational purposes only and does not constitute medical advice. The information contained herein is not a substitute for and should never be relied upon for professional medical advice. Always talk to your doctor about the risks and benefits of any treatment. Learn more about our editorial standards here.

Lynn Marie Morski, MD, JD

Basic Information

  • Full Name: Lynn Marie Morski, MD, JD

  • Current Role at Hims & Hers: Medical Advisor

Credentials & Background

Experience & Expertise

Contributions to Hims & Hers

  • Medical Content Reviewed & Approved:

    • List pages or topics the expert has reviewed for accuracy

  • Quotes or Expert Insights:

    • Mental health care isn’t a luxury, it’s a fundamental part of overall well-being. We all deserve mental health support that’s evidence-based, accessible, and affordable.

  • Media Mentions & Features:

    • A User’s Guide to Therapeutic Psychedelics: From magic mushrooms to MDMA and ayahuasca to ibogaine—everything you need to know before (and after) taking the leap - Oprah Daily, May 6, 2024

Personal & Humanizing Details

  • Why I Practice Medicine:

    • I'm passionate about helping people access reliable, affordable healthcare—without stigma or unnecessary barriers. Everyone deserves to feel informed and empowered when it comes to their health!

  • Hobbies & Interests:

    • Salsa dancing, drumming, surfing, scuba diving, triathlons

Contact & External Profiles

Read more

Related Articles

Put yourself in good hands

Hims connects you with doctor-trusted products so you can have your best sex ever