This study examined the influence of a variation in the KLOTHO gene on cognitive ability at age 11 and age 79 in 464 people from the Lothian Birth Cohort 1921 (LBC1921), and at age 11 and age 64 in 451 people in the Aberdeen Birth Cohort 1936 (ABC1936). In the LBC1921, people with the KLOTHO V/V genotype had lower verbal reasoning ability at age 11 and age 79, and lower non-verbal reasoning at age 79, than those with the F/F genotype, or heterozygotes. The effect of the KLOTHO polymorphism on cognition at age 79 was non-significant when adjusted for IQ at age 11. In this sample, KLOTHO V allele status accounts for about 2% of the variance in life-long traits related to verbal and non-verbal reasoning, but not to age-related cognitive change. These results were not replicated in the ABC1936 sample. In a combined analysis of the LBC1921 and the ABC1936 cohorts there was a significant KLOTHOxsex interaction: women with the V/V genotype had lower non-verbal reasoning scores at age 79, after adjustment for cognitive ability at age 11. Variation in the KLOTHO gene is a possible contributor to life-long reasoning differences in humans and/or to the ageing of non-verbal reasoning, especially in women.