How to sell a fund at a gain to use capital losses and rebuy immediately — wash sale?
Trying to figure out if the wash sale rules apply when I'm selling at a GAIN to harvest losses elsewhere. Here's my situation: I have about 20k in unrealized losses in some individual stocks I want to realize this year. But I also have a mutual fund sitting at a big gain. My plan was to sell the fund at the gain (to absorb those losses via Schedule D), then immediately rebuy the same fund so I stay invested. Someone told me this triggers a wash sale but that doesn't feel right to me — I thought wash sales only matter when you sell at a loss. Can someone confirm whether the wash sale rules even apply here, or am I misreading Publication 550? I don't want to mess up my 1099-B reporting on Form 8949.