The increasing prevalence of age-related cognitive decline highlights the importance of physical activity for cognitive health. Regular exercise has been associated with improved mental health and reduced risk of cognitive decline. This study investigated the connection between self-reported physical activity and cognitive function in middle-aged adults. This cross-sectional study included 56 Indian adults aged 30-55, selected based on a health screening questionnaire. Participants reported their physical activity using the International Physical Activity Questionnaire-Short Form (IPAQ-SF), which categorized them into low, moderate, and high activity levels. Cognitive functions, including visual memory, executive function, and attention, were assessed using the Cambridge Neuropsychological Automated Testing Battery (CANTAB). Results were statistically analyzed for relationships between cognitive domains and physical activity parameters using Pearson's correlation and linear regression analysis. The study showed a significant positive correlation of attention with moderate and vigorous physical activity, while sedentary behavior negatively impacted attention. Linear regression showed that attention is affected by moderate-intensity activity whereas executive function and visual memory are affected by age. This study supports the view that moderate and vigorous intensity activities may positively affect attention in middle-aged adults highlighting the benefits of physical activity.