Offer your insights or judgment on the input financial query or topic using your financial expertise. Reply as normal question answering

Do I have to pay a capital gains tax if I rebuy different stocks?
Yes- you do not realize gains or losses until you actually sell the stock.  After you sell the initial stocks/bonds you have realized the gain.  When you buy the new, different stocks you haven't realized anything until you then sell those. There is one exception to this, called the "Wash-Sale Rule".  From Investopedia.com: With the wash-sale rule, the IRS disallows a loss deduction from the   sale of a security if a ‘substantially identical security' was purchased within 30 days before or after the sale.  The   wash-sale period is actually 61 days, consisting of the 30 days before   and the 30 days after the date of the sale. For example, if you bought   100 shares of IBM on December 1 and then sold 100 shares of IBM on   December 15 at a loss, the loss deduction would not be allowed.   Similarly, selling IBM on December 15 and then buying it back on   January 10 of the following year does not permit a deduction. The   wash-sale rule is designed to prevent investors from making trades for   the sole purpose of avoiding taxes.