Investors & landlords

your basis in the stock (assuming you sold all 30K shares) is the income included on your W-2 for the exercise + the cash you paid.  your gain is the difference between what you sold it for and the basis as described above.