Wash Sale Rule 2026: How to Avoid Losing Your Year-End Tax Loss to ETF, IRA and Spouse Traps
How the wash sale rule works for year-end 2026 tax-loss selling: the 61-day window, ETF swaps, IRA and spouse traps, crypto status, and key December dates.

Key Takeaway
The wash sale rule is the single most common reason a carefully planned year-end tax-loss sale fails. Under Section 1091 of the Internal Revenue Code, if you sell a stock or security at a loss and buy the same or a "substantially identical" security within 30 days before or after that sale, the IRS disallows the loss for the current year. For anyone selling on December 31, 2026, the danger zone runs from December 1, 2026 through January 30, 2027, which means some purchases you already made this month can quietly undo a sale you have not even placed yet.
The good news is that a wash sale usually defers your loss rather than destroying it. According to IRS Publication 550, the disallowed loss is added to the cost basis of the replacement shares, and your holding period carries over. The painful exceptions are purchases made inside an IRA or Roth IRA, where IRS Revenue Ruling 2008-5 says the loss is disallowed and the IRA basis is not increased, so the tax benefit can be lost permanently. Spouses, automatic dividend reinvestment, and options on the same stock can all trigger the rule without the investor noticing.
After a volatile autumn that left many 2026 buyers holding positions below cost, tax-loss selling is a real opportunity this December. This guide explains exactly how the 61-day window works, which ETF swaps are generally treated as safer, the account-level traps brokers do not catch for you, where cryptocurrency stands as of early December 2026, and a practical calendar for getting it right before the year closes.
How the Wash Sale Rule Actually Works
The 61-day window, counted from the trade date
The rule looks at a window that begins 30 days before the date of the loss sale and ends 30 days after it, for a total of 61 days including the sale date itself. IRS Publication 550 lists four ways to trigger a wash sale inside that window: buying substantially identical stock or securities, acquiring them in a fully taxable trade, acquiring a contract or option to buy them, or acquiring them for your IRA or Roth IRA. The trade date controls, not the settlement date, so a sale executed on Thursday, December 31, 2026 counts as a 2026 sale even though it settles in 2027.
Many investors focus only on the 30 days after a sale, but the look-back half of the window matters just as much in December. If you added to a losing position on December 5 to "average down," and then sell your older, higher-cost lot at a loss on December 20, the December 5 purchase sits inside the window and can cause part or all of the loss to be disallowed. Publication 550 says shares are matched in the order they were bought, so the number of shares affected depends on how many you bought, not simply on the fact that you bought.
What happens to the disallowed loss
A wash sale is usually a timing problem rather than a permanent loss. Publication 550 instructs taxpayers to add the disallowed loss to the cost of the new shares, which raises their basis and postpones the deduction until those replacement shares are sold. The IRS example is simple: buy 100 shares for $1,000, sell them for $750, and buy 100 shares back for $800 within the window. The $250 loss is disallowed, and the new basis becomes $1,050.
The holding period of the original shares also tacks onto the replacement shares. That detail can help if your original position was close to the one-year mark, because a later gain on the replacement shares may qualify for long-term rates sooner than you expect. It can also surprise investors who assumed they were starting a fresh holding period, so it is worth checking how your broker displays acquisition dates after a wash sale adjustment.
Why the deferral still costs you in December
Even when nothing is permanently lost, a wash sale defeats the purpose of year-end tax-loss selling. The point of harvesting a loss in December is to offset 2026 capital gains, or up to $3,000 of ordinary income for most filers ($1,500 if married filing separately), on the return you file next spring. A disallowed loss moves that benefit to an unknown future year, and if the replacement position later recovers, the deferred loss may never translate into a deduction you can use at a meaningful tax rate.
What Counts as "Substantially Identical"
Different companies are generally safe
The tax code never defines "substantially identical" precisely, and Publication 550 says you must consider all the facts and circumstances. It does offer a useful anchor: ordinarily, the stocks or securities of one corporation are not considered substantially identical to those of another corporation. That is why selling one oil major at a loss and buying a different oil major is a common tax-loss swap, even though the two shares tend to move together.
The exceptions within that guidance are narrow. Predecessor and successor companies in a reorganization may be substantially identical, and a company's convertible bonds or convertible preferred stock can be substantially identical to its common shares if they trade closely with the common and convert freely. Ordinary bonds or non-convertible preferred stock of the same company, by contrast, are generally not treated as identical to its common stock.
The ETF and index fund gray zone
The hardest questions involve funds. The IRS has not published a bright-line rule on whether two ETFs from different sponsors that track the same index, such as two S&P 500 funds, are substantially identical. Many advisors treat that swap as a gray area and prefer a cleaner one: moving from an S&P 500 fund to a total U.S. market fund, or from a fund tracking one index provider to a fund tracking a different benchmark with different holdings and weights.
The more two funds differ in index, holdings count, and weighting method, the stronger the argument that they are not substantially identical. Switching from a large-cap growth fund to a broad large-cap blend fund, or from an equal-weight S&P 500 fund to a cap-weighted total market fund, keeps you invested in a similar asset class without holding what is effectively the same portfolio. Because there is no definitive ruling, conservative investors document their reasoning and avoid swapping between share classes of the same fund.
Mutual funds, share classes, and options
Buying a different share class of the same mutual fund, or an ETF share class of a fund you sold, is widely viewed as too close for comfort because the underlying portfolio is identical. Options are explicitly covered: Publication 550 says the rule applies if you acquire a contract or option to buy substantially identical stock, so buying call options on a stock within 30 days of selling it at a loss can trigger a wash sale. The publication adds that selling common stock at a loss and buying warrants on that company's stock is also covered.
The Account Traps Brokers Will Not Catch
IRA and Roth IRA purchases can make the loss vanish
The most expensive mistake is selling a stock at a loss in a taxable account and buying it back in an IRA or Roth IRA within the window. Revenue Ruling 2008-5 addressed this exact case and held that the loss is disallowed and that the investor's basis in the IRA is not increased. In plain terms, the loss does not move anywhere you can use it later, which turns a timing problem into a permanent one.
This trap often happens through automatic contributions rather than deliberate trades. If your Roth IRA is set to invest new deposits into the same S&P 500 fund you just sold at a loss in your brokerage account, the scheduled purchase can trigger the rule. Reviewing every automatic investment plan across all accounts before you harvest losses is one of the simplest protections available.
Your spouse's account counts too
Publication 550 states that if you sell stock and your spouse buys substantially identical stock, you also have a wash sale. The same applies to a corporation you control. Couples who manage separate brokerage accounts, or who have separate advisors, can easily trigger the rule without either person realizing it, so year-end loss harvesting works best when household accounts are reviewed together.
Dividend reinvestment and 401(k) contributions
Automatic dividend reinvestment is another quiet trigger. If a stock or fund you plan to sell at a loss pays a dividend in December and reinvests it, that small purchase falls inside the window and can disallow a portion of the loss that corresponds to the reinvested shares. Turning off reinvestment on positions you intend to harvest, at least through the end of the window, avoids this problem.
Workplace plans raise a similar question when payroll contributions buy a fund that is the same as, or arguably substantially identical to, one you sold in a taxable account. The wash sale matching math can get complicated, and broker tax forms generally report wash sales only for identical securities within the same account. That means the responsibility for spotting cross-account wash sales sits with you and your tax preparer, not your broker.
A Practical Year-End Calendar for 2026
The key dates to work backward from
December 31, 2026 falls on a Thursday and is a regular trading day, which makes it the last trade date for a 2026 capital loss. Counting the window around that date shows why planning matters now. These are the dates most investors need:
- December 1, 2026: the start of the look-back window for any sale made on December 31. Purchases of the same security since this date can affect a year-end loss sale.
- December 31, 2026: last trade date for realizing a 2026 loss.
- January 30, 2027: the last day of the 30-day window after a December 31 sale. Waiting until January 31 or later to buy back the same security keeps you outside the window.
- Next spring: check Form 1099-B, where box 1g may show a disallowed wash sale amount, and remember that losses are disallowed even if your broker did not flag them.
Sell early, then decide on re-entry
Selling earlier in December gives you more room. A loss sale on December 10 opens a window that closes on January 9, 2027, and any replacement purchase in that period should be a genuinely different security. Investors who want to own the original stock again can either wait out the 31 days and accept the market risk of being out, or hold a reasonable substitute in the meantime and switch back after the window closes.
The "double up" alternative
Some investors use the reverse sequence: buy an equal number of additional shares first, wait more than 30 days, and then sell the original higher-cost lot at a loss. This keeps market exposure continuous, but it requires doubling the position for a month and, for a 2026 loss, the additional purchase needed to happen by about November 30. It also only works if you specifically identify the higher-cost lot when selling, which most brokers allow through a specific-lot election at the time of the trade.
Turning the Rule Into a Repeatable Process
Write down the swap list before the sell-off
The investors who handle wash sales best decide on replacement securities before they need them. A simple table of each holding, a substitute that is clearly not substantially identical, and the earliest date you could switch back removes the temptation to improvise when markets are moving. It also gives your tax preparer a clear record of what you intended.
Automate reminders, not tax judgments
Tracking a 31-day clock across several positions is exactly the kind of chore that is easy to forget during the holidays. Alphio's Scheduled Task feature can run recurring checks, such as reminding you when a wash sale window closes or flagging when a harvested position's substitute has drifted from your target allocation. Automation handles the calendar; the decision about what is substantially identical still belongs to you and your tax advisor.

