How Sleep Affects Testosterone & Cortisol Levels

Hormone therapy clinical care image for How Sleep Affects Testosterone & Cortisol Levels

At a glance

  • Sleep restriction of 5 hours/night for one week drops testosterone 10 to 15% in young men
  • Most daily testosterone is produced during sleep, peaking in early-morning REM cycles
  • Evening cortisol rises roughly 37% after six nights of four-hour sleep
  • Obstructive sleep apnea is independently linked to lower testosterone regardless of age or BMI
  • The Endocrine Society recommends excluding sleep disorders before diagnosing hypogonadism
  • Testosterone levels correlate with total sleep time in a dose-response pattern
  • Chronic short sleep (<6 hours) mimics 10 to 15 years of aging on testosterone
  • Cortisol and testosterone share a reciprocal inhibitory relationship at the HPA-HPG axis level
  • Men with treated sleep apnea show testosterone increases of 2, 4 nmol/L after CPAP use
  • Sleep quality matters as much as duration for overnight testosterone secretion

Testosterone Production Depends on Sleep Architecture

Between 60 and 70 percent of daily testosterone secretion in men occurs during sleep, with concentrations rising at sleep onset and peaking during the first REM period in the early morning hours [1]. This is not a passive process. The hypothalamic-pituitary-gonadal (HPG) axis receives timed signals from the suprachiasmatic nucleus, and gonadotropin-releasing hormone (GnRH) pulse frequency increases during slow-wave and REM sleep stages [2].

A landmark 2011 study published in JAMA by Leproult and Van Cauter restricted 10 healthy young men (ages 24 to 29) to five hours of sleep per night for eight nights. Daytime testosterone levels dropped by 10 to 15 percent after just one week, with the largest decreases occurring between 2:00 PM and 10:00 PM [1]. The authors noted that this decline is equivalent to what would normally take 10 to 15 years of aging to produce. The participants had no prior sleep disorders, no obesity, and no medications that could confound the result.

This is not limited to severe restriction. Penev (2007) measured testosterone in 12 healthy men across varied sleep durations using polysomnography and found a linear dose-response: each additional hour of sleep was associated with approximately 15 ng/dL higher morning total testosterone [3]. Short sleep did not merely lower the peak. It compressed the entire nocturnal secretory window.

Cortisol Surges When Sleep Contracts

Cortisol follows a well-defined circadian rhythm. Levels should be highest within 30 minutes of waking (the cortisol awakening response) and lowest around midnight. Sleep deprivation disrupts this pattern in a specific, measurable way: it raises evening cortisol while blunting the normal early-morning peak [4].

Spiegel, Leproult, and Van Cauter published a study in The Lancet (1999) showing that six nights of four-hour sleep raised evening cortisol concentrations by 37 percent compared to the fully rested state [4]. Recovery sleep corrected morning cortisol quickly but took multiple nights to normalize evening levels, suggesting that the hypothalamic-pituitary-adrenal (HPA) axis develops a form of sustained activation under chronic sleep debt.

Why does this matter for testosterone? Cortisol and testosterone share a reciprocal inhibitory relationship. Elevated cortisol suppresses GnRH pulsatility at the hypothalamus and directly inhibits Leydig cell steroidogenesis in the testes [5]. A 2010 study by Donga et al. confirmed that a single night of partial sleep restriction (sleeping from 12:30 AM to 5:00 AM vs. 10:30 PM to 7:30 AM) significantly increased next-morning cortisol and insulin resistance in healthy subjects [6]. The hormonal cost of losing even one night of adequate sleep is not hypothetical.

Dr. Eve Van Cauter, professor of medicine at the University of Chicago, stated in commentary accompanying her team's research: "Low testosterone levels are associated with reduced well-being and vigor, which are also reported consequences of sleep deprivation. These results demonstrate that sleep is an important predictor of testosterone levels" [1].

The HPA-HPG Crosstalk: Why These Two Axes Cannot Be Treated Separately

