Herd immunity halts transmission after a point. The flu is between 33% and 44%. Covid-19 has some wide estimates for the threshold, between 29% and 74% according to the two studies referenced here: https://en.wikipedia.org/wiki/Herd_immunity#Mechanics