Can I sell a mutual fund at a loss and move the money without capital gains?

Trying to figure out if I can sell a mutual fund at a loss and move without capital gains being an issue. My situation: I have a taxable brokerage account where one of my mutual funds is sitting at a pretty significant unrealized loss right now. I want to get out of it and shift the money into a different fund in the same account. I'm worried that even though I'm selling at a loss, something about the "move" part triggers a gain somewhere I'm not thinking of. I already checked my 1099-B from last year and I know what cost basis reporting looks like, but this is my first time intentionally harvesting a loss. Is there anything that could block the loss or make this taxable in a way I'm not expecting?

31 comments

Selling at a loss doesn't create a capital gain — only a capital loss. The proceeds go on Form 8949, the loss flows to Schedule D, and if your losses exceed your gains for the year the net loss can offset other income up to a cap, with any remainder carrying forward. The move itself — just putting cash into a different fund — is a purchase, not a taxable event. What CAN block your loss is the wash sale rule.

Kevin N.

Author

That's the thing I was vaguely worried about. Can you say more about what exactly triggers the wash sale issue here?

The wash sale rule is the whole thing to watch. If you sell the fund at a loss and then buy a "substantially identical" fund within 30 days before or after that sale, the loss is disallowed. Your 1099-B box 1g will show the disallowed amount if the broker catches it, but you can't take the deduction even if the box is blank — the rule applies regardless.

Kevin N.

Author

So if I move from fund A to a clearly different fund — different asset class, different manager — I should be fine?

Correct. Different asset class or meaningfully different index usually avoids the substantially identical problem. Two S&P 500 index funds from different providers is where it gets murky. A large-cap blend to a total market fund is typically fine but there's no bright-line IRS definition, so the more different the better.

Worth being precise: the 30-day window goes 30 days BEFORE the sale too, not just after. So if you bought more shares of that same fund recently, those purchases might have already started the clock. Check your transaction history going back a month before you sell.

Came here to say this. I forgot about the before window once and had a loss disallowed that I was counting on. Stings when you see it on the 1099-B in January.

Had a similar tax-loss harvest situation last fall. I uploaded my brokerage statements to taxr.ai and it flagged two purchases I had forgotten about — both within the 30-day before window — and listed exactly which lots would be affected. That saved me from reporting a loss I couldn't actually take. On the reporting side: disallowed wash sale losses go on Form 8949 with code W in column (f) and the disallowed amount as a positive number in column (g). The loss is added to the cost basis of the replacement shares, so it's not gone forever, just deferred.

Kevin N.

Author

The basis carryover piece is reassuring. So I'm not losing the loss permanently, it just moves to the new shares.

Exactly. The disallowed loss gets added to the cost basis of the new shares, and the holding period of the old shares carries into the new ones too. So when you eventually sell those replacement shares, the deferred loss is baked into a lower gain or higher loss at that point.

Moving within a taxable account is not special in any way — every sell is a taxable event and every buy is a new lot. The "move" doesn't get tax-free treatment just because you're reinvesting. The only place you can move money between funds without any tax event at all is inside a tax-advantaged account like an IRA.

Kevin N.

Author

Yeah I figured IRAs were different. This is definitely a regular taxable brokerage account so I know the sell is a real event.

One thing that helped me sort out my own loss harvest last year — I had Taxr read through all my lot-level data and check the wash sale window for each one. It cross-referenced the purchase and sale dates and flagged the lots that were clean versus the ones that were risky. Useful when you have a lot of reinvested dividends creating small purchases throughout the year that you don't even think about. Those dividend reinvestments count as purchases for the wash sale window too.

Kevin N.

Author

Oh that's a really good point about dividend reinvestments. I do have automatic reinvestment turned on. So those small purchases could disallow part of the loss?

Yes, they can. Each dividend reinvestment is a purchase. If one lands in the 30 days after your sale date and it bought shares of the same fund, that reinvestment triggers a wash sale on the corresponding number of shares sold. A lot of people turn off auto-reinvestment for the fund they plan to sell, at least for the 30-day window around the sale.

Holding period matters for how the loss is categorized. Short-term losses (held one year or less) offset short-term gains first, long-term losses offset long-term gains first. The day count starts the day after you acquired each lot and the trade date — not settlement date — is what counts for securities on an exchange.

To report it: short-term lots go in Part I of Form 8949, long-term in Part II. If your 1099-B shows basis reported to the IRS and there are no adjustments needed, those lots can actually bypass Form 8949 and go straight to Schedule D line 1a or 8a under Exception 1. But if there's a wash sale adjustment or any other code, they have to go through Form 8949.

Kevin N.

Author

My brokerage does report basis so I might qualify for that shortcut on the clean lots. Good to know the wash sale ones would need the full Form 8949 treatment.

I want to flag something that could come up: if your mutual fund distributed capital gains to you earlier this year, those are separate from your loss on the sale. The fund can pay out a capital gain distribution even when the NAV has dropped, which is a thing mutual funds do. That gain distribution goes on Schedule D regardless of whether you sell.

Kevin N.

Author

Ugh, I think I actually got a small distribution in December. So that would be a gain on my 1099-DIV even though I'm selling at a loss?

Yes, box 2a on the 1099-DIV is long-term capital gain distributions from the fund. That's a gain on your return even if the fund lost value for you personally. The loss you realize when you sell is a separate item. They can net against each other on Schedule D but they come from different boxes on different forms.

If your net capital losses for the year exceed your gains, the amount you can deduct against ordinary income is capped. Anything above that cap carries forward to future years — it doesn't disappear. The carryforward keeps its character (short-term stays short-term, long-term stays long-term). The Schedule D instructions have the Capital Loss Carryover Worksheet.

Switching funds inside the same account family doesn't change any of this. Some people think fund company exchanges are treated differently. They're not — it's still a sell and a buy in a taxable account.

Learned this the hard way with an exchange I did in year two of investing. The fund company processed it as a redemption and I got a 1099-B I wasn't expecting at all.

The loss is not gone even if it's partially disallowed by wash sale. You end up with a higher basis in the new fund. When you eventually sell the replacement shares, that deferred loss reduces your gain. If you sell the replacement shares in another wash sale, the loss just gets deferred again into the next replacement shares. The only scenario where you permanently lose the loss is a wash sale into an IRA. The IRS says the disallowed loss isn't added to your basis when the IRA buys the shares, because there's no basis tracking inside the IRA.

Kevin N.

Author

I don't have an IRA involved here so that last part doesn't apply, but good to know. My replacement fund will be in the same taxable account.

For Publication 550 at irs.gov there's a full chapter on wash sales that walks through the substantially identical question and the basis adjustment rule. Worth reading before you execute the trade if you haven't already. The IRS also has Topic 409 for general capital gain and loss treatment.

Practically speaking: decide what replacement fund you want BEFORE you sell, turn off dividend reinvestment on the fund you're selling a few days before the sale, sell, then wait 31 days before buying the replacement if there's any chance it's substantially identical. If it's clearly a different fund you can buy the same day.

Kevin N.

Author

This is the clearest action plan in this thread. 31 days if there's similarity risk, same day if it's clearly different. And turn off the DRIP first.

Right. The 31-day wait is just 30 days plus one to be clearly outside the window. Some people wait 32 to be safe about how they count. The IRS counts the day of the sale itself as day zero, so day 31 after the sale date is clean.

Coming back to the original question: no, there's no capital gain from selling at a loss and reinvesting. The only risk is the wash sale rule blocking the loss. If you stay out of substantially identical securities for the 30-day windows on both sides and watch your dividend reinvestments, the loss should be fully reportable on Form 8949 and Schedule D.