Mutual Fund Switch: Capital Gains, Wash Sale, and NIIT Rules

Switching from one mutual fund to another in a taxable brokerage account is treated by the IRS as a sale of the old fund and a purchase of the new one, so any gain on the sold shares is taxable in the year of the switch. The rate depends on how long you owned the original shares: gains on shares held more than a year qualify for long-term capital gains rates of 0%, 15%, or 20%, while shares held a year or less are taxed at your ordinary income rate. The mutual fund switch tax implications discussed here apply only to taxable accounts. Switches inside a traditional IRA, Roth IRA, 401(k), or similar tax-advantaged account generate no immediate tax at all.

Why a Fund Switch Is a Taxable Sale

Your brokerage may process the trade as a single “exchange,” but the IRS sees two events: a sale of the old fund shares and a purchase of new ones. The sale is the taxable half. If the proceeds exceed your cost basis, you have a capital gain. If they fall short, you have a capital loss. The purchase starts a fresh holding period and a new basis for the replacement fund.

This holds even when you use a fund family’s exchange privilege to move between two of its own funds. The one-click convenience does not change the tax treatment. Your brokerage reports the sale on Form 1099-B, and you report the gain or loss on Form 8949 and Schedule D of Form 1040.1Internal Revenue Service. Instructions for Form 8949 (2025)

How Long You Held the Shares Sets the Rate

Holding period is the single biggest factor in what you owe. Federal law draws a bright line at one year: more than a year is long-term, a year or less is short-term.2Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses

Short-Term Gains

Short-term gains are taxed as ordinary income, which for 2026 runs from 10% to 37% depending on your taxable income and filing status.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Switching a few months after buying often means paying the highest possible rate on the gain, and it is the most common expensive surprise in a fund switch.

Long-Term Gains

Long-term gains get preferential rates of 0%, 15%, or 20% based on taxable income. For 2026:

  • 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household)
  • 15% rate: from those thresholds up to $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household)
  • 20% rate: above those upper thresholds

Most investors land in the 15% bracket. If you can wait until your shares cross the one-year mark before switching, the rate difference is often substantial.

Calculating Your Cost Basis

Your basis is what you paid for the shares, including any dividends and capital gain distributions you reinvested along the way. The gain equals sale proceeds minus basis, so getting the number right matters. Brokerages track basis for “covered” securities (generally acquired after 2012), but you are ultimately responsible for what appears on your return.

Three methods apply when you sell some but not all of your shares:

  • First-in, first-out (FIFO) treats your oldest shares as sold first. It’s the default at most brokerages and often produces the largest gain, because the oldest shares usually carry the lowest basis.
  • Specific identification lets you designate which lots to sell, giving you the most control. You have to identify the lots before settlement and get brokerage confirmation.
  • Average cost pools all shares in the fund into a single per-share basis. It’s available for mutual fund shares and simplifies recordkeeping if you’ve made many purchases through automatic investing or reinvestment.4Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses

Specific identification pays off when you hold lots at very different prices. If you bought shares at $30 five years ago and more at $50 last year, selling the $50 lot first produces a much smaller gain, or even a loss, compared with letting FIFO grab the $30 shares.

If the Switch Produces a Loss: Watch the Wash Sale Rule

Losses on a switch can generally offset other capital gains, and up to $3,000 of excess loss ($1,500 if married filing separately) can be deducted against ordinary income, with any remainder carried forward indefinitely.5Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses But the wash sale rule can disqualify the deduction. Under Section 1091, you cannot claim a loss if you buy a “substantially identical” security within 30 days before or 30 days after the sale.6Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities Counting the sale date itself, that’s a 61-day window.

The classic trap: selling one S&P 500 index fund at a loss and buying another company’s S&P 500 index fund. Both track the same index and hold essentially the same stocks, so the IRS will almost certainly treat the replacement as substantially identical. The loss is disallowed. It isn’t lost forever; the disallowed amount gets added to the new shares’ basis. But you cannot use it on this year’s return.

Reinvested Dividends Can Trip the Rule