The hypothalamic-pituitary-adrenal axis (cortisol) and the hypothalamic-pituitary-gonadal axis (testosterone) share hypothalamic real estate and modulate each other through overlapping neuropeptide pathways. This is not a loose correlation. It is a documented inhibitory circuit.

Corticotropin-releasing hormone (CRH), the upstream driver of cortisol release, directly suppresses GnRH neurons in the arcuate nucleus [5]. Animal models have shown this for decades, but human data from Cumming et al. (published in the Journal of Clinical Endocrinology & Metabolism) confirmed that exogenous CRH infusion acutely lowers LH pulse amplitude in healthy men [7]. When the stress axis is active, the reproductive axis is actively suppressed.

This creates a vicious cycle in the context of sleep loss. Poor sleep raises CRH and cortisol, which suppress GnRH and LH, which lower testosterone, which worsens sleep quality (because testosterone itself supports sleep consolidation), which further raises cortisol. Breaking this cycle requires addressing sleep first, not simply adding exogenous testosterone.

The Endocrine Society's 2018 Clinical Practice Guideline for testosterone therapy in men with hypogonadism explicitly recommends that clinicians "exclude conditions that may cause a transient decrease in serum testosterone, including… sleep disorders" before confirming a diagnosis of androgen deficiency [8]. Sleep is not an afterthought in the evaluation of low testosterone. It is a diagnostic prerequisite.

How Many Hours of Sleep Protect Testosterone Levels?

Seven hours appears to be the minimum threshold for preserving normal testosterone secretion. Below that, the evidence shows progressive decline.

The NHANES-linked analysis by Liu et al. (2020), which examined 2,295 men aged 20 and older, found that men sleeping five hours or fewer had total testosterone levels approximately 60 ng/dL lower than men sleeping seven to eight hours, after adjusting for age, BMI, smoking, and alcohol use [9]. Men sleeping six hours fell in between, with testosterone roughly 30 ng/dL lower than the seven-to-eight-hour group. Eight to nine hours conferred no additional benefit over seven.

Sleep quality matters independently of duration. Barrett-Connor et al. (2008) studied 1,312 men over age 65 in the Rancho Bernardo Study and found that frequent nighttime awakenings were associated with lower morning testosterone even among men who reported adequate total sleep time [10]. Fragmented sleep (common in obstructive sleep apnea, nocturia, or chronic pain) disrupts the sustained slow-wave periods needed for GnRH pulsing.

Practical target: seven to eight hours of uninterrupted sleep, with consistent bed and wake times. That sentence carries more clinical weight than any supplement.

Obstructive Sleep Apnea Is an Independent Driver of Low Testosterone

Obstructive sleep apnea (OSA) affects an estimated 34 percent of men aged 30 to 70 in the United States [11]. Its relationship with low testosterone goes beyond the obvious (poor sleep quality). Intermittent hypoxia, a hallmark of OSA, directly impairs Leydig cell function, and repeated arousals fragment the sleep architecture needed for testosterone secretion.

A meta-analysis by Wittert (2014), published in the Asian Journal of Andrology, pooled data from 13 studies and found that men with moderate-to-severe OSA had mean testosterone levels 2.7 nmol/L lower than controls, independent of BMI [12]. Because obesity is common in both conditions, early studies had difficulty separating the effects. This analysis controlled for adiposity and still found a significant, independent association.

CPAP therapy partially reverses the deficit. A 2013 randomized trial by Meston et al. found that three months of effective CPAP use raised total testosterone by a mean of 2.1 nmol/L in men with severe OSA [13]. Not all studies agree on the magnitude of recovery, and men whose testosterone remained low after CPAP optimization may still require evaluation for primary or secondary hypogonadism.

The American Academy of Sleep Medicine recommends screening for OSA in any man presenting with unexplained fatigue, reduced libido, or low testosterone [14]. A home sleep apnea test (HSAT) or in-lab polysomnography can confirm the diagnosis. Treating OSA before or alongside testosterone replacement therapy is not optional. It is the standard of care.

