['Recent evidence indicates that thyroid hormones may be closely linked to cognition among adults.', 'We investigated associations between thyroid hormones and cognitive performance, while testing effect modification by sex, race, and elevated depressive symptoms (EDS).', 'This cross-sectional study used extensive data from the Healthy Aging in Neighborhoods of Diversity across the Life Span (HANDLS) study.', 'The study was conducted in Baltimore, Maryland, from 2004 to 2009.', 'PARTICIPANTS were U.S. adults aged 30 to 64 years. The sample size ranged from 1275 to 1346.', 'Outcomes included 13 cognitive test scores spanning domains of learning/memory, language/verbal, attention, visuo-spatial/visuo-construction, psychomotor speed, executive function, and mental status.', 'Within reference ranges and after Bonferroni correction, elevated free thyroxine (fT4) was associated with better performance on tests of visuo-spatial/visuo-construction ability (overall, women, and African Americans) and learning/memory (women and African Americans), whereas a higher total thyroxine (tT4) level was associated with better performance in the domain of psychomotor speed (individuals without EDS) and higher levels of both fT4 and tT4 were linked to better language/verbal test performance among men. In contrast, higher T3(% uptake) was related to better performance on tests of visuo-spatial/visuo-construction ability and psychomotor speed among whites. When the above reference range was compared within the overall population and after Bonferroni correction, a within reference range fT4 was linked to better performance on visuo-spatial/visuo-constrution ability and psychomotor speed, whereas a below normal range TSH level (compared with the reference range) was linked to better performance in domains of psychomotor speed and attention.'] Are thyroid hormones associated with cognitive function : moderation by sex , race , and depressive symptoms?