Question: do you have to pay taxes if you don't sell a stock?
Answer: If you don't sell a stock, you don't pay tax on the value of the stock itself, just on any dividends. If you own the stock as part of a “traditional” IRA or 401k or some other tax-deferred fund, then you don't pay tax on either capital gains or dividends until you withdraw money from the fund.