Background: A growing body of research has linked personality traits to cognitive performance. This relationship might play a role in the predisposition toward obesity. Neuroticism and executive function seem to be particularly involved, and reduced executive function has been proposed to underlie the association of neuroticism with sedentary behaviors and fatty food consumption. Despite the link between neuroticism, cognitive functions and obesity has been largely reported, conflicting evidence exists. Moreover, information regarding other cognitive domains, and studies on overweight individuals, are still scarce. Methods: We examined cross-sectional associations of neuroticism and cognitive function with overweight and obesity in a sample of 170 310 individuals from the UK Biobank cohort, adjusted for sociodemographic and life-style factors. Measures on fluid intelligence (FI) (reasoning ability), trail making test (TMT) (executive function), numeric memory test and pairs matching (PM) task (short-term memory) were extracted from the database. Correlations between neuroticism and cognitive performance were explored. Moreover, we investigated whether neuroticism and executive function could predict BMI variability over time. Results: Reduced FI and short-term memory were associated with overweight and obesity, while reduced executive function was associated with obesity but not with overweight. Low neuroticism was associated with being overweight rather than lean or obese independently of gender and life-style. Furthermore, baseline neuroticism scores could predict BMI variations over 5-10 years follow-up, and high neuroticism correlated with lower cognitive performance. Conclusions: Lower cognitive performance is associated with both overweight and obesity, except for executive function, which was only related to obesity. Neuroticism correlated with performance on most of the cognitive domains tested, supporting the link between personality and cognition. Our findings also support the role of neuroticism in leading to greater weight variability over time, rather than to overweight/obesity itself.