An Employee Stock Purchase Plan (ESPP) lets eligible employees buy company stock at a discount, typically 15% below the market price, through payroll deductions. For US expats, the discount or bargain element is generally ordinary income at the time of purchase, and that income must be reported on your US return regardless of where you live. If you qualify for the Foreign Earned Income Exclusion and the ESPP income is treated as compensation for services performed abroad, the exclusion may reduce the US income tax owed. Any foreign income tax your employer's country withholds on the ESPP benefit can be credited via the Foreign Tax Credit on Form 1116. When you sell the shares, the gain above the amount already taxed as ordinary income is a capital gain, and whether it is a qualifying or disqualifying disposition under Section 423 affects how much ordinary income you recognize at sale versus at the time of purchase.