Thirty Days and a Spouse: The Repurchase Rules That Erase a Harvested Loss
Photo: tax documents calculator year end investment paperwork, via assets.nintendo.com
December is the season of loss harvesting. Portfolios are reviewed, losing positions are sold, and the resulting capital losses are counted against gains elsewhere. It is one of the few tax moves available to ordinary investors without a lobbyist.
It is also one of the easiest to undo. A single repurchase — in the wrong account, at the wrong moment — can disallow the loss entirely, and in some cases the tax benefit is not deferred but destroyed. What follows is a practical walk through the rule and a calendar-based method for staying clear of it. It is general information, not tax advice; individual circumstances vary and a qualified tax professional should review any harvesting plan.
The Rule in One Paragraph
Under Internal Revenue Code Section 1091, a loss from the sale of stock or securities is disallowed if, within 30 days before or after the sale, the taxpayer acquires substantially identical stock or securities, or enters into a contract or option to acquire them. The disallowed loss is not lost forever in the ordinary case — it is added to the cost basis of the replacement shares, deferring the benefit until those shares are sold. The window runs 30 days before and 30 days after the sale, so the full period to monitor is 61 days.
Three words carry most of the weight: substantially identical. The IRS has never issued a bright-line definition. The same company's common stock bought twice is clearly identical. Different share classes, convertible bonds, options, and exchange-traded funds tracking the same index sit in grayer territory. The conservative approach is to treat anything economically equivalent as suspect and to document the reasoning.
The Accounts People Forget
The rule follows the taxpayer, not the account label. A repurchase inside a taxable brokerage account is the obvious case. The less obvious cases are where most errors occur.
- A spouse's account. Practitioners generally treat a purchase by a spouse as attributable to the taxpayer for wash-sale purposes, and the conservative reading is to include every account in the household.
- An IRA. A repurchase inside a traditional or Roth IRA can trigger the rule. This is the subject of the next section, because the consequence is different.
- A 401(k) or other workplace plan. The IRS has not issued definitive guidance applying Section 1091 to plan purchases. Many practitioners nonetheless treat a plan repurchase as a risk, and the prudent course is to pause automatic plan purchases of the security during the window.
- A health savings account. Also a gray area, and also best treated conservatively.
- Dividend reinvestment and automatic purchase plans. These are purchases. A DRIP that buys a few shares in the middle of the window is enough to taint the loss.
- Accounts you control for someone else. A custodial account for a child, or a trust you direct, may be attributed to you depending on the facts.
The IRA Problem Is Asymmetric
The most expensive version of this mistake involves an IRA. In Revenue Ruling 2008-5, the IRS addressed a sale of shares in a taxable account followed by a repurchase of substantially identical shares in an IRA within 30 days. The loss was disallowed. The basis adjustment was applied to the IRA shares — where it provides no current deduction and, in a traditional IRA, may never produce a benefit at all, since distributions are taxed as ordinary income regardless of basis in the account.
In practical terms, the loss is not deferred. It is erased. That asymmetry is why the IRA is the account to check first, not last.
A December Harvest, a January Purchase
The calendar is the second trap. A loss harvested on December 15 remains exposed through January 14 of the following year. An investor who sells in December and repurchases in early January — perhaps through an automatic contribution or a new-year allocation decision — has executed a wash sale across the tax-year boundary. The loss belongs to the earlier year, and it is disallowed there.
The reverse also applies. A purchase in early December can taint a sale in late December, because the window looks backward as well as forward.
The Calendar Method
- Identify the lots. Use specific identification to select the shares with the largest unrealized losses, rather than selling the oldest shares by default.
- Stop all automatic activity. Turn off dividend reinvestment and automatic purchases for the security before the window opens, not after.
- Sweep the household. Check taxable accounts, IRAs, HSAs, workplace plans, and any account you control. Include a spouse's accounts in the review.
- Sell the lot. Record the trade date and the settlement date.
- Mark the 61-day window. The exposure runs from 30 days before the sale to 30 days after. Put both dates on a shared calendar.
- Substitute carefully, if at all. If you want to remain exposed to the sector, a different but economically similar security may work. It is not a perfect substitute, and it introduces tracking differences that should be understood in advance.
- Document. Keep a note of the sale, the replacement security if any, and the basis calculation. If the IRS asks, the file does the talking.
If You Trip the Rule
The remedy is not always simple. Selling the replacement shares does not necessarily restore the loss, because that sale may itself be a wash sale if followed by another purchase. In many cases the cleanest path is to accept the basis adjustment, hold the replacement shares, and harvest again later once the window has fully cleared and the position has recovered or declined further.
The Bottom Line
Loss harvesting rewards organization more than it rewards insight. The investor who keeps a simple calendar, checks every account in the household, and pauses automatic purchases for two months is unlikely to be surprised. The investor who harvests in haste and repurchases on autopilot is the one who discovers, in April, that the loss was never really there.