ObjectiveMental health has emerged as a worldwide concern given the increasing incidence of anxiety and depression disorders in the last years. Cortisol and sex steroid hormones have been demonstrated to be important regulators of mental health processes in older adults. However, the evidence considering these integrated variables in apparently healthy middle-aged individuals has not been thoroughly addressed. The present study aimed to investigate the association of the plasma cortisol, testosterone, free testosterone, sex hormone–binding globulin (SHBG), and dehydroepiandrosterone sulfate (DHEAS) levels with mental health in middle-aged adults. MethodsThis cross-sectional study included a cohort of 73 middle-aged adults aged 45 to 65 years (women, 53%). Plasma cortisol, testosterone, SHBG, and DHEAS were assessed using a competitive chemiluminescence immunoassay. Free testosterone was calculated from the total testosterone and SHBG. Self-reported depression severity, generic health-related quality of life, hope, satisfaction with life, and optimism-pessimism were evaluated using the Beck Depression Inventory-II (BDI-II), 36-Item Short-Form Health Survey, Adult Hope Scale, Satisfaction with Life Scale, and Life Orientation Test-Revised, respectively—with higher total scores of these scales indicating greater levels of these variables. ResultsThe testosterone and free testosterone levels were inversely associated with the BDI-II values in men (all P ≤ .042). The cortisol levels were positively related with the Satisfaction with Life Scale scores, whereas the testosterone, free testosterone, SHBG, and DHEAS levels were negatively correlated with the BDI-II values in women (all P ≤ .045). ConclusionIn summary, these results suggest that the increased levels of steroid hormones—within the normal values—are associated with better mental health in middle-aged adults.