Can I sell and rebuy same ETF same day for 0% capital gains?
So I've been sitting on some long-term ETF shares with big gains and I noticed my income this year is low enough that I might fall into the 0% long-term capital gains bracket. Someone told me I can sell and immediately rebuy the same ETF on the same day to "step up" my cost basis without paying any tax on the gain, since the rate would be 0%. I tried reading about this and couldn't find anything that said it was illegal, but I also couldn't find anything confirming it works. My broker lets me do it in one click basically. Is this actually allowed? Does the wash sale rule kill it? Or does something else go wrong? I want to make sure before I pull the trigger because the gains are pretty significant and I don't want an unexpected tax bill.