Population densities often vary in space or time, and this can influence parasite transmission. Using data-driven models of virus transmission in a fluctuating population, we found that the way in which the transmission–density function is modelled can have important consequences for estimating invasion and persistence success.