Life expectancy is calculated using life tables, which provide age-specific mortality rates. These tables track the probability of dying at various ages and allow epidemiologists to estimate the average lifespan of a population. The calculations often involve sophisticated statistical models to account for factors such as health disparities and interventions.