Skip to content

Personal Finance

Why Buying Back a Tax-Loss Fund in an IRA Can Permanently Erase the Deduction

Digilifetrends Published 4 min read
A middle-aged man sitting at a desk with his head in his hands, a smartphone lying face down on the desk
© demaerre / Getty Images

Imagine a 63-year-old retiree who sold a profitable stock position in a taxable brokerage account earlier in the year and realized a $40,000 long-term gain. In the middle of December, he sells a broad stock index fund that is sitting at an equivalent loss to offset that gain. A week later, he buys the same fund inside a rollover IRA, where he has parked the equities moved out of his 401(k), so he never actually leaves the market. What looks like a tax-saving move ends up turning the loss into a permanent write-off that disappears for good.

Why an IRA Buyback Can Destroy the Loss

The wash-sale rule in 26 U.S.C. § 1091(a)[1] prevents a loss deduction when substantially identical securities are purchased within the restricted window. That window begins 30 days before the sale date[1] and runs 30 days after it. Crossing a year boundary does not avoid the rule, so a December sale followed by a January repurchase can still qualify as a wash sale. The rule also applies across accounts you or your spouse control, including IRAs.

In a normal wash sale, the loss is not gone forever. IRS Publication 550 says the disallowed loss is added to the cost basis of the replacement shares, which “postpones the loss deduction until the disposition of the new stock or securities.”

An IRA purchase does not get that treatment. Publication 550 identifies buying substantially identical stock in an individual retirement arrangement (IRA) or Roth IRA as a separate trigger, but it removes that situation from the basis adjustment rules. Revenue Ruling 2008-5 confirms that the loss is disallowed and the basis in the IRA or Roth IRA is not increased[2]. As Fidelity puts it: “The disallowed loss is effectively forfeited, not deferred.” Selling the IRA shares later does not restore the loss, because IRA withdrawals are taxed as ordinary income regardless of the shares’ cost.

The ruling specifically refers to IRAs and Roth IRAs. Purchases inside a 401(k) are not covered by that wording, leaving some uncertainty, so a same-fund purchase in a 401(k) should be handled with caution as well.

This is one of those obscure IRS rules that can quietly cost real money without ever appearing as a penalty. It is one of several traps included in a free retiree tax guide worth reviewing before year-end.

A Tax Bill He Thought He Had Eliminated

Once the loss is disallowed, the full gain remains on the return. A single filer pays 15% on long-term capital gains once taxable income rises above $49,450, which means he would owe about $6,000 in federal tax that he intended to avoid.

Even if the loss cannot offset a gain, it still has value. Under 26 U.S.C. § 1211(b)[3], net capital losses can offset up to $3,000[3] of ordinary income each year, with any remaining amount carried forward. A loss of this size could have reduced ordinary income for years.

The Medicare Cost That Can Show Up Later

At 63, the tax consequences can also ripple into Medicare later on. Medicare’s income-related monthly adjustment amount, or IRMAA, uses modified adjusted gross income (MAGI) from two tax years earlier. That means the return filed before enrollment can determine premiums later, when he turns 65.

For example, if his MAGI is $95,000 before the gain, a successful tax-loss harvest keeps him below the single-filer IRMAA threshold of $109,000. If the gain stays on the books, his MAGI rises to $135,000, placing him in the first surcharge tier.

Under the current schedule, that tier adds $81.20 a month to Part B and $14.50 to Part D, or about $1,148 for the year. Future thresholds will be adjusted for inflation, so that amount should be viewed as an illustration that stacks on top of the federal tax bill.

Three Things to Check Before Harvesting a Loss

  1. Review every account within the full wash-sale window. Before selling, check your IRA, Roth IRA, 401(k), and your spouse’s accounts for purchases of the same fund during the prior 30 days. For the 30 days after the sale, disable dividend reinvestment and automatic purchases of that fund. A single reinvested dividend in an IRA can disallow the loss on those shares.
  2. Use a different fund or the taxable account for the replacement. If you want to stay invested, buy a fund tracking a different index right away. If you later want the original fund back, buy it in the brokerage account after the window closes. Inside an IRA, a matching purchase becomes safe on day 31.
  3. Compare your MAGI with the IRMAA thresholds before year-end. Anyone within a few thousand dollars of a tier can protect both this year’s tax bill and future Medicare premiums with a clean loss harvest. If a Roth conversion or a large IRA withdrawal is also planned, coordinating those moves can be especially valuable.

More from Digilifetrends