The herd immunity threshold (HIT) is calculated using the basic reproductive number, denoted as R0. R0 represents the average number of secondary infections produced by a single infected individual in a completely susceptible population. The formula for calculating HIT is:
HIT = 1 - (1/R0)
This formula implies that the higher the R0, the greater the proportion of the population that needs to be immune to achieve herd immunity.