Based on your financial expertise, provide your response or viewpoint on the given financial question or topic. The response format is open.

Do I have to pay a capital gains tax if I rebuy different stocks?
Yes. As long as the stock is in a taxable account (i.e. not a tax deferred retirement account) you'll pay gain on the profit regardless of subsequent purchases.  If the sale is a loss, however, you'll risk delaying the claim for the loss if you repurchase identical shares within 30 days of that sale. This is called a wash sale.