The effects on agents’ welfare of two different policies dealing with undocumented immigrants, amnesties and deportations, are assessed. I develop a two-period overlapping generations model which accounts for the ex-ante production by undocumented workers and their impact on the government budget. Additional channels, such as the discrimination on the labor market and a different productivity of regularized workers are discussed. The impact of a migration policy depends on the wage effects of the legalized/deported workers and their net fiscal contribution. The calibration of the model for the United States in 2014 allows to disentangle the channels at work. Overall, the impact of the two policies on natives’ welfare is limited (between −0.1% and +0.15%). Retired agents benefit from an amnesty and are harmed by a deportation. The effect on workers is ambiguous and depends on the wage and fiscal effects in addition to the change in the returns on savings.