Example: if I bought stock at $1k and went up in value to $2k. If I were to sell the stock and purchase a new stock within my same stock brokerage, would I still need to pay taxes on the $1k stock gains even though I didn’t cash out and withdrew the funds to my own personal bank account?