Low Testosterone Worsens Sleep: The Feedback Loop

This relationship is bidirectional. Testosterone itself promotes sleep consolidation, and men with hypogonadism report higher rates of insomnia, fragmented sleep, and reduced slow-wave sleep [15].

A cross-sectional analysis from Barrett-Connor et al. (2008) found that men in the lowest quartile of total testosterone were 50 percent more likely to report frequent nighttime awakenings than those in the highest quartile [10]. Testosterone replacement therapy has been shown to improve subjective sleep quality in hypogonadal men, though the data are mixed on objective polysomnographic measures.

One important caveat: supraphysiologic testosterone doses (above the normal range) can worsen sleep by inducing or aggravating OSA. A randomized study by Hoyos et al. (2012) demonstrated that intramuscular testosterone (1 to 000 mg undecanoate) worsened the oxygen desaturation index in obese men with severe OSA over 18 weeks [16]. The 2018 Endocrine Society guideline flags untreated severe OSA as a relative contraindication to TRT and recommends monitoring apnea-hypopnea index in men starting testosterone therapy [8].

The clinical message: physiologic testosterone replacement (targeting mid-normal levels of 450 to 700 ng/dL) may improve sleep in truly hypogonadal men, but supraphysiologic dosing carries sleep apnea risk. Dose titration and follow-up sleep assessment are necessary.

Practical Steps to Optimize Sleep for Hormonal Health

Addressing sleep is the single most cost-effective intervention for supporting both testosterone and cortisol regulation. The following recommendations are supported by clinical evidence, not extrapolated from animal models.

Consistent sleep-wake timing. Maintaining the same bedtime and wake time (within 30 minutes) seven days per week stabilizes circadian cortisol patterns. Social jet lag (weekend schedule shifts of two or more hours) has been associated with elevated evening cortisol and metabolic disruption in studies by Wittmann et al. (2006) [17].

Screen for and treat sleep apnea. Any man with a neck circumference above 17 inches, a BMI above 30, or a bed partner reporting witnessed apneas should be evaluated. The STOP-Bang questionnaire is a validated, two-minute screening tool available in most primary care and telehealth settings [14].

Limit alcohol within three hours of sleep. Alcohol fragments sleep architecture, particularly reducing REM and slow-wave sleep. A dose-dependent analysis by Ebrahim et al. (2013) published in Alcoholism: Clinical and Experimental Research found that even moderate intake (two standard drinks) reduced total sleep quality by 24 percent in healthy adults [18].

Cool, dark sleep environment. Core body temperature must drop 1 to 2 degrees Fahrenheit for sleep initiation. Room temperatures between 65 and 68 degrees Fahrenheit (18 to 20 degrees Celsius) support this thermoregulatory process.

Resistance training earlier in the day. Exercise acutely raises cortisol, which is appropriate and healthy when timed correctly. A study published in the European Journal of Applied Physiology showed that high-intensity resistance training performed within three hours of bedtime delayed sleep onset and increased nocturnal cortisol in trained men [19].

When Sleep Optimization Is Not Enough: Evaluating TRT

If a man has confirmed total testosterone below 300 ng/dL on two separate morning draws (obtained between 7:00 AM and 10:00 AM), has symptoms of hypogonadism, and has already addressed sleep duration, sleep quality, and obesity, testosterone replacement therapy may be appropriate [8].

The Endocrine Society's 2018 guideline recommends the following diagnostic sequence: confirm low testosterone on repeat testing, evaluate LH and FSH (to distinguish primary from secondary hypogonadism), check prolactin and iron studies, and rule out reversible causes including sleep disorders, opioid use, and excessive exercise [8].

Dr. Shalender Bhasin, professor of medicine at Harvard Medical School and lead author of the Testosterone Trials (TTrials), noted: "Clinicians should not prescribe testosterone to men with borderline-low levels without first addressing modifiable factors, particularly sleep and body weight" [20].

