Many ectotherms exhibit striking latitudinal gradients in lifespan. However, it is unclear whether lifespan gradients in distantly related taxa share a common mechanistic explanation. We compiled data on geographic variation in lifespan in ectotherms from around the globe to determine how much of this intraspecific variation in lifespan may be explained by temperature using the simple predictions of the metabolic theory of ecology. We found that the metabolic theory accurately predicts how lifespan varies with temperature within species in a wide range of ectotherms in both controlled laboratory experiments and free-living populations. After removing the effect of temperature, only a small fraction of species showed significant trends with latitude. There was, however, considerable residual intraspecific variation indicating that other, more local factors are likely to be important in determining lifespan within species. These findings suggest that, given predicted increases in global temperature, lifespan of ectotherms may be substantially shortened in the future.