Quick Answer
You lose the deduction for that loss this year. For tax year 2025, if you sell a security at a loss in December and buy it back within 30 days—even in January 2026—the IRS disallows the loss under the wash sale rule. The loss is not gone forever; it moves into the cost basis of the shares you rebought.
The trap is the calendar. Many investors sell a loser in late December to cut their tax bill, then rebuy it a few days later in the new year, believing the year change resets the clock. It does not. The wash sale rule under Section 1091 counts 30 days before and 30 days after the sale, and it ignores the December 31 line completely. So a December 28 sale and a January 5 repurchase still collide, and the loss you were counting on vanishes from your 2025 return.
The stakes are real money and real timing. Tax-loss harvesting is popular—a 2023 Vanguard study found the strategy can add meaningful after-tax value in volatile years—but a careless year-end rebuy can wipe out the benefit you worked to capture. This guide shows you exactly what happens, with worked math, so you can act before December 31 and report it correctly when you file.
- 📉 How a December-to-January rebuy disallows your loss and what it costs you in dollars.
- 🧮 A full worked example with real numbers so you can copy the basis math.
- 🏦 Why your IRA can turn a deferred loss into a permanently lost one.
- 📝 How to report a wash sale on Form 8949 and Schedule D without errors.
- 🚫 The seven mistakes that cost investors their loss deductions every December.
This article reflects federal rules and general state treatment as of June 2026 and covers tax year 2025. Tax law changes—confirm current figures before you file. It is educational, not a substitute for advice from a licensed CPA or tax attorney for your specific situation.
What a Wash Sale Actually Is
A wash sale happens when you sell a security at a loss and buy the same or a substantially identical security within a 30-day window on either side of the sale. The rule lives in Internal Revenue Code Section 1091, and the IRS explains the basics in Publication 550. The purpose is simple: Congress does not want you to claim a tax loss while your real economic position barely changes.
The window is 61 days total. It covers the 30 days before you sell, the day of the sale, and the 30 days after. People forget the “before” half. If you buy more shares on December 10 and then sell older shares at a loss on December 15, that early purchase can trigger the rule just as easily as a January rebuy.
The consequence of a wash sale is that the loss is disallowed in the current year. You do not get to deduct it on your 2025 return. Instead, the disallowed amount is added to the cost basis of the replacement shares, and the holding period of the old shares carries over to the new ones. So the tax break is delayed, not destroyed—unless the rebuy happens in an account that makes it permanent.
A common misconception is that a wash sale is illegal or a penalty. It is neither. It is a timing rule. You did nothing wrong by triggering one; you simply cannot use the loss yet. What to do about it: before you sell at year-end, check every account for purchases of the same security in the prior 30 days, and plan your rebuy date past the 30-day mark.
Why Year-End Is the Danger Zone
December is when the wash sale rule bites hardest because two habits collide. Investors sell losers in December to harvest losses for the current tax year, and they often want back into the same stock quickly. The problem is that the 30-day clock does not care that a new tax year started on January 1.
Charles Schwab confirms the exact year-end scenario: selling on December 15 to claim the loss this year and rebuying on January 4 still triggers a wash sale, and the loss is disallowed. The calendar boundary is irrelevant to Section 1091. Only the 30 calendar days matter.
The consequence at year-end is sharper than mid-year because timing your deduction is the whole point of the move. If the loss is disallowed, you may have already counted on it to offset a realized gain or up to \$3,000 of ordinary income. When the deduction disappears, your taxable income for 2025 is higher than you planned, and you may owe more than you set aside.
A frequent misconception is that you must stay out of the market for a full month to harvest a loss. You do not. You can immediately buy a similar but not substantially identical security to keep your market exposure. What to do about it: if you sell a loser in December and want the 2025 deduction, do not repurchase the same security until at least 31 days have passed—so a December 20 sale means waiting until at least January 20.
How the Disallowed Loss Moves to Your New Shares
A wash sale does not erase your loss in a taxable account; it relocates it. The disallowed loss is added to the cost basis of the replacement shares, and the original holding period tacks on to the new shares. IRS Publication 550 lays out both adjustments.
The basis bump matters because it lowers your taxable gain—or increases a future loss—when you finally sell the replacement shares for good. So the benefit is recovered later, when you exit the position cleanly without a rebuy inside 30 days.
The tacked-on holding period can help too. If your original shares were long-term, the replacement shares are treated as long-term right away, even if you sell them weeks later. That can move a gain from the higher short-term rate to the lower long-term capital gains rate.
The misconception here is that “disallowed” means “lost forever.” In a taxable brokerage account, that is false—the loss is deferred and embedded in your new basis. What to do about it: keep your broker’s adjusted-basis records, because that higher basis is your proof when you eventually sell and want the full benefit.
A Fully Worked Year-End Example
Here is the math, step by step, so you can copy it. The numbers are illustrative.
You bought 200 shares of a fund at \$50 in March 2024, for a \$10,000 cost basis. On December 22, 2025, the fund trades at \$40, so you sell all 200 shares for \$8,000 and book a \$2,000 loss. You plan to use that \$2,000 to offset a gain elsewhere on your 2025 return.
On January 6, 2026—15 days later—you rebuy 200 shares at \$38, paying \$7,600. Because you repurchased within 30 days, this is a wash sale, and the entire \$2,000 loss is disallowed on your 2025 return.
The \$2,000 disallowed loss is added to your new basis. Your replacement shares cost \$7,600, so the adjusted basis becomes \$7,600 + \$2,000 = \$9,600. Your March 2024 holding period also carries over, so the new shares are long-term immediately.
Now suppose you sell those 200 shares in August 2026 for \$11,000 with no rebuy. Your gain is \$11,000 − \$9,600 = \$1,400, taxed at long-term rates—not \$11,000 − \$7,600 = \$3,400. The wash sale cost you the deduction in 2025, but the higher basis returned the value in 2026. The only true loss was timing: you paid more tax in 2025 than planned.
When a Wash Sale Loss Disappears Forever: The IRA Trap
The deferral story breaks down when your replacement purchase happens inside an IRA or Roth IRA. In a 2008 ruling, Revenue Ruling 2008-5, the IRS held that selling a security at a loss in a taxable account and buying it in your IRA within 30 days triggers a wash sale—and you cannot add the disallowed loss to the basis of the IRA shares.
That last part is the killer. In a normal wash sale, the loss survives inside your new basis. With an IRA rebuy, there is no taxable basis to absorb it, so the loss is permanently disallowed. You lose the deduction and never get it back.
The rule reaches farther than people expect. Schwab notes the wash sale rule applies across all your accounts, including your spouse’s accounts and your IRA, not just the one where you sold. Your broker is only required to track wash sales within a single account on the same CUSIP, so cross-account matches are on you.
The misconception is that IRA trades are invisible to the wash sale rule because IRAs are tax-sheltered. The opposite is true—the IRA rebuy makes the loss vanish. What to do about it: never repurchase a security in any IRA within 30 days of harvesting that same security’s loss in a taxable account.
Which Situation Applies to You?
The wash sale outcome depends on where and how you rebuy. Find your case below.
- You sold at a loss and rebought the same stock in a taxable account within 30 days: wash sale; loss deferred into new basis.
- You sold at a loss and rebought inside an IRA or Roth within 30 days: wash sale; loss permanently lost.
- You sold at a loss and your spouse rebought the same security within 30 days: wash sale; the rule treats your household together.
- You sold at a loss and bought a similar but not identical fund: generally no wash sale; loss allowed and exposure kept.
- You sold at a loss and had automatic dividend reinvestment buy a few shares within 30 days: partial wash sale on the reinvested shares.
- You sold a losing crypto position and rebought immediately: generally no wash sale today, because the rule applies to securities, not property.
Common Year-End Triggers You Might Miss
Wash sales are often accidental. The most common silent trigger is dividend reinvestment. If your fund automatically reinvests a dividend within 30 days of your loss sale, those few new shares create a partial wash sale on the matching portion of your loss.
Restricted stock units (RSUs) are another. As one investor reported on the TurboTax forum, an RSU vesting counts as a purchase, so selling older company shares at a loss near a vest date can trigger a wash sale you never intended.
Options count too. Buying a call option on a security you just sold at a loss can trigger the rule, because an option to acquire the stock is treated as acquiring a substantially identical position. The consequence is the same disallowed loss and basis adjustment.
The misconception is that only your own manual buy orders matter. Automatic reinvestments, vesting events, and option trades all count. What to do about it: turn off automatic dividend reinvestment in any account where you plan to harvest losses, and check vesting schedules before you sell.
How to Report a Wash Sale on Your Return
You report sales of securities on Form 8949 and carry the totals to Schedule D. A wash sale is not hidden—it gets its own code and adjustment columns. (See our guide on how to fill out Form 8949 and Schedule D for a line-by-line walkthrough.)
On Form 8949, you enter the sale as usual: proceeds, cost basis, and the resulting loss. Then in column (f) you enter code W for a wash sale, and in column (g) you enter the disallowed loss as a positive adjustment that cancels the loss. The net effect in column (h) is a smaller loss or zero.
If your broker already flagged the wash sale on your Form 1099-B, the disallowed amount appears in box 1g, and you copy it onto Form 8949. But remember your broker only tracks wash sales within one account on one CUSIP, so you must add any cross-account or IRA matches yourself.
The misconception is that the broker handles everything. It does not handle cross-account, spousal, or IRA wash sales. What to do about it: reconcile every loss sale against all household accounts before you file, and report any wash sale the 1099-B missed. The deadline is the standard April 15, 2026 filing date for 2025 returns.
Year-End Wash Sale Scenarios
Below are the three most common year-end situations and their tax outcomes.
| Year-End Move | What Happens to Your Loss |
|---|---|
| Sell at a loss Dec. 22, rebuy same stock in taxable account Jan. 6 | Loss disallowed for 2025; \$ amount added to new basis; recovered when you sell later without a rebuy |
| Sell at a loss Dec. 22, rebuy same stock in your IRA Jan. 6 | Loss permanently disallowed under Rev. Rul. 2008-5; no basis bump, gone for good |
| Sell at a loss Dec. 22, buy a similar-but-not-identical fund Dec. 23 | No wash sale; full loss allowed on 2025 return; market exposure preserved |
Named Examples
Maria wants a \$4,000 loss to offset a \$4,000 stock gain in 2025. She sells a tech ETF at a loss on December 18, 2025, then rebuys the identical ETF on December 30 because the price dipped further. The 12-day gap triggers a wash sale, her \$4,000 loss is disallowed for 2025, and she owes tax on the full \$4,000 gain she meant to cancel. The loss shifts into her new shares’ basis for later.
James harvests a \$5,000 loss on a mutual fund on December 27, 2025. He waits 32 days and rebuys on January 28, 2026. No wash sale occurs. James deducts the full \$5,000 against his gains on his 2025 return and is back in the position in February.
Priya sells a stock at a \$3,000 loss in her brokerage account on December 15, 2025, and—through an automatic contribution—buys the same stock in her Roth IRA on December 20. Under Rev. Rul. 2008-5, the \$3,000 loss is disallowed and permanently lost, with no basis adjustment available.
Does Your State Follow the Wash Sale Rule?
The wash sale rule is federal, but most states piggyback on it automatically. States that tax capital gains generally start from your federal adjusted gross income or your federal Schedule D figures, so the federally disallowed loss is already baked in before the state ever sees it.
That means in a typical income-tax state—California, New York, and most others—your disallowed wash sale loss is also disallowed at the state level, with no separate state form or adjustment needed. The federal result simply flows through.
States with no income tax, such as Florida, Texas, Washington, and Nevada, do not tax capital gains at all, so the wash sale rule has no state effect for residents there. The misconception is that a state might let you claim a loss the IRS disallowed. That is not how conformity works. What to do about it: check your state’s treatment of federal AGI, and confirm current rules with your state’s department of revenue, since conformity details can change.
Does the Wash Sale Rule Apply to Crypto?
As of tax year 2025, the wash sale rule generally does not apply to cryptocurrency. The IRS treats virtual currency as property, not as a security, and IRS Notice 2014-21 established that property classification. Because Section 1091 is written for securities, a crypto loss sale followed by an immediate rebuy is generally allowed today.
This gives crypto investors a harvesting edge that stock investors do not have: you can sell a coin at a loss and rebuy it minutes later while still claiming the loss. The consequence is a powerful, fully legal loss-harvesting tool under current law.
But this is unsettled and may change. Lawmakers have repeatedly proposed extending the wash sale rule to digital assets, and the IRS has not finalized a rule closing the gap. The misconception is that the crypto loophole is permanent. It is not guaranteed. What to do about it: harvest crypto losses while the rule stands, but watch for new legislation, and confirm the rule is still open before relying on it for a large 2025 trade.
Mistakes to Avoid
- Rebuying the same stock in January. A January rebuy within 30 days of a December loss disallows the loss; the new tax year does not reset the clock.
- Forgetting the 30 days before the sale. A purchase shortly before your loss sale triggers a wash sale just as a later rebuy does; you lose the deduction.
- Rebuying inside an IRA. This permanently destroys the loss under Rev. Rul. 2008-5; there is no basis to recover it.
- Leaving dividend reinvestment on. Auto-reinvested shares within 30 days create a partial wash sale you never intended.
- Ignoring your spouse’s accounts. A purchase in a spouse’s account counts as yours; the loss is disallowed across the household.
- Trusting the 1099-B blindly. Your broker misses cross-account and IRA wash sales, so an unreported one can trigger an IRS notice and back tax.
- Buying a call option on the sold stock. An option to reacquire counts as substantially identical and disallows the loss.
Do’s and Don’ts
- Do wait at least 31 days before rebuying the same security if you want the current-year loss.
- Do use a similar-but-not-identical fund to keep market exposure while harvesting a loss.
- Do turn off automatic dividend reinvestment in harvesting accounts to avoid accidental rebuys.
- Do track all household and IRA accounts, because the rule reaches across every one of them.
- Do keep your broker’s adjusted-basis records so you can claim the deferred loss later.
- Don’t rebuy the security in any IRA within 30 days; the loss is gone for good.
- Don’t assume December 31 resets the 30-day window; it does not.
- Don’t rely solely on the 1099-B for cross-account wash sales.
- Don’t count a harvested loss against income before confirming no rebuy occurred.
- Don’t treat the crypto exemption as permanent; the law may change.
Pros and Cons of Year-End Loss Harvesting
- Pro: It offsets capital gains and up to \$3,000 of ordinary income per year, lowering your 2025 tax bill.
- Pro: Unused losses carry forward to future years, so the benefit is not wasted.
- Pro: You can stay invested by buying a similar fund, keeping your allocation intact.
- Pro: Even a wash sale defers, not destroys, the loss in a taxable account via basis.
- Pro: It is a fully legal, IRS-recognized strategy when done correctly.
- Con: A careless rebuy triggers a wash sale and erases your planned deduction this year.
- Con: An IRA rebuy can destroy the loss permanently.
- Con: Tracking across accounts and spouses adds real complexity and error risk.
- Con: “Substantially identical” is undefined, so replacements carry judgment risk.
- Con: Misreporting can trigger an IRS notice and additional tax owed.
What to Do Next
- List every loss position you want to harvest before December 31, 2025.
- Check all accounts—yours, your spouse’s, and every IRA—for any purchase of those securities in the prior 30 days.
- Turn off automatic dividend reinvestment in the accounts where you will sell.
- Sell the losers, and if you want back in, either buy a similar-but-not-identical security now or wait 31 full days to rebuy the same one.
- Gather your Form 1099-B and reconcile it against your own records for cross-account wash sales.
- Report each sale on Form 8949 and Schedule D, using code W for any wash sale, by April 15, 2026.
- Call a CPA if you have RSUs, multiple accounts, large dollar amounts, or any uncertainty—this review typically costs a few hundred dollars and can save far more.
FAQs
Does a wash sale go away if I wait until January to rebuy? No. The 30-day window crosses the calendar year. A December loss sale and a January rebuy within 30 days still trigger a wash sale, and your loss is disallowed for 2025.
How many days must I wait to avoid a wash sale? At least 31 days. You must avoid buying the same or substantially identical security for the full 30 days before and 30 days after the sale to keep the loss deductible.
Is the loss gone forever after a wash sale? No, usually not. In a taxable account the disallowed loss is added to your replacement shares’ basis and recovered later. Only an IRA rebuy makes it permanent.
What happens if I rebuy the stock in my IRA? The loss is permanently lost. Under Rev. Rul. 2008-5, an IRA rebuy within 30 days disallows the loss with no basis adjustment to recover it.
Do wash sale rules apply to my spouse’s account? Yes. A purchase in your spouse’s account within 30 days of your loss sale triggers a wash sale. The rule treats the household together.
Does the wash sale rule apply to cryptocurrency? No, generally not for 2025. The IRS treats crypto as property, not a security, so the rule does not apply—though Congress may change this.
How do I report a wash sale on my taxes? On Form 8949 with code W. Enter the disallowed loss as a positive adjustment in column (g), then carry the totals to Schedule D.
Can dividend reinvestment cause a wash sale? Yes. Auto-reinvested dividends within 30 days of a loss sale create a partial wash sale on the reinvested shares, disallowing that portion of the loss.
What does “substantially identical” mean? There is no exact IRS definition. The same stock or an option on it clearly qualifies; a different fund tracking a different index usually does not. Use careful judgment.
Will my broker catch every wash sale? No. Brokers track wash sales only within one account on the same CUSIP. Cross-account, spousal, and IRA wash sales are your responsibility to report.
Can I deduct the loss next year instead? No, not directly. A disallowed wash sale loss is not a carryforward; it lives in your replacement shares’ basis and reduces a future gain when you sell them.
Does my state honor a disallowed wash sale loss? Most do. States that tax capital gains start from federal figures, so the disallowed loss flows through automatically. No-income-tax states have no capital gains tax at all.
Word count: approximately 3,500 words. This article reflects federal rules and general state treatment as of June 2026 for tax year 2025. Tax law changes—confirm current figures with the IRS or a licensed professional before you file.
Related reading
- Can a Wash Sale Raise Your Tax Bill? (w/Examples) + FAQs
- Does a Wash Sale Make You Lose the Loss Forever? (w/Examples) + FAQs
- Does Dividend Reinvestment Cause a Wash Sale? (w/Examples) + FAQs
- Does the Wash Sale Loss Come Back When You Sell Again? (w/Examples) + FAQs
- How Do You Tax-Loss Harvest Without a Wash Sale? (w/Examples) + FAQs
- How Long Must You Wait to Rebuy After a Wash Sale? (w/Examples) + FAQs