Restrictive means to reduce the spread of the COVID-19 pandemic have not only imposed broad challenges on mental health but might also affect cognitive health. Here we asked how restriction-related changes influence cognitive performance and how age, perceived loneliness, depressiveness and affectedness by restrictions contribute to these effects. 51 Germans completed three assessments of an online based study during the first lockdown in Germany (April 2020), a month later, and during the beginning of the second lockdown (November 2020). Participants completed nine online cognitive tasks of the MyBrainTraining and online questionnaires about their perceived strain and impact on lifestyle factors by the situation (affectedness), perceived loneliness, depressiveness as well as subjective cognitive performance. The results suggested a possible negative impact of depressiveness and affectedness on objective cognitive performance within the course of the lockdown. The younger the participants, the more pronounced these effects were. Loneliness and depressiveness moreover contributed to a worse evaluation of subjective cognition. In addition, especially younger individuals reported increased distress. As important educational and social input has partly been scarce during this pandemic and mental health problems have increased, future research should also assess cognitive long-term consequences