Social interactions play an extremely important role in maintaining health and well-being. The COVID-19 pandemic and associated physical distancing measures, however, restricted the number of people one could physically interact with on a regular basis. A large percentage of social interactions moved online, resulting in reports of "Zoom fatigue," or exhaustion from virtual interactions. These reports focused on how online communication differs from in-person communication, but it is possible that when in-person interactions are restricted, virtual interactions may benefit mental health overall. In a survey conducted near the beginning of the COVID-19 pandemic (N2020 = 230), we found that having a greater number of virtual interaction partners was associated with better mental health. This relationship was statistically mediated by decreased loneliness and increased perceptions of social support. We replicated these findings during the pandemic 1 year later (N2021 = 256) and found that these effects held even after controlling for the amount of time people spent interacting online. Convergent with previous literature on social interactions, these findings suggest that virtual interactions may benefit overall mental health, particularly during physical distancing and other circumstances where opportunities to interact in-person with different people are limited.Open Science Framework repository: https://osf.io/6jsr2/ .