The impacts of anthropogenic land use and land cover (LULC) changes on the spatiotemporal distribution of precipitation in megacities have been highlighted in studies on urban climate change. In this study, we conducted a quantitative analysis of urban growth on the impact on precipitation in Shanghai, China. We considered four periods of LULC data in 1979, 1990, 2000 and 2010, in addition to the long-term (1979–2010) trend of daily precipitation. The results indicate that the trend in precipitation exhibit different characteristics for urban (Ur), outskirt of urban (OUr) and outer suburb (OS) regions. Most Ur regions had an upward trend in annual and extreme precipitation during 1979–2010, while annual precipitation for the OUr and OS regions exhibited a decreasing trend. From 1979 to 2010, the areas of fastest expansion were located in the OUr region. The OS region, far away from the central area, had a relatively lower rate of change. In addition, OUr regions with rapid LULC changes exhibited higher increasing trends in annual and daily extreme precipitation, which is critical for the identification of frequent precipitation areas and the reliable projection of further changes.