Capital gains are a good thing. Unexpected tax bills are not. But the reality is that capital gains taxes are part of the normal (albeit unwelcome) 'price of admission' for investing. Specifically, it's the price of successful
investing. Only those who successfully realize capital gains pay taxes on their success. In other words, it's a good problem to have.