Intra-species cognitive variation is commonly observed, but explanations for why individuals within a species differ in cognition are still understudied and not yet clear. Cognitive processes are likely influenced by genetic differences, with genes in the monoaminergic systems predicted to be important. To explore the potential role of these genes in association with individual variation in cognition, we exposed red junglefowl (Gallus gallus) chicks to behavioural assays measuring variation in learning (discriminative learning, reversal learning, and cognitive flexibility) and optimism (measured in a cognitive judgement bias test). Following this, we analysed prefrontal cortex gene expression of several dopaminergic and serotonergic genes in these chicks. Of our explored genes, serotonin receptor genes 5HT2A and 5HT2B, and dopaminergic receptor gene DRD1 were associated with measured behaviour. Chicks that had higher 5HT2A were less flexible in the reversal learning task, and chicks with higher 5HT2B also tended to be less cognitively flexible. Additionally, chicks with higher DRD1 were more optimistic, whilst chicks with higher 5HT2A tended to be less optimistic. These results suggest that the serotonergic and dopaminergic systems are linked to observed cognitive variation, and, thus, individual differences in cognition can be partially explained by variation in brain gene expression.