Automatic dividend reinvestment counts as a purchase. If you sell fund shares at a loss and a reinvested dividend hits within the 61-day window, part of the loss gets disallowed, even a $50 reinvestment against a much larger loss. Before executing a loss-generating switch, turn off dividend reinvestment on the fund you’re selling and check whether any reinvestment occurred in the prior 30 days.

Reporting Across Accounts

Your brokerage flags wash sales on Form 1099-B when the sale and repurchase happen in the same account and involve the same CUSIP.4Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses It cannot track them across different brokerages or between funds that are substantially identical but carry different CUSIPs. If you hold similar index funds at two firms, you have to identify and adjust for wash sales yourself on Form 8949.

The 3.8% Net Investment Income Tax

Higher earners face an extra layer. The Net Investment Income Tax adds 3.8% on top of the regular capital gains rate once your modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately).7Internal Revenue Service. Topic No. 559, Net Investment Income Tax Capital gains from mutual fund sales are explicitly included.8Internal Revenue Service. Instructions for Form 8960

The tax applies to the smaller of your net investment income or the amount by which your MAGI exceeds the threshold. A married-filing-jointly household with $280,000 MAGI and $40,000 of net investment income owes 3.8% on $30,000, not on the full $40,000. These thresholds are not indexed for inflation, so a large switch that pushes income above the line can trigger the surcharge unexpectedly.

Do You Need to Make an Estimated Payment?

If the switch produces a big gain, waiting until April to pay can trigger an underpayment penalty. The IRS expects quarterly estimated payments when you’ll owe at least $1,000 beyond withholding.9Taxpayer Advocate Service. Making Estimated Tax Payments You can avoid penalties by paying at least the smaller of 90% of the current year’s tax or 100% of the prior year’s tax. If your prior-year AGI exceeded $150,000 ($75,000 married filing separately), the safe harbor rises to 110% of the prior year’s tax.

For 2026, estimated payments are due April 15, June 15, September 15, and January 15, 2027. If a gain lands late in the year, the annualized income installment method lets you concentrate the payment in the quarter when the gain actually occurred rather than spreading it evenly across all four periods.

State Taxes Add to the Bill

Most states also tax capital gains, and rates vary. Nine states impose no income tax on investment gains; others tax them at rates up to 13.3%. Many states do not offer a preferential long-term rate the way the federal government does and instead tax all capital gains as ordinary income. In a high-tax state, the combined federal-plus-state rate on a short-term gain can top 50%.

Timing Around Fund Distributions

Switching close to a dividend or capital gain distribution creates its own problem. If you hold the old fund on its ex-dividend date, you receive the distribution and owe tax on it even though you’re about to sell. The distribution also lowers the fund’s net asset value by the payout amount, which increases your loss or reduces your gain on the sale, but the distribution is still taxed separately.

Qualified dividends get long-term rates only if you held the shares at least 61 days during the 121-day period around the ex-dividend date. Switching too quickly reclassifies otherwise-qualified dividends as ordinary income. Check the fund’s upcoming distribution schedule before you place the order.

Inherited or Gifted Shares

If the shares you’re switching were inherited, your basis is generally the fair market value on the date of the decedent’s death, not what they originally paid.10Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent This stepped-up basis often wipes out most of the built-in gain, so a switch shortly after inheriting may produce little or no tax.

Gifted shares work differently. Your basis is generally the donor’s original basis, so you can inherit decades of unrealized gain. One wrinkle: if the shares were worth less than the donor’s basis on the gift date and you sell at a loss, your basis for calculating the loss is the lower fair market value on the gift date, not the donor’s higher basis. Sell for a price between the donor’s basis and the gift-date value, and you recognize neither a gain nor a loss.11Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust

Reporting the Switch on Your Return

Your brokerage sends Form 1099-B by February 15 of the following year, showing your sale proceeds and, for covered securities, your cost basis.12Internal Revenue Service. Publication 1099 General Instructions for Certain Information Returns You use it to complete Form 8949, which flows to Schedule D of Form 1040.13Internal Revenue Service. 2025 Instructions for Schedule D (Form 1040)

Keep your own records of every purchase lot, including reinvested dividends. Brokerage basis records can be wrong, especially after fund mergers, corporate actions, or transfers between firms. Retain trade confirmations for both sides of every switch. If you used specific identification, save the confirmation showing which lots you designated.