We study the long-term impact of climate change on economic activity across countries, using a stochastic growth model where productivity is affected by deviations of temperature and precipitation from their long-term moving average historical norms. Using a panel data set of 174 countries over the years 1960 to 2014, we find that per-capita real output growth is adversely affected by persistent changes in the temperature above or below its historical norm, but we do not obtain any statistically significant effects for changes in precipitation. We also show that the marginal effects of temperature shocks vary across climates and income groups. Our counterfactual analysis suggests that a persistent increase in average global temperature by 0.04 °C per year, in the absence of mitigation policies, reduces world real GDP per capita by more than 7 percent by 2100. On the other hand, abiding by the Paris Agreement goals, thereby limiting the temperature increase to 0.01 °C per annum, reduces the loss substantially to about 1 percent. These effects vary significantly across countries depending on the pace of temperature increases and variability of climate conditions. The estimated losses would increase to 13 percent globally if country-specific variability of climate conditions were to rise commensurate with annual temperature increases of 0.04 °C.