The tax treatment of stock options exercised while living abroad depends on whether they are incentive stock options (ISOs) or non-qualified stock options (NQSOs). NQSOs create ordinary income at exercise equal to the spread between the strike price and fair market value, and that income is allocated between countries based on the portion of the option's vesting period spent working in each country. If part of the option vested while you were in a foreign country and you paid foreign income tax on that portion, you can claim the Foreign Tax Credit to offset the corresponding US tax. ISOs do not create regular income tax at exercise, but the spread is an AMT preference item, and the same country allocation rules apply if you have an AMT liability. Once you sell the shares, the gain from the exercise price to the sale price (for ISOs) or from the fair market value at exercise to the sale price (for NQSOs) is a capital gain, and because the shares are priced in US dollars, the currency gain rules do not add complexity here.