Several vitamins and minerals play direct roles in sexual function, from blood flow and arousal to hormone production and energy levels. The ones with the strongest evidence are vitamin D, magnesium, vitamin C, and iron, each working through different pathways that affect desire, performance, or both.
Sexual health depends on a chain of biological processes: your body needs to produce sex hormones, maintain healthy blood vessels, and keep nerves firing properly. A deficiency in any of the nutrients involved can quietly undermine one or more of those steps.
Vitamin D and Testosterone
Vitamin D is one of the most studied nutrients in relation to sexual health, particularly for men. The testes contain vitamin D receptors and enzymes that process the vitamin, which means reproductive tissue is designed to use it directly. Men with vitamin D levels below 50 nmol/L (about 20 ng/mL) have significantly lower total testosterone and lower levels of the protein that carries testosterone through the bloodstream, compared to men with adequate levels.
The connection extends to erectile function as well. In a cross-sectional analysis of over 3,300 men, those with vitamin D levels below 20 ng/mL had a higher prevalence of erectile dysfunction, while men above 35 ng/mL had a noticeably lower prevalence. When researchers adjusted for sex hormone levels, the association between vitamin D and erectile function became even stronger, suggesting the vitamin affects blood vessel health independently of its role in testosterone production.
Most adults need 600 to 2,000 IU of vitamin D daily depending on their baseline levels. The tolerable upper limit is 4,000 IU per day unless a healthcare provider recommends otherwise. A simple blood test can tell you where you stand.
Magnesium and Free Testosterone
Your body produces testosterone, but much of it gets bound to a protein called sex hormone-binding globulin (SHBG), which makes it unavailable for your cells to use. Magnesium helps shift that balance. It binds to SHBG in a way that loosens testosterone’s grip on the protein, freeing up more of the hormone to circulate in its active form. Even changes within the normal biological range of magnesium (0.75 to 0.95 mM in blood) can enhance how much usable testosterone your body has access to.
This matters for both libido and physical performance. Many people fall short on magnesium without realizing it, since deficiency doesn’t always show obvious symptoms. Good dietary sources include pumpkin seeds, dark chocolate, spinach, and almonds. Supplementing with 200 to 400 mg daily is common and generally well tolerated.
Vitamin C and Blood Flow
Erections and genital arousal in both sexes depend on nitric oxide, a molecule that relaxes blood vessel walls and allows increased blood flow to sexual tissue. Vitamin C supports this process in two ways: it protects the cells lining your blood vessels from oxidative damage, and it increases the availability of nitric oxide in vessels that are starting to lose function.
A pooled analysis of randomized controlled trials found that vitamin C supplementation improved markers of blood vessel function, though the benefits were most apparent in adults over 56. This makes sense because blood vessel health naturally declines with age, so the antioxidant protection has more ground to make up. For younger adults, getting enough vitamin C through diet (citrus fruits, bell peppers, strawberries) is typically sufficient to maintain baseline vascular health.
Iron and Female Sexual Function
Iron deficiency is one of the most overlooked contributors to low libido in women. A study comparing women of reproductive age with and without iron deficiency anemia found striking differences across nearly every dimension of sexual function. Women with adequate iron scored an average of 26.76 on a standardized sexual function scale, while women with iron deficiency anemia scored just 19.76, a gap of about 26%.
The effects touched desire, arousal, lubrication, orgasm, and overall sexual satisfaction. Ferritin (the body’s stored iron) showed a particularly strong correlation with total sexual function, with a coefficient of 0.52. Arousal had the tightest link to ferritin levels at 0.50, followed by sexual satisfaction at 0.47 and orgasm at 0.43. The only area where iron status didn’t matter was pain during sex.
This makes biological sense. Iron carries oxygen to every tissue in your body, and low levels leave you fatigued, reduce blood flow, and can dampen the neurotransmitters involved in arousal. If you experience heavy periods, follow a plant-based diet, or feel persistently tired, checking your ferritin level is a practical first step.
B Vitamins and Vascular Health
Homocysteine, an amino acid that builds up when B vitamin levels are low, is now recognized as an independent risk factor for erectile dysfunction. The mechanism is fairly direct: elevated homocysteine damages the lining of blood vessels and inhibits the enzyme that produces nitric oxide. Less nitric oxide means less blood vessel relaxation, which means weaker erections. The relationship is strongest in men over 60 and becomes more pronounced with more severe erectile dysfunction.
Folate and B6 are the primary vitamins your body uses to break down homocysteine and keep levels in check. Leafy greens, legumes, eggs, and fortified grains are reliable sources. Interestingly, B12 showed a more complex pattern in research. One cross-sectional study in China found that men with erectile dysfunction actually had higher B12 levels than those without, particularly in the 40 to 49 age group. This doesn’t mean B12 causes problems. It may reflect the body’s compensatory response to underlying vascular issues, or it could be influenced by other factors. The takeaway is that B12 supplementation on its own isn’t a clear path to better sexual function, while keeping homocysteine low through adequate folate and B6 has a clearer benefit.
Vitamin E and Fertility
Vitamin E is frequently marketed for male fertility, but the clinical evidence is weaker than supplement labels suggest. In a double-blind randomized study where men took 400 mg of vitamin E daily for three months, sperm motility did increase, but it increased by a similar amount in the placebo group. Sperm concentration and the percentage of normally shaped sperm actually improved more in men taking the placebo. These findings align with other randomized trials showing that antioxidant supplements don’t reliably improve sperm quality in men with fertility challenges.
That said, vitamin E still plays a general role in protecting cells from oxidative damage, which matters for long-term reproductive health. Getting it through food (nuts, seeds, avocados, olive oil) is a reasonable approach without the risks of high-dose supplementation.
Putting It Together
The nutrients with the strongest links to sexual function work through three main channels: hormone production (vitamin D, magnesium), blood flow (vitamin C, folate, B6), and energy and oxygen delivery (iron). A deficiency in any one of these can create a bottleneck that affects desire, arousal, or performance even when everything else is working fine.
Rather than loading up on every supplement on this list, the most effective approach is to identify where you might actually be falling short. Vitamin D deficiency is extremely common, affecting roughly 40% of U.S. adults. Iron deficiency is the most prevalent nutritional deficiency worldwide, especially among women. Magnesium intake falls below recommended levels for about half of Americans. These are the gaps most likely to be quietly affecting your sexual health, and they’re all detectable with basic blood work.