Investors & landlords

You need to report the sale.  There's no "rollover" aspect in play here.  You sell a security, you have a gain or loss, you report the gain or loss on your income tax return.  Why you sold or what you did with the proceeds is entirely irrelevant.