The recent outbreak of a novel coronavirus pneumonia (COVID-19) may have acute psychological consequences, both in relation to the impact of the virus itself and the restrictions imposed to tackle its spread. We conducted an online survey of 403 residents in Guangzhou, China. We found the prevalence of anxiety (defined as Generalized Anxiety Disorder–7 score ≥5) was 37.7%, and anxiety was significantly and moderately correlated with worry about COVID-19. Higher anxiety levels in community residents was associated with the presence of individuals with COVID-19 in the same building; a longer time spent each day gathering information about the virus; and choosing social media as their preferred source of information. Our findings provide an insight into the psychological support and guidance about information sources that are required in this type of public health emergency.