Does selling and rebuying stock to raise cost basis trigger wash sales?
Trying to figure out if what I'm doing causes a wash sale problem. I have shares of a tech ETF I bought years ago at a low price. No loss — the position is sitting at a gain. My plan was to sell the shares, pay tax on the gain, then immediately rebuy to step up my cost basis so future gains are smaller. My broker's platform flagged the repurchase with a wash sale warning and now I'm second-guessing everything. I read that wash sales only apply to losses, but the warning spooked me. Is this actually a wash sale if I'm selling at a gain? And does the rebuy change anything about my holding period on the new shares?