Anytime you sell a stock that gain/loss has to be reported. Doesn't matter if you reinvest it into another stock. Once you close a position it is a gain or a loss. Even if you reinvest a divy which is called a DRIP (dividend reinvestment program) you still have to report the divy and pay taxes.
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.