A public plan for eradicating Salmonella in Danish table-egg production was implemented in 1996. During 2002, the poultry industry took over the responsibility of the programme. The proportion of infected layer flocks was reduced from 13·4% in 1998 to 0·4% in 2006. The public-health impact of the plan has been quite marked. In 1997, 55–65% of the 5015 cases of human salmonellosis were estimated to be associated with eggs. In 2006, these figures were reduced to 1658 and 5–7%, respectively. Based on an assessment of the number of human cases attributable to table eggs, we used probabilistic modelling to estimate the avoided societal costs (health care and lost labour), and compared these with the public costs of control. The probable avoided societal costs during 1998–2002 were estimated to be 23·3 million euros (95% CI 16·3–34·9), and the results showed a continuous decreasing cost–benefit ratio reaching well below 1 in 2002. Further reductions in the primary production based on effective surveillance and control are required to ensure continued success.