Investors & landlords

Welcome to the world of taxes.  It's "as if" you got paid entirely in cash and then decided to take some of the money and buy another stock.  Your basis in the stock is the fair market value when you received it and your holding period starts then too.