Investors & landlords

If this was a "cashless" transaction then the purchase would be on your W-2  and the sale is on the 1099-B from the broker.  If it is done correctly, the broker will show the basis as the amount you have already been taxed on the W-2 form so the sale will show a loss of the cost of the broker's fee ... you MUST enter that 1099-B info on the return ... failure to do so will result in a nasty letter from the IRS later.