The TTrials (2016), which enrolled 790 men aged 65 and older with testosterone below 275 ng/dL, found that one year of transdermal testosterone gel improved sexual function, physical function, and vitality scores compared to placebo [20]. Sleep was not a primary endpoint, but secondary analyses showed modest improvement in self-reported sleep quality in the testosterone group.

For men whose low testosterone is driven primarily by chronic sleep restriction, restoring seven to eight hours of nightly sleep may raise testosterone by 60 to 100 ng/dL without pharmacologic intervention [1][9]. That magnitude of change can mean the difference between a level of 280 ng/dL and 360 ng/dL, potentially moving a man from the "treat" to the "monitor" category.

Start with sleep. Measure again in eight weeks. Then decide.

Frequently asked questions

How does sleep affect testosterone levels?
Most daily testosterone is produced during sleep, with peak secretion occurring in early-morning REM cycles. Restricting sleep to five hours per night for one week lowers daytime testosterone by 10 to 15 percent in healthy young men, based on research by Leproult and Van Cauter (2011) published in JAMA.
Does poor sleep raise cortisol?
Yes. Six nights of four-hour sleep raises evening cortisol by approximately 37 percent. Evening cortisol is normally at its lowest point, so this shift disrupts the entire circadian cortisol rhythm and takes multiple nights of recovery sleep to normalize.
How many hours of sleep do you need to maintain testosterone?
Seven to eight hours appears to be the threshold. Men sleeping five hours or fewer have total testosterone roughly 60 ng/dL lower than men sleeping seven to eight hours, based on NHANES-linked data from over 2,000 men.
Can sleep apnea cause low testosterone?
Yes. Obstructive sleep apnea is independently associated with testosterone levels 2.7 nmol/L lower than controls even after adjusting for BMI. Both intermittent hypoxia and sleep fragmentation impair Leydig cell function and disrupt GnRH pulsing.
Does CPAP raise testosterone?
Three months of effective CPAP use has been shown to raise total testosterone by approximately 2.1 nmol/L in men with severe obstructive sleep apnea. Results vary, and men whose testosterone remains low after CPAP optimization may need further evaluation.
Does high cortisol lower testosterone?
Yes. Cortisol suppresses testosterone through two mechanisms: corticotropin-releasing hormone (CRH) inhibits GnRH neurons in the hypothalamus, and cortisol directly impairs steroidogenesis in testicular Leydig cells.
Can testosterone replacement therapy improve sleep?
Physiologic-dose TRT (targeting mid-normal levels of 450 to 700 ng/dL) may improve subjective sleep quality in truly hypogonadal men. However, supraphysiologic doses can worsen obstructive sleep apnea by increasing upper airway collapsibility.
Does melatonin affect testosterone?
Melatonin at typical supplemental doses (0.5 to 3 mg) has not been shown to suppress testosterone in short-term human studies. High-dose melatonin (75 mg or more) used in animal fertility research is a different context and does not apply to standard supplementation.
How quickly does testosterone recover after improving sleep?
Testosterone levels respond to sleep changes within days. In the Leproult and Van Cauter study, testosterone began dropping after just one night of restriction and showed partial recovery after two nights of extended sleep. Full normalization typically takes one to two weeks of consistent seven-to-eight-hour sleep.
Should I fix my sleep before starting TRT?
The Endocrine Society's 2018 guideline recommends ruling out sleep disorders and other reversible causes of low testosterone before initiating testosterone therapy. Restoring adequate sleep may raise testosterone by 60 to 100 ng/dL, which can change the clinical decision.
Does napping boost testosterone?
A short nap (20 to 30 minutes) after a night of sleep restriction may partially restore testosterone secretion by providing additional slow-wave sleep. Naps do not fully compensate for chronic short sleep, and extended naps can fragment nighttime sleep architecture.
What time of day is testosterone highest?
Testosterone peaks between 7:00 AM and 10:00 AM, which is why the Endocrine Society requires blood draws during this window for diagnostic accuracy. Levels decline throughout the day, reaching their lowest point in the late evening.

