Do I pay capital gains tax if I only sell my original investment amount?
Trying to figure out if I owe capital gains tax if I only sell my original investment amount and keep the gains invested. Like say I put $5k into a fund, it grew to $8k, and I pull out exactly $5k. Do I still owe tax on part of that? My broker sent a 1099-B and the proceeds show $5,000 but my cost basis is way less per share since I've been reinvesting dividends over the years. I tried looking at the 1099-B but honestly the numbers aren't matching what I expected. Already spent an hour on this and still confused about whether the IRS looks at the dollar amount I withdraw or the actual shares I sold.