Can I use long-term capital loss carryover to reset index fund cost basis?
Trying to figure out if this strategy actually works the way I think it does. I have a long-term capital loss carryover from a bad 2022 position, still sitting on Schedule D. My S&P 500 index fund has been held for 4 years and is sitting on a large unrealized gain. The idea I keep reading about: sell the index fund to realize the gain, offset it with the carryover loss, then immediately buy back in at the new higher cost basis. No wash sale issue because I'm realizing a gain not a loss. My 1099-B from the broker shows the original low basis. Am I understanding the mechanics right? Is there anything on Form 8949 or Schedule D that would flag this or disallow it? I haven't pulled the trigger yet and want to make sure I'm not missing something obvious before I do.