Exit tax

An exit tax is a tax on persons who cease to be tax-resident in a country. It is usually a form of capital gains tax against unrealized gains.

Exit tax can get triggered by a change of domicile, tax residence, loss of a country's right to tax the gains, transfer of assets to a non-resident. In the United States, the tax is formally called expatriation tax and is levied upon abandoning American citizenship or green card by long-term residents.