Keep the investment case separate from the tax case
A tax-loss sale should never be the only reason to abandon a position you still believe in, and a tax benefit should not push you into a substitute you would never otherwise own. The tax saving on a $10,000 loss is meaningful, but it is small compared with the impact of missing a sharp rebound or holding the wrong asset for a month. The best harvests are swaps between two holdings you would be comfortable owning either way.
Cryptocurrency and Other Special Cases
Where crypto stands in December 2026
Section 1091 applies to stock and securities, and the IRS has long treated directly held cryptocurrency as property rather than a security. As of early December 2026, the wash sale rule has not been extended to directly held crypto by law; proposals to add digital assets to the rule have been introduced in Congress, but none had been enacted at the time of writing. That means selling a coin at a loss and quickly repurchasing it is not currently covered by Section 1091, although other doctrines, such as economic substance, can still be raised by the IRS in extreme cases.
Crypto ETFs and crypto stocks are different
The crypto exception does not automatically extend to exchange-traded products or to shares of crypto-related companies. Shares of a public company are stock, so selling a bitcoin miner or exchange stock at a loss and buying it back within 30 days is a normal wash sale. Spot crypto ETFs are a newer area without clear IRS guidance, and conservative investors treat them like any other security for wash sale purposes rather than assuming the direct-crypto treatment applies.
Short sales and options strategies
Publication 550 states that the wash sale rules also apply to losses on short sales, with the window measured around the date the short sale is completed. Active options traders face the most complexity, because rolling a losing position into a similar contract can create chains of deferred losses. Anyone running frequent options or short strategies in a taxable account should expect wash sale adjustments and review the broker's realized gain and loss report carefully before year-end.
How to Report and Fix Wash Sales
What your 1099-B will and will not show
Brokers report wash sales they can identify, typically sales and repurchases of the identical security in the same account, in box 1g of Form 1099-B. Publication 550 is explicit that you cannot deduct a loss from a wash sale even if it is not reported to you there. On your return, wash sale adjustments go on Form 8949 with code "W" in column (f) and the disallowed amount in column (g).
Correcting a mistake before December 31
If you realize in December that a planned harvest is likely to be a wash sale, you still have options. Selling the replacement shares as well, if they are also below cost, can sometimes realize the combined loss, provided you then stay out of the security, its IRA equivalents, and your spouse's accounts for the full window. Because the matching rules can be intricate, run the numbers with a tax professional before trading.
Keep records for the deferred basis
When a wash sale does happen, the basis adjustment follows the replacement shares. Brokers usually adjust basis automatically for wash sales they report, but cross-account wash sales require you to track the adjustment yourself. Keeping a simple spreadsheet of adjusted basis and holding period ensures you claim the deferred loss when you eventually sell.
Conclusion
The wash sale rule rewards preparation. The 61-day window around each loss sale, the look-back to purchases made since December 1, and the IRA, spouse, and dividend reinvestment traps all point to the same lesson: review every account in the household, decide on substitutes before you sell, and give yourself a clean 31-day runway before buying back. Done well, tax-loss selling can turn a difficult 2026 for some holdings into a useful offset against gains or ordinary income on next year's return.
Process tools can make that discipline easier to sustain. Alphio's Scheduled Task can keep track of each window and your re-entry dates, while Conversational Trading lets you ask quick questions about a substitute's holdings or price history before you act. Investors who prefer to study how others handle rebalancing and drawdowns can also look at Copy Trade with their own risk limits in place. None of these tools provide tax advice, and none remove market risk, so confirm your specific situation with a qualified tax professional before December 31.
FAQs
What is the wash sale rule?
The wash sale rule, in Section 1091 of the Internal Revenue Code, disallows a loss on the sale of a stock or security if you buy the same or a substantially identical security within 30 days before or after the sale. The disallowed loss is generally added to the cost basis of the replacement shares, which defers the deduction rather than eliminating it.
If I sell a stock at a loss on December 31, 2026, when can I buy it back?
The 30-day window after a December 31, 2026 sale ends on January 30, 2027, so buying back on January 31, 2027 or later keeps you outside it. Remember that purchases made since December 1, 2026 also fall inside the look-back half of the window.
Does buying the stock in my IRA trigger a wash sale?
Yes. IRS Revenue Ruling 2008-5 holds that buying substantially identical stock in an IRA or Roth IRA within the window disallows the loss on the taxable-account sale. Unlike a normal wash sale, the IRA's basis is not increased, so the loss benefit can be lost permanently.
Are two S&P 500 ETFs from different companies substantially identical?
The IRS has not issued a definitive ruling on whether funds from different sponsors tracking the same index are substantially identical, so many advisors treat this as a gray area. A more conservative swap is into a fund that tracks a different index, such as a total U.S. market fund, with different holdings and weights.
Does the wash sale rule apply to cryptocurrency in 2026?
As of early December 2026, the wash sale rule applies to stock and securities, and directly held cryptocurrency is treated by the IRS as property, so it is not currently covered. Bills to extend the rule to digital assets have been proposed but had not been enacted at the time of writing, and crypto company stocks are covered like any other stock.
Related articles
- How War Affects the Stock Market: A Geopolitical Risk Playbook as Iran Tensions Flare in 2026How war affects the stock market: what history shows about geopolitical sell-offs, why oil and rates matter in the 2026 Iran-Hormuz flare-up, and how to act.
- Warren Buffett's Investing Principles: How to Apply His Playbook in a 2026 MarketWarren Buffett's investing principles after his death: moats, margin of safety, the Buffett Indicator near 222%, index funds, and how to apply them in 2026.
- Insurance Stocks and Rising Interest Rates: P&C vs Life Insurers vs Brokers in 2026Insurance stocks in a Fed hiking cycle: how rising rates lift investment income, why P&C pricing is softening, and what life insurer private credit risk means.
- Tesla Stock Analysis August 2026: Navigating the EV Market's Next ChapterIn-depth Tesla stock analysis for August 2026. Explore TSLA price trends, EV market growth, and investment strategies. Expert insights on Tesla's future.
- AI Infrastructure Stocks Analysis: Top Investment Opportunities for August 2026Explore top AI infrastructure stocks for August 2026. Analysis of NVIDIA, AMD, and data center REITs with market outlook and investment strategies.
- How Federal Reserve Interest Rate Policy Shapes Stock Market Performance in 2026Comprehensive analysis of Federal Reserve interest rate decisions and their impact on stock market performance, sectors, and investment strategies in 2026.

