IntroductionTestosterone might prevent kidney function decline, although evidence is limited in men and lacking in women from the general population. We investigated the association between serum testosterone and kidney function in men and women from a large population-based cohort study.MethodsParticipants aged ≥45 years with available measurements of serum testosterone, sex hormone-binding globulin (SHBG), creatinine, and cystatine C were included. Assessments of kidney function included baseline assessments of the estimated glomerular filtration rate (eGFR) based on serum creatinine (eGFRcreat) or serum cystatin C (eGFRcys), and the urine albumin-to-creatinine ratio (ACR), and repeated assessments of eGFRcreat. Linear regression and linear mixed models were used to assess the associations of serum free and total testosterone with kidney function, stratified for sex.ResultsA total of 4095 men and 5389 women (mean age 65.2 years) were included. In men, higher free testosterone was associated with lower eGFRcreat (beta −0.63, 95% confidence interval [CI]: −1.05; −0.21), higher eGFRcys (beta 0.56, 95% CI: 0.07; 1.05), and lower ACR (beta −0.25, 95% CI: −0.35; −0.16) at baseline. Higher total testosterone was associated with higher baseline and follow-up eGFRcreat, and with lower eGFRcreat when additionally adjusted for SHBG. In women, higher free testosterone was associated with lower baseline eGFRcreat and eGFRcys (beta −1.03, 95% CI: −1.36; −0.71; beta −1.07, 95% CI: −1.44; −0.70; respectively) and lower eGFRcreat over time (beta −0.78, 95% CI: −1.10; −0.46), but not with ACR.ConclusionseGFRcys might be a better parameter than eGFRcreat for the association of testosterone with kidney function, although further studies investigating this are needed. Furthermore, we identified sex differences in the association between testosterone and kidney function, with a positive association in men and a negative association in women.