If you're buying and holding, it's not really an issue until it's time to sell. There are ways to mitigate your tax liability over a period of time, but if you try to unload all at once, depending on how much you're selling, it would be good to sell your losers in the same tax year to offset those gains.