The dopaminergic neurotransmitter system of the brain is involved in working memory and other cognitive functions. Studies suggest an important role for dopamine synthesis and uptake in modulation of human cognitive processes. We studied the association between polymorphisms in the catechol-o-methyl transferase (COMT) and dopamine receptor D2 (DRD2) genes and general cognitive ability in a secondary analysis of 2091 men and women, aged 55-80 years living in Scotland. General cognitive ability 'g' was derived from five cognitive tests of different domains. COMT was not associated with cognitive ability in this population. The DRD2 C:C genotype of rs6277 was associated with decreased general cognitive ability 'g' (p = 0.003), and DRD2 rs1800497 heterozygotes had lowest mean general cognitive ability 'g' (p = 0.007). There was an indication of a potential interaction between the DRD2 SNPs.