When you enter your ESPP stock sales, you should adjust your cost basis by the amount that your employer added as ordinary income on your W-2 in the year you acquired the stock.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"