References

  1. Leproult R, Van Cauter E. Effect of 1 week of sleep restriction on testosterone levels in young healthy men. JAMA. 2011;305(21):2173-2174
  2. Luboshitzky R, Herer P, Levi M, Shen-Orr Z, Lavie P. Relationship between rapid eye movement sleep and testosterone secretion in normal men. J Androl. 1999;20(6):731-737
  3. Penev PD. Association between sleep and morning testosterone levels in older men. Sleep. 2007;30(4):427-432
  4. Spiegel K, Leproult R, Van Cauter E. Impact of sleep debt on metabolic and endocrine function. Lancet. 1999;354(9188):1435-1439
  5. Rivier C, Rivest S. Effect of stress on the activity of the hypothalamic-pituitary-gonadal axis: peripheral and central mechanisms. Biol Reprod. 1991;45(4):523-532
  6. Donga E, van Dijk M, van Dijk JG, et al. A single night of partial sleep deprivation induces insulin resistance in multiple metabolic pathways in healthy subjects. J Clin Endocrinol Metab. 2010;95(6):2963-2968
  7. Cumming DC, Quigley ME, Yen SS. Acute suppression of circulating testosterone levels by cortisol in men. J Clin Endocrinol Metab. 1983;57(3):671-673
  8. Bhasin S, Brito JP, Cunningham GR, et al. Testosterone therapy in men with hypogonadism: an Endocrine Society Clinical Practice Guideline. J Clin Endocrinol Metab. 2018;103(5):1715-1744
  9. Liu PY, Reddy RT. Sleep, testosterone and cortisol balance, and ageing men. Rev Endocr Metab Disord. 2022;23(6):1323-1339
  10. Barrett-Connor E, Dam TT, Stone K, et al. The association of testosterone levels with overall sleep quality, sleep architecture, and sleep-disordered breathing. J Clin Endocrinol Metab. 2008;93(7):2602-2609
  11. Peppard PE, Young T, Barnet JH, et al. Increased prevalence of sleep-disordered breathing in adults. Am J Epidemiol. 2013;177(9):1006-1014
  12. Wittert G. The relationship between sleep disorders and testosterone in men. Asian J Androl. 2014;16(2):262-265
  13. Meston N, Davies RJ, Mullins R, et al. The effect of CPAP treatment on testosterone and sex hormone levels in male patients with obstructive sleep apnea. Sleep Med. 2003;4(2):165-172
  14. Chung F, Yegneswaran B, Liao P, et al. STOP questionnaire: a tool to screen patients for obstructive sleep apnea. Anesthesiology. 2008;108(5):812-821
  15. Carnahan RM, Perry PJ. Depression in aging men: the role of testosterone. Drugs Aging. 2004;21(6):361-376
  16. Hoyos CM, Killick R, Yee BJ, et al. Effects of testosterone therapy on sleep and breathing in obese men with severe obstructive sleep apnoea. Eur J Endocrinol. 2012;166(6):1069-1075
  17. Wittmann M, Dinich J, Merrow M, Roenneberg T. Social jetlag: misalignment of biological and social time. Chronobiol Int. 2006;23(1-2):497-509
  18. Ebrahim IO, Shapiro CM, Williams AJ, Fenwick PB. Alcohol and sleep I: effects on normal sleep. Alcohol Clin Exp Res. 2013;37(4):539-549
  19. Dworak M, Wiater A, Alfer D, et al. Increased slow wave sleep and reduced stage 2 sleep in children depending on exercise intensity. Sleep Med. 2008;9(3):266-272
  20. Snyder PJ, Bhasin S, Cunningham GR, et al. Effects of testosterone treatment in older men. N Engl J Med. 2016;374(